/* Tokens copied from the app (src/theme.css). Change the look there first, then here. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/young-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #f4eedc;
  --ink: #1d1a14;
  --panel: #eae2ca;
  --brown: #634338;
  --olive: #d6d6a5;
  --orange: #da7634;
  --apricot: #de9a5e;
  --vermilion: #e4501c;
  --canvas: #e9e1cc;
  --white: #fff;
  --font-sans: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --font-serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --shadow: 0 10px 24px rgb(29 26 20 / 12%);
  --max: 1120px;
  --gutter: 16px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

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

::selection {
  background: var(--brown);
  color: var(--cream);
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-120%);
  z-index: 5;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  transform: translateY(12px);
  outline-color: var(--cream);
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.site-header {
  padding: 12px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 48px;
}

.wordmark {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}

.wordmark sup {
  font-size: 8px;
  vertical-align: 8px;
}

.header-cta {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.header-cta:hover { background: var(--ink); color: var(--cream); }

.kicker {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-synthesis: style;
  letter-spacing: 0;
}

.hero {
  position: relative;
  background: var(--brown);
  color: var(--cream);
  border-radius: 24px;
  overflow: hidden;
}

.hero :focus-visible { outline-color: var(--cream); }

.hero-grid {
  display: grid;
  gap: 22px;
  padding: 22px 18px 8px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  margin: 8px 0 0;
  color: var(--cream);
  font-size: 17px;
}

.rule {
  flex: 1;
  height: 2px;
  min-width: 16px;
  background: var(--cream);
  border: 0;
}

.sticker {
  display: grid;
  place-items: center;
  flex: none;
  width: 74px;
  height: 74px;
  margin: 0;
  border-radius: 50%;
  background: var(--vermilion);
  color: var(--ink);
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.sticker span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
}

h1 {
  margin: 16px 0 0;
  font-weight: 800;
  font-size: clamp(46px, 13vw, 76px);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.hero-sub {
  max-width: 36ch;
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  min-height: 52px;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
}

.cta:hover { background: var(--cream); color: var(--ink); }
.cta:focus-visible { outline-color: var(--cream); }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.store-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 148px;
  min-height: 56px;
  margin: 0;
  padding: 8px 14px;
  border: 2px solid var(--cream);
  border-radius: 14px;
  color: var(--cream);
  cursor: default;
}

.store-soon {
  font-family: var(--font-serif);
  font-style: italic;
  font-synthesis: style;
  font-size: 14px;
  line-height: 1.2;
}

.store-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 22px;
  padding: 12px 18px;
  background: var(--olive);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.strip span { white-space: nowrap; }

.example { margin: 0; }

.example .kicker {
  margin: 0 2px 8px;
  color: var(--cream);
  font-size: 16px;
}

.sort-card {
  padding: 16px;
  border-radius: 24px;
  background: var(--vermilion);
  color: var(--ink);
}

.sort-meta {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-synthesis: style;
  font-size: 14px;
}

.sort-name {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.mock-photo {
  display: grid;
  place-items: center;
  height: 148px;
  margin-top: 12px;
  border-radius: 16px;
  background: var(--canvas);
  color: var(--brown);
  overflow: hidden;
}

.mock-photo svg { width: 120px; height: 88px; }

.mock-note {
  margin: 12px 2px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.sort-prompt {
  margin: 14px 2px 8px;
  font-family: var(--font-serif);
  font-size: 18px;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 18px;
}

.choice b {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.choice span {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.2;
}

.choice-keep { background: var(--olive); color: var(--ink); }
.choice-keep span { color: var(--brown); }
.choice-sell { background: var(--brown); color: var(--cream); }
.choice-donate { background: var(--orange); color: var(--ink); }
.choice-letgo { background: var(--apricot); color: var(--ink); }

.skip-line {
  margin: 10px 2px 0;
  font-weight: 700;
  font-size: 14px;
}

.section {
  margin-top: 36px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.section-head h2,
.feature h3,
.missing h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.section-head h2 {
  font-size: clamp(28px, 7vw, 40px);
}

.section-head .kicker {
  color: var(--brown);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  gap: 12px;
}

.feature {
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: var(--panel);
}

.feature .index {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 16px;
}

.feature h3 {
  font-size: 26px;
}

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

.feature p,
.faq p,
.missing p,
.site-footer p {
  font-size: 16px;
  line-height: 1.5;
}

.rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rooms li {
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 700;
  font-size: 13px;
}

.stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 14px;
}

.stages li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stages li:not(:last-child)::after {
  content: "→";
  font-weight: 500;
}

.feature .choices { margin-top: 14px; }

.faq-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.faq-list details {
  border-radius: 16px;
  background: var(--panel);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p {
  margin: 0;
  padding: 0 16px 16px;
}

.site-footer {
  margin-top: 40px;
  padding: 8px 0 28px;
}

.footer-card {
  display: grid;
  gap: 14px;
  padding: 20px 18px 18px;
  border-radius: 24px;
  background: var(--brown);
  color: var(--cream);
}

.footer-card :focus-visible { outline-color: var(--cream); }

.footer-card .wordmark { font-size: 18px; }

.footer-card p { margin: 0; }

.footer-card a { color: var(--cream); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-nav a,
.support-link {
  font-weight: 700;
  text-underline-offset: 3px;
}

.support-link { display: inline-block; }

.fine {
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
}

.missing {
  padding: 28px 4px 8px;
}

.missing h1 {
  margin-top: 8px;
  font-size: clamp(44px, 12vw, 64px);
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.missing .cta { margin-top: 8px; }

.missing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
}

.text-link {
  font-weight: 700;
  color: var(--brown);
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }

  .header-cta { display: inline-flex; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: 32px;
    padding: 32px 28px 16px;
  }

  .hero-sub { font-size: 18px; }

  .strip { padding-inline: 28px; }

  .feature-grid { grid-template-columns: 1fr 1fr; }

  .feature { padding: 22px 20px 20px; }

  .footer-card {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 28px;
  }

  .footer-meta { text-align: right; }
}

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