@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fbf5ec;
  --bg-2: #f4eadb;
  --card: #fffaf3;
  --ink: #2a1f1a;
  --ink-2: #5e4d43;
  --line: #e6d6c1;
  --coral: #fa7349;
  --coral-ink: #b3401b;
  --sage: #56693f;
  --coral-display: #dc5024;
  --sage-soft: #e3e9d4;
  --plate: #fffaf3;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 40px -22px rgba(120, 62, 30, 0.35);
  --radius: 28px;
  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1411;
    --bg-2: #231b17;
    --card: #2a211c;
    --ink: #f6ebdd;
    --ink-2: #cdb9a6;
    --line: #3d3029;
    --coral: #ff8a63;
    --coral-ink: #ff9a78;
    --sage: #a9bf8f;
    --coral-display: #ff8a63;
    --sage-soft: #2d3325;
    --plate: #f6ecdf;
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--coral-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--bg);
  padding: 10px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 400 1.4rem/1 var(--display);
}
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow); }
.site-head nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.site-head nav a:hover { color: var(--coral-ink); }

/* Hero */
.hero { position: relative; padding: 40px 0 72px; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage);
}
.eyebrow::before {
  content: ""; width: 22px; height: 0; border-top: 3px dotted currentColor;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.hero h1 {
  font-size: clamp(2.8rem, 11vw, 6.4rem);
  margin: 14px 0 18px;
}
.hero h1 span { color: var(--coral-display); }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink-2); max-width: 30ch; margin: 0 0 30px; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px; border-radius: 16px;
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; opacity: 0.8; letter-spacing: 0.04em; text-transform: uppercase; }
.store strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.store-note { margin: 12px 0 0; font-size: 0.92rem; color: var(--ink-2); }

.hero-art { position: relative; }
.hero-art .plate {
  aspect-ratio: 1; border-radius: 44% 56% 48% 52% / 52% 44% 56% 48%;
  background: var(--plate); box-shadow: var(--shadow);
  display: grid; place-items: center; padding: 6%;
  animation: settle 900ms cubic-bezier(.2,.8,.2,1) both;
}
.hero-art .plate img { width: 100%; }
.trail {
  position: absolute; inset: auto -10% -18% -30%; width: 140%; height: auto;
  color: var(--coral); opacity: 0.55; pointer-events: none; z-index: -1;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(18px) rotate(-3deg) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 700ms cubic-bezier(.2,.8,.2,1) both; }
.rise.d1 { animation-delay: 80ms; }
.rise.d2 { animation-delay: 160ms; }
.rise.d3 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 10px; }
.section-head p { color: var(--ink-2); font-size: 1.15rem; margin: 14px 0 0; }

.features { background: var(--bg-2); border-radius: 48px 48px 0 0; }
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  grid-column: span 2;
}
.card h3 { font-size: 1.45rem; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--ink-2); }
.card .icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage);
}
.card .icon svg { width: 26px; height: 26px; }
.card.wide {
  grid-column: span 3;
  display: grid; grid-template-columns: 1fr 44%; gap: 12px; align-items: center;
}
.card.wide .art {
  background: var(--plate); border-radius: 22px; padding: 6px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.chips li {
  font-size: 0.88rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
}

/* Community */
.community .wrap {
  --pbg: #2a1f1a; --pfg: #f6ebdd;
  background: var(--pbg); color: var(--pfg); border: 1px solid var(--line);
  border-radius: 40px; padding: clamp(28px, 6vw, 64px);
  position: relative; overflow: hidden;
}
.community .eyebrow { color: #fa7349; }
.community h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 10px 0 14px; max-width: 16ch; }
.community .intro { color: color-mix(in srgb, var(--pfg) 80%, transparent); max-width: 52ch; margin: 0 0 36px; font-size: 1.12rem; }
.soon {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative;
}
.soon li {
  border: 1.5px dashed color-mix(in srgb, var(--pfg) 35%, transparent);
  border-radius: 22px; padding: 20px;
}
.soon strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; margin-bottom: 6px; }
.soon span { color: color-mix(in srgb, var(--pfg) 76%, transparent); font-size: 0.98rem; }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: #fa7349; color: #2a1f1a;
}

/* Footer */
.site-foot { padding: 48px 0 56px; color: var(--ink-2); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.site-foot nav { display: flex; gap: 20px; }

/* Prose (privacy) */
.prose { max-width: 720px; margin: 0 auto; padding: 24px 0 40px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 8px 0 12px; }
.prose h2 { font-size: 1.75rem; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--coral); }
.prose code {
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px;
  overflow-wrap: anywhere;
}
.prose mark { background: #ffe08a; color: #2a1f1a; padding: 0 3px; border-radius: 4px; }
.updated { font-size: 0.95rem; color: var(--ink-2); }
.notice {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--coral);
  border-radius: 14px; padding: 14px 18px; margin: 20px 0 8px; font-size: 0.98rem;
}

/* 404 */
.lost { text-align: center; padding: 48px 0 24px; }
.lost img { width: min(300px, 70%); margin: 0 auto 12px; }
.lost h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin-bottom: 12px; }
.lost p { color: var(--ink-2); font-size: 1.15rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .card, .card.wide, .card.full { grid-column: auto; }
  .soon { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card.wide { grid-template-columns: 1fr; }
  .card.wide .art { max-width: 240px; }
  .soon { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.card.full {
  grid-column: span 6;
  display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: center;
}
.card.full .art { background: var(--plate); border-radius: 22px; padding: 6px; }
@media (max-width: 560px) {
  .card.full { grid-template-columns: 1fr; }
  .card.full .art { max-width: 240px; }
}
@media (max-width: 900px) {
  .grid > .card { grid-column: auto; }
}
