/* Lizzie — 2D pale field, thick contour. 8-point grid. */

:root {
  --cream: #FCF2C6;
  --terracotta: #A5532D;
  --olive: #796635;
  --dark-stone: #57351C;
  --outline: #281D0E;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --section: 112px;
  --header: 64px;
  --gutter: 28px;
  --wrap: 1120px;

  --outline-w: 3px;
  --radius-sm: 2px;
  --radius-pill: 9999px;

  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--dark-stone);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle, rgba(87, 53, 28, 0.06) 1.25px, transparent 1.6px),
    radial-gradient(circle, rgba(121, 102, 53, 0.05) 1px, transparent 1.4px);
  background-size: 48px 48px, 32px 32px;
  background-position: 0 0, 16px 16px;
}

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

a {
  color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--outline);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--terracotta);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  border: var(--outline-w) solid var(--outline);
}

.skip:focus,
.skip:focus-visible {
  top: 8px;
  color: var(--cream);
  outline-offset: 2px;
}

#main:focus {
  outline: none;
}

#main:focus-visible {
  outline: none;
}

/* —— Sticky header, ~64px —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  border-bottom: var(--outline-w) solid var(--outline);
}

.site-header__inner {
  height: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-stone);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.wordmark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.wordmark:hover {
  color: var(--terracotta);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 24px;
}

.site-nav a {
  color: var(--dark-stone);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--terracotta);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  background: var(--terracotta);
  color: var(--cream) !important;
  border: 2px solid var(--outline);
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--dark-stone);
}

/* —— Layout —— */

.hero,
.section,
.site-footer {
  max-width: calc(var(--wrap) + 48px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
  border-top: var(--outline-w) solid var(--outline);
}

.section-head {
  margin-bottom: 48px;
}

.section-num {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

.section-head h2,
.hero h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--outline);
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  max-width: 18ch;
}

.section-body {
  max-width: 60ch;
}

.prose p {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.6;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* —— Hero —— */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - var(--header));
  padding-top: 48px;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  max-width: 16ch;
}

.lede {
  margin: 24px 0 32px;
  font-size: 20px;
  line-height: 1.5;
  max-width: 36ch;
}

.hero__figure {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.hero__figure img {
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 0 var(--outline));
}

/* —— Form —— */

.essay-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.essay-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.essay-form input[type="email"] {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--dark-stone);
  background: var(--cream);
  border: var(--outline-w) solid var(--outline);
  border-radius: var(--radius-sm);
}

.essay-form input[type="email"]::placeholder {
  color: var(--olive);
  opacity: 0.85;
}

.essay-form button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  background: var(--terracotta);
  border: var(--outline-w) solid var(--outline);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.essay-form button:hover {
  background: var(--cream);
  color: var(--terracotta);
}

.essay-form button:active {
  background: var(--dark-stone);
  color: var(--cream);
}

.quiet-link {
  margin: 16px 0 0;
  font-size: 14px;
}

.quiet-link a {
  color: var(--olive);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--olive);
}

.quiet-link a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.essay-form--block {
  max-width: 560px;
}

/* —— Gallery: horizontal scroll —— */

.gallery {
  display: flex;
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.gallery:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

.gallery-card {
  flex: 0 0 min(720px, 82vw);
  margin: 0;
  scroll-snap-align: start;
  background: var(--cream);
  border: var(--outline-w) solid var(--outline);
  border-radius: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.gallery-card--cutout img {
  object-fit: contain;
  background: var(--cream);
}

.gallery-card figcaption {
  padding: 8px 16px;
  border-top: var(--outline-w) solid var(--outline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

/* —— Timeline —— */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--outline);
}

.timeline li {
  position: relative;
  padding-left: 40px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--olive);
  border: 3px solid var(--outline);
  border-radius: 50%;
}

.timeline__num {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

.timeline h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--outline);
}

.timeline p:last-child {
  margin: 0;
  max-width: 52ch;
}

/* —— FAQ —— */

.faq {
  display: grid;
  gap: 0;
  max-width: 68ch;
}

.faq-item {
  padding: 24px 0;
  border-top: var(--outline-w) solid var(--outline);
}

.faq-item:last-child {
  border-bottom: var(--outline-w) solid var(--outline);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--outline);
}

.faq-item p {
  margin: 0;
}

/* —— Footer —— */

.site-footer {
  padding: 48px 24px 64px;
  border-top: var(--outline-w) solid var(--outline);
  display: grid;
  gap: 8px;
}

.wordmark--footer {
  font-size: 20px;
}

.site-footer p {
  margin: 0;
}

.fine {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

/* —— Breakpoints —— */

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 96px;
  }

  .hero__figure {
    min-height: 420px;
    justify-content: flex-end;
  }

  .hero__figure img {
    width: min(100%, 640px);
  }

  .timeline {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }

  .timeline::before {
    left: 0;
    right: 0;
    top: 13px;
    bottom: auto;
    width: auto;
    height: 3px;
  }

  .timeline li {
    padding-left: 0;
    padding-top: 40px;
  }

  .timeline li::before {
    top: 8px;
    left: 0;
  }
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* —— Reduced motion —— */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
