/* ──────────────────────────────────────────────────────────────────────────
   The Lens: shared stylesheet
   Identity v1.1: Dark Charcoal + Warm Taupe, Visby CF + Cormorant Garamond,
   "Look closer." Belleza stands in for Visby CF until the licence is in place;
   swapping it is the --font-primary line plus one @font-face.

   Contrast rule: accents are lighter on dark and darker on light. Warm Taupe
   (#C2A882) is for text on charcoal only (7.2:1). On cream, accent text uses
   --accent-on-light (5.5:1); plain taupe on cream is 2.9:1 and is decoration only.
   ────────────────────────────────────────────────────────────────────────── */

@font-face { font-family: 'Belleza'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/belleza-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2'); }

:root {
  /* Palette */
  --charcoal:        #1F1F1F;
  --charcoal-2:      #2A2A2A;
  --taupe:           #C2A882;
  --taupe-rule:      #9C8868;
  --cream:           #F2EBDD;
  --cream-2:         #E8DFCD;

  /* Roles on light (body) */
  --ink:             var(--charcoal);
  --ink-soft:        #564F45;
  --accent-on-light: #6F5A3A;
  --rule:            #D6CCB8;

  /* Roles on dark (bars, heroes, footer) */
  --ink-on-dark:      var(--cream);
  --ink-soft-on-dark: rgba(242,235,221,0.78);
  --rule-on-dark:     rgba(242,235,221,0.14);

  /* Type */
  --font-primary:   'Belleza', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-secondary: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream); color: var(--ink);
  font-family: var(--font-primary); font-size: 17px; line-height: 1.75;
  /* Belleza has one weight; never let the browser fake a bold or italic. */
  font-synthesis: none;
}
strong, b, dt, th { font-weight: 400; }
strong { color: var(--ink); }
a { color: var(--accent-on-light); }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding-left: max(56px, env(safe-area-inset-left)); padding-right: max(56px, env(safe-area-inset-right)); }
@media (max-width: 760px) { .container { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); } }

.eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-on-light); }
.dark .eyebrow, .site-header .eyebrow { color: var(--taupe); }

/* ── Header: the dark top bar ── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--charcoal); border-bottom: 1px solid var(--rule-on-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-on-dark); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-size: 16px; letter-spacing: 3px; text-transform: uppercase; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft-on-dark); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--taupe); }

/* Mobile: hamburger menu with a drop-down panel. Standing rule for every page.
   CSS-only checkbox toggle (reliable on iOS, works without JS). The checkbox is
   visually hidden rather than display:none so it stays keyboard-focusable. */
.nav-checkbox { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .brand { gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 14px; letter-spacing: 2.5px; line-height: 1.3; }
  .brand-with { display: block; font-size: 9px; letter-spacing: 1.8px; white-space: nowrap; color: var(--taupe); }

  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 9px; margin-right: -9px; cursor: pointer; }
  .nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--ink-on-dark); transition: transform 0.2s, opacity 0.2s; }
  .nav-checkbox:focus-visible ~ .container .nav-toggle { outline: 1px solid var(--taupe); outline-offset: 2px; }
  .nav-checkbox:checked ~ .container .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-checkbox:checked ~ .container .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-checkbox:checked ~ .container .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--charcoal);
    border-bottom: 1px solid var(--rule-on-dark);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.25s ease, visibility 0s 0.25s;
  }
  .nav-checkbox:checked ~ .container .site-nav { max-height: 70vh; visibility: visible; transition: max-height 0.25s ease; }
  .site-nav a { font-size: 12px; letter-spacing: 2px; padding: 16px 20px; border-top: 1px solid var(--rule-on-dark); }
}

/* ── Dark hero band ── */
.dark { background: var(--charcoal); color: var(--ink-on-dark); }
.hero { padding: 5rem 0 4rem; }
.hero .eyebrow { display: block; margin-bottom: 16px; }
.hero-title { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 20px; }
.hero-lead { font-size: 18px; line-height: 1.75; color: var(--ink-soft-on-dark); max-width: 36em; }
.hero-lead + .hero-lead { margin-top: 12px; }
.tagline { font-family: var(--font-secondary); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); color: var(--taupe); margin-top: 26px; }

.crumbs { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft-on-dark); margin-bottom: 18px; }
.crumbs a { color: var(--taupe); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: 0.5; }

.button { display: inline-block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; padding: 14px 26px; border-radius: 2px; border: 1px solid; transition: background 0.2s, color 0.2s; }
.dark .button { color: var(--ink-on-dark); border-color: var(--taupe); }
.dark .button:hover { background: var(--taupe); color: var(--charcoal); }
.button { color: var(--ink); border-color: var(--accent-on-light); }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── Light body sections ── */
.band { padding: 4.5rem 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band--tint { background: var(--cream-2); }
.section-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; margin: 10px 0 18px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; max-width: 40em; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 0.6rem; } }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { display: block; background: #FAF6EE; border: 1px solid var(--rule); border-radius: 4px; padding: 26px; text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.15s; }
a.card:hover { border-color: var(--accent-on-light); transform: translateY(-2px); }
.card h3 { font-size: 21px; line-height: 1.25; letter-spacing: 0.02em; margin: 8px 0 10px; font-weight: 400; }
.card p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.card .more { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-on-light); }

.aside-note { font-size: 15px; color: var(--ink-soft); }

/* ── Footer ── */
.site-footer { background: var(--charcoal); color: var(--ink-soft-on-dark); padding: 3rem 0; text-align: center; }
.site-footer .tagline { margin: 0 0 16px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.footer-nav a { color: var(--ink-soft-on-dark); text-decoration: none; }
.footer-nav a:hover { color: var(--taupe); }
.footer-legal { margin-top: 18px; font-size: 11px; letter-spacing: 1px; opacity: 0.7; }

/* Exhibit figure */
.exhibit { margin: 1.2rem 0 0; }
.exhibit img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
.exhibit figcaption { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin-top: 10px; max-width: 44rem; }

/* Evidentiary state, not a draft marker: a value the evidence does not yet establish. */
.unresolved { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-on-light); }

/* ── DRAFT ONLY: scripts/check-publishable.sh fails while any of these remain ── */
.draft-banner { background: rgba(111,90,58,0.10); border: 1px dashed var(--accent-on-light); border-radius: 4px; padding: 16px 20px; margin-bottom: 2.4rem; font-size: 15px; line-height: 1.7; color: var(--ink); }
.pending { background: rgba(194,168,130,0.30); border-bottom: 1px dashed var(--accent-on-light); color: var(--accent-on-light); padding: 0 3px; }
.dark .pending { background: rgba(194,168,130,0.18); color: var(--taupe); border-color: var(--taupe); }
