/*
Theme Name: NP
Theme URI: https://nikhilpahwa.com/
Author: Nikhil Pahwa
Description: An editorial, content-first personal website theme.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: np
*/

/* ========================================================================== 
   nikhilpahwa.com  |  design system
   Base: MEDIANAMA_DESIGN_PHILOSOPHY.md
   Departures, deliberate: maroon replaced by the blue below; Trebuchet dropped
   (reserved for the MEDIANAMA wordmark).
   Icons are line-only, stroke: currentColor, no fills. They mark and orient;
   they never replace a label.
   ========================================================================== */

:root {
  --paper:      #fff;
  --paper-warm: #fbfaf7;
  --ink:        #050505;
  --muted:      #4d4d4d;
  --rule:       #050505;
  --fine-rule:  #d6d6d6;
  --soft-rule:  #e8e5de;
  --night:      #242121;

  /* #0288f5 is 3.59:1 on white: fine for fills, borders and large type, under
     the 4.5:1 AA floor for body text. Text-weight uses take --signal-text. */
  --signal:      #0288f5;
  --signal-text: #0166BA;
  --signal-dark: #01508F;
  --tag-bg:      #E4F1FD;

  --shell: min(1080px, 100% - 56px);
  --shell-wide: min(1280px, 100% - 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------- Typography */

h1, h2, h3, .editorial {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: 46px; }
h2 { font-size: 31px; }
h3 { font-size: 28px; }

@media (max-width: 720px) {
  h1 { font-size: 33px; }
  h2 { font-size: 26px; }
  h3 { font-size: 23px; }
}

p { margin: 0 0 1em; }

.prose { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.62; max-width: 68ch; }
.prose p { margin: 0 0 1.15em; }

a { color: var(--signal-text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--signal-dark); }

.eyebrow {
  display: flex; align-items: center; gap: 7px;
  color: var(--signal-text);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow--onDark { color: #bfe0fb; }

.meta { font-size: 13px; color: var(--muted); }
.lede { font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.45; max-width: 62ch; }

/* -------------------------------------------------- Icons */

.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.12em; }
.icon--lg { width: 26px; height: 26px; stroke-width: 1.3; }
.icon--sm { width: 13px; height: 13px; }

/* -------------------------------------------------- Shell / rules */

.shell { width: var(--shell); margin: 0 auto; }
.shell-wide { width: var(--shell-wide); margin: 0 auto; }
.section { padding: 44px 0; border-top: 1px solid var(--rule); }
.section--plain { border-top: 0; }
@media (max-width: 720px) { .section { padding: 32px 0; } }

/* -------------------------------------------------- Masthead, two tier */

.masthead { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); }
.masthead__inner {
  width: var(--shell); margin: 0 auto;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 28px; padding: 16px 0; flex-wrap: wrap;
}
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 26px; color: var(--ink); text-decoration: none; white-space: nowrap; }

.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.nav a { color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--signal); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); color: var(--signal-text); }

/* Second tier: the showcases */
.subnav { border-bottom: 1px solid var(--fine-rule); background: var(--paper-warm); }
.subnav__inner { width: var(--shell); margin: 0 auto; display: flex; gap: 22px; flex-wrap: wrap; padding: 9px 0; align-items: center; }
.subnav a { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.subnav a:hover { color: var(--signal-text); }
.subnav a[aria-current="page"] { color: var(--signal-text); }
.subnav__lbl { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a8a; font-weight: 700; }

/* -------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 22px; border: 1px solid var(--signal-text);
  background: var(--signal-text); color: #fff; text-decoration: none; border-radius: 0; cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}
.btn:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: #fff; }
.btn--secondary { background: var(--paper); border-color: var(--rule); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.textlink { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* -------------------------------------------------- Hero */

.hero { padding: 52px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.hero h1 { margin-bottom: 18px; max-width: 16ch; }
.hero__aside { border-left: 1px solid var(--rule); padding-left: 26px; font-size: 14px; }
.hero__aside dt { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 15px; }
.hero__aside dt:first-child { margin-top: 0; }
.hero__aside dd { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 16px; }

/* Inside pages: no oversized display type. */
.hero--page { padding: 30px 0 24px; }
.hero--page h1 { font-size: 31px; max-width: 26ch; margin-bottom: 12px; }
.hero--page .lede { font-size: 17px; }
@media (max-width: 720px) { .hero--page h1 { font-size: 26px; } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__aside { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 18px; }
}

/* -------------------------------------------------- Proof band */

.proof { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof__cell { padding: 20px 20px 18px 0; border-right: 1px solid var(--fine-rule); }
.proof__cell:last-child { border-right: 0; }
.proof__n { font-family: Georgia, "Times New Roman", serif; font-size: 33px; line-height: 1; display: block; margin-bottom: 7px; }
.proof__l { font-size: 12px; line-height: 1.35; color: var(--muted); }
@media (max-width: 860px) {
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof__cell { border-bottom: 1px solid var(--fine-rule); padding-right: 16px; }
  .proof__cell:nth-child(2n) { border-right: 0; }
}

/* -------------------------------------------------- Stream cards */

.streams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--fine-rule); border: 1px solid var(--fine-rule); }
.streams--4 { grid-template-columns: repeat(4, 1fr); }
.stream { background: var(--paper); padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; min-height: 168px; }
.stream:hover { background: var(--paper-warm); }
.stream:hover .stream__t { color: var(--signal-text); }
.stream__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--signal-text); }
.stream__badge { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.stream__t { font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.1; margin-bottom: 7px; }
.stream__d { font-size: 14px; color: var(--muted); line-height: 1.45; }
.stream__go { margin-top: auto; padding-top: 13px; font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--signal-text); display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .streams, .streams--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .streams { grid-template-columns: 1fr; } }

/* -------------------------------------------------- Pinned highlights */

.pinned { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pinned--one { grid-template-columns: 1fr; }
.pin {
  border: 1px solid var(--rule); background: var(--paper);
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
}
.pin:hover { background: var(--paper-warm); }
.pin__flag {
  display: flex; align-items: center; gap: 7px;
  background: var(--signal-text); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase;
  padding: 7px 12px;
}
.pin__thumb { position: relative; aspect-ratio: 16/9; background: var(--night); overflow: hidden; }
.pin__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin__body { padding: 16px 18px 18px; }
.pin__t { font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.15; margin-bottom: 8px; }
.pin:hover .pin__t { color: var(--signal-text); }
.pin__d { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .pinned { grid-template-columns: 1fr; } }

/* Play marker over video thumbnails */
.playmark {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(5,5,5,0.82); color: #fff;
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 9px;
}

/* -------------------------------------------------- Chronological showcase */

.year {
  display: flex; align-items: baseline; gap: 14px;
  border-top: 2px solid var(--rule); padding-top: 10px; margin: 34px 0 4px;
}
.year__n { font-family: Georgia, "Times New Roman", serif; font-size: 26px; }
.year__c { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }

.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; padding-top: 22px; }
.showcase--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .showcase, .showcase--2 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card__thumb { position: relative; aspect-ratio: 16/9; background: var(--night); overflow: hidden; border: 1px solid var(--fine-rule); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .card__thumb { border-color: var(--signal); }
/* Fallback tile when a thumbnail is missing: dark ground, serif title. */
.card__fallback {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 14px;
  font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.2; color: #efeaea;
}
.card__head { display: flex; align-items: center; gap: 7px; margin: 11px 0 5px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-text); }
.card__t { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.22; margin-bottom: 6px; }
.card:hover .card__t { color: var(--signal-text); }
.card__m { font-size: 12.5px; color: var(--muted); }

/* -------------------------------------------------- Ruled lists */

.ruled { border-top: 1px solid var(--rule); }
.ruled__item { display: grid; grid-template-columns: 118px 1fr auto; gap: 22px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--fine-rule); }
.ruled__date { font-size: 12px; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.ruled__t { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.28; }
.ruled__t a { color: var(--ink); text-decoration: none; }
.ruled__t a:hover { color: var(--signal-text); text-decoration: underline; }
.ruled__outlet { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 720px) { .ruled__item { grid-template-columns: 1fr; gap: 5px; } }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--tag-bg); color: var(--signal-dark); padding: 4px 9px; white-space: nowrap; }
.chip--plain { background: var(--paper-warm); color: var(--muted); }
.chiprow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--signal-text); color: #fff; }

/* -------------------------------------------------- Post list */

.posts { border-top: 1px solid var(--rule); }
.post { padding: 26px 0; border-bottom: 1px solid var(--fine-rule); max-width: 72ch; }
.post__t { font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.14; margin: 6px 0 9px; }
.post__t a { color: var(--ink); text-decoration: none; }
.post__t a:hover { color: var(--signal-text); }
.post__x { font-family: Georgia, "Times New Roman", serif; font-size: 16.5px; line-height: 1.6; }

/* -------------------------------------------------- Dark band */

.dark { background: var(--night); color: var(--paper); padding: 44px 0; }
.dark h2, .dark h3 { color: var(--paper); }
.dark a { color: #bfe0fb; }
.topics { border-top: 2px solid var(--paper); margin-top: 20px; }
.topics__row { display: grid; grid-template-columns: 1fr 2fr; gap: 22px; padding: 14px 0; border-bottom: 1px solid #4a4545; }
.topics__k { font-family: Georgia, "Times New Roman", serif; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.topics__v { font-size: 14px; color: #c9c4c4; line-height: 1.5; }
@media (max-width: 720px) { .topics__row { grid-template-columns: 1fr; gap: 5px; } }

/* -------------------------------------------------- Data: eras + numbers */

.datatable { width: 100%; border-collapse: collapse; font-size: 14px; }
.datatable th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); }
.datatable td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--fine-rule); vertical-align: top; }
.datatable tr:last-child td { border-bottom: 1px solid var(--rule); }
.datatable .k { font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.datatable .hi { color: var(--signal-text); font-weight: 700; }
.tablewrap { overflow-x: auto; }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--fine-rule); border: 1px solid var(--fine-rule); }
.figure { background: var(--paper); padding: 20px; }
.figure__n { font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: 1; color: var(--signal-text); display: block; margin-bottom: 9px; }
.figure__d { font-size: 13.5px; line-height: 1.45; margin-bottom: 8px; }
.figure__s { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr; } }

/* -------------------------------------------------- Quotes */

.quote { border-left: 3px solid var(--signal); padding-left: 20px; margin: 0 0 26px; max-width: 74ch; }
.quote p { font-family: Georgia, "Times New Roman", serif; font-size: 17.5px; line-height: 1.55; margin: 0 0 11px; }
.quote cite { font-size: 12px; font-style: normal; font-weight: 700; color: var(--muted); display: block; }

/* -------------------------------------------------- Layout helpers */

.split { display: grid; grid-template-columns: 1fr 2fr; gap: 46px; align-items: start; }
.split__label { position: sticky; top: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 16px; } .split__label { position: static; } }

.cols2 { columns: 2; column-gap: 42px; }
@media (max-width: 720px) { .cols2 { columns: 1; } }
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li { padding: 7px 0; border-bottom: 1px solid var(--fine-rule); font-size: 15px; break-inside: avoid; display: flex; align-items: baseline; gap: 9px; }

/* -------------------------------------------------- Slide-in enquiry panel
   Reproduces the insights.medianama.com dialog: fixed backdrop, panel pinned
   to the trailing edge at min(760px,100%), full height, 5px accent rule on
   its leading edge; on mobile it anchors to the top with a top rule. */

.dialog-backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: none; justify-content: flex-end;
  background: rgba(0, 0, 0, 0.62);
}
.dialog-backdrop:target { display: flex; }
.dialog-panel {
  width: min(760px, 100%); height: 100%; overflow-y: auto;
  padding: 28px; border-left: 5px solid var(--signal); background: var(--paper);
  animation: panelIn .22s ease-out;
}
@keyframes panelIn { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--rule); padding: 0 0 14px; margin-bottom: 20px; background: var(--paper); }
.dialog-close { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label, .full-width { display: block; }
.form-grid .full-width { grid-column: 1 / -1; }
.flabel { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.finput {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 0;
  font-family: Arial, Helvetica, sans-serif; font-size: 15px; background: var(--paper); color: var(--ink);
}
.finput:focus { outline: 2px solid var(--signal); outline-offset: 1px; }
textarea.finput { min-height: 104px; resize: vertical; }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .dialog-panel { border-left: 0; border-top: 5px solid var(--signal); padding: 22px 16px; }
  .dialog-backdrop:target { align-items: flex-start; }
}

/* -------------------------------------------------- Footer */

.foot { border-top: 3px solid var(--rule); padding: 32px 0 44px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 11px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; font-size: 14px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--signal-text); text-decoration: underline; }
.foot__note { margin-top: 28px; padding-top: 15px; border-top: 1px solid var(--fine-rule); font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

.sandbox { background: var(--night); color: #f0eded; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; padding: 7px 12px; }
.sandbox a { color: #bfe0fb; }

@media print {
  .sandbox, .nav, .subnav, .btn-row, .dialog-backdrop { display: none; }
  body { font-size: 11pt; }
  .dark { background: #fff; color: #000; }
  .dark h2, .dark h3, .dark .topics__k { color: #000; }
  .dark .topics__v { color: #333; }
  .figure__n { color: #000; }
}

/* -------------------------------------------------- WordPress integration */

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 100; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 12px; background: #fff; color: #000; border: 2px solid #000; }
.site-main { min-height: 55vh; }
.masthead__inner .menu, .subnav__inner .menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.masthead__inner .menu-item a { color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.masthead__inner .current-menu-item > a, .masthead__inner .current-menu-ancestor > a, .masthead__inner .menu-item a:hover { border-bottom-color: var(--signal); color: var(--signal-text); }
.subnav__inner .menu { gap: 22px; }
.subnav__inner .menu-item a { color: var(--muted); text-decoration: none; }
.subnav__inner .current-menu-item > a, .subnav__inner .menu-item a:hover { color: var(--signal-text); }
.menu-toggle { display: none; padding: 7px 10px; border: 1px solid var(--rule); background: #fff; font: 700 11px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 22px; }
.section-head h2 { font-size: 29px; }
.hero__copy { max-width: 720px; }
.hero__copy h1 { max-width: 18ch; }
.profile-photo { width: min(100%, 300px); height: auto; display: block; border: 1px solid var(--rule); }
.entry-header { padding: 30px 0 22px; border-bottom: 1px solid var(--rule); }
.entry-header h1 { font-size: 31px; max-width: 28ch; margin: 0 0 10px; }
.entry-content { padding: 32px 0 52px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.65; max-width: 72ch; }
.entry-content h2, .entry-content h3 { margin: 1.5em 0 .65em; }
.entry-content h2 { font-size: 27px; }
.entry-content h3 { font-size: 23px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content iframe { max-width: 100%; }
.entry-content li { margin-bottom: .55em; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.entry-content .wp-block-button__link { display: inline-flex; padding: 11px 17px; border: 1px solid var(--signal-text); background: var(--signal-text); color: #fff; text-decoration: none; border-radius: 0 !important; font-family: Arial, sans-serif; font-size: 12px !important; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.entry-content blockquote { margin: 28px 0; padding: 0 0 0 20px; border-left: 3px solid var(--signal); }
.archive-intro { max-width: 68ch; }
.archive-intro p { margin: 10px 0 0; }
.pagination { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 10px; border: 1px solid var(--fine-rule); text-decoration: none; }
.pagination .current { border-color: var(--rule); background: var(--ink); color: #fff; }
.empty-state { padding: 32px 0; border-top: 1px solid var(--rule); }
.speaker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.speaker-grid .quote { margin: 0; }
.speaker-grid .quote p { font-size: 16px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 48px; align-items: start; }
.fact-list { border-top: 1px solid var(--rule); }
.fact-list div { padding: 12px 0; border-bottom: 1px solid var(--fine-rule); }
.fact-list dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fact-list dd { margin: 3px 0 0; font-family: Georgia, serif; }
.contact-band { border-top: 3px solid var(--rule); background: var(--paper-warm); padding: 38px 0; }
.contact-band__grid { display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.contact-band h2 { margin-bottom: 8px; }
.form-frame { width: 100%; min-height: 1200px; border: 0; }
.dialog-panel .form-frame { min-height: 2400px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--rule); }
.post-nav a { display: block; color: var(--ink); font-family: Georgia, serif; text-decoration: none; }
.post-nav a:hover { color: var(--signal-text); }
.post-nav .next { text-align: right; }

@media (max-width: 720px) {
  :root { --shell: min(100% - 32px, 1080px); --shell-wide: min(100% - 32px, 1280px); }
  .masthead__inner { gap: 12px; align-items: center; }
  .menu-toggle { display: inline-flex; }
  .primary-menu-wrap { display: none; width: 100%; }
  .primary-menu-wrap.is-open { display: block; }
  .masthead__inner .menu { display: grid; gap: 0; border-top: 1px solid var(--fine-rule); }
  .masthead__inner .menu-item a { display: block; padding: 10px 0; border-bottom: 1px solid var(--fine-rule); }
  .subnav__inner { flex-wrap: wrap; gap: 7px 16px; }
  .subnav__inner .menu { flex-wrap: wrap; gap: 7px 16px; }
  .proof__cell:nth-last-child(1) { grid-column: 1 / -1; }
  .speaker-grid, .about-grid { grid-template-columns: 1fr; }
  .contact-band__grid { display: block; }
  .contact-band .btn-row { margin-top: 18px; }
  .entry-header h1 { font-size: 26px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}
