:root {
  --bg: #ECE5DA;
  --band: #E3DACB;
  --ink: #2A2622;
  --muted: #7A7168;
  --label: #5E564E;
  --rule: #D3C9BA;
  --underline: #B8AD9E;
  --button: #23211E;
  --button-ink: #F2ECE2;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: #6E655B; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Labels */
.label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0;
}
.label--small { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding-block: 16px;
  font-family: var(--sans);
}
.wordmark { font-size: 13px; font-weight: 500; letter-spacing: 0.22em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-nav a { font-size: 11px; letter-spacing: 0.16em; color: #8A8076; }
.site-nav a:hover { color: var(--ink); }

/* Sections */
.section { border-bottom: 1px solid var(--rule); }
.section > .wrap { padding-block: 56px 64px; display: flex; flex-direction: column; gap: 20px; }
.section--band { background: var(--band); }
.measure { max-width: 600px; display: flex; flex-direction: column; gap: 18px; }
p { margin: 0; }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: flex-start;
  padding-block: 44px 56px;
}
.cover { margin: 0; flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cover img { width: 100%; max-width: 320px; box-shadow: 0 18px 40px rgba(42, 38, 34, 0.18); }
.cover figcaption { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.title-block { display: flex; flex-direction: column; gap: 6px; }
.hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(64px, 9vw, 104px);
  line-height: 1;
  letter-spacing: 0.08em;
}
.byline { font-family: var(--sans); font-weight: 300; font-size: 22px; letter-spacing: 0.08em; }
.byline span { color: var(--muted); }
.logline { max-width: 34em; }

.facts {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
}
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }

.text-link { align-self: flex-start; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.underline { border-bottom: 1px solid var(--underline); }

/* Praise */
.praise > .wrap { gap: 48px; }
.praise .rule { width: 36px; height: 1px; background: var(--ink); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.quote blockquote { margin: 0; font-size: 21px; line-height: 1.5; text-wrap: pretty; }
.quote--lead blockquote { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; max-width: 36em; }
.quote figcaption { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.quote cite { font-family: var(--serif); font-style: italic; letter-spacing: 0; font-size: 14px; }
.quote-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px 56px;
}

/* Excerpt */
.excerpt-rule { height: 1px; background: var(--rule); margin: 10px 0; }
.excerpt { font-style: italic; color: #6E655B; }
.first-page { gap: 0; }
.first-page p + p { text-indent: 1.5em; }

/* Author */
.author { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: flex-start; }
.author-photo { flex: 0 1 260px; width: 260px; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1); }
.author-bio { flex: 1 1 340px; min-width: 0; max-width: 600px; }

/* Signup */
.signup-intro { max-width: 32em; }
.signup { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; margin: 0; }
.signup input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #C9BEAE;
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
}
.signup input::placeholder { color: #9A9085; }
.signup button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--button);
  color: var(--button-ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  cursor: pointer;
}
.signup button:hover { background: #3A3631; }

/* Press */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px 56px;
  font-size: 15px;
}
.press-grid > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.press-grid h3 { margin: 0; }
.press-grid a { align-self: flex-start; }

/* Footer */
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 28px 36px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }

/* Thanks page */
.thanks > .wrap { padding-block: 96px 120px; gap: 24px; }
.thanks h1 { margin: 0; font-family: var(--sans); font-weight: 300; font-size: clamp(36px, 6vw, 56px); letter-spacing: 0.06em; line-height: 1.1; }
