/* Broadsheet halftone. Paper ground, ink panel, press-blue accent.
   Fraunces for display, Public Sans for reading. No motion on scroll. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f4f4f1;
  --paper-2: #ebebe6;
  --paper-3: #e1e1da;
  --ink: #16181d;
  --ink-2: #22252c;
  --ink-3: #2c3038;
  --rule: #c7c7c0;
  --rule-ink: #3b3f48;
  --text: #1d1f24;
  --muted: #5b5f68;
  --muted-ink: #b3b7c0;
  --press: #1e4bd8;
  --press-deep: #173aa8;
  --press-light: #b9c9ff;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 42rem;
  --wrap: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--press-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--press); outline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-variation-settings: "opsz" 72, "SOFT" 20; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-variation-settings: "opsz" 36, "SOFT" 10; }
p { margin: 0 0 1.25em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- masthead: nameplate over a double rule, like a front page */
.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 1.4rem 0 1rem; }
.nameplate { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.nameplate img { width: 44px; height: 44px; flex: none; }
.nameplate strong {
  display: block; font-family: var(--display); font-weight: 600; font-size: 1.55rem;
  line-height: 1; letter-spacing: -0.02em; font-variation-settings: "opsz" 72, "SOFT" 40;
}
.nameplate small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.menu-btn {
  display: none; font: inherit; font-weight: 600; background: none; border: 1px solid var(--ink);
  color: var(--ink); padding: .5rem .9rem; cursor: pointer;
}
nav.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
nav.primary a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 2px solid transparent; padding-bottom: .15rem; }
nav.primary a:hover, nav.primary a[aria-current="page"] { border-bottom-color: var(--press); }
.rule-double { height: 5px; border-top: 1px solid var(--ink); border-bottom: 3px solid var(--ink); }

@media (max-width: 52rem) {
  .masthead .wrap { flex-wrap: wrap; align-items: center; gap: 1rem; }
  .nameplate strong { font-size: 1.3rem; }
  .nameplate img { width: 36px; height: 36px; }
  html.js .menu-btn { display: inline-block; }
  html.js nav.primary { display: none; width: 100%; }
  html.js nav.primary.open { display: block; }
  html.js nav.primary ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); margin-top: 1rem; }
  html.js nav.primary li { border-bottom: 1px solid var(--rule); }
  html.js nav.primary a { display: block; padding: .8rem 0; border-bottom: 0; }
  nav.primary ul { flex-wrap: wrap; gap: 1rem; }
}

/* ---------- ink bands */
.band { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.band a { color: var(--press-light); }
.band a:hover { color: #fff; }
.band .screen {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("/assets/img/screen-hero.webp");
  background-repeat: no-repeat; background-position: right bottom; background-size: 62% auto;
  opacity: .16;
}
.eyebrow { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-ink); margin-bottom: 1rem; font-weight: 500; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: #fff; text-decoration: underline; }
.crumbs { font-size: .85rem; color: var(--muted-ink); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted-ink); }
.crumbs span { margin: 0 .5rem; opacity: .6; }
.dek { font-family: var(--display); font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.4; font-weight: 300; font-variation-settings: "opsz" 20, "SOFT" 60; max-width: 34rem; margin: 1.4rem 0 0; color: #e6e7ea; }

/* front page hero */
.front { padding-top: 3.5rem; }
.front .grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: end; position: relative; }
.front .copy { padding-bottom: 3.5rem; }
.front .actions { margin-top: 2rem; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.front .actions a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--press-light); padding-bottom: .15rem; }
.front .actions a:hover { border-bottom-color: #fff; }
.front figure { margin: 0; align-self: end; }
.front figure img { width: 100%; max-height: 42rem; object-fit: cover; object-position: top; border: 1px solid var(--rule-ink); }
.front .frame { position: relative; padding: 0 0 0 1.25rem; }
.front .frame::before { content: ""; position: absolute; left: 0; top: 2.5rem; bottom: 2.5rem; width: 1px; background: var(--rule-ink); }

/* section page hero with bottom-aligned portrait */
.hero { padding-top: 3rem; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 2.5rem; align-items: end; position: relative; }
.hero .copy { padding-bottom: 3.5rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 22ch; }
.hero .portrait { margin: 0; align-self: end; display: flex; justify-content: flex-end; }
.hero .portrait img { width: 100%; max-width: 18rem; max-height: 26rem; object-fit: contain; object-position: bottom; }
.hero .portrait.photo img { border: 1px solid var(--rule-ink); max-height: 24rem; object-fit: cover; object-position: top; margin-bottom: 2.5rem; }

@media (max-width: 56rem) {
  .front .grid, .hero .grid { grid-template-columns: 1fr; gap: 1rem; }
  .front .copy, .hero .copy { padding-bottom: 2rem; }
  .front figure img { max-height: 28rem; }
  .front .frame { padding-left: 0; }
  .front .frame::before { display: none; }
  .hero .portrait { justify-content: center; }
  .hero .portrait img { max-width: 15rem; max-height: 20rem; }
  .hero .portrait.photo img { margin-bottom: 1.5rem; }
}

/* ---------- register sections: narrow left heading, wide right content */
.register { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 3rem; padding: 4rem 0; border-top: 1px solid var(--rule); }
.register:first-child { border-top: 0; }
.register .head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.register .head p { color: var(--muted); font-size: .95rem; margin: .8rem 0 0; }
.register .body { max-width: 44rem; }
@media (max-width: 52rem) { .register { grid-template-columns: 1fr; gap: 1.2rem; padding: 2.6rem 0; } }

/* lead story */
.lead-story { padding: 3.5rem 0 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 3rem; align-items: start; border-bottom: 1px solid var(--rule); }
.lead-story .label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--press-deep); font-weight: 600; margin-bottom: 1rem; }
.lead-story h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 30; }
.lead-story h2 a { color: var(--ink); text-decoration: none; }
.lead-story h2 a:hover { color: var(--press-deep); }
.lead-story .summary { font-size: 1.15rem; margin: 1.2rem 0 1.4rem; max-width: 40rem; }
.lead-story figure { margin: 0; }
.lead-story figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 1px solid var(--rule); }
@media (max-width: 52rem) { .lead-story { grid-template-columns: 1fr; } }

/* feed rows with column rules */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.8rem; padding: 1.8rem 0; border-top: 1px solid var(--rule); align-items: start; }
.feed li:first-child { border-top: 0; }
.feed .thumb { width: 9rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 1px solid var(--rule); background: var(--paper-2); }
.feed .kind { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .4rem; }
.feed .kind a { color: inherit; text-decoration: none; }
.feed h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.feed h3 a { color: var(--ink); text-decoration: none; }
.feed h3 a:hover { color: var(--press-deep); }
.feed p { margin: .6rem 0 0; color: var(--text); max-width: 40rem; }
@media (max-width: 40rem) { .feed li { grid-template-columns: 6rem 1fr; gap: 1rem; } .feed .thumb { width: 6rem; } }

/* brief list (definition style) */
.brief { margin: 0; display: grid; grid-template-columns: 9rem 1fr; row-gap: .9rem; column-gap: 1.5rem; }
.brief dt { font-weight: 600; color: var(--muted); font-size: .9rem; padding-top: .15rem; }
.brief dd { margin: 0; }
@media (max-width: 40rem) { .brief { grid-template-columns: 1fr; row-gap: .3rem; } .brief dd { margin-bottom: .8rem; } }

/* sections list */
.sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.sections li { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.sections h3 a { color: var(--ink); text-decoration: none; }
.sections h3 a:hover { color: var(--press-deep); }
.sections p { margin: .5rem 0 0; color: var(--muted); }

/* ---------- article */
.article { padding: 3.5rem 0 3rem; }
.article .reading { max-width: var(--measure); margin-inline: auto; }
.article .reading > figure { margin: 0 0 2.5rem; }
.article .reading > figure img { width: 100%; border: 1px solid var(--rule); }
.article .reading figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.article h2 { margin: 2.4rem 0 .9rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article h3 { margin: 2rem 0 .7rem; font-size: 1.2rem; font-family: var(--body); font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.article p.lede { font-family: var(--display); font-size: 1.35rem; line-height: 1.45; font-weight: 300; font-variation-settings: "opsz" 20, "SOFT" 60; color: var(--ink); }
.article p.pull { font-family: var(--display); font-size: 1.6rem; line-height: 1.3; font-weight: 500; border-left: 3px solid var(--press); padding: .3rem 0 .3rem 1.2rem; margin: 1.8rem 0; }
.article ul { padding-left: 1.3rem; }
.article li { margin-bottom: .4rem; }
.video { margin: 2.5rem 0; }
.video .frame { aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--rule); }
.video iframe { width: 100%; height: 100%; border: 0; }
.source { margin-top: 2.5rem; border-top: 1px solid var(--ink); padding-top: 1rem; font-size: .95rem; }
.source h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--body); font-weight: 700; margin: 0 0 .6rem; }
.source ul { list-style: none; padding: 0; margin: 0 0 .6rem; }
.source p { color: var(--muted); margin: 0; }

/* ---------- FAQ */
.faq { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
.faq h2 { margin-bottom: 1.5rem; }
.faq .qa { border-top: 1px solid var(--rule); padding: 1.4rem 0; }
.faq .qa:last-child { border-bottom: 1px solid var(--rule); }
.faq h3 { font-size: 1.15rem; margin-bottom: .5rem; font-family: var(--body); font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.faq p { margin: 0; max-width: var(--measure); }
.faq .wrap.narrow { max-width: var(--measure); }

/* related */
.related { padding: 3rem 0; border-top: 1px solid var(--rule); }
.related h2 { font-size: 1.4rem; margin-bottom: 1rem; }

/* ---------- closer */
.closer { padding: 4rem 0; }
.closer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.closer h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 26ch; }
.closer p { margin: .8rem 0 0; color: var(--muted-ink); max-width: 36rem; }
.closer .btn { display: inline-block; background: var(--paper); color: var(--ink); text-decoration: none; padding: .9rem 1.4rem; font-weight: 600; }
.closer .btn:hover { background: #fff; }
@media (max-width: 40rem) { .closer .wrap { grid-template-columns: 1fr; } }

/* ---------- footer */
footer.site { border-top: 1px solid var(--ink); padding: 2.5rem 0 3rem; font-size: .92rem; }
footer.site .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
footer.site h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--body); font-weight: 700; margin-bottom: .8rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: .45rem; }
footer.site p { color: var(--muted); }
footer.site .nameplate strong { font-size: 1.3rem; }
@media (max-width: 40rem) { footer.site .wrap { grid-template-columns: 1fr; } }

/* ---------- contact form */
.form { max-width: 34rem; }
.form label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.form input, .form textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid var(--rule); background: #fff; color: var(--text); margin-bottom: 1.1rem; }
.form input:focus, .form textarea:focus { border-color: var(--press); outline: none; box-shadow: 0 0 0 2px rgba(30, 75, 216, .2); }
.form textarea { min-height: 9rem; resize: vertical; }
.form button { font: inherit; font-weight: 600; background: var(--ink); color: var(--paper); border: 0; padding: .9rem 1.4rem; cursor: pointer; }
.form button:hover { background: var(--ink-3); }
.form .hp { position: absolute; left: -9999px; }
.form .status { margin-top: 1rem; min-height: 1.5rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 3rem; padding: 3.5rem 0; }
.contact-grid aside p { color: var(--muted); }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 404 */
.notfound { padding: 5rem 0; text-align: center; }
.notfound h1 { font-size: 2.5rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
