/* OzoFriends website — "Sticker Pop" (mirrors app/lib/theme + docs/DESIGN_SYSTEM.md).
   Static, self-hosted, no third-party requests. Light + dark first-class. */

:root {
  --paper: #FAF3E7;
  --card: #FFFFFF;
  --ink: #141310;
  --brand-orange: #F97316;
  --electric-blue: #2B3CF2;
  --success-green: #10A971;
  --alert-orange: #FF8A00;
  --border: 2.5px solid var(--ink);
  --shadow: 3px 3px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --radius-card: 16px;
  --radius-btn: 14px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17130E;
    --card: #211B13;
    --ink: #FAF3E7;           /* text/icons flip; borders stay this "ink" */
    --electric-blue: #4A5AFF;
  }
}

/* Self-host fonts (add the woff2 files to /assets/fonts to enable; graceful
   fallback to system otherwise — keeps the site zero-third-party). */
@font-face { font-family: "Bricolage"; src: local("Bricolage Grotesque"),
  url("/assets/fonts/BricolageGrotesque-Bold.woff2") format("woff2");
  font-weight: 700 800; font-display: swap; }
@font-face { font-family: "DMSans"; src: local("DM Sans"),
  url("/assets/fonts/DMSans-Regular.woff2") format("woff2");
  font-weight: 400 500; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DMSans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: "Bricolage", system-ui, sans-serif;
  font-weight: 800; line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Sticker primitives */
.card {
  background: var(--card); border: var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 24px;
}
.btn {
  display: inline-block; border: var(--border); border-radius: var(--radius-btn);
  box-shadow: var(--shadow); padding: 14px 22px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .05s, box-shadow .05s;
  background: var(--card); color: var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--electric-blue); color: var(--paper); }
.chip {
  display: inline-block; background: var(--brand-orange); color: var(--ink);
  border: var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 700;
  transform: rotate(-6deg); box-shadow: var(--shadow);
}

/* Header / nav */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper); border-bottom: var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 1.5rem; text-decoration: none; }
.brand .dot { color: var(--brand-orange); }
nav a { text-decoration: none; font-weight: 600; margin-left: 22px; }
nav a:hover { color: var(--brand-orange); }
@media (max-width: 640px) { nav a { margin-left: 14px; font-size: .95rem; } }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .lead { font-size: 1.25rem; max-width: 40ch; }
.hero .cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Feature grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin: 40px 0; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }
.feature h3 { font-size: 1.3rem; }
.feature .ic { font-size: 2rem; }

/* Section rhythm */
section { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 8px; }

/* Legal / content pages */
.prose { max-width: 72ch; margin: 40px auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; font-family: "Bricolage", sans-serif; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--electric-blue); text-underline-offset: 3px; }

/* Footer */
footer.site { border-top: var(--border); margin-top: 40px; padding: 32px 0; }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { display: block; text-decoration: none; margin: 6px 0; font-weight: 600; }
footer.site a:hover { color: var(--brand-orange); }
footer .muted { opacity: .7; font-size: .9rem; margin-top: 20px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); border: var(--border); padding: 8px; }
