/* Layout: one left-aligned column of thought on soft beige, broken twice by
   full-bleed bands (powder for the market case, sage for the founder's note).
   Asymmetric: the hero text takes 7 parts, the cream symbol the rest; content
   sections pair a heading column (4) with the body (8). */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-beige);
  color: var(--c-ink);
  font: var(--fw-regular) var(--fs-base) / var(--lh-relaxed) var(--ff-latin);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, blockquote { margin: 0; }
img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; border-radius: 2px; }

/* Top bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding-block: var(--sp-lg);
}
.bar-logo { width: clamp(96px, 9vw, 132px); }
.bar-mail { font-size: var(--fs-sm); text-decoration: none; border-bottom: 1px solid var(--c-line); padding-bottom: 2px; transition: border-color var(--dur-fast) var(--ease-out); }
.bar-mail:hover { border-color: var(--c-ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--sp-xl);
  padding-block: var(--section-y-tight) var(--section-y);
}
.hero h1 {
  font-weight: var(--fw-light);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.hero-lede {
  margin-top: var(--sp-lg);
  max-width: 34rem;
  font-size: var(--fs-lg);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-mark {
  justify-self: end;
  width: min(100%, 440px);
  animation: draw var(--dur-reveal) var(--ease-expo) 200ms both;
}
@keyframes draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.button {
  display: inline-flex;
  align-items: center;
  margin-top: var(--sp-xl);
  height: 52px;
  padding-inline: var(--sp-lg);
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-beige);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.button:hover { background: var(--c-ink-deep); }

/* Full-bleed bands. All words on a band are --c-ink (DESIGN.md §3 rule 1). */
.band { padding-block: var(--section-y); }
.band-powder { background: var(--c-powder); }
.band-sage { background: var(--c-sage); }

.band-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
}

/* The one loud moment: a fact told as a sentence. */
.fact {
  margin-top: var(--sp-lg);
  max-width: 15em;
  font-weight: var(--fw-light);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.fact-number { font-variant-numeric: lining-nums tabular-nums; }

.fact-notes {
  margin-top: var(--sp-2xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-lg) var(--sp-xl);
  max-width: 56rem;
}
.fact-notes p { text-wrap: pretty; }
.fact-notes strong { font-weight: var(--fw-regular); display: block; font-size: var(--fs-lg); margin-bottom: var(--sp-2xs); }

.source {
  margin-top: var(--sp-xl);
  font-size: var(--fs-xs);
}

/* Heading column + body sections */
.split, .criteria {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--sp-xl);
  padding-block: var(--section-y);
}
.criteria { padding-top: 0; }
.split-title {
  font-weight: var(--fw-light);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
  max-width: 11em;
}

.offer > div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-xs) var(--sp-lg);
  padding-block: var(--sp-md);
  border-top: 1px solid var(--c-line);
}
.offer > div:last-child { border-bottom: 1px solid var(--c-line); }
.offer dt { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.offer dd { color: var(--c-ink-soft); text-wrap: pretty; }

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-xl) var(--sp-xl);
}
.criteria-grid h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-xs);
}
.criteria-grid p { color: var(--c-ink-soft); text-wrap: pretty; }

/* Founder note */
.note {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--sp-xl);
}
.note-text {
  max-width: 40rem;
  display: grid;
  gap: var(--sp-md);
  font-weight: var(--fw-light);
  font-size: var(--fs-xl);
  line-height: 1.45;
  text-wrap: pretty;
}
.note-sign { margin-top: var(--sp-lg); }
.signature {
  display: block;
  font-family: var(--ff-signature);
  font-weight: var(--fw-regular);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}
.role { display: block; margin-top: var(--sp-xs); font-size: var(--fs-sm); }

.contact {
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-ink);
}
.contact-mail {
  display: inline-block;
  margin-top: var(--sp-2xs);
  font-weight: var(--fw-light);
  /* One line at every width: 21 characters of DM Sans Light are ~11em wide. */
  font-size: min(var(--fs-3xl), 7.2vw);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  text-decoration: none;
  white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-reveal) var(--ease-expo);
}
.contact-mail:hover, .contact-mail:focus-visible { background-size: 100% 1px; }

/* Footer */
.foot {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding-block: var(--sp-xl);
  font-size: var(--fs-xs);
  color: var(--c-ink-soft);
}
.foot img { width: 32px; }

/* 404 */
.lost { padding-block: var(--section-y); max-width: 40rem; }
.lost h1 { font-weight: var(--fw-light); font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
.lost p { margin-top: var(--sp-md); }

@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp-lg); }
  .hero-mark { order: -1; justify-self: start; width: min(46%, 220px); }
  .split, .criteria, .note { grid-template-columns: minmax(0, 1fr); gap: var(--sp-lg); }
  .offer > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .criteria-grid { grid-template-columns: minmax(0, 1fr); }
  .bar-mail { font-size: var(--fs-xs); }
}
