/* pacifier.pro — shared styles.
   Brand tokens match the app's DesignSystem.swift so the site and the product agree.
   Fonts are self-hosted: the CSP in _headers is `font-src 'self'`, and the privacy
   notice states fonts are served from our own server — a CDN would make it untrue. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/HankenGrotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("/fonts/SplineSansMono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #16241f;
  --ink-2: #53635c;
  --ink-3: #8a968f;
  --teal: #2e6e73;
  --teal-deep: #1d4e51;
  --teal-soft: #5ba39b;
  --tint: #ddeae8;
  --clay: #ad5048;
  --paper: #f3f0e8;
  --surface: #fff;
  --line: #e4e1d5;
  --maxw: 720px;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.frame {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 22px 80px;
}

/* header ------------------------------------------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px 34px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark .logo {
  display: block;
  width: 26px;
  height: 26px;
  background: no-repeat center/contain url("/assets/mark-teal.png");
}

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
}

.lang a,
.lang span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink-3);
  text-decoration: none;
}

.lang .active {
  background: var(--tint);
  color: var(--teal-deep);
  font-weight: 600;
}

.lang a:hover { color: var(--teal); }

/* prose ------------------------------------------------------------------- */

.prose h1 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.prose .stand {
  margin: 0 0 34px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12.5px;
}

.prose .label {
  margin: 34px 0 8px;
  color: var(--teal-deep);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.prose p { margin: 0 0 14px; }

.prose address {
  margin: 0 0 14px;
  font-style: normal;
  line-height: 1.7;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose li { margin-bottom: 7px; }

.prose a {
  color: var(--teal);
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--teal-deep); }

.prose strong { font-weight: 600; }

/* A short, quiet aside — used for the honest caveats the app itself makes. */
.note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 15.5px;
}

/* Anti-scrape: decoys are hidden from sight and from the a11y tree, while the
   link keeps a clean aria-label. Mirrors the nuancebit.com pattern. */
.pn-decoy {
  display: none !important;
}

/* footer ------------------------------------------------------------------ */

.site-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14.5px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal);
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101a17;
    --surface: #16211d;
    --ink: #eef3f1;
    --ink-2: #b3c2bc;
    --ink-3: #8b9a94;
    --line: #24322d;
    --teal: #7cc0b6;
    --teal-deep: #a8d8cf;
    --tint: #1c2c28;
  }
  .wordmark .logo { background-image: url("/assets/mark-teal-light.png"); }
}
