/* Cryptid Hunter pages — styled from the Cryptid Hunter design system (Night theme). */

:root {
  --n-0: #0B0E09;
  --n-100: #191E15;
  --n-200: #222819;
  --n-600: #6F7A5F;
  --n-700: #97A187;
  --n-800: #C7CDB8;
  --n-1000: #FEFAE0;
  --amber-200: #F2D9AE;
  --amber-300: #EBC488;
  --amber-400: #DDA15E;
  --moss-300: #A3B075;

  --text-primary: var(--n-1000);
  --text-body: var(--n-800);
  --text-secondary: var(--n-700);
  --text-accent: var(--amber-400);
  --text-link: var(--amber-300);
  --text-link-hover: var(--amber-200);
  --surface-canvas: var(--n-100);
  --surface-card: var(--n-200);
  --surface-header: rgba(18,22,16,.94);
  --border-hairline: rgba(254,250,224,.08);
  --border-subtle: rgba(254,250,224,.14);
  --border-focus: var(--amber-300);

  --font-display: "Chakra Petch", "Oswald", "Arial Narrow", sans-serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --gutter: 16px;
  --header-h: 56px;
  --r-card: 10px;
  --dur-instant: 90ms;
  --ease-out: cubic-bezier(.2,.8,.2,1);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-instant) var(--ease-out);
}
a:hover { color: var(--text-link-hover); }
a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Header ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--surface-header);
  border-bottom: 1px solid var(--border-hairline);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.nav-word:hover { color: var(--text-primary); }
.nav-by {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.nav-by:hover { color: var(--text-primary); }

/* ─── Page ─────────────────────────────────────────── */
.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
}
@media (min-width: 768px) {
  .section { padding: 72px 24px 96px; }
}
.section-label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.article-meta {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.article-lead {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 26px;
  color: var(--text-accent);
}
.article h2 {
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 26px;
  color: var(--text-primary);
}
.article h3 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.article p { margin: 0 0 16px; }
.article ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--moss-300); }
.article li > ul { margin: 8px 0 0; }
.article strong { font-weight: 600; color: var(--text-primary); }

/* Support callout on the app page */
.support-card {
  margin: 0 0 16px;
  padding: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
}
.support-card p:last-child { margin-bottom: 0; }

/* ─── Footer ───────────────────────────────────────── */
.foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
}
.foot a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-subtle); }
.foot a:hover { color: var(--text-primary); }
