/* ─────────────────────────────────────────────────────────────
   Noren — Framework Pages
   Mirrors index.html exactly: .app shell, .header chrome, .icon-btn,
   .cat-pill, type scale. Per-page accent: <body style="--accent:#…">
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0a0f;
  --bg-2: #0e0e15;
  --surface: #14141d;
  --surface-2: #1c1c28;
  --surface-3: #25252f;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text: #f5f4ef;
  --text-2: #b8b8c4;
  --text-3: #71717f;
  --gold: #d1a848;
  --gold-soft: rgba(209,168,72,0.16);
  --accent: #d1a848;
  --display: 'Cormorant Garamond', Georgia, serif;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --t-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --t-med: 240ms cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(91,141,239,0.04), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(155,107,245,0.03), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--text); }

/* ── .app shell (identical to main site) ────────────────────── */
.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .app { max-width: 1100px; padding: 0 48px; }
}

/* ── header: 3-col grid; icon buttons match site height ─────── */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header > .icon-btn { justify-self: start; }
.header-actions { justify-self: end; display: flex; gap: 8px; align-items: center; position: relative; }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.brand-text {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.brand-icon {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  margin: 0 2px;
  transform: translateY(7px);
  display: block;
}
@media (min-width: 600px) { .brand-text { font-size: 54px; } }

/* ── icon buttons (copied from site .icon-btn / .header-icon-btn) ── */
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; }

/* ── dropdown nav menu (hamburger) ──────────────────────────── */
.navmenu {
  position: absolute;
  top: 48px; right: 0;
  min-width: 232px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  display: none;
  z-index: 100;
}
.navmenu.open { display: block; }
.navmenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.navmenu a:hover { background: var(--surface-3); color: var(--text); }
.navmenu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* ── copy-link toast ────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity var(--t-med), transform var(--t-med);
  z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── main grows to fill ─────────────────────────────────────── */
main { flex: 1; }

/* ── hero (mirrors .edition-header) ─────────────────────────── */
.hero { padding: 28px 0 30px; border-bottom: 1px solid var(--border); }
.cat-pill {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  padding: 6px 12px; border-radius: 100px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--display);
  font-size: 44px; line-height: 1.05; font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.lede { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--text-2); }
@media (min-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .lede { font-size: 19px; }
}

/* ── sections ───────────────────────────────────────────────── */
section { padding: 32px 0; border-bottom: 1px solid var(--border); }
.kicker {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
h2 {
  font-family: var(--display); font-size: 30px; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
section p { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
section p:last-child { margin-bottom: 0; }
section p.muted { color: var(--text-3); }

/* ── numbered insight list ──────────────────────────────────── */
.insight { list-style: none; display: grid; gap: 16px; }
.insight li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.insight .n { font-family: var(--display); font-size: 24px; color: var(--accent); font-weight: 600; line-height: 1.1; }
.insight b { color: var(--text); font-weight: 600; }
.insight span { color: var(--text-2); }

/* ── figure ─────────────────────────────────────────────────── */
.figwrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px; text-align: center;
}
.figwrap svg { max-width: 100%; height: auto; }
.figcap {
  font-family: var(--serif); font-style: italic; font-size: 13.5px;
  color: var(--text-3); margin-top: 16px; max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* ── worked example ─────────────────────────────────────────── */
.example {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 24px;
}
.example .who {
  font-size: 11px; letter-spacing: 0.08em; color: var(--accent);
  text-transform: uppercase; font-weight: 700; margin-bottom: 9px;
}
.example p { font-size: 15px; line-height: 1.7; color: var(--text); }
.example p.muted { color: var(--text-2); margin-bottom: 0; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  padding: 36px 30px; text-align: center; margin: 34px 0 6px;
}
.cta h3 { font-family: var(--display); font-size: 30px; font-weight: 600; margin-bottom: 10px; }
.cta > p { color: var(--text-2); font-size: 15px; max-width: 540px; margin: 0 auto; }
.btn {
  display: inline-block; background: var(--accent); color: #0a0a0f;
  font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: 100px;
  margin-top: 18px; transition: filter var(--t-fast);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); margin-left: 8px; }
.price { font-size: 12.5px; color: var(--text-3); margin-top: 14px; }

/* ── footer ─────────────────────────────────────────────────── */
footer { padding: 34px 0 60px; text-align: center; color: var(--text-3); font-size: 13px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }

/* ── hub ────────────────────────────────────────────────────── */
.hubhead { padding: 28px 0 4px; }
.hubhead h1 {
  font-family: var(--display);
  font-size: 44px; line-height: 1.05; font-weight: 500;
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.hubhead h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hubhead p { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--text-2); }
@media (min-width: 1024px) {
  .hubhead h1 { font-size: 56px; }
  .hubhead p { font-size: 19px; }
}

.hubgrid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 28px 0 8px; }
@media (min-width: 600px) { .hubgrid { grid-template-columns: repeat(2, 1fr); } }
.fcard {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--cardc, var(--gold)); border-radius: var(--radius-lg);
  padding: 24px 24px 22px; transition: transform var(--t-fast), border-color var(--t-fast);
}
.fcard:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.fcard .pill { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--cardc, var(--gold)); }
.fcard h3 { font-family: var(--display); font-size: 25px; font-weight: 600; margin: 10px 0 7px; letter-spacing: -0.01em; color: var(--text); }
.fcard p { font-family: var(--serif); font-size: 14.5px; line-height: 1.55; color: var(--text-2); margin: 0; }
.fcard .arrow { color: var(--cardc, var(--gold)); font-size: 13px; margin-top: 14px; display: inline-block; }
