:root {
  --bg: #f3eee6;
  --bg-deep: #ebe4d8;
  --text: #1d1a17;
  --muted: #6d655c;
  --accent: #d2432f;
  --line: #ddd4c7;
  --card: #fbf8f3;
  --button: #1d1a17;
  --button-text: #fbf8f3;
  --shadow: 32, 24, 14;
  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120f;
    --bg-deep: #1b1713;
    --text: #f1ebe2;
    --muted: #a59b8f;
    --accent: #ee6a52;
    --line: #2e2924;
    --card: #1e1a16;
    --button: #f1ebe2;
    --button-text: #15120f;
    --shadow: 0, 0, 0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
p { text-wrap: pretty; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--button); color: var(--button-text);
  padding: 8px 14px; border-radius: 6px; text-decoration: none; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 40rem; }

/* Header */
header.top { padding: 26px 0 0; }
header.top .wrap { display: flex; align-items: center; gap: 12px; }
header.top img { width: 40px; height: 40px; border-radius: 10px; }
header.top a.brand { font-weight: 650; color: var(--text); text-decoration: none; font-size: 19px; letter-spacing: -.01em; }
nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
nav a:hover, nav a[aria-current] { color: var(--text); }

/* Type */
.kicker { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .01em; margin: 0 0 12px; }
h1, h2 { font-family: var(--serif); font-weight: 600; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 22px; }
h2 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -.018em; margin: 0 0 16px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 28px 0 6px; }
.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--muted); max-width: 36rem; margin: 0; }
.small { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 40px; position: relative; }
.hero::before {
  content: ""; position: absolute; top: -80px; right: 0; width: min(70vw, 900px); height: 520px; z-index: -1;
  background: radial-gradient(closest-side, rgba(224, 65, 43, .09), transparent);
  pointer-events: none;
}
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 30px 0 0; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--button); color: var(--button-text);
  font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 13px 22px; border-radius: 10px;
  transition: transform .2s var(--ease), opacity .2s;
}
.button:hover { opacity: .88; }
.button:active { transform: scale(.98); }
.button svg { width: 18px; height: 18px; flex: none; }
.cta .small { max-width: 22rem; margin: 0; }
.makes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.makes li:first-child { color: var(--muted); }
.makes a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.makes a:hover { border-color: var(--accent); }

.frame {
  margin: 48px 0 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(var(--shadow), .04), 0 24px 60px -24px rgba(var(--shadow), .28);
}
.frame img { display: block; width: 100%; }

/* Sections */
section.block { padding-top: 88px; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split p { margin: 0 0 14px; }
.split .shot { border-radius: 14px; box-shadow: 0 20px 50px -26px rgba(var(--shadow), .35); display: block; width: 100%; }
.split .shot.tall { max-width: 360px; justify-self: center; border: 1px solid var(--line); }

.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px auto 0; max-width: 760px; align-items: start; }
.themes img { width: 100%; border-radius: 22px; border: 1px solid var(--line); display: block; }
.themes img:nth-child(2) { margin-top: 40px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 28px 0 0; padding: 0; list-style: none; }
.features li { padding: 18px 0; border-top: 1px solid var(--line); }
.features strong { display: block; font-weight: 600; margin-bottom: 2px; }
.features span { color: var(--muted); }

.makers { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.makers li { border-bottom: 1px solid var(--line); }
.makers a { display: grid; grid-template-columns: 220px 1fr auto; gap: 4px 24px; align-items: baseline; padding: 22px 0; color: var(--text); text-decoration: none; }
.makers .name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.makers .what { color: var(--muted); }
.makers .more { display: inline-block; white-space: nowrap; font-weight: 600; color: var(--accent); transition: transform .25s var(--ease); }
.makers .more::after { content: " \2192"; }
.makers a:hover .more { transform: translateX(4px); }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
ol.steps li { counter-increment: step; }
ol.steps li::before {
  content: counter(step); display: block;
  font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 600; color: var(--accent);
  margin-bottom: 12px; font-variant-numeric: tabular-nums;
}

.price { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px 36px; }
.price p { margin: 0 0 10px; max-width: 44rem; }
.price p:last-child { margin-bottom: 0; }

.faq { margin: 24px 0 0; border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 18px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 42rem; }

.closing { padding-top: 96px; }
.closing .cta { margin-top: 20px; }

/* Plain pages (support, legal) */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 18px 0; }
.card p { margin: 6px 0; }
main.doc { padding-top: 56px; padding-bottom: 20px; }
main.doc > * { max-width: 760px; }
main.doc h1 { font-size: clamp(34px, 5vw, 48px); }
main.doc h2 { font-size: 26px; margin-top: 44px; }
main.doc p, main.doc li { max-width: 40em; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .note { flex-basis: 100%; }

/* Reveal on scroll, only when JS runs and motion is fine */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .features { grid-template-columns: 1fr; }
  .makers a { grid-template-columns: 1fr; }
  ol.steps { grid-template-columns: 1fr; gap: 22px; }
  ol.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; }
  ol.steps li::before { font-size: 34px; margin: 0; }
  section.block { padding-top: 72px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1, h2 { -webkit-hyphens: auto; hyphens: auto; }
  .wrap { padding: 0 16px; }
  header.top .wrap { gap: 10px; }
  header.top img { width: 34px; height: 34px; border-radius: 8px; }
  header.top a.brand { font-size: 17px; }
  nav { gap: 14px; font-size: 14px; }
  .hero { padding-top: 44px; }
  .frame { margin-top: 36px; border-radius: 12px; }
  .themes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .themes img { border-radius: 16px; }
  .themes img:nth-child(2) { margin-top: 24px; }
  .themes img:nth-child(3) { display: none; }
  .price { padding: 24px 20px; }
  .faq summary { font-size: 17px; }
}
@media (max-width: 370px) {
  header.top .wrap { flex-wrap: wrap; }
  nav { width: 100%; margin-left: 0; }
}
