/* TORZON MARKET — style.css
   "Smudged Broadsheet" editorial. Zero JS. Mobile-first. */

/* §1 @FONT-FACE — locally hosted, size-adjust for CLS prevention */

@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/LibreBaskerville-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 97%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 103%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  size-adjust: 103%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 98%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  size-adjust: 98%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  size-adjust: 100%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* §2 CUSTOM PROPERTIES */

:root {
  /* ── Color: primary ── */
  --ink: hsl(45, 6%, 11%);
  --ink-raised: hsl(45, 6%, 14%);
  --ink-surface: hsl(45, 5%, 17%);
  --newsprint: hsl(40, 18%, 88%);
  --newsprint-dim: hsl(40, 12%, 68%);
  --redaction: hsl(0, 0%, 0%);

  /* ── Color: accent ── */
  --ice: hsl(200, 40%, 65%);
  --ice-glow: hsl(200, 60%, 75%);
  --cold-steel: hsl(210, 8%, 52%);
  --cold-steel-dim: hsl(210, 6%, 36%);
  --sulfur: hsl(50, 72%, 58%);
  --sulfur-faint: hsla(50, 72%, 58%, 0.06);
  --ash: hsl(30, 5%, 35%);

  /* ── Typography: scale (perfect fourth 1.333) ── */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.125rem, 2vw + 0.5rem, 1.333rem);
  --text-xl: clamp(1.333rem, 3vw + 0.5rem, 1.777rem);
  --text-2xl: clamp(1.777rem, 4vw + 0.5rem, 2.369rem);
  --text-3xl: clamp(2.1rem, 5vw + 1rem, 3.157rem);

  /* ── Typography: stacks ── */
  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  --font-ui: 'JetBrains Mono', 'Lucida Console', monospace;
  --font-accent: 'Crimson Pro', Georgia, serif;

  /* ── Spacing ── */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: clamp(1.5rem, 4vw, 2rem);
  --space-xl: clamp(2rem, 5vw + 0.5rem, 3.5rem);
  --space-2xl: clamp(3rem, 8vw + 1rem, 6rem);

  /* ── Layout ── */
  --content-width: 42rem;
  --sidebar-width: 14rem;
  --page-gutter: 1.25rem;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 280ms;
  --duration-slow: 500ms;
}


/* §3 RESET & BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--newsprint);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Force text wrapping on all long strings, crucial for .onion URLs */
* {
  overflow-wrap: break-word;
}



/* §4 GRAIN OVERLAY */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  transform: translateZ(0);
  contain: strict;
  will-change: transform;
}

/* ── CRT SCANLINES ── */
body::before {
  content: " ";
  display: block;
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 9998;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  transform: translateZ(0);
  contain: strict;
  will-change: transform;
}


/* §5 TYPOGRAPHY */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1,
h2 {
  color: var(--ice);
}

h3 {
  color: var(--sulfur);
}

h1 {
  font-size: var(--text-3xl);
  margin-block-end: var(--space-lg);
}

h2 {
  font-size: var(--text-2xl);
  margin-block-end: var(--space-lg);
  padding-block-end: var(--space-sm);
  border-bottom: 2px solid var(--cold-steel-dim);
}

h3 {
  font-size: var(--text-xl);
  margin-block-end: var(--space-md);
}

p {
  max-width: 38em;
  margin-block-end: var(--space-md);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p:last-child {
  margin-block-end: 0;
}

a {
  color: var(--ice);
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color var(--duration) var(--ease-out);
}

a:hover,
a:focus-visible {
  color: var(--ice-glow);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

strong {
  font-weight: 700;
  color: var(--newsprint);
}

code {
  font-family: var(--font-ui);
  font-size: 0.9em;
  color: var(--sulfur);
  background: var(--ink-raised);
  padding: 0.15em 0.45em;
  border: 1px solid var(--cold-steel-dim);
  word-break: break-all;
  overflow-wrap: anywhere;
  transition: border-color var(--duration) var(--ease-out);
}

code:hover {
  border-color: var(--sulfur);
}

dfn {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05em;
  color: var(--newsprint);
  border-bottom: 1px dotted var(--cold-steel-dim);
}

small {
  font-size: var(--text-xs);
  color: var(--cold-steel);
}

figcaption {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--cold-steel);
  margin-block-start: var(--space-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}


/* §6 SKIP LINK */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--page-gutter);
  background: var(--ice);
  color: var(--ink);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  z-index: 10000;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
  outline: 2px solid var(--sulfur);
  outline-offset: 2px;
}


/* §7 HEADER & NAVIGATION */

header.intelligence-panel {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--page-gutter);
  background: var(--ink);
  border-bottom: 2px solid var(--redaction);
  /* CAUTION TAPE EDGE */
  border-top: 5px solid transparent;
  background-image: repeating-linear-gradient(-45deg, var(--ink) 0, var(--ink) 6px, var(--cold-steel-dim) 6px, var(--cold-steel-dim) 12px);
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: top left;
}

/* ── CLASSIFICATION BAR & PGP ── */
.classification-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-basis: 100%;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--cold-steel-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-block-end: var(--space-xs);
  margin-block-end: var(--space-sm);
  border-bottom: 1px solid var(--cold-steel-dim);
  opacity: 0.8;
}

.classification-bar .tor-circuit {
  color: var(--sulfur);
}

.blink {
  animation: blink 2s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.header-metadata {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: auto;
}

.pgp-fingerprint {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--cold-steel-dim);
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ── BRAND LINK (GLITCH EFFECT) ── */
header .brand {
  flex-shrink: 0;
  text-decoration: none;
  display: block;
}

header .brand img {
  width: 140px;
  height: auto;
  filter: grayscale(0%) contrast(1.1);
  transition: filter 200ms var(--ease-out);
}

header .brand:hover img {
  filter: grayscale(0%) contrast(1.1) drop-shadow(2px 0 0 var(--ice)) drop-shadow(-2px 0 0 var(--cold-steel));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── PUNCHCARD LINK HIGHLIGHT ── */
nav[aria-label="Primary navigation"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  list-style: none;
}

nav[aria-label="Primary navigation"] a {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cold-steel);
  text-decoration: none;
  padding: 0.2em 0.4em;
  margin: -0.2em -0.4em;
  transition: color 150ms, background-color 150ms;
  white-space: nowrap;
}

nav[aria-label="Primary navigation"] a:hover,
nav[aria-label="Primary navigation"] a:focus-visible {
  background-color: var(--ice);
  color: var(--ink);
  text-decoration: none;
}


/* §8 MAIN CONTENT */

main {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* section spacing — generous breathing room */
main>section {
  padding-block: var(--space-2xl);
  border-bottom: 1px solid hsla(210, 8%, 52%, 0.15);
  animation: fadeUp 600ms var(--ease-out) both;
  contain: content;
}

main>section:last-child {
  border-bottom: none;
}

/* §8b CONTENT-VISIBILITY — skip rendering off-screen sections */
#about,
#how-to-access,
#security,
#features,
#faq {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

footer[role="contentinfo"] {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* §9 HERO SECTION */

#hero {
  padding-block-start: var(--space-xl);
  padding-block-end: var(--space-2xl);
}

/* TYPEWRITER ANIMATION FOR HERO */
@keyframes typewriterReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero>* {
  opacity: 0;
  animation: typewriterReveal 400ms var(--ease-out) forwards;
}

#hero h1 {
  animation-delay: 100ms;
}

#hero p:nth-of-type(1) {
  animation-delay: 250ms;
}

#hero p:nth-of-type(2) {
  animation-delay: 400ms;
}

#hero figure {
  animation-delay: 550ms;
}

#hero h1 {
  max-width: 16ch;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* subtle stamp decoration below hero heading */
#hero h1::after {
  content: "OFFICIAL PORTAL — 2026";
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.35;
  margin-block-start: var(--space-md);
  border: 2px solid var(--ice);
  padding: 0.2em 0.6em;
  width: fit-content;
  transform: rotate(-2deg);
}

#hero figure {
  margin-block-start: var(--space-xl);
}

#hero figure img {
  border: 1px solid var(--cold-steel-dim);
  filter: grayscale(20%) contrast(1.05);
}


/* §10 ABOUT SECTION */

#about>section {
  margin-block-start: var(--space-xl);
}

#about dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--cold-steel-dim);
  background: var(--ink-raised);
}

#about dt {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cold-steel);
  padding: var(--space-sm) var(--space-md);
  padding-block-end: 0;
  border-top: 1px solid var(--cold-steel-dim);
}

#about dt:first-of-type {
  border-top: none;
}

#about dd {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--newsprint);
  padding: var(--space-xs) var(--space-md) var(--space-sm);
}

#about ul {
  list-style: none;
  padding-inline-start: 0;
}

#about ul li {
  padding: var(--space-sm) 0;
  padding-inline-start: 1.5em;
  position: relative;
  border-bottom: 1px solid hsla(210, 8%, 52%, 0.1);
  overflow-wrap: break-word;
}

/* custom bullet: redaction-style block marker */
#about ul li::before {
  content: "█";
  position: absolute;
  left: 0;
  color: var(--ice);
  font-size: 0.6em;
  line-height: 2.8;
}


/* §11 OFFICIAL LINKS */

#official-links {
  scroll-margin-top: -180px;
}

#official-links code {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(0.7rem, 2vw + 0.3rem, var(--text-base));
  letter-spacing: 0.05em;
  padding: var(--space-md) var(--space-lg);
  background: hsl(45, 6%, 13%);
  border: 1px solid var(--cold-steel-dim);
  color: var(--newsprint);
  margin-block: var(--space-md);
  /* DOSSIER CUT CORNERS */
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  position: relative;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  word-break: break-all;
}

#official-links code::before {
  content: "STATUS: VERIFIED";
  display: block;
  color: var(--sulfur);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

#official-links code:hover {
  border-color: var(--sulfur);
  box-shadow: inset 4px 0 0 var(--sulfur);
}

#official-links ul {
  list-style: none;
  padding-inline-start: 0;
}

#official-links>section {
  margin-block-start: var(--space-xl);
}


/* §12 PHISHING WARNING */

aside[aria-label*="Phishing"] {
  margin-block-start: var(--space-xl);
  padding: var(--space-lg);
  border-left: 4px solid var(--sulfur);
  background: var(--sulfur-faint);
  /* DOSSIER CUT CORNER (Top Right) */
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

aside[aria-label*="Phishing"] h3 {
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--sulfur);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

aside[aria-label*="Phishing"] ul {
  list-style: none;
  padding-inline-start: 0;
  margin-block-start: var(--space-md);
}

aside[aria-label*="Phishing"] li {
  padding: var(--space-sm) 0;
  padding-inline-start: 1.8em;
  position: relative;
}

aside[aria-label*="Phishing"] li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: var(--sulfur);
}


/* §13 HOW TO ACCESS */

#how-to-access>section {
  margin-block-start: var(--space-xl);
  padding-inline-start: var(--space-xl);
  position: relative;
}

/* vertical connecting line between steps */
#how-to-access>section::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--cold-steel-dim);
}

/* step number marker */
#how-to-access>section h3::before {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--ice);
  display: block;
  margin-block-end: var(--space-xs);
}

#how-to-access>section:nth-of-type(1) h3::before {
  content: "STEP 01";
}

#how-to-access>section:nth-of-type(2) h3::before {
  content: "STEP 02";
}

#how-to-access>section:nth-of-type(3) h3::before {
  content: "STEP 03";
}

#how-to-access>section:nth-of-type(4) h3::before {
  content: "STEP 04";
}

#how-to-access figure {
  margin-block-start: var(--space-lg);
}

#how-to-access figure img {
  border: 1px solid var(--cold-steel-dim);
  filter: grayscale(20%) contrast(1.05);
}


/* §14 SECURITY */

#security>section {
  margin-block-start: var(--space-xl);
}

#security figure {
  margin-block: var(--space-lg);
}

#security figure img {
  border: 1px solid var(--cold-steel-dim);
}


/* §15 FEATURES */

#features>section {
  margin-block-start: var(--space-xl);
}

/* ordered lists — custom counter */
#features ol {
  list-style: none;
  counter-reset: feature-step;
  padding-inline-start: 0;
}

#features ol li {
  counter-increment: feature-step;
  padding: var(--space-sm) 0;
  padding-inline-start: 2.5em;
  position: relative;
  border-bottom: 1px solid hsla(210, 8%, 52%, 0.1);
}

#features ol li::before {
  content: counter(feature-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--ice);
  letter-spacing: 0.05em;
  line-height: 2.8;
}

/* unordered lists */
#features ul {
  list-style: none;
  padding-inline-start: 0;
}

#features ul li {
  padding: var(--space-sm) 0;
  padding-inline-start: 1.5em;
  position: relative;
  border-bottom: 1px solid hsla(210, 8%, 52%, 0.1);
}

#features ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  font-size: 0.5em;
  line-height: 3.5;
  color: var(--cold-steel);
}

#features figure {
  margin-block: var(--space-lg);
}

#features figure img {
  border: 1px solid var(--cold-steel-dim);
  filter: grayscale(20%) contrast(1.05);
}


/* §16 FAQ ACCORDION */

/* fallback: if still using <article>, style them sanely */
#faq article,
#faq details {
  border-bottom: 1px solid var(--cold-steel-dim);
  padding-block: var(--space-lg);
}

#faq article:last-of-type,
#faq details:last-of-type {
  border-bottom: none;
}

/* ── details/summary accordion ── */

#faq summary {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--newsprint);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  transition: color var(--duration) var(--ease-out);
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::marker {
  content: "";
}

/* arrow indicator */
#faq summary::after {
  content: "→";
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--cold-steel);
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out);
}

#faq details[open] summary::after {
  transform: rotate(90deg);
  color: var(--ice);
}

#faq summary:hover {
  color: var(--ice-glow);
}

#faq details p {
  padding-block-start: var(--space-md);
  border-top: 1px dashed var(--cold-steel-dim);
  margin-block-start: var(--space-sm);
}



/* §17 FOOTER */

footer[role="contentinfo"] {
  grid-column: 1 / -1;
  border-top: 2px solid var(--redaction);
  padding: var(--space-xl) var(--page-gutter);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--cold-steel);
  letter-spacing: 0.02em;
}

/* footer nav */
footer nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs) var(--space-lg);
  list-style: none;
  margin-block-end: var(--space-lg);
}

footer nav a {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cold-steel);
  transition: color var(--duration) var(--ease-out);
  white-space: nowrap;
}

footer nav a:hover {
  color: var(--newsprint);
  text-decoration: none;
}

/* disclaimer section */
footer section[aria-label*="disclaimer"] {
  margin-block: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--cold-steel-dim);
  background: var(--ink-raised);
}

footer section[aria-label*="disclaimer"] h2 {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cold-steel);
  border-bottom: none;
  margin-block-end: var(--space-sm);
  padding-block-end: 0;
}

footer section[aria-label*="disclaimer"] p {
  font-size: var(--text-xs);
  color: var(--cold-steel);
  line-height: 1.6;
}

footer>p {
  color: var(--ash);
}





/* §18 CITATIONS & ABBREVIATIONS */

cite {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9em;
  color: var(--cold-steel);
}

abbr[title] {
  text-decoration: none;
  border-bottom: 1px dotted var(--cold-steel-dim);
  cursor: help;
}


/* §19 ABOUT GUIDE (E-E-A-T) */

#about-guide {
  margin-block: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--cold-steel-dim);
  background: var(--ink-raised);
}

#about-guide h2 {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cold-steel);
  border-bottom: none;
  margin-block-end: var(--space-sm);
  padding-block-end: 0;
}

#about-guide p {
  font-size: var(--text-sm);
  color: var(--newsprint-dim);
  line-height: 1.6;
}





/* §20 SECTION DIVIDERS */

/* carriage-return line drawn on scroll (via IntersectionObserver-free
   approach: we use a CSS-only gradient that simulates the effect) */
main>section+section::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
      transparent 0%,
      var(--cold-steel-dim) 15%,
      var(--cold-steel-dim) 85%,
      transparent 100%);
  margin-block-end: var(--space-2xl);
  opacity: 0.4;
}


/* §21 RESPONSIVE: ≥ 768px */

@media (min-width: 768px) {
  :root {
    --page-gutter: 2.5rem;
  }

  header.intelligence-panel {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: var(--space-md) var(--page-gutter);
  }

  header.intelligence-panel::before {
    display: block;
  }

  nav[aria-label="Primary navigation"] ul {
    gap: var(--space-lg);
  }

  main {
    max-width: calc(var(--content-width) + var(--sidebar-width) + 4 * var(--page-gutter));
  }

  h1 {
    font-size: var(--text-3xl);
  }

  /* two-column layout for about stats */
  #about dl {
    grid-template-columns: max-content 1fr;
  }

  #about dt {
    border-right: 1px solid var(--cold-steel-dim);
  }

  #about dd {
    border-top: 1px solid var(--cold-steel-dim);
  }

  #about dd:first-of-type {
    border-top: none;
  }
}


/* §22 RESPONSIVE: ≥ 1024px */

@media (min-width: 1024px) {
  :root {
    --page-gutter: 3.5rem;
  }

  /* official links section — two-column card layout */
  #official-links>section:nth-of-type(2) ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  #official-links>section:nth-of-type(2) li {
    margin: 0;
  }

  /* features — two-column for ordered list */
  #features ol {
    columns: 2;
    column-gap: var(--space-xl);
  }

  #features ol li {
    break-inside: avoid;
  }
}


/* §23 ACCESSIBILITY: prefers-reduced-motion */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* §24 FOCUS STYLES */

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}


/* §25 PRINT STYLES */

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::after {
    display: none;
  }

  header.intelligence-panel,
  .skip-link {
    display: none;
  }

  main {
    max-width: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  h1,
  h2,
  h3 {
    color: #000;
    page-break-after: avoid;
  }

  code {
    background: #eee;
    border-color: #999;
    color: #111;
  }
}

/* ============================================
   §10. MACRO ARCHITECTURE (DOSSIER & TERMINAL)
   ============================================ */

/* ── 1. Terminal UI Outer Framing ── */
body {
  background-color: var(--ink-surface);
  /* Page background outside frame */
}

.terminal-frame {
  border: 12px solid var(--ink);
  border-radius: 6px;
  margin: 1.5rem auto;
  padding: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  min-height: calc(100vh - 3rem);
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(0, 0, 0, 0.3),
    inset 0 0 150px rgba(0, 0, 0, 0.15);
  max-width: 1400px;
}

@media (max-width: 1024px) {
  .terminal-frame {
    border-width: 4px;
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
    width: 100%;
    overflow-x: hidden;
  }
}

/* ── 2. Asymmetric Dossier Layout ── */
.dossier-layout {
  display: grid;
  grid-template-columns: 18rem 1fr;
  width: 100%;
}

@media (max-width: 1024px) {
  .dossier-layout {
    grid-template-columns: 1fr;
  }
}

/* ── 3. Intelligence Panel (Sticky Sidebar) ── */
header.intelligence-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: var(--space-lg) var(--page-gutter);
  background: var(--ink-raised);
  /* Terminal CRT Scanlines */
  background-image: repeating-linear-gradient(transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.4) 2px,
      rgba(0, 0, 0, 0.4) 4px);
  border-right: 2px solid var(--redaction);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
  overflow-x: hidden;
}

header.intelligence-panel nav ul {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-top: 0;
  padding-top: 0;
}

@media (max-width: 1024px) {
  header.intelligence-panel {
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 2px solid var(--redaction);
    padding: var(--space-sm) var(--page-gutter);
    gap: var(--space-sm);
  }

  header.intelligence-panel nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: var(--space-md);
    row-gap: 0;
    justify-content: center;
  }

  /* Compact the top portal and circuit block */
  .terminal-header-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
  }

  .portal-text {
    line-height: 1.2;
  }

  .circuit-text {
    line-height: 1.2;
    text-align: right;
  }

  /* Put brand and metadata on the same line if possible, or tightly stacked */
  .header-metadata {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    flex-wrap: nowrap;
    gap: var(--space-md);
    align-items: center;
  }

  /* Hide the huge fingerprint on very small screens to save space */
  .pgp-fingerprint {
    display: none;
  }

  .clearance-level {
    font-size: var(--text-base);
    margin-top: 0;
  }

  header.intelligence-panel .brand {
    margin: 0 auto;
  }

  header.intelligence-panel .brand img {
    width: 140px;
    margin: var(--space-xs) 0;
  }

  /* Shrink dashed divider */
  .terminal-divider-dashed {
    margin: var(--space-xs) 0;
    padding: 0;
  }

  .terminal-divider-dashed::before {
    content: "---------------------";
  }

  .terminal-divider-dashed::after {
    display: none;
    /* remove second line of divider */
  }

  /* Improve touch targets for mobile */
  header.intelligence-panel nav ul li a {
    padding: var(--space-xs) var(--space-xs);
    margin: 0;
    display: inline-block;
    font-size: 0.70rem;
    letter-spacing: 0.1em;
  }

  /* Solid divider can be hidden or shrunk */
  .terminal-divider-solid {
    margin-bottom: var(--space-xs);
  }
}

/* ── 4. Main Content Alignment ── */
#main-content {
  padding: var(--space-xl) var(--space-xl);
  max-width: 900px;
  /* Constrain reading width inside the massive 1fr */
  margin: 0 auto 0 0;
  /* Left align inside its track */
}

@media (max-width: 768px) {
  #main-content {
    padding: var(--space-md) var(--page-gutter);
  }
}

/* ── 5. Encrypted Data Blocks (Zero-JS Details) ── */
.encrypted-block {
  background: repeating-linear-gradient(-45deg, var(--ink) 0, var(--ink) 4px, var(--ink-surface) 4px, var(--ink-surface) 8px);
  border: 1px solid var(--redaction);
  margin-bottom: var(--space-md);
  position: relative;
  transition: all 0.2s var(--ease-out);
}

.encrypted-block[open] {
  background: var(--ink);
  border-color: var(--ice);
  box-shadow: inset 4px 0 0 var(--ice), 0 0 20px rgba(0, 0, 0, 0.4);
}

.encrypted-block summary {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--ice);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  list-style: none;
  /* Hide default arrow */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.encrypted-block summary::-webkit-details-marker {
  display: none;
  /* Hide arrow in Safari */
}

.encrypted-block summary:hover {
  background-color: hsla(200, 40%, 65%, 0.1);
  /* --ice faint */
  text-shadow: 0 0 8px var(--ice-glow);
}

.encrypted-block .decrypted-content {
  padding: var(--space-md);
  border-top: 1px dashed var(--cold-steel-dim);
  /* Pure CSS Decrypt Animation */
  animation: decryptReveal 0.4s steps(6, end) forwards;
}

@keyframes decryptReveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    color: var(--ice);
  }

  50% {
    opacity: 0.5;
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    color: var(--newsprint);
  }
}

/* ── 6. Dossier Watermarks ── */
.has-watermark {
  position: relative;
  z-index: 1;
}

.has-watermark::before {
  content: attr(data-watermark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-family: var(--font-ui);
  font-size: clamp(4rem, 10vw, 12rem);
  color: var(--sulfur-faint);
  /* Very faint yellow */
  opacity: 0.04;
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── 7. Terminal Sidebar Typography & Dividers ── */
.terminal-header-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--cold-steel-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.portal-text {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
}

.portal-text span:first-child,
.portal-text span:last-child {
  grid-column: 1;
  /* Both squares in first column */
}

.portal-text span:nth-child(2),
.portal-text span:nth-child(3) {
  grid-column: 2;
  /* Text in second column */
}

.circuit-text {
  line-height: 1.6;
  text-align: left;
}

.terminal-divider-solid {
  border-bottom: 1px solid var(--cold-steel-dim);
  opacity: 0.3;
  margin-bottom: var(--space-sm);
}

.terminal-divider-dashed {
  font-family: var(--font-ui);
  color: var(--cold-steel-dim);
  opacity: 0.4;
  margin: var(--space-md) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terminal-divider-dashed::before {
  content: "---------------------------";
  letter-spacing: -1px;
}

.terminal-divider-dashed::after {
  content: "-----------";
  letter-spacing: -1px;
}

.clearance-level {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  color: var(--newsprint);
  margin-top: var(--space-xs);
  letter-spacing: 0.05em;
}

header.intelligence-panel nav ul li a {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-sm);
  color: var(--cold-steel-dim);
  white-space: nowrap;
}

header.intelligence-panel nav ul li a:hover {
  color: var(--ice);
  text-shadow: 0 0 8px var(--ice-glow);
}

/* ── 8. Custom Scrollbars ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
  border-left: 1px solid var(--ink-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--cold-steel-dim);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ice);
}

::-webkit-scrollbar-corner {
  background: var(--ink);
}

/* §26 SCROLL-TO-TOP */

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--cold-steel);
  background: var(--ink-raised);
  border: 1px solid var(--cold-steel-dim);
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 300ms var(--ease-out),
    visibility 300ms,
    transform 300ms var(--ease-out),
    color 200ms,
    border-color 200ms,
    box-shadow 200ms;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  color: var(--ice);
  border-color: var(--ice);
  box-shadow: 0 0 12px hsla(200, 40%, 65%, 0.3);
  text-decoration: none;
}

.scroll-top:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: none;
  }
}

/* END — style.css */