/* Hallmark · shape: Letter · genre: atmospheric · theme: Kiln (bisque, by request, sister to landing/) · job: sign up · draw: d279e5
 * hero: Stage · nav: edge-aligned · footer: mast · imagery: the product, the whole sheet and one detail · signature: the one-page checklist, with the fill-in line · kiln: bisque
 * axes: light/high-contrast-serif/warm · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 · weakest: V, a sister page shares Kiln's faces by request; the letter shape, the paper colourway and the one sheet are the distance */
/* Hallmark · finish-review: subagent · 5 findings · 5 resolved · gap: none */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-height: 72px;
  --shadow-sheet: 0 36px 70px -36px oklch(30% 0.03 50 / 0.34);
  --measure-story: 58ch;
}

html { scroll-behavior: smooth; }

.skip {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: var(--z-toast);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-sm);
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
  transition: transform var(--dur-short) var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* Chrome: one edge-aligned bar over the paper. */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  min-height: var(--nav-height);
}
.wordmark {
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-sm);
}
.nav__links a {
  color: var(--color-ink-2);
  text-decoration: none;
}
.nav__links a:hover { color: var(--color-ink); }

/* Controls: one ember pill, one ghost. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-md);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule);
}
.btn--ghost:hover {
  background: var(--color-paper-2);
}
.btn:active { transform: translateY(1px); }
.btn--nav {
  min-height: 44px;
  padding-inline: var(--space-md);
  font-size: var(--text-sm);
}

/* Hero: the note and the sheet, on paper. */
.hero {
  display: grid;
  align-items: center;
  min-height: calc(100dvh - var(--nav-height) - var(--rule-hair));
  padding-block: var(--space-xl);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-2xl);
  align-items: center;
}
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}
.hero h1 {
  max-width: 15ch;
  font-size: var(--text-display);
  line-height: 1.02;
}
.hero .lead {
  max-width: 36ch;
  color: var(--color-ink-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.hero__terms {
  max-width: 40ch;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.hero__sheet {
  justify-self: start;
  width: 100%;
  max-width: 540px;
  margin: 0;
}
.hero__sheet img {
  width: 100%;
  height: auto;
  border-radius: min(2vw, var(--radius-card));
  box-shadow: var(--shadow-sheet);
}
figcaption {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-muted);
}

/* The letter: February 1978, and the turn. */
.section { padding-block: var(--section-gap); }
.section--story { padding-block: var(--section-gap-l) var(--section-gap); }
.section--seat { padding-block: var(--section-gap-l) var(--section-gap); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
}
.c1-4 { grid-column: 1 / span 4; }
.c1-5 { grid-column: 1 / span 5; }
.c6-12 { grid-column: 6 / -1; }
.c7-12 { grid-column: 7 / -1; }

.story__aside { grid-column: 1 / span 3; }
.story__year {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.story__date {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.story__body { grid-column: 5 / -1; }
.story__text {
  max-width: var(--measure-story);
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-ink-2);
}
.story__turn {
  max-width: 28ch;
  margin-top: var(--space-xl);
  padding-left: var(--space-lg);
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.15;
}

/* One page, four things. */
.page__head { align-items: end; }
.covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gap-columns);
  margin: var(--space-2xl) 0 0;
  padding: 0;
  list-style: none;
}
.covers li {
  padding-block: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.covers h3 {
  max-width: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  letter-spacing: 0;
}
.covers p {
  margin-top: var(--space-2xs);
  font-size: var(--text-md);
  color: var(--color-ink-2);
}
.plate {
  max-width: 760px;
  margin: var(--space-3xl) auto 0;
}
.plate img {
  width: 100%;
  height: auto;
  border-radius: min(2vw, var(--radius-card));
  box-shadow: var(--shadow-sheet);
}

/* The car-seat line, set as the page's statement. */
.seat { align-items: start; }
.seat h2 { grid-column: 1 / span 4; }
.seat__statement {
  grid-column: 6 / -1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.seat__source {
  grid-column: 6 / -1;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* The house, too. */
.house { align-items: center; }
.house__cover {
  grid-column: 1 / span 3;
  width: 100%;
  max-width: 300px;
  margin: 0;
}
.house__cover img {
  width: 100%;
  height: auto;
  border-radius: min(2vw, var(--radius-card));
  box-shadow: var(--shadow-sheet);
}
.house__body { grid-column: 4 / -1; }
.house__body p {
  max-width: 56ch;
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-ink-2);
}
.house__link {
  display: inline-block;
  margin-top: var(--space-lg);
  font-weight: 500;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.house__link:hover { text-decoration-thickness: 2px; }

/* The free close, on bone. */
.section--close {
  padding-block: var(--section-gap-s);
  background: var(--color-paper-2);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.close {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
  align-items: end;
}
.close h2 { grid-column: 1 / span 6; }
.close__body {
  grid-column: 7 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

@media (max-height: 820px) and (min-width: 60.01rem) {
  .hero__sheet { max-width: 470px; }
}

/* Mast. */
.footer { padding-block: var(--space-3xl) var(--space-4xl); }
.footer__mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-display-s);
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md) var(--space-2xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
}
.footer__meta { color: var(--color-ink-2); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
}
.footer__legal {
  max-width: 72ch;
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-muted);
}

@media (max-width: 60rem) {
  .nav__links { display: none; }
  .hero {
    min-height: auto;
    padding-block: var(--space-2xl);
  }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .hero__text,
  .hero__sheet { grid-column: auto; }
  .hero__sheet { justify-self: start; max-width: 320px; }
  .story__year { font-size: var(--text-2xl); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1; }
  .covers { grid-template-columns: minmax(0, 1fr); }
  .close { grid-template-columns: minmax(0, 1fr); }
  .close h2,
  .close__body { grid-column: 1 / -1; }
  .close__body { margin-top: var(--space-lg); }
  .footer { padding-block: var(--space-2xl) var(--space-3xl); }
}

@media (max-width: 40rem) {
  .nav__inner { min-height: 64px; gap: var(--space-sm); }
  .wordmark { font-size: var(--text-md); }
  .hero { padding-block: var(--space-2xl) var(--space-2xl); }
  .hero__sheet { max-width: 270px; }
  .hero__text { gap: var(--space-md); }
  .actions .btn { flex: 1 1 auto; }
  .story__turn { margin-top: var(--space-lg); }
  .house__cover { max-width: 180px; }
  .footer__mark { font-size: var(--text-display-s); }
  .footer__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .skip { transition: none; }
  .btn { transition: background-color var(--dur-short) linear, box-shadow var(--dur-short) linear; }
}
