/* Keepsakes and formats (speech page) and the sample card (landing, /business). */
.keepsakes h2 {
  font-family: 'Cormorant Garamond', var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.keepsakes fieldset {
  padding-bottom: 16px;
}

.ks-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.ks-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.ks-tile input,
.ks-swatch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ks-tile:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.ks-tile:has(input:focus-visible),
.ks-swatch:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ks-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 118px;
}

.ks-thumb canvas {
  display: block;
  max-width: 100%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 6px 16px rgb(0 0 0 / 0.08);
}

.ks-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.ks-blurb {
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.3;
}

.ks-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ks-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  font-size: 0.95rem;
}

.ks-swatch:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.ks-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid;
}

.ks-chip span {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}

.ks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.ks-checks {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.ks-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-quote {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.ks-quote-label {
  font-weight: 600;
  margin: 0 0 6px;
}

.ks-quote blockquote {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.ks-quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ks-preview {
  margin: 0;
}

.ks-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--paper-2);
  min-height: 220px;
}

.ks-stage canvas {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1), 0 14px 34px rgb(0 0 0 / 0.14);
}

.ks-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.ks-pager [hidden] {
  display: none;
}

.ks-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.ks-actions .status-line {
  margin: 0;
}

.ks-teaser {
  padding: 48px 0;
}

.ks-teaser-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.ks-sample {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1), 0 18px 40px rgb(0 0 0 / 0.16);
}

.ks-teaser h2 {
  font-family: 'Cormorant Garamond', var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-top: 0;
}

@media (max-width: 560px) {
  .ks-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ks-thumb {
    height: 84px;
  }

  .ks-blurb {
    display: none;
  }
}

@media (max-width: 760px) {
  .ks-layout,
  .ks-teaser-inner {
    grid-template-columns: 1fr;
  }

  .ks-preview {
    order: -1;
  }

  .ks-teaser-inner {
    justify-items: center;
    text-align: center;
  }
}

@media print {
  .keepsakes,
  .ks-teaser {
    display: none;
  }
}
