/* The Library. Direction 3 of five, Phancao & Shaffer, LLP.
   Aesthetic family: print editorial. One serif (Newsreader, SIL OFL 1.1, self-hosted),
   paper ground, ink type, the logo's own gold used only as rules, markers and one filled button.
   Gold is never text on paper: it measures 1.53:1 against white. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/Newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/Newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/Newsreader-Italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/Newsreader-Italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f2ea;
  --paper-2: #ede6d6;
  --plate: #fffdf8;
  --ink: #1c1a17;
  --body: #2b2824;
  --muted: #5f5a52;
  --navy: #0d476c;
  --gold: #efd038;
  --rule: rgba(28, 26, 23, 0.16);
  --rule-strong: rgba(28, 26, 23, 0.55);
  --on-ink: #f6f2ea;
  --on-ink-muted: #d9d2c1;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --wrap: 1180px;
  --gutter: 32px;
  --masthead: 58px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

h1, h2, h3, h4 { font-weight: 500; color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.005em; }
h1 { font-size: 48px; font-variation-settings: "opsz" 72; }
h2 { font-size: 34px; font-variation-settings: "opsz" 60; }
h3 { font-size: 23px; font-variation-settings: "opsz" 36; }
h4 { font-size: 19px; font-variation-settings: "opsz" 24; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.measure { max-width: 66ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Masthead: a thin persistent bar that shrinks on scroll (Rule 2) ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule-strong);
}
.masthead__row {
  display: flex; align-items: center; gap: 28px;
  height: var(--masthead);
  transition: height 220ms ease;
}
.masthead.is-compact .masthead__row { height: 48px; }
.masthead__logo { display: block; line-height: 0; margin-right: auto; }
.masthead__logo img { width: auto; height: 26px; transition: height 220ms ease; }
.masthead.is-compact .masthead__logo img { height: 22px; }
.masthead__nav { display: flex; gap: 26px; }
.masthead__nav a {
  font-size: 15px; text-decoration: none; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.masthead__toggle { display: none; }
.masthead__phone { white-space: nowrap; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 11px 18px 12px; border-radius: 2px; text-decoration: none; border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button--gold { background: var(--gold); color: #000; border-color: color-mix(in srgb, var(--gold) 70%, #000 30%); }
.button--gold:hover { background: #f4dc5c; color: #000; }
.button--ink { background: var(--ink); color: var(--on-ink); }
.button--ink:hover { background: #000; color: #fff; }
.button--line { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.button--line:hover { border-color: var(--ink); }
.dark .button--line { color: var(--on-ink); border-color: rgba(246, 242, 234, 0.5); }
.dark .button--line:hover { border-color: var(--on-ink); }
.textlink { font-weight: 500; }

/* ---------- Rules and the ampersand (the domain motif, surface 1: dividers) ---------- */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--strong { border-top-color: var(--rule-strong); }
.rule--gold { border-top: 2px solid var(--gold); }
.rule--draw { transform-origin: left center; animation: draw 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .rule--draw { animation: none; } }

.divider {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  margin: 0 auto; max-width: var(--wrap); padding: 0 var(--gutter);
}
.divider::before, .divider::after { content: ""; border-top: 1px solid var(--rule-strong); }
.divider img { height: 22px; width: auto; }
.dark .divider::before, .dark .divider::after { border-top-color: rgba(246, 242, 234, 0.35); }

/* surface 2: list markers */
.amp-list { list-style: none; padding: 0; margin: 0; }
.amp-list li { position: relative; padding-left: 30px; margin: 0 0 0.55em; }
.amp-list li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 18px; height: 17px;
  background: url("assets/amp.svg") no-repeat center / contain;
}

/* surface 3: the opening ornament on featured quotations */
.pull { position: relative; margin: 0; padding: 0 0 0 56px; }
.pull::before {
  content: ""; position: absolute; left: 0; top: 0.1em; width: 40px; height: 38px;
  background: url("assets/amp.svg") no-repeat center / contain;
}
.pull p { font-size: 25px; line-height: 1.32; font-variation-settings: "opsz" 36; color: var(--ink); margin: 0 0 0.6em; }
.pull cite, .quote cite { font-style: normal; font-size: 15px; color: var(--muted); display: block; }
.pull cite::before, .quote cite::before { content: ""; display: inline-block; width: 18px; border-top: 1px solid var(--rule-strong); vertical-align: middle; margin-right: 8px; }
.dark .pull p, .dark h2, .dark h3, .dark h4 { color: var(--on-ink); }
.dark .pull cite, .dark .quote cite { color: var(--on-ink-muted); }
.dark .pull cite::before, .dark .quote cite::before { border-top-color: rgba(246, 242, 234, 0.5); }

.quote { margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--gold); }
.quote p { font-size: 19px; line-height: 1.45; color: var(--ink); }
.dark .quote p { color: var(--on-ink); }

/* ---------- Page furniture ---------- */
.dateline { font-size: 14px; color: var(--muted); letter-spacing: 0.02em; }
.dateline span + span::before { content: "\00b7"; margin: 0 10px; }
.deck { font-size: 22px; line-height: 1.4; color: var(--body); font-variation-settings: "opsz" 24; }
.small { font-size: 15px; color: var(--muted); }
.placeholder {
  display: inline-block; font-size: 14px; line-height: 1.35; color: #5a4a00;
  background: #fbf3c4; border: 1px dashed #a98f12; padding: 3px 8px; border-radius: 2px;
}
.dark .placeholder { background: #3a3315; color: #f1e6a6; border-color: #b8a13a; }
.meta { font-size: 14px; color: var(--muted); }
.dark .meta { color: var(--on-ink-muted); }
.views { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Layout blocks ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.dark { background: var(--ink); color: var(--on-ink); }
.dark a { color: var(--on-ink); }
.dark a:hover { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 32px; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
.start-8 { grid-column: 8 / span 5; }
.start-7 { grid-column: 7 / span 6; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero h1 { margin: 0 0 22px; max-width: 14ch; }
.hero .deck { max-width: 34ch; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-bottom: 30px; }
.hero__aside { padding: 4px 0 0 var(--gutter); border-left: 1px solid var(--rule); }
.portrait { border: 1px solid var(--rule-strong); padding: 5px; background: var(--plate); display: inline-block; }
.portrait img { display: block; }
.hero__portrait { width: 132px; margin-bottom: 18px; }
.hero__quote p { font-size: 20px; line-height: 1.4; color: var(--ink); }

/* Contents (table of contents) */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: grid; grid-template-columns: 26px minmax(0, 1.15fr) minmax(0, 1fr); align-items: baseline; gap: 16px;
  padding: 16px 0; text-decoration: none; color: var(--ink);
}
.toc a::before { content: ""; width: 18px; height: 17px; align-self: center; background: url("assets/amp.svg") no-repeat center / contain; }
.toc__title { font-size: 24px; font-variation-settings: "opsz" 36; }
.toc__desc { font-size: 16px; color: var(--muted); text-align: right; max-width: 40ch; }
.toc a:hover .toc__title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.12em; }

/* Listings: typographic rows, hairlines, no cards */
.listing { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.listing li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.listing li > a { color: var(--ink); text-decoration: none; font-size: 19px; line-height: 1.3; }
.listing li > a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.listing .meta { grid-column: 1; }
.listing .views { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; color: var(--muted); align-self: start; }
.dark .listing { border-top-color: rgba(246, 242, 234, 0.55); }
.dark .listing li { border-bottom-color: rgba(246, 242, 234, 0.18); }
.dark .listing li > a { color: var(--on-ink); }
.dark .listing .views { color: var(--on-ink-muted); }
.listing--compact li > a { font-size: 17px; }

/* Four typographic columns for the series */
.columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule-strong); }
.columns > div { padding: 22px 24px 26px 0; border-right: 1px solid var(--rule); }
.columns > div + div { padding-left: 24px; }
.columns > div:last-child { border-right: 0; padding-right: 0; }
.columns h3 { margin-bottom: 14px; }
.columns .amp-list li { font-size: 16.5px; line-height: 1.35; }
.columns .amp-list a { color: var(--ink); text-decoration: none; }
.columns .amp-list a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.columns .textlink { display: inline-block; margin-top: 12px; font-size: 15px; }

/* Plates (framed photographs) */
.plate { background: var(--plate); border: 1px solid var(--rule-strong); padding: 8px; }
.plate figcaption { font-size: 14px; color: var(--muted); padding: 10px 2px 2px; }
.plate--cover { width: 175px; }

/* Typographic book cover */
.book {
  background: var(--ink); color: var(--on-ink); padding: 26px 24px 22px; width: 220px; aspect-ratio: 2 / 3;
  display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(246, 242, 234, 0.25);
}
.book__title { font-size: 30px; line-height: 1.05; font-variation-settings: "opsz" 72; font-weight: 500; color: var(--on-ink); }
.book__rule { border-top: 2px solid var(--gold); width: 46px; margin: 14px 0; }
.book__by { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-muted); line-height: 1.5; }

/* People */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.people .portrait { display: block; margin-bottom: 14px; }
.people h3 { font-size: 21px; margin-bottom: 4px; }
.people p { font-size: 15.5px; line-height: 1.45; margin-bottom: 0.6em; }

/* The line (four stages) */
.line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding-top: 34px; }
.line::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 2px solid var(--gold); }
.line > div { position: relative; }
.line > div::before { content: ""; position: absolute; left: 0; top: -34px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--rule-strong); }
.line h3 { margin-bottom: 8px; }
.line p { font-size: 16.5px; line-height: 1.45; }
.line .lives { font-size: 15px; color: var(--muted); }
.line .recognise { color: var(--ink); }
.line .textlink { font-size: 16px; }

/* Newsletter volume index */
.volumes { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.volumes th, .volumes td { text-align: center; padding: 9px 4px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.volumes th { font-weight: 500; color: var(--muted); border-bottom-color: var(--rule-strong); }
.volumes td:first-child, .volumes th:first-child { text-align: left; font-size: 17px; color: var(--ink); font-weight: 500; padding-left: 0; }
.volumes a { display: inline-block; min-width: 30px; padding: 3px 0; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--gold); }
.volumes a:hover { background: var(--gold); color: #000; }
.volumes td.empty { color: var(--rule-strong); }

/* Questions */
.qa { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.qa li { padding: 20px 0 20px 30px; border-bottom: 1px solid var(--rule); position: relative; }
.qa li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 17px; background: url("assets/amp.svg") no-repeat center / contain; }
.qa .q { font-size: 21px; line-height: 1.3; color: var(--ink); font-variation-settings: "opsz" 28; margin: 0 0 8px; }
.qa .a { margin: 0 0 6px; }
.qa .a::before { content: "She answered: "; color: var(--muted); }
.qa .meta { margin: 0; }

/* Contact block */
.contact-phone { font-size: 44px; line-height: 1; font-variation-settings: "opsz" 72; font-weight: 500; text-decoration: none; color: var(--ink); display: inline-block; margin: 6px 0 14px; }
.contact-phone:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.1em; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); font-size: 17px; }
.offices strong { display: block; color: var(--ink); }

/* Colophon */
.colophon { border-top: 2px solid var(--gold); padding: 40px 0 36px; font-size: 15px; color: var(--muted); }
.colophon__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gutter); }
.colophon__firm { font-size: 20px; color: var(--ink); font-variation-settings: "opsz" 24; }
.colophon a { color: var(--ink); }
.colophon__legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13.5px; }

/* Article pages */
.article-head { padding: 56px 0 28px; }
.article-head h1 { max-width: 16ch; margin-bottom: 18px; }
.article-head .deck { max-width: 52ch; }
.article-head .dateline { margin-top: 18px; }
.prose p { max-width: 66ch; }
.prose h3 { margin: 32px 0 10px; }
.side { border-left: 1px solid var(--rule); padding-left: var(--gutter); }
.stack > * + * { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .columns { grid-template-columns: repeat(2, 1fr); }
  .columns > div { border-right: 0; padding-right: 0; }
  .columns > div:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 24px; }
  .columns > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .people, .line { grid-template-columns: repeat(2, 1fr); }
  .line > div:nth-child(n+3)::before { display: none; }
}
@media (max-width: 800px) {
  :root { --gutter: 20px; --masthead: 54px; }
  body { font-size: 17px; }
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  h3 { font-size: 21px; }
  .deck { font-size: 19px; }
  .section { padding: 48px 0; }
  .grid { row-gap: 26px; }
  .col-7, .col-6, .col-5, .col-4, .col-8, .start-8, .start-7 { grid-column: span 12; }
  .hero { padding: 36px 0 28px; }
  .hero__aside { border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--rule); }
  .masthead__row { gap: 14px; }
  .masthead__logo img { height: 22px; }
  .masthead__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule-strong);
    flex-direction: column; gap: 0; padding: 6px var(--gutter) 12px;
  }
  .masthead__nav.is-open { display: flex; }
  .masthead__nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .masthead__nav a:last-child { border-bottom: 0; }
  .masthead__toggle {
    display: inline-block; font-family: inherit; font-size: 15px; background: none; border: 1px solid var(--rule-strong);
    border-radius: 2px; padding: 8px 12px; color: var(--ink); cursor: pointer;
  }
  .masthead__phone { padding: 9px 12px 10px; font-size: 14px; }
  .toc a { grid-template-columns: 22px 1fr; }
  .toc__desc { grid-column: 2; text-align: left; max-width: none; }
  .toc__title { font-size: 21px; }
  .listing li { grid-template-columns: 1fr; }
  .listing .views { grid-column: 1; grid-row: auto; }
  .columns { grid-template-columns: 1fr; }
  .columns > div { border-right: 0 !important; padding-right: 0 !important; padding-left: 0 !important; }
  .columns > div + div { border-top: 1px solid var(--rule); }
  .people, .line, .offices, .colophon__grid { grid-template-columns: 1fr; }
  .line { padding-top: 0; padding-left: 26px; }
  .line::before { left: 6px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px solid var(--gold); }
  .line > div::before { display: block !important; left: -26px; top: 6px; }
  .pull { padding-left: 0; padding-top: 44px; }
  .pull::before { top: 0; }
  .pull p { font-size: 22px; }
  .contact-phone { font-size: 34px; }
  .side { border-left: 0; padding-left: 0; }
  .book { width: 190px; }
}
