/* ===================================================================
   PostHush — shared stylesheet for content/sub-pages
   (about, manifesto, contact, privacy, terms, security, status)
   Mirrors the dark cinematic system used on index.html.
   =================================================================== */
:root {
  --bg:       #0A0C0E;
  --bg-soft:  #101418;
  --bg-soft2: #141A1F;
  --panel:    rgba(255,255,255,0.025);
  --panel-2:  rgba(255,255,255,0.045);

  --ink:      #F1F0EB;
  --txt:      #A7AEB4;
  --txt-dim:  #6C737A;
  --txt-dimmer:#4D545B;

  --line:     rgba(255,255,255,0.08);
  --line-2:   rgba(255,255,255,0.14);

  --accent:       #7FE3C2;
  --accent-bright:#9DF0D5;
  --accent-deep:  #2FA98A;
  --accent-ink:   #06140F;
  --accent-soft:  rgba(127,227,194,0.12);
  --accent-line:  rgba(127,227,194,0.30);
  --glow:         rgba(127,227,194,0.22);

  --warn:    #E6C271;
  --warn-soft: rgba(230,194,113,0.12);

  --font-sans:  'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 52px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0.045;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
svg { display: block; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 2; }
.wrap-narrow { max-width: 820px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 50%; top: -70px; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); padding: 11px 20px; border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 600; z-index: 200; transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { display: block; flex: none; transition: transform 500ms var(--ease); filter: drop-shadow(0 0 8px var(--glow)); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.04); }
.brand .word { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.nav-right { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(12px, 2.4vw, 26px); }
.nav-link { color: var(--txt); text-decoration: none; font-size: 15.5px; font-weight: 500; white-space: nowrap; transition: color 140ms var(--ease-out); }
.nav-link:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 600px) { .nav-link.collapse { display: none; } }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 15px; font-weight: 600; color: var(--accent-ink); background: var(--accent);
  padding: 9px 18px; border-radius: 999px; text-decoration: none;
  transition: filter 160ms var(--ease-out);
}
.nav-cta:hover { filter: brightness(1.08); text-decoration: none; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); padding: 7px 14px 7px 11px; border: 1px solid var(--accent-line);
  border-radius: 999px; background: var(--accent-soft);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); flex: none; box-shadow: 0 0 10px var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: filter 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 90ms var(--ease-out), color 160ms var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-line), 0 8px 30px -8px var(--glow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-bright); }

/* ---------- Glow ---------- */
.glow {
  position: absolute; border-radius: 999px; filter: blur(80px); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
}
@media (prefers-reduced-motion: reduce) { .glow { display: none; } }

/* ---------- Page header ---------- */
.page-head { position: relative; overflow: hidden; padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head .glow-a { width: 680px; height: 680px; top: -300px; left: -180px; opacity: 0.8; }
.page-head h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(48px, 9vw, 96px); line-height: 0.94; letter-spacing: -0.025em;
  color: var(--ink); margin-top: 22px; text-wrap: balance; max-width: 16ch;
}
.page-head h1 .ser { font-style: italic; color: var(--accent); text-shadow: 0 0 36px var(--glow); }
.page-head .lede { font-size: clamp(18px, 2vw, 23px); line-height: 1.5; color: var(--txt); max-width: 52ch; margin-top: 26px; }
.page-head .updated { margin-top: 24px; font-size: 13.5px; color: var(--txt-dim); }

/* ---------- Prose / long-form content ---------- */
.prose { padding-bottom: clamp(64px, 10vw, 128px); }
.prose .block + .block { margin-top: clamp(40px, 5vw, 64px); }
.prose h2 {
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; line-height: 1.12; color: var(--ink);
  margin-top: 0; margin-bottom: 16px; scroll-margin-top: 90px;
}
.prose h2 .num { font-family: var(--font-serif); font-style: italic; color: var(--accent); margin-right: 10px; font-weight: 400; }
.prose h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 28px; margin-bottom: 8px; }
.prose p { font-size: 17px; color: var(--txt-dim); line-height: 1.66; max-width: 68ch; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 16px 0 0; padding: 0; list-style: none; max-width: 68ch; display: flex; flex-direction: column; gap: 12px; }
.prose ul li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--txt); line-height: 1.55; }
.prose ul li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.prose ol { counter-reset: c; }
.prose ol li { counter-increment: c; display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; color: var(--txt); line-height: 1.55; }
.prose ol li::before { content: counter(c); flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.prose a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.9em; color: var(--accent-bright); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 6px; padding: 2px 7px; word-break: break-word; }

/* Callout card */
.card {
  border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(22px, 3vw, 32px);
  background: var(--panel); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.card.accent { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%); box-shadow: 0 0 50px -30px var(--glow); }
.card h3 { margin-top: 0; }
.card p { color: var(--txt); }

/* Section divider line */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Contact methods ---------- */
.contact-grid { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; background: var(--panel); transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out); }
.contact-card:hover { border-color: var(--accent-line); background: var(--bg-soft2); }
.contact-card .ci { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; border: 1px solid var(--accent-line); margin-bottom: 16px; }
.contact-card h3 { font-size: 18px; margin: 0 0 6px; }
.contact-card p { font-size: 15px; color: var(--txt-dim); margin: 0 0 12px; }
.contact-card a.addr { font-size: 16px; font-weight: 600; color: var(--accent-bright); text-decoration: none; word-break: break-word; }
.contact-card a.addr:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form[hidden] { display: none; }
.contact-form .field-row { display: grid; gap: 16px; }
@media (min-width: 620px) { .contact-form .field-row { grid-template-columns: 1fr 1fr; } }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form label.lbl { font-size: 13px; font-weight: 600; color: var(--txt); }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255,255,255,0.04); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 15px 17px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out);
}
.contact-form textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--txt-dimmer); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-line); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 4px var(--accent-soft); }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: #E29B8E; box-shadow: 0 0 0 4px rgba(226,155,142,0.14); }
.contact-form .btn { align-self: flex-start; margin-top: 2px; }
@media (max-width: 520px) { .contact-form .btn { width: 100%; } }
.form-err { min-height: 18px; margin: 0; font-size: 13.5px; color: #E2A89E; }
.contact-success { text-align: center; }
.contact-success[hidden] { display: none; }
.contact-success .check { width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-bottom: 14px; box-shadow: 0 0 30px -4px var(--glow); }
.contact-success strong { display: block; color: var(--ink); font-weight: 600; font-size: 21px; }
.contact-success p { color: var(--txt); font-size: 15.5px; margin-top: 10px; }
.contact-success .em { color: var(--accent-bright); font-weight: 600; }

/* ---------- Status page ---------- */
.status-banner { display: flex; align-items: center; gap: 14px; border: 1px solid var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 80%); border-radius: 18px; padding: 22px 24px; box-shadow: 0 0 50px -30px var(--glow); }
.status-banner .pulse { width: 14px; height: 14px; border-radius: 999px; background: var(--accent); flex: none; box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s var(--ease-out) infinite; }
@media (prefers-reduced-motion: reduce) { .status-banner .pulse { animation: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127,227,194,0.5); } 70% { box-shadow: 0 0 0 12px rgba(127,227,194,0); } 100% { box-shadow: 0 0 0 0 rgba(127,227,194,0); } }
.status-banner strong { color: var(--ink); font-size: 18px; font-weight: 600; display: block; }
.status-banner span { font-size: 14px; color: var(--txt-dim); }
.status-list { margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: var(--panel); }
.status-row + .status-row { border-top: 1px solid var(--line); }
.status-row .name { color: var(--ink); font-weight: 500; font-size: 16px; }
.status-row .name small { display: block; color: var(--txt-dim); font-weight: 400; font-size: 13px; margin-top: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.status-pill .d { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 10px var(--glow); flex: none; }
.status-foot { margin-top: 20px; font-size: 13.5px; color: var(--txt-dimmer); }

/* ---------- Manifesto ---------- */
.manifesto-line {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; color: var(--ink);
  font-size: clamp(30px, 5.4vw, 64px); line-height: 1.08;
}
.manifesto-line + .manifesto-line { margin-top: clamp(28px, 4vw, 52px); }
.manifesto-line em { font-style: italic; color: var(--accent); text-shadow: 0 0 36px var(--glow); }
.manifesto-line.small { font-family: var(--font-sans); font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--txt-dim); letter-spacing: 0; max-width: 60ch; }

/* ---------- Final CTA strip ---------- */
.cta-strip { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 120px); text-align: center; border-top: 1px solid var(--line); }
.cta-strip .glow-e { width: 760px; height: 760px; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: 0.5; }
.cta-strip h2 { font-size: clamp(34px, 6vw, 64px); font-weight: 600; line-height: 0.98; letter-spacing: -0.02em; }
.cta-strip h2 .ser { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); text-shadow: 0 0 40px var(--glow); }
.cta-strip p { font-size: 18px; color: var(--txt-dim); margin: 22px auto 0; max-width: 42ch; }
.cta-strip .row { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */
footer.foot { background: #07090A; color: var(--txt-dim); padding-top: clamp(56px, 8vw, 92px); padding-bottom: calc(40px + var(--safe-b)); border-top: 1px solid var(--line); }
.foot-top { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .foot-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; } }
.foot-brand .fb-mark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.foot-brand .fb-mark .word { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.foot-brand .tagline { font-family: var(--font-serif); font-style: italic; font-size: 23px; color: var(--accent); margin-top: 18px; }
.foot-brand .blurb { font-size: 15px; color: var(--txt-dimmer); margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.foot-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--txt-dimmer); font-weight: 600; margin-bottom: 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.foot-col a { color: var(--txt); text-decoration: none; font-size: 15.5px; transition: color 140ms var(--ease-out); }
.foot-col a:hover { color: var(--accent-bright); text-decoration: none; }
.foot-bottom { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--txt-dimmer); }
.foot-bottom .dotsep span { color: var(--accent-deep); }
@media (max-width: 520px) { .foot-bottom { flex-direction: column; gap: 10px; } }
