/* Shared stylesheet for the secondary / legal pages on MorningStack.
   Matches index.html's playful palette: white paper, black ink, yellow sun
   accent, Space Grotesk + Inter type. Dark-band masthead bookends the page. */

:root {
  --paper: #ffffff;
  --paper-2: #f4f1ea;
  --paper-3: #fffdf2;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #3a3a3a;
  --rule: #0a0a0a;
  --mute: #5a5a5a;
  --mute-2: #8a8a8a;
  --sun: #ffcc00;
  --sun-2: #ffd633;
  --rose: #d62828;
  --leaf: #2c5d2e;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
body.hc { --paper: #fff; --ink: #000; --sun: #ffd700; --mute: #333; }

/* MASTHEAD — dark band, bookends the landing page's masthead.
   Reuses the legal pages' existing <header><nav class="nav"><a class="logo">...</a><a class="nav-back">...</a></nav></header>
   structure, so the HTML of all 5 legal pages doesn't need to change. */
header {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--sun);
  position: relative;
}
header::after {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(180deg, rgba(255, 204, 0, 0.35), transparent);
}
.nav {
  max-width: 1240px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  line-height: 1;
}
/* The old yellow-amber sun-dot mark — re-skin as a tiny yellow check tile
   to match the landing's new masthead glyph. */
.logo-mark {
  width: 14px; height: 14px;
  background: var(--sun);
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
}
.logo-mark::before {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: var(--ink);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}
.nav-back {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--sun);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.005em;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 0 var(--paper);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-back:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--paper); }

main {
  max-width: 720px; margin: 0 auto; padding: 72px 28px 80px;
}
.eyebrow {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px; letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink); text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-block;
  padding: 2px 4px 4px;
  background-image: linear-gradient(180deg, transparent 78%, var(--sun) 78%, var(--sun) 100%);
}
h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 18px;
}
h1 em {
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
  background-image: linear-gradient(180deg, transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%);
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.updated {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 48px;
}
h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 24px; letter-spacing: -0.015em;
  color: var(--ink); margin: 40px 0 14px;
  line-height: 1.2;
}
p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.65;
}
p strong { color: var(--ink); font-weight: 600; }
ul { margin: 0 0 18px 22px; }
li {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; color: var(--ink-2);
  margin-bottom: 6px;
  line-height: 1.65;
}
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink); }
code {
  background: var(--ink);
  color: var(--paper);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}
/* Callout — sticker-style box with a yellow exclamation circle */
.callout {
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}
.callout::before {
  content: '!';
  position: absolute;
  top: -16px; left: 22px;
  width: 30px; height: 30px;
  background: var(--sun);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.callout p:last-child { margin-bottom: 0; }
.back-row {
  margin-top: 56px; padding-top: 28px;
  border-top: 2px dashed var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--mute);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.back-row a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.back-row a:hover { text-decoration-color: var(--ink); }
footer {
  border-top: 2px solid var(--ink);
  padding: 28px;
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px; color: var(--ink-3);
}
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a {
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 500;
}
footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.hc-toggle {
  background: var(--paper); border: 2px solid var(--ink);
  color: var(--ink); padding: 5px 12px; border-radius: 999px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}
.hc-toggle:hover { background: var(--sun); }
