/* Self-hosted fonts — no third-party requests. Latin subset, variable. */

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

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

/* AppsRicot — sun-ripened minimal */

:root {
  --cream: #f7e9da;
  --cream-2: #f0dbc6;
  --paper: #fffaf3;
  --ink: #17204c;
  --ink-soft: #4a5279;
  --apricot: #fa6a2b;
  --blush: #de2450;
  --gold: #ffb43c;
  --line: rgba(23, 32, 76, 0.14);
  --shadow: 0 30px 70px -40px rgba(23, 32, 76, 0.55);
  --glow-a: rgba(255, 180, 60, 0.55);
  --glow-b: rgba(222, 36, 80, 0.28);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #12162e;
    --cream-2: #0d1024;
    --paper: #1b2040;
    --ink: #f6e7d8;
    --ink-soft: #a9b0d0;
    --line: rgba(246, 231, 216, 0.16);
    --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
    --glow-a: rgba(255, 154, 42, 0.3);
    --glow-b: rgba(222, 36, 80, 0.24);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  font-family: Karla, ui-sans-serif, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(60vw 50vw at 78% -10%, var(--glow-a), transparent 60%),
    radial-gradient(50vw 45vw at 8% 108%, var(--glow-b), transparent 62%),
    linear-gradient(168deg, var(--cream) 0%, var(--cream-2) 100%);
  background-attachment: fixed;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  body::after { mix-blend-mode: screen; opacity: 0.14; }
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

a { color: var(--apricot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blush); }

/* ── home ───────────────────────────────────────── */

.stage {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 8vmin 6vw 2rem;
  text-align: center;
}

.mark {
  width: clamp(132px, 24vw, 250px);
  filter: drop-shadow(0 26px 45px rgba(222, 36, 80, 0.32));
  animation: bob 7s ease-in-out infinite;
}

.wordmark {
  font-size: clamp(2.6rem, 10vw, 5.75rem);
  margin: 0.55em 0 0;
}
.wordmark em {
  font-style: normal;
  background: linear-gradient(115deg, var(--gold), var(--apricot) 45%, var(--blush));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rise { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.22s; }
.d3 { animation-delay: 0.38s; }
.d4 { animation-delay: 0.54s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes bob {
  50% { transform: translateY(-11px) rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .mark { animation: none; }
}

/* ── content pages ──────────────────────────────── */

.page {
  max-width: 45rem;
  margin: 0 auto;
  padding: 4rem 6vw 5rem;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 3rem;
}
.crumb img { width: 26px; }
.crumb:hover { color: var(--ink); }

.page h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.page h2 {
  font-size: 1.32rem;
  margin-top: 2.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.page ul { padding-left: 1.1rem; }
.page li { margin: 0.35rem 0; }

.stamp {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
}

.foot {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.stage .foot { border: 0; margin: 0; justify-content: center; }
