/* ==========================================================================
   muddermis — sub-page skin: "Frontline"
   css/skin-frontline.css

   Loaded after css/style.css (as css/theme.css) to dress every sub-page —
   support hubs, privacy/terms/FAQ, SEO landing pages, contact, 404, the page
   index — in Frontline's clothes: dark olive field, bone stencil headings,
   hazard-yellow accents, 1px hairlines, square corners, and mono meta in
   small caps.

   It re-points style.css's tokens rather than restating its layout, so the
   markup on those 75 pages never has to change. Only the four things whose
   SHAPE differs get real rules below: the hazard stripe under the page
   header, the square support chips, the hazard-fill primary button, and the
   mono breadcrumb.

   Single theme, like the homepage. The tokens are declared on :root:root so
   they outrank style.css's own dark-mode block, which is
   :root:not([data-theme="light"]) inside a prefers-color-scheme query and
   would otherwise win on specificity — that block is dark, but it is not this
   design. The theme toggle is hidden to match.
   ========================================================================== */

:root:root {
  --design-name: "frontline";

  /* ---- Frontline palette (see css/frontline.css) ---- */
  --field:     #0b0d08;
  --panel:     #12160d;
  --bone:      #ece6d3;
  --dim:       #c9c8b2;
  --body:      #a9ad96;
  --meta:      #8b9078;
  --meta-2:    #6f7460;
  --haz:       #f0c020;
  --haz-hi:    #ffdf5e;
  --go:        #8ec63f;
  --hair:      rgba(236, 230, 211, .14);
  --hair-firm: rgba(236, 230, 211, .2);
  --rule: 1px;

  /* Raw poster palette, repointed: these feed link hovers, the contact cards
     and the page-index hover bar, which are authored against them. */
  --red:    var(--haz);
  --blue:   var(--haz);
  --yellow: var(--haz);
  --teal:   var(--go);

  --color-bg: var(--field);
  --color-bg-secondary: var(--panel);
  --color-text: var(--bone);
  --color-text-secondary: var(--body);
  --color-accent: var(--haz);
  --color-accent-hover: var(--haz-hi);
  --color-border: var(--hair);
  --color-card-bg: rgba(22, 28, 16, .78);
  --color-card-border: var(--hair);
  --color-card-shadow: rgba(0, 0, 0, .6);
  --color-hero-gradient-start: #161c10;
  --color-hero-gradient-end: var(--field);
  --color-badge-bg: rgba(240, 192, 32, .12);
  --color-badge-text: var(--haz);
  --color-footer-bg: rgba(8, 10, 6, .9);
  --color-footer-text: var(--meta);
  --color-line-strong: var(--hair-firm);

  /* Hairlines and stencil weight: square corners, no soft shadows. */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --shadow-sm: none;
  --shadow-md: 0 14px 34px rgba(0, 0, 0, .55);
  --shadow-lg: 0 22px 48px rgba(0, 0, 0, .6);
}

/* The survey grid the homepage paints, fixed behind the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -8%, #1b2313 0%, #0f1309 46%, #0b0d08 78%),
    linear-gradient(rgba(236, 230, 211, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 230, 211, .028) 1px, transparent 1px);
  background-size: auto, 68px 68px, 68px 68px;
}

/* ---------- Top bar ---------- */
.nav {
  background: rgba(11, 13, 8, .92);
  border-bottom: 1px solid var(--hair-firm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* The one piece of Frontline furniture that has no equivalent in style.css:
   a hazard stripe under the bar, the same rule the homepage runs between its
   sections. */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 5px;
  background: repeating-linear-gradient(45deg, #f0c020 0 7px, #0b0d08 7px 14px);
  opacity: .55;
}
.nav-brand {
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
/* The hazard chip in place of the poster's circle/square/triangle lockup —
   the same mark the homepage's own bar carries. */
.nav-brand::before {
  width: 20px;
  height: 11px;
  border-radius: 0;
  background: repeating-linear-gradient(45deg, #f0c020 0 4px, #0b0d08 4px 8px);
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--body);
}
.nav-links a:hover { color: var(--haz); }
.nav-hamburger { color: var(--bone); }
@media (max-width: 640px) {
  .nav-links {
    background: rgba(11, 13, 8, .96);
    border-bottom: 1px solid var(--hair);
  }
}
/* Single-theme design: nothing for a light/dark toggle to do. */
.theme-toggle { display: none; }

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
}

/* ---------- App Store badge ----------
   The asset is the black lockup; inverted it becomes Apple's white lockup,
   which is the correct one for a dark field. */
.app-store-badge { filter: invert(1); }

/* ---------- Support hub ---------- */
.support-hero {
  background: linear-gradient(180deg, var(--color-hero-gradient-start), var(--color-hero-gradient-end));
  border-bottom: 1px solid var(--hair);
}
.support-hero .app-icon {
  border-radius: 15px;
  border: 1px solid var(--hair-firm);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
}
.support-hero p { color: var(--dim); }

/* Square status chips rather than pills — the homepage's are square too. */
.support-nav-link {
  background: transparent;
  border: 1px solid var(--hair-firm);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.support-nav-link:hover,
.support-nav-link.active {
  background: var(--haz);
  border-color: var(--haz);
  color: var(--field);
}

/* ---------- Screenshots ---------- */
.shots img {
  border: 1px solid var(--hair-firm);
  border-radius: 0;
  background: var(--field);
  padding: 5px;
}
.shots figcaption {
  font-family: var(--font-mono);
  color: var(--meta);
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Content pages ---------- */
.content-header .breadcrumb,
.content-header .last-updated {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--meta-2);
}
.content-header h1 { border-bottom: 1px solid var(--hair); padding-bottom: 14px; }
.content-body a { color: var(--haz); border-bottom: 1px solid rgba(240, 192, 32, .4); }
.content-body a:hover { color: var(--haz-hi); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item:first-child { border-top: 1px solid var(--hair); }
.faq-question {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.faq-question::after { color: var(--haz); }

/* ---------- Contact ---------- */
.contact-card {
  --on: var(--haz);
  --field: #0b0d08;
  border: 1px solid var(--hair-firm);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(22, 28, 16, .9), rgba(13, 16, 9, .9));
}
.contact-card::after { background-color: rgba(236, 230, 211, .12); }
.contact-card-cat, .contact-chips a, a.contact-btn {
  font-family: var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
/* The primary button is a hazard slab, like the dossier's CTA. */
a.contact-btn {
  border-width: 1px;
  border-radius: 0;
  background: var(--haz);
  border-color: var(--haz);
  color: var(--field);
}
a.contact-btn:hover { background: var(--haz-hi); border-color: var(--haz-hi); color: var(--field); }
a.contact-chip { border-width: 1px; border-radius: 0; }

/* ---------- Page index ---------- */
.pagedir h3 {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--meta-2);
}
.pagedir li { border-bottom: 1px solid var(--hair); }

/* ---------- 404 ---------- */
.page-404 h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--bone);
}
.page-404 a.btn {
  background: var(--haz);
  color: var(--field);
  border-radius: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.page-404 a.btn:hover { background: var(--haz-hi); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); }
.footer-links a:hover { color: var(--haz); }
