/* Tusolite.
   The app should be close to invisible: one hairline bar, a centred column,
   and space. No boxes around the reading list — separation comes from rhythm,
   not from borders. Styled by element selectors; the markup carries no classes. */

:root {
  --paper: #faf8f2;
  --raised: #fffefb;
  --hair: #e7e1d4;          /* the only line weight used anywhere */
  --ink: #23221f;
  --ink-soft: #6e6a60;
  --ink-faint: #9a958a;
  --accent: #4f7a5e;        /* sage */
  --accent-wash: #edf2ee;
  --serif: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* One rhythm value drives the vertical spacing everywhere. */
  --gap: 1.6rem;
  --column: 36rem;
}

/* Dark follows the system until the viewer flips the switch in the bar, at
   which point data-theme on <html> decides. Applied server-side from a cookie,
   so the page arrives in the right colours with no flash. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --paper: #15171a;
  --raised: #1b1e22;
  --hair: #2a2f35;
  --ink: #e7e4dc;
  --ink-soft: #9b968d;
  --ink-faint: #6f6a62;
  --accent: #8fc3a1;
  --accent-wash: #1f2a24;
  }
}
:root[data-theme="dark"] {
  --paper: #15171a;
  --raised: #1b1e22;
  --hair: #2a2f35;
  --ink: #e7e4dc;
  --ink-soft: #9b968d;
  --ink-faint: #6f6a62;
  --accent: #8fc3a1;
  --accent-wash: #1f2a24;
}

* { box-sizing: border-box; }

/* Only the post is worth selecting. Dragging across the bar, a label or a
   button should not produce a selection — and must not trip the quote tooltip. */
body > header,
nav,
label,
button,
summary,
small,
figcaption,
h2[data-tier],
[role="status"],
[role="alert"] {
  -webkit-user-select: none;
  user-select: none;
}
article[data-post],
article[data-post] *,
blockquote,
blockquote * {
  -webkit-user-select: text;
  user-select: text;
}

html {
  -webkit-text-size-adjust: 100%;
  /* A phone zooms out to fit anything wider than the viewport; nothing here
     is allowed to be. Pinch-zoom is deliberately left working. */
  overflow-x: hidden;
}
img, svg, video, table, pre { max-width: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* --- the top bar --------------------------------------------------------
   Full width, sticky, one line, always. Vertical space is the scarcest thing
   on the page, so the bar spends as little of it as it can: a hairline, the
   mark, and the three places you can go. */

body > header[data-bar] {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 2.75rem;
  max-width: none;
  margin: 0;
  /* Content lines up with the column below, but the rule spans the window. */
  padding: 0 max(1.25rem, calc((100% - var(--column)) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}

body > header[data-bar] > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  color: var(--accent);
  text-decoration: none;
  line-height: 1;
}
body > header[data-bar] > a b {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
body > header[data-bar] > a svg { display: block; }

body > header[data-bar] nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  margin: 0 0 0 auto;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1;
}
body > header[data-bar] nav a { color: var(--ink-soft); text-decoration: none; }
body > header[data-bar] nav a:hover { color: var(--accent); }
body > header[data-bar] nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
body > header[data-bar] nav form { display: flex; margin: 0; }
body > header[data-bar] nav button {
  background: none; border: 0; padding: 0; margin: 0;
  min-height: 0; border-radius: 0; text-decoration: none;
  font: inherit; color: var(--ink-faint); cursor: pointer;
}
body > header[data-bar] nav button:hover { color: var(--accent); filter: none; }
body > header[data-bar] nav button svg { display: block; }
body > header[data-bar] nav form button[aria-label] { color: var(--ink-soft); }

/* On a narrow screen the wordmark goes and the mark alone carries the brand,
   so the bar never wraps to a second line. */
@media (max-width: 26rem) {
  body > header[data-bar] { gap: 0.75rem; padding: 0 1rem; }
  body > header[data-bar] > a b { display: none; }
  body > header[data-bar] nav { gap: 0.85rem; }
}

/* --- the marketing page keeps its centred masthead ----------------------- */

body > header:not([data-bar]) {
  display: block;
  text-align: center;
  border-bottom: 0;
  max-width: var(--column);
  /* Without these the max-width pins the masthead to the left edge. */
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 1.25rem 1rem;
}
body > header:not([data-bar]) h1 {
  font-size: clamp(2.5rem, 11vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
body > header:not([data-bar]) h1 a { color: inherit; text-decoration: none; }
body > header:not([data-bar]) strong { font-weight: 400; font-size: 1.1875rem; color: var(--ink-soft); }
body > header:not([data-bar]) small {
  font-family: var(--sans); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint);
}
body > header p { margin: 0.3rem 0; }

/* --- column ------------------------------------------------------------- */

main {
  max-width: var(--column);
  margin: 0 auto;
  padding: var(--gap) 1.25rem calc(var(--gap) * 3);
}

h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
h3 { font-size: 1.1875rem; line-height: 1.35; font-weight: 600; margin: 0 0 0.25rem; }
h4 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.15rem; }

p, ul { margin: 0 0 0.9rem; }
ul { padding-left: 1.15rem; }
li { margin-bottom: 0.3rem; }

a { color: var(--accent); text-underline-offset: 0.18em; }

samp { font-family: var(--sans); background: var(--accent-wash); padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.9em; }

main > section { margin: 0 0 calc(var(--gap) * 1.75); }
main > section:last-of-type { margin-bottom: 0; }

/* --- priority tiers: a quiet label, not a heading that shouts ------------ */

main > h2[data-tier], main h3[data-tier] {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin: calc(var(--gap) * 1.75) 0 0.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--hair);
}
main > h2[data-tier]:first-child, main h3[data-tier]:first-of-type { margin-top: 0; }
main > h2[data-tier="high"], main h3[data-tier="high"] { color: var(--accent); }

/* --- reading list: no boxes, just rhythm -------------------------------- */

article {
  padding: var(--gap) 0;
  border-bottom: 1px solid var(--hair);
}
article:last-of-type { border-bottom: 0; }
article h3 a { color: var(--ink); text-decoration: none; }
article h3 a:hover { color: var(--accent); text-decoration: underline; }
article p { margin: 0.3rem 0 0; }
article p:first-of-type { margin-top: 0.1rem; }
article small { font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-faint); }

/* the reading view itself gets a little more room and a touch of surface */
main > article {
  border-bottom: 1px solid var(--hair);
  padding-bottom: calc(var(--gap) * 1.5);
}
main > article h2 { font-size: 1.875rem; margin-bottom: 0.35rem; }
main > article > p { font-size: 1.1875rem; line-height: 1.78; }

aside {
  background: var(--accent-wash);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin: 1.1rem 0;
}
aside p { margin: 0; font-family: var(--sans); font-size: 0.9375rem; }

/* --- source rows -------------------------------------------------------- */

section article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 0;
}
section article h4 {
  flex: 1 1 12rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
section article > p { flex: 1 1 100%; margin: 0; order: 3; }
section article form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
section article form label {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Stored site icons. Square, aligned to the text, never stretched. */
img[data-favicon] {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  vertical-align: -2px;
  flex: none;
}

/* --- forms: centred, roomy, obvious ------------------------------------- */

form p { margin: 0 0 1rem; }
label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
label small { color: var(--ink-faint); font-weight: 400; }

input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 10px;
}
textarea { resize: vertical; line-height: 1.6; }
input::placeholder { color: var(--ink-faint); }

input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

form small { display: block; margin-top: 0.35rem; font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-faint); }

button {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--raised);
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  min-height: 2.75rem;      /* comfortable thumb target */
  cursor: pointer;
}
button:hover { filter: brightness(1.07); }

/* secondary buttons inside rows read as links, not as calls to action */
section article form button,
figcaption button,
main > form button {
  background: none;
  color: var(--accent);
  padding: 0.2rem 0;
  min-height: 0;
  font-size: 0.8125rem;
  text-decoration: underline;
  border-radius: 0;
}
section article form button:hover,
figcaption button:hover,
main > form button:hover { filter: none; color: var(--ink); }
section article select { width: auto; padding: 0.4rem 0.6rem; font-size: 0.875rem; border-radius: 8px; }

[role="alert"], [role="status"] {
  background: var(--accent-wash);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  margin: 0 0 var(--gap);
  font-family: var(--sans);
  font-size: 0.9375rem;
}

/* --- quotes ------------------------------------------------------------- */

figure {
  margin: 0 0 var(--gap);
  padding: 1.1rem 1.25rem;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
blockquote { margin: 0; font-size: 1.1875rem; line-height: 1.6; }
blockquote p { margin: 0; }
figcaption { margin-top: 0.7rem; font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-faint); }
figcaption p { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1rem; color: var(--ink); font-style: italic; }
figcaption form { display: inline; margin-left: 0.6rem; }

main h2 a small {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* --- footer ------------------------------------------------------------- */

body > footer {
  max-width: var(--column);
  margin: calc(var(--gap) * 2) auto 0;
  padding: 1.25rem 1.25rem calc(var(--gap) * 2);
  border-top: 1px solid var(--hair);
  text-align: center;
}
body > footer small { font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-faint); }

@media (min-width: 48rem) {
  :root { --column: 38rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color 140ms ease, filter 140ms ease; }
}

/* --- highlight tooltip ---------------------------------------------------
   Select text inside a post and this appears next to it. It is created by
   script; with JavaScript off nothing is shown and nothing is broken. */

#keep {
  position: absolute;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  color: var(--raised);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  min-height: 0;
  cursor: pointer;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.18);
  /* Sits above the selection and points at it. */
  transform: translate(-50%, -100%);
}
#keep[data-show] { display: inline-flex; }
#keep:hover { background: var(--accent); filter: none; }
#keep[data-saved] { background: var(--accent); }
#keep::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  color: var(--ink);
}
#keep[data-saved]::after { color: var(--accent); }
#keep:hover::after { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  #keep { transition: background-color 120ms ease; }
}

/* --- in-page navigation (Back, Export) -------------------------------- */

main nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  align-items: baseline;
  margin: var(--gap) 0 0;
  font-family: var(--sans);
  font-size: 0.875rem;
}
main nav a { color: var(--ink-soft); text-decoration: none; }
main nav a:hover { color: var(--accent); text-decoration: underline; }

/* --- the post body -------------------------------------------------------
   Feed HTML, already sanitised to an allowlist. These rules give it the same
   rhythm as the rest of the page: real paragraphs, real images, real lists. */

article[data-post] > h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
article[data-post] { border-bottom: 0; padding-bottom: 0; }

article[data-post] p,
article[data-post] ul,
article[data-post] ol,
article[data-post] dl {
  font-size: 1.125rem;
  line-height: 1.75;
  margin: 0 0 1.15em;
  max-width: none;
}

/* Headings inside the feed's own HTML. They must sit clearly below the post
   title, which is the h1 — before this they rendered at nearly its size. */
article[data-post] h2,
article[data-post] h3,
article[data-post] h4,
article[data-post] h5,
article[data-post] h6 {
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 600;
  margin: 1.9rem 0 0.45rem;
}
article[data-post] h2 { font-size: 1.3125rem; }
article[data-post] h3 { font-size: 1.1875rem; }
article[data-post] h4 { font-size: 1.0625rem; }
article[data-post] h5,
article[data-post] h6 {
  font-size: 0.9375rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

article[data-post] ul, article[data-post] ol { padding-left: 1.3rem; }
article[data-post] li { margin-bottom: 0.4rem; }
article[data-post] li > p { margin-bottom: 0.4rem; }

/* Images sit full column width and never overflow it. */
article[data-post] img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
  background: var(--raised);
}
article[data-post] figure { margin: 1.5rem 0; padding: 0; background: none; border: 0; border-radius: 0; }
article[data-post] figure img { margin: 0 auto; }
article[data-post] figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-style: normal;
}
article[data-post] figcaption p { font-size: inherit; font-style: normal; color: inherit; margin: 0; }

article[data-post] blockquote {
  margin: 1.5rem 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 3px solid var(--hair);
  color: var(--ink-soft);
  font-size: 1.125rem;
}
article[data-post] blockquote p:last-child { margin-bottom: 0; }

article[data-post] hr { border: 0; border-top: 1px solid var(--hair); margin: 2rem 0; }

article[data-post] a { color: var(--accent); }

article[data-post] code,
article[data-post] kbd,
article[data-post] samp {
  font-family: var(--sans);
  font-size: 0.9em;
  background: var(--accent-wash);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
article[data-post] pre {
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 1.4rem 0;
}
article[data-post] pre code { background: none; padding: 0; font-size: inherit; }

article[data-post] table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}
article[data-post] th, article[data-post] td {
  border-bottom: 1px solid var(--hair);
  padding: 0.5rem 0.6rem;
  text-align: left;
}

/* Selected text in a post is tinted so the tooltip has an obvious referent. */
article[data-post] ::selection { background: var(--accent-wash); }

/* The link out sits quietly under the body. */
article[data-post] + p { margin-top: 1.75rem; font-family: var(--sans); font-size: 0.9375rem; }

/* --- Saved: collection filter and inline editing -------------------------- */

main nav[aria-label="Collections"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 0 0 var(--gap);
  font-family: var(--sans);
  font-size: 0.8125rem;
}
main nav[aria-label="Collections"] a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
}
main nav[aria-label="Collections"] a:hover { color: var(--accent); border-color: var(--accent); }
main nav[aria-label="Collections"] a[aria-current="true"] {
  color: var(--raised);
  background: var(--accent);
  border-color: var(--accent);
}

figure details { margin-top: 0.6rem; }
figure details summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-faint);
  list-style: none;
}
figure details summary::-webkit-details-marker { display: none; }
figure details summary::before { content: "+ "; }
figure details[open] summary::before { content: "\2013 "; }
figure details summary:hover { color: var(--accent); }
figure details form { margin-top: 0.6rem; }
figure details form p { margin-bottom: 0.6rem; }
figure details form + form { margin-top: 0.2rem; }
figure details button[type="submit"] {
  background: var(--accent);
  color: var(--raised);
  padding: 0.4rem 1rem;
  min-height: 0;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8125rem;
}
figure details form + form button {
  background: none;
  color: var(--ink-faint);
  padding: 0;
  text-decoration: underline;
}
figure details form + form button:hover { color: var(--accent); }

main section h3 { margin: calc(var(--gap) * 1.25) 0 0.6rem; font-size: 1.0625rem; }
main section h3 a { text-decoration: none; }
main section h3 small {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
}
main h2 small {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* --- the account menu in the bar ---------------------------------------- */

body > header[data-bar] details { position: relative; }
body > header[data-bar] summary {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
  color: var(--ink-soft);
  min-width: 2.75rem;
  min-height: 2.75rem;
}
body > header[data-bar] summary::-webkit-details-marker { display: none; }
body > header[data-bar] summary:hover { color: var(--accent); }
body > header[data-bar] details[open] summary { color: var(--ink); }
body > header[data-bar] details ul {
  position: absolute;
  right: 0;
  top: calc(100% - 0.3rem);
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 10rem;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.12);
}
body > header[data-bar] details li { margin: 0; }
body > header[data-bar] details li a,
body > header[data-bar] details li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.875rem;
  background: none;
  border: 0;
  min-height: 0;
  text-decoration: none;
  cursor: pointer;
}
body > header[data-bar] details li a:hover,
body > header[data-bar] details li button:hover {
  background: var(--accent-wash);
  color: var(--accent);
}
body > header[data-bar] details form { display: block; margin: 0; }

/* --- saved quote highlights --------------------------------------------- */

article[data-post] mark {
  background: var(--accent-wash);
  color: inherit;
  padding: 0.08em 0.1em;
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--accent);
}
/* Briefly pick out the one you arrived from, then settle back. */
article[data-post] mark[data-found] {
  background: var(--accent);
  color: var(--raised);
}
@media (prefers-reduced-motion: no-preference) {
  article[data-post] mark { transition: background-color 600ms ease, color 600ms ease; }
}

/* --- account ------------------------------------------------------------ */

main section details summary { padding: 0.4rem 0; }
button[data-danger] {
  background: #a32f2f;
  color: #fff;
}
button[data-danger]:hover { background: #8d2626; filter: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) button[data-danger] { background: #c2554f; }
}
:root[data-theme="dark"] button[data-danger] { background: #c2554f; }

/* --- phones: real tap targets ------------------------------------------- */

@media (max-width: 40rem) {
  /* 44px is the smallest comfortable target; links in the bar were text-sized. */
  body > header[data-bar] { height: auto; padding: 0.25rem 1rem; }
  body > header[data-bar] nav { gap: 0.1rem; }
  body > header[data-bar] nav a,
  body > header[data-bar] nav button,
  body > header[data-bar] summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0 0.5rem;
  }
  main nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
  main nav[aria-label="Collections"] a { padding: 0.55rem 0.9rem; }
  figure details summary { min-height: 2.75rem; display: flex; align-items: center; }
}

/* Anything under 16px makes iOS zoom the page in when the field is focused. */
@media (max-width: 48rem) {
  input, select, textarea, section article select { font-size: 16px; }
}

/* --- paging -------------------------------------------------------------- */

main nav[aria-label="More posts"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: calc(var(--gap) * 1.5);
  padding-top: var(--gap);
  border-top: 1px solid var(--hair);
}
main nav[aria-label="More posts"] a[rel="next"] { margin-left: auto; }
main nav[aria-label="More posts"] a[rel="next"]::after { content: " \2192"; }
main nav[aria-label="More posts"] a[rel="prev"]::before { content: "\2190 "; }

small[data-window] {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: var(--gap);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--hair);
}

/* --- the masthead pronunciation line ------------------------------------- */

p[data-pron] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  justify-content: center;
  align-items: baseline;
  margin: 0.1rem 0 0.6rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  -webkit-user-select: text;
  user-select: text;
}
p[data-pron] span:first-child { letter-spacing: 0.06em; }
p[data-pron] span:last-child { font-style: normal; opacity: 0.85; }

/* --- legal pages --------------------------------------------------------- */

main nav[aria-label="Legal"],
body > footer nav[aria-label="Legal"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
}
main nav[aria-label="Legal"] { justify-content: flex-start; margin-top: calc(var(--gap) * 1.5); padding-top: var(--gap); border-top: 1px solid var(--hair); }

a[data-cta] {
  display: inline-block;
  background: var(--accent);
  color: var(--raised);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  min-height: 2.75rem;
  line-height: 1.3;
}
a[data-cta]:hover { filter: brightness(1.07); color: var(--raised); }
