/* ============================================================
   AIBlogPublisher — main stylesheet
   Aesthetic: "Evening Edition" — newsprint paper, wine ink,
   aged gold, serif mastheads and typewriter stamps.
   Type: Newsreader (display serif) / Libre Franklin (body) /
         Courier Prime (labels, stamps)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d7;
  --ink: #24201c;
  --ink-soft: #574f45;
  --ink-faint: #8a8172;
  --line: #ddd2bd;
  --rule: #24201c;
  --wine: #8c2332;
  --wine-deep: #691623;
  --wine-soft: #f3dfe0;
  --gold: #b07a1a;
  --gold-deep: #8a5f12;
  --gold-soft: #f4e8cd;
  --green: #33691e;
  --green-soft: #e4eed7;
  --teal: #1f6b63;
  --card: #fffdf7;
  --shadow: 0 1px 2px rgba(36, 32, 28, 0.06), 0 14px 30px -14px rgba(36, 32, 28, 0.22);
  --shadow-lg: 0 2px 4px rgba(36, 32, 28, 0.07), 0 28px 60px -20px rgba(36, 32, 28, 0.3);
  --radius: 6px;
  --radius-lg: 10px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
  --container: 1160px;
  --header-h: 70px;
}

[data-theme="dark"] {
  --paper: #17140f;
  --paper-2: #201c14;
  --ink: #efe8da;
  --ink-soft: #c2b8a5;
  --ink-faint: #8c8371;
  --line: #37311f;
  --rule: #efe8da;
  --wine: #d9707f;
  --wine-deep: #e79aa5;
  --wine-soft: #3a1b21;
  --gold: #d9a83f;
  --gold-deep: #e5bd63;
  --gold-soft: #2f2712;
  --green: #8bc34a;
  --green-soft: #23301a;
  --teal: #5fb3aa;
  --card: #201c15;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.55), 0 28px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.45em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

a {
  color: var(--wine);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 300;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 9vw, 104px) 0;
}

.section--tight {
  padding: clamp(40px, 6vw, 68px) 0;
}

/* Double-rule divider — the press signature line */
.double-rule {
  border: none;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  height: 6px;
  background: transparent;
  margin: 0;
}

/* Kicker (mono stamp label) */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.kicker::before,
.kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--wine);
}

.kicker--left::after {
  display: none;
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: 1.12rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn:active {
  transform: none;
  box-shadow: none;
}

.btn--primary {
  background: var(--wine);
  border-color: var(--wine-deep);
  color: #fff8f0;
}

.btn--primary:hover {
  box-shadow: 3px 3px 0 var(--wine-deep);
}

[data-theme="dark"] .btn--primary {
  color: #2a0b12;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

[data-theme="dark"] .btn--dark {
  box-shadow: none;
}

[data-theme="dark"] .btn:hover {
  box-shadow: 3px 3px 0 var(--gold);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.86rem;
  border-width: 1.5px;
}

.btn--lg {
  padding: 15px 32px;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Dateline (announcement bar) ---------- */
.announce {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 16px;
}

.announce a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="dark"] .announce {
  background: var(--paper-2);
  color: var(--ink);
}

/* ---------- Header (masthead bar) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 3px double var(--rule);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.logo .tld {
  color: var(--wine);
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav > a,
.nav-dd > button {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 13px;
  background: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.main-nav > a:hover,
.nav-dd > button:hover {
  color: var(--wine);
  text-decoration: none;
  background: var(--paper-2);
}

.main-nav > a[aria-current="page"] {
  color: var(--wine);
  box-shadow: inset 0 -2px 0 var(--wine);
}

.nav-dd {
  position: relative;
}

.nav-dd .caret {
  transition: transform 0.15s ease;
}

.nav-dd[data-open="true"] .caret {
  transform: rotate(180deg);
}

.dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 236px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(36, 32, 28, 0.16);
  padding: 8px;
  display: none;
}

.nav-dd[data-open="true"] .dd-panel {
  display: block;
}

.dd-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.92rem;
}

.dd-panel a:hover {
  background: var(--paper-2);
  text-decoration: none;
}

.dd-panel a small {
  display: block;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-burger {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero (masthead style, centered) ---------- */
.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
  text-align: center;
}

.hero .edition-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 22px;
}

.hero .edition-line::before,
.hero .edition-line::after {
  content: "";
  flex: 1;
  max-width: 180px;
  border-top: 1px solid var(--line);
}

.hero h1 {
  max-width: 860px;
  margin-inline: auto;
}

.hero h1 em {
  font-style: italic;
  color: var(--wine);
}

.hero .lead {
  max-width: 640px;
  margin: 10px auto 0;
  font-size: 1.16rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 14px;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
}

/* ---------- The Newsdesk (signature panel) ---------- */
.newsdesk-wrap {
  padding-bottom: clamp(48px, 7vw, 84px);
}

.newsdesk {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 7px 7px 0 rgba(140, 35, 50, 0.16);
  overflow: hidden;
}

.newsdesk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}

.newsdesk-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.newsdesk-input {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 520px;
  min-width: 260px;
}

.newsdesk-input input {
  flex: 1;
  min-width: 0;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.day-col {
  border-right: 1px solid var(--line);
  min-height: 250px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-col:last-child {
  border-right: none;
}

.day-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.slot {
  border: 1.5px solid var(--line);
  border-radius: 5px;
  padding: 10px 11px;
  background: var(--paper);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease;
}

.slot.filled {
  opacity: 1;
  transform: none;
}

.slot .s-prop {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 5px;
}

.slot .s-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}

.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  transform: rotate(-2deg);
}

.stamp--draft { color: var(--ink-faint); }
.stamp--edit { color: var(--gold-deep); }
.stamp--scheduled { color: var(--teal); }
.stamp--published { color: var(--green); background: var(--green-soft); }

.slot.is-published {
  border-color: var(--green);
}

.newsdesk-foot {
  padding: 11px 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Properties strip ---------- */
.works-strip {
  border-block: 1px solid var(--line);
  padding: 20px 0;
  background: var(--paper-2);
}

.works-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.works-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.works-logos {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
}

.works-logos span {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-faint);
}

/* ---------- Section cards (features as newspaper sections) ---------- */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
  gap: 1.5px;
}

.sect {
  background: var(--card);
  padding: 28px 26px;
  position: relative;
}

.sect .s-mark {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--wine);
  display: inline-block;
  border: 1.5px solid var(--wine);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 16px;
}

.sect h3 {
  font-size: 1.28rem;
  margin-bottom: 6px;
}

.sect p {
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Manifesto pull quote ---------- */
.manifesto {
  text-align: center;
  padding: clamp(48px, 7vw, 84px) 0;
}

.manifesto blockquote {
  margin: 0 auto;
  max-width: 780px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.3;
  color: var(--ink);
}

.manifesto blockquote strong {
  color: var(--wine);
  font-weight: 600;
}

.manifesto cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Circulation stats (dark band) ---------- */
.stats-band {
  background: var(--ink);
  color: var(--paper);
  border-block: 4px double var(--gold);
}

[data-theme="dark"] .stats-band {
  background: var(--paper-2);
  color: var(--ink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stat-cell .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  color: var(--gold);
}

.stat-cell .lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 6px;
}

/* ---------- Desk workflow (the wire) ---------- */
.wire {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.wire-stop {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  position: relative;
}

.wire-stop .w-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  border: 1.5px solid var(--wine);
  border-radius: 3px;
  padding: 3px 9px;
  transform: rotate(-2deg);
  margin-bottom: 14px;
}

.wire-stop:not(:last-child)::after {
  content: "···";
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-58%);
  color: var(--ink-faint);
  font-size: 1.2rem;
  letter-spacing: 2px;
  z-index: 2;
}

.wire-stop h3 {
  font-size: 1.16rem;
  margin-bottom: 6px;
}

.wire-stop p {
  font-size: 0.91rem;
  margin: 0;
}

/* ---------- Property cards ---------- */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.prop-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-top: 4px solid var(--wine);
  border-radius: var(--radius);
  padding: 22px;
}

.prop-card:nth-child(2) { border-top-color: var(--gold); }
.prop-card:nth-child(3) { border-top-color: var(--teal); }

.prop-card .p-domain {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.prop-card h3 {
  font-size: 1.14rem;
  margin-bottom: 6px;
}

.prop-card p {
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.prop-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid currentColor;
}

.pill--green { color: var(--green); background: var(--green-soft); }
.pill--gold { color: var(--gold-deep); background: var(--gold-soft); }
.pill--wine { color: var(--wine); background: var(--wine-soft); }
.pill--teal { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.pill--blue { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.pill--amber { color: var(--gold-deep); background: var(--gold-soft); }
.pill--red { color: var(--wine); background: var(--wine-soft); }

/* ---------- Desk mockup ---------- */
.mockup {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 7px 7px 0 rgba(36, 32, 28, 0.14);
  overflow: hidden;
  font-size: 0.8rem;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}

.mockup-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}

.mockup-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-left: 8px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 172px 1fr;
  min-height: 320px;
}

.mockup-side {
  border-right: 1.5px solid var(--line);
  padding: 14px 10px;
  background: var(--paper-2);
}

.mockup-side .mi {
  padding: 7px 10px;
  border-radius: 4px;
  color: var(--ink-soft);
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.mockup-side .mi.on {
  background: var(--wine-soft);
  color: var(--wine);
  font-weight: 700;
}

.mockup-main {
  padding: 16px;
}

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--card);
}

.mockup-row .m-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.mockup-row .m-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-faint);
}

/* ---------- Comparison table ---------- */
.compare-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.compare thead th {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}

.compare thead th.hl {
  background: var(--wine);
  color: #fff8f0;
}

.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare td.hl {
  background: var(--wine-soft);
  font-weight: 600;
}

.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--ink-faint); }

/* ---------- Letters to the editor (testimonials) ---------- */
.notes-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.note {
  flex: 0 0 min(370px, 84vw);
  scroll-snap-align: start;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  padding: 24px;
  position: relative;
}

.note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  right: 24px;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--wine) 0 14px, transparent 14px 22px);
}

.note .n-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.note blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
}

.note blockquote::first-letter {
  font-size: 1.7em;
  font-weight: 700;
  color: var(--wine);
}

.note .n-who strong {
  display: block;
  font-size: 0.9rem;
}

.note .n-who span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.notes-ctrl {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.notes-ctrl button {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}

.notes-ctrl button:hover {
  background: var(--paper-2);
}

/* ---------- Pricing ---------- */
.price-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 5px;
  margin: 0 auto 36px;
}

.price-toggle button {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 3px;
  cursor: pointer;
  color: var(--ink-soft);
}

.price-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.price-toggle .save-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  background: var(--gold-soft);
  color: var(--gold-deep);
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 6px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan--hot {
  border-width: 2.5px;
  border-color: var(--wine);
  box-shadow: 6px 6px 0 rgba(140, 35, 50, 0.2);
}

.plan .hot-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--wine);
  color: #fff8f0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 3px;
  white-space: nowrap;
}

.plan h3 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.plan .p-for {
  font-size: 0.84rem;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.plan .price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}

.plan .price .per {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-faint);
  font-family: var(--font-body);
}

.plan .bill-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  min-height: 18px;
  margin-bottom: 16px;
}

.plan ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}

.plan li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 6px 0 6px 24px;
  position: relative;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--green);
  font-weight: 700;
}

.plan li.na {
  color: var(--ink-faint);
  text-decoration: line-through;
}

.plan li.na::before {
  content: "—";
  color: var(--ink-faint);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
}

.faq-item {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 17px 20px;
}

.faq-q .fx {
  font-size: 1.3rem;
  color: var(--wine);
  transition: transform 0.2s ease;
  flex: none;
  line-height: 1;
}

.faq-item[data-open="true"] .fx {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.faq-item[data-open="true"] .faq-a {
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border: 3px double var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 60px);
  text-align: center;
}

.cta-band h2 {
  color: var(--paper);
}

[data-theme="dark"] .cta-band {
  background: var(--paper-2);
  color: var(--ink);
}

[data-theme="dark"] .cta-band h2 {
  color: var(--ink);
}

.cta-band p {
  color: inherit;
  opacity: 0.85;
  max-width: 560px;
  margin-inline: auto;
}

.cta-band .btn--primary {
  border-color: var(--gold);
}

.cta-band .btn--ghost {
  color: var(--paper);
  border-color: var(--paper);
}

[data-theme="dark"] .cta-band .btn--ghost {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px double var(--rule);
  background: var(--paper-2);
  padding: clamp(44px, 6vw, 68px) 0 26px;
  margin-top: clamp(56px, 8vw, 92px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 38px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--wine);
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

.footer-social a:hover {
  color: var(--wine);
  border-color: var(--wine);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--ink-faint);
}

.footer-bottom a:hover {
  color: var(--wine);
}

/* ---------- Forms ---------- */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field .hint {
  font-size: 0.76rem;
  color: var(--ink-faint);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--gold-soft);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--wine);
  box-shadow: 2px 2px 0 var(--wine-soft);
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--wine);
  margin-top: 5px;
}

.field.has-error .field-error {
  display: block;
}

.pw-wrap {
  position: relative;
}

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 8px;
}

.pw-toggle:hover {
  color: var(--ink);
}

.form-success {
  display: none;
  background: var(--green-soft);
  border: 1.5px solid var(--green);
  color: var(--green);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.form-success.show {
  display: block;
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.auth-card {
  width: min(440px, 92vw);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 7px 7px 0 rgba(140, 35, 50, 0.16);
  padding: 34px 30px;
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.auth-card .auth-sub {
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.auth-alt {
  text-align: center;
  font-size: 0.88rem;
  margin-top: 18px;
  color: var(--ink-soft);
}

.demo-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  background: var(--paper-2);
  border: 1.5px dashed var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  margin-top: 16px;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 24, 20, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(490px, 100%);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
  padding: 28px;
  max-height: 88vh;
  overflow-y: auto;
}

.modal h3 {
  margin-bottom: 8px;
}

.modal-close-row {
  display: flex;
  justify-content: flex-end;
}

.modal .x {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-faint);
  line-height: 1;
  padding: 4px;
}

.modal .x:hover {
  color: var(--ink);
}

.checkout-summary {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.9rem;
  margin: 14px 0 18px;
  font-family: var(--font-mono);
}

.checkout-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.checkout-summary .row.total {
  border-top: 1.5px solid var(--ink);
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Toast ---------- */
.toast-zone {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  padding: 13px 18px;
  font-size: 0.9rem;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.25s ease;
  max-width: 320px;
}

[data-theme="dark"] .toast {
  background: var(--card);
  color: var(--ink);
}

.toast--success::before { content: "✓"; color: #8bc34a; font-weight: 700; }
.toast--error::before { content: "!"; color: var(--wine-deep); font-weight: 700; }
.toast--info::before { content: "※"; color: var(--gold); font-weight: 700; }

@keyframes toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(580px, 94vw);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 rgba(36, 32, 28, 0.2);
  padding: 18px 20px;
  z-index: 240;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  font-size: 0.87rem;
  margin-bottom: 12px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 84px;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(36, 32, 28, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  font-size: 1.1rem;
}

.to-top.show {
  display: inline-flex;
}

/* ---------- Generator page ---------- */
.gen-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

.gen-form,
.gen-output {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.gen-form h2,
.gen-output h2 {
  font-size: 1.3rem;
}

.gen-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--wine);
}

.range-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  min-width: 66px;
  text-align: right;
}

.gen-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.gen-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.gen-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.output-box {
  min-height: 380px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  overflow-wrap: break-word;
}

.output-empty {
  color: var(--ink-faint);
  text-align: center;
  padding: 60px 20px;
  font-size: 0.92rem;
}

.output-meta {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 12px;
  flex-wrap: wrap;
}

.gen-loading {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.gen-loading.show {
  display: flex;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(36, 32, 28, 0.18);
}

.post-cover {
  height: 150px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff8f0;
  border-bottom: 1.5px solid var(--ink);
}

.post-cover--a { background: var(--wine); }
.post-cover--b { background: #24201c; color: var(--gold); }
.post-cover--c { background: var(--teal); }

.post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-body h3 {
  font-size: 1.2rem;
}

.post-body h3 a {
  color: var(--ink);
}

.post-body p {
  font-size: 0.9rem;
  flex: 1;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article {
  max-width: 720px;
  margin-inline: auto;
}

.article h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.article h2 {
  font-size: 1.55rem;
  margin-top: 1.6em;
}

.article p,
.article li {
  font-size: 1.03rem;
  line-height: 1.78;
}

.article .article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 30px;
  padding-bottom: 22px;
  border-bottom: 3px double var(--rule);
}

.article .a-ava {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--wine);
  color: #fff8f0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.article .a-meta strong {
  display: block;
  font-size: 0.92rem;
}

.article .a-meta span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
}

/* First paragraph drop cap on articles */
.article > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.1em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  color: var(--wine);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(44px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 3px double var(--rule);
  margin-bottom: clamp(36px, 5vw, 54px);
  text-align: center;
}

.page-hero .kicker {
  justify-content: center;
}

.page-hero p {
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.06rem;
}

/* ---------- Legal ---------- */
.legal {
  max-width: 760px;
  margin-inline: auto;
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.founder-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 6px 6px 0 rgba(140, 35, 50, 0.14);
}

.founder-ava {
  width: 76px;
  height: 76px;
  border-radius: 4px;
  background: var(--wine);
  border: 2px solid var(--ink);
  color: #fff8f0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
}

.value-card .v-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--wine);
  border: 1.5px solid var(--wine);
  border-radius: 3px;
  padding: 2px 8px;
  transform: rotate(-2deg);
  margin-bottom: 10px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- 404 ---------- */
.nf-wrap {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.nf-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 15vw, 9rem);
  font-weight: 700;
  font-style: italic;
  color: var(--wine);
  line-height: 1;
  margin-bottom: 8px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .sections-grid { grid-template-columns: repeat(2, 1fr); }
  .wire { grid-template-columns: repeat(2, 1fr); }
  .wire-stop:not(:last-child)::after { display: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gen-layout { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .props-grid { grid-template-columns: 1fr 1fr; }
  .week-strip { grid-template-columns: repeat(3, 1fr); }
  .day-col:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: var(--card);
    border-left: 2px solid var(--ink);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: 84px 20px 20px;
    gap: 2px;
    transform: translateX(105%);
    transition: transform 0.25s ease;
    z-index: 150;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav > a,
  .nav-dd > button {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
    padding: 12px 14px;
  }

  .nav-dd .dd-panel {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--paper-2);
    margin: 4px 0 8px;
  }

  .nav-burger {
    display: inline-flex;
    z-index: 160;
    position: relative;
  }

  .header-actions .btn--ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  .sections-grid,
  .wire,
  .plans,
  .post-grid,
  .values-grid,
  .props-grid,
  .gen-2col {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .week-strip { grid-template-columns: 1fr; }
  .day-col { border-right: none; border-top: 1px solid var(--line); min-height: 0; }
  .day-col:first-child { border-top: none; }
  .newsdesk-input { flex-direction: column; max-width: none; }
  .hero-ctas .btn { width: 100%; }
  .to-top { bottom: 130px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .slot {
    opacity: 1;
    transform: none;
  }
}
