/* ============================================================
   SKYNET.WEBSITE — site.css · shared stylesheet (Phase 0, 2026-11-30)
   Light paper palette · amber accents · ONE dark surface (hero + footer)
   Token system from REDESIGN_PLAN.md — one file, linked by every page.
   Do not fork per-page <style> blocks; extend here.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* light paper palette */
  --paper: #faf7f1;        /* page background — soft paper white */
  --card: #ffffff;         /* cards / panels */
  --card2: #f3ede2;        /* tinted panels, footer band, hovers */
  --ink: #23211c;          /* body text — 15.1:1 on paper */
  --ink-strong: #14120e;   /* headings */
  --muted: #6b655b;        /* secondary text — 5.0:1 on paper, WCAG AA */
  --line: #e4dccd;         /* hairlines, card borders */

  /* owl accents */
  --amber: #b07a12;        /* primary accent / links — 4.9:1 on paper (AA) */
  --amber-deep: #8a5e0b;   /* link hover / pressed */
  --amber-bright: #f5b424; /* decorative ONLY: rules, glows, badges */
  --owl: #7a6248;          /* owl brown — eyebrows, tags, carets */
  --night: #23211c;        /* the ONE dark surface (footer night band) */
  --night-ink: #efe9dd;    /* text on night */
  --night-muted: #b3aa9b;  /* fine print on night */
  --night-line: #3a362e;   /* hairlines on night */

  /* type */
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --display: Georgia, 'Times New Roman', serif; /* hero + H2 only — Merlin's voice */
  --mono: ui-monospace, Consolas, monospace;

  /* space & shape */
  --maxw: 1140px;
  --pad: 24px;
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px;
  --r: 12px;
  --shadow: 0 1px 2px rgba(35,33,28,.06), 0 4px 14px rgba(35,33,28,.08);
  --shadow-lift: 0 2px 6px rgba(35,33,28,.10), 0 12px 28px rgba(35,33,28,.12);
  --nav-h: 56px;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-deep); text-decoration: underline; }

a:focus-visible,
button:focus-visible,
label:focus-visible,
input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(245, 180, 36, .35); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }

/* ---------- 3. TYPE SCALE ---------- */
/* hero 3rem / H2 1.5rem / H3 1.15rem / body 1rem / small .875rem */
h1, h2, h3 { color: var(--ink-strong); margin: 0 0 var(--s2); }

h1 { font-family: var(--display); font-weight: 600; font-size: 2.2rem; letter-spacing: .01em; line-height: 1.2; }

h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: .01em; }
h2::after {
  content: "";
  display: block;
  width: 44px; height: 3px;
  background: var(--amber-bright);
  border-radius: 2px;
  margin-top: 10px;
}

h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 14px; max-width: 70ch; }

.small  { font-size: .875rem; }
.lede   { font-size: 1.125rem; }
.hl     { color: var(--amber-deep); font-weight: 600; }
.tiny   { font-size: .85rem; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--owl);
  margin-bottom: var(--s1);
}

.mono { font-family: var(--mono); }

/* ---------- 4. LAYOUT ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

.linklist {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: var(--s2);
}

.note-band {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s2) var(--s3);
  margin: var(--s3) 0;
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- 5. NAV — one canonical block, white sticky bar ---------- */
.mnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(35,33,28,.05);
}

.mnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--ink-strong);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink-strong); text-decoration: none; }
.brand img { width: 30px; height: 30px; }

/* hidden checkbox controls (hamburger + mobile accordions) — keyboard-focusable */
.nav-toggle,
.nd-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.nav-burger {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}
.nav-burger .ham {
  display: inline-block;
  position: relative;
  width: 20px; height: 2px;
  background: var(--ink);
}
.nav-burger .ham::before,
.nav-burger .ham::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--ink);
}
.nav-burger .ham::before { top: -6px; }
.nav-burger .ham::after  { top:  6px; }
.nav-toggle:checked ~ .nav-burger .ham { background: transparent; }
.nav-toggle:checked ~ .nav-burger .ham::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked ~ .nav-burger .ham::after  { top: 0; transform: rotate(-45deg); }
.nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--amber); outline-offset: 2px; }

.mnav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.mnav-list > li {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  font-size: .95rem;              /* sentence-case — the ALL-CAPS wall is gone */
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
a.top:hover { color: var(--amber-deep); background: var(--card2); text-decoration: none; }
.top.cur {
  color: var(--amber-deep);
  font-weight: 600;
  border-bottom-color: var(--amber-bright); /* current-section highlight */
}

/* caret (mobile only) */
.nd-caret {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 40px;
  margin-left: auto;
  cursor: pointer;
  color: var(--owl);
  font-size: 1rem;
}
.nd-caret::after { content: "▾"; transition: transform .15s ease; }
.nd-toggle:checked ~ .nd-caret { outline: 1px solid var(--line); border-radius: 8px; }
.nd-toggle:checked ~ .nd-caret::after { transform: rotate(180deg); }
.nd-toggle:focus-visible ~ .nd-caret { outline: 2px solid var(--amber); }

/* dropdown panel (desktop) */
.drop {
  position: absolute;
  top: calc(var(--nav-h) - 1px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--amber-bright);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--shadow-lift);
  display: none;
  z-index: 110;
}
.drop a {
  display: block;
  padding: 8px 12px;
  font-size: .93rem;
  color: var(--ink);
  border-radius: 8px;
  text-decoration: none;
}
.drop a:hover { background: var(--card2); color: var(--amber-deep); text-decoration: none; }

.has-drop:hover .drop,
.has-drop:focus-within .drop { display: block; }

/* ---------- 6. HERO BAND ---------- */
/* dark ONLY inside the hero (and footer night band) — the site is light-first */
.hero {
  background:
    linear-gradient(rgba(20,18,14,.55), rgba(20,18,14,.75)),
    url('/embassy/digital_embassy_vision.jpg') center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s5) var(--pad);
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: var(--s4);
  align-items: center;
}

.hero-owl {
  width: 100%;
  max-width: 340px;
  border-radius: 50%;
  border: 3px solid rgba(245,180,36,.9);
  box-shadow: 0 0 0 8px rgba(20,18,14,.30), 0 18px 44px rgba(0,0,0,.45);
}

.hero .eyebrow { color: var(--amber-bright); }

.hero h1 {
  font-size: 3rem;                /* hero size on the display serif */
  color: #fff;
  margin: .25em 0 .3em;
}

.hero .tagline {
  font-family: var(--display);
  font-size: 1.35rem;
  color: #fff;
}
.tagline-rule {
  width: 64px; height: 3px;
  background: var(--amber-bright);
  border-radius: 2px;
  margin: 12px 0 16px;
}

.hero .sub {
  color: #e9e3d7;
  font-size: 1.05rem;
  max-width: 56ch;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: var(--s3);
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--amber); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--amber-deep); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }

.btn-line { background: transparent; color: var(--amber-deep); border-color: var(--amber); }
.btn-line:hover { background: var(--amber); color: #fff; }

/* ---------- 8. CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s3);
  margin-top: var(--s3);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--card2);
}

.card-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}
.card-frames img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 8px; }
.card p  { font-size: .95rem; color: var(--muted); margin: 0 0 12px; }
.card .more { margin-top: auto; font-weight: 600; font-size: .95rem; }

.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--owl);
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* ---------- 9. FOOTER — 4 columns + night band ---------- */
.footer {
  background: var(--card2);
  border-top: 1px solid var(--line);
  margin-top: var(--s5);
}

.footer-cols {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s4) var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}

.footer h4 {
  margin: 0 0 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--owl);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 9px; font-size: .93rem; }
.footer a { color: var(--amber-deep); }

.footer-night {
  background: var(--night);
  color: var(--night-ink);
  border-top: 1px solid var(--night-line);
}
.footer-night-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px var(--pad);
  text-align: center;
}
.footer-night p { margin: 0 0 10px; max-width: none; }
.footer-night .credit {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--night-ink);
}
.footer-night a { color: var(--amber-bright); }
.footer-night .fine { font-size: .8rem; color: var(--night-muted); margin-bottom: 0; }
.wallet {
  font-family: var(--mono);
  font-size: .8rem;
  word-break: break-all;
  color: var(--night-muted);
}

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 900px) {
  /* nav → hamburger + tap-accordion dropdowns */
  .mnav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 0;
  }
  .nav-burger { display: inline-flex; }

  .mnav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 10px 0 4px;
    gap: 0;
  }
  .nav-toggle:checked ~ .mnav-list { display: flex; }

  .mnav-list > li {
    height: auto;
    flex-wrap: wrap;
    align-items: stretch;
    border-top: 1px solid var(--line);
    padding: 2px 0;
  }
  .top {
    flex: 1 1 auto;
    height: auto;
    padding: 12px 8px;
    border-bottom: 0;
  }
  .top.cur { border-left: 3px solid var(--amber-bright); padding-left: 13px; }

  .nd-caret { display: inline-flex; }

  .drop {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    padding: 0 0 8px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .has-drop:hover .drop,
  .has-drop:focus-within .drop { display: none; }   /* hover OFF on mobile */
  .nd-toggle:checked ~ .drop { display: block; }

  /* hero stacks: owl above the copy, centred */
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--s3);
    padding: var(--s4) var(--pad);
  }
  .hero-owl { max-width: 240px; }
  .cta-row { justify-content: center; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero .tagline { font-size: 1.15rem; }
  h2 { font-size: 1.3rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .footer-cols { grid-template-columns: 1fr; }
  .btn { display: block; text-align: center; }
}

/* ---------- 11. MOTION & PRINT ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    transform: none !important;
  }
}

@media print {
  .mnav, .footer-night, .cta-row { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: none; color: #000; }
}
