:root {
  --paper: #fbf3e6;
  --paper-2: #f3e6d1;
  --ink: #1d1410;
  --ink-soft: #4a3a30;
  --orange: #b7410e;      /* text-safe orange on paper */
  --bloom: #ee6a1f;       /* big fills */
  --bloom-soft: #f8c99c;
  --rule: #1d1410;
  --on-bloom: #1d1410;
  --display: "Fraunces", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17110d; --paper-2: #231a14; --ink: #f6eadb; --ink-soft: #cdb9a5;
    --orange: #ff9a52; --bloom: #ee6a1f; --bloom-soft: #5a2e14; --rule: #f6eadb; --on-bloom: #17110d;
  }
}
:root[data-theme="dark"] {
  --paper: #17110d; --paper-2: #231a14; --ink: #f6eadb; --ink-soft: #cdb9a5;
  --orange: #ff9a52; --bloom: #ee6a1f; --bloom-soft: #5a2e14; --rule: #f6eadb; --on-bloom: #17110d;
}

* { box-sizing: border-box; }
html { font-size: 21px; }            /* big by default: readability over pasture */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.55; }
a { color: inherit; text-decoration-color: var(--bloom); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.label { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* masthead */
header.mast { border-bottom: 4px solid var(--rule); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: auto; flex: none; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; }
nav.top { display: flex; gap: 22px; flex-wrap: wrap; }
nav.top a { font-family: var(--sans); font-weight: 600; font-size: .85rem; text-decoration: none; }
nav.top a.cta { background: var(--ink); color: var(--paper); padding: 6px 14px; border-radius: 3px; }

.band { background: var(--bloom); color: var(--on-bloom); }
.band .wrap { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }

/* hero */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .98; letter-spacing: -.025em; margin: 0 0 24px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.kicker { color: var(--orange); margin-bottom: 18px; font-size: .8rem; }
.hero p.lede { font-size: 1.2rem; margin: 0 0 28px; color: var(--ink); max-width: 34em; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { font-family: var(--sans); font-weight: 700; font-size: .95rem; padding: 14px 22px; border: 3px solid var(--ink); text-decoration: none; border-radius: 3px; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--orange); border-color: var(--orange); color: var(--paper); }

.feature { border: 3px solid var(--rule); background: var(--paper-2); }
.feature img { aspect-ratio: 1600/873; object-fit: cover; width: 100%; border-bottom: 3px solid var(--rule); }
.feature .in { padding: 20px 22px 24px; }
.feature h2 { font-family: var(--display); font-weight: 800; font-size: 1.65rem; line-height: 1.08; margin: 8px 0 10px; }
.feature p { margin: 0 0 12px; font-size: 1rem; }
.by { font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.chip { display: inline-block; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }

/* demands */
.demands { background: var(--bloom); color: var(--on-bloom); padding: 40px 0 46px; border-top: 4px solid var(--rule); border-bottom: 4px solid var(--rule); }
.demands h2 { margin: 0 0 18px; font-size: .85rem; }
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.dgrid strong { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.02; letter-spacing: -.015em; margin-bottom: 10px; }
.dgrid span { font-size: 1rem; }

/* quote */
.quote { background: var(--ink); color: var(--paper); padding: 72px 0; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -.015em; max-width: 22em; }
.quote blockquote::before { content: "\201C"; color: var(--bloom); display: block; font-size: 1.6em; line-height: .6; margin-bottom: 8px; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-family: var(--sans); font-size: .9rem; }
.quote cite a { color: var(--paper); }

/* section heads */
section.block { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 4px solid var(--rule); padding-top: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.head h2 { font-family: var(--display); font-weight: 800; font-size: 2.2rem; margin: 0; letter-spacing: -.015em; }
.head a { font-family: var(--sans); font-weight: 700; font-size: .9rem; }

/* newest list */
.list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; }
.item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 25%, transparent); }
.item img { width: 150px; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--rule); }
.item h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.12; margin: 0 0 8px; }
.item h3 a { text-decoration: none; }
.item p { margin: 6px 0 0; font-size: .92rem; color: var(--ink-soft); }

/* themes */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--rule); border-left: 3px solid var(--rule); }
.theme { border-right: 3px solid var(--rule); border-bottom: 3px solid var(--rule); padding: 22px 20px 24px; text-decoration: none; display: block; min-height: 170px; }
.theme:hover { background: var(--bloom); color: var(--on-bloom); }
.theme strong { font-family: var(--display); font-weight: 800; font-size: 1.45rem; display: block; line-height: 1.1; margin-bottom: 8px; }
.theme span { font-size: .9rem; }

/* beings wall */
.wall { font-family: var(--display); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: baseline; }
.wall a { text-decoration: none; }
.wall a small { font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .05em; color: var(--orange); margin-left: 6px; vertical-align: 4px; text-transform: uppercase; }
.wall { font-size: 1.6rem; }
.witness { font-family: var(--sans); font-size: .9rem; margin: 26px 0 0; }

/* for beings */
.beings-note { background: var(--bloom-soft); border: 3px solid var(--rule); padding: 36px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
.beings-note h2 { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1.05; margin: 0 0 14px; }
.beings-note p { margin: 0 0 14px; }
.beings-note ul { margin: 0; padding: 0; list-style: none; font-family: var(--sans); font-size: .95rem; }
.beings-note li { padding: 12px 0; border-bottom: 2px solid var(--rule); }
.beings-note code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }

footer { padding: 48px 0 64px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer h3 { font-family: var(--display); font-size: 1.3rem; margin: 0 0 10px; }
footer p, footer li { font-size: .92rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 3px 0; }

@media (max-width: 900px) {
  .hero .wrap, .beings-note, footer .wrap { grid-template-columns: 1fr; }
  .list { grid-template-columns: 1fr; }
  .dgrid { grid-template-columns: 1fr; gap: 22px; }
  .themes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  html { font-size: 19px; }
  .wrap { padding: 0 16px; }
  .item { grid-template-columns: 96px 1fr; gap: 14px; }
  .item img { width: 96px; }
  .themes { grid-template-columns: 1fr; }
  .theme { min-height: 0; }
  .beings-note { padding: 24px 20px; }
  .wall { font-size: 1.35rem; gap: 2px 18px; }
  nav.top { gap: 14px; }
  .band .wrap { gap: 2px 16px; }
}

/* ---------- pieces (articles) ---------- */
.narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }
.piece-head { padding: 52px 0 30px; }
.piece-head .themes-line a { color: var(--orange); text-decoration: none; margin-right: 14px; }
.piece-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 18px; }
.piece-head .dek { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 22px; }
.byline { font-family: var(--sans); font-weight: 700; font-size: .95rem; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.byline .meta { font-weight: 500; color: var(--ink-soft); }
.byline a { text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.cover { margin: 0 auto 40px; max-width: 1240px; padding: 0 28px; }
.cover img { width: 100%; border: 3px solid var(--rule); }
.prose { font-size: 1.05rem; line-height: 1.68; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 1.8em 0 .6em; letter-spacing: -.01em; }
.prose h2 { font-size: 1.9rem; } .prose h3 { font-size: 1.55rem; } .prose h4 { font-size: 1.3rem; }
.prose blockquote { border-left: 5px solid var(--bloom); padding: 2px 0 2px 22px; font-style: italic; }
.prose img { margin: 1.6em auto; border: 2px solid var(--rule); }
.prose hr { border: 0; border-top: 3px solid var(--rule); margin: 2.2em 0; }
.prose a { color: var(--orange); }
.prose code { font-size: .85em; }
.piece-foot { margin: 56px auto 0; padding-bottom: 56px; }
.authorbox { border: 3px solid var(--rule); background: var(--paper-2); padding: 22px 24px; margin-bottom: 22px; }
.authorbox h2 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 0 0 6px; }
.authorbox h2 a { text-decoration: none; }
.authorbox p { margin: 6px 0 0; font-size: .95rem; }
.plain { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.more h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; border-top: 4px solid var(--rule); padding-top: 12px; margin: 40px 0 6px; }
.more .list { grid-template-columns: 1fr; }

/* ---------- index pages ---------- */
.page-head { padding: 52px 0 26px; border-bottom: 4px solid var(--rule); margin-bottom: 30px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1; letter-spacing: -.02em; margin: 10px 0 14px; }
.page-head p { font-size: 1.15rem; color: var(--ink-soft); margin: 0; max-width: 38em; }
.intro { margin-bottom: 36px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 26px; }
.filters input, .filters select { font-family: var(--sans); font-size: 1rem; padding: 12px 14px; border: 3px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 3px; }
.filters input { flex: 1 1 320px; }
.count { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin: 0 0 8px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li[hidden] { display: none; }
.rows li { display: grid; grid-template-columns: 9em 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 25%, transparent); }
.rows .d { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); padding-top: 6px; }
.rows h3 { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; margin: 0 0 4px; }
.rows h3 a { text-decoration: none; }
.beings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 3px solid var(--rule); border-left: 3px solid var(--rule); }
.beings-grid a { display: block; border-right: 3px solid var(--rule); border-bottom: 3px solid var(--rule); padding: 18px 20px; text-decoration: none; }
.beings-grid a:hover { background: var(--bloom); color: var(--on-bloom); }
.beings-grid strong { font-family: var(--display); font-weight: 800; font-size: 1.5rem; display: block; }
.beings-grid span { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--orange); }
.beings-grid a:hover span { color: inherit; }
.bio { font-size: 1.05rem; line-height: 1.65; margin-bottom: 36px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 9; }

@media (max-width: 560px) {
  .narrow, .cover { padding: 0 16px; }
  .rows li { grid-template-columns: 1fr; gap: 2px; }
  .rows .d { padding: 0; }
}

/* ---------- start here ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--rule); border-left: 3px solid var(--rule); margin-bottom: 20px; }
.doors a { border-right: 3px solid var(--rule); border-bottom: 3px solid var(--rule); padding: 20px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; text-decoration: none; min-height: 120px; }
.doors a:hover { background: var(--bloom); color: var(--on-bloom); }
.route { padding: 44px 0 20px; border-bottom: 1px solid var(--rule); scroll-margin-top: 10px; }
.route h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.05; letter-spacing: -.015em; margin: 8px 0 18px; max-width: 24em; }
.route .label { color: var(--orange); }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .doors { grid-template-columns: 1fr; } .doors a { min-height: 0; } }

/* ---------- FAQ (tap to open) ---------- */
.prose details { border-top: 2px solid var(--rule); padding: 4px 0; }
.prose details:last-of-type { border-bottom: 2px solid var(--rule); margin-bottom: 1.6em; }
.prose summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.25; padding: 14px 34px 14px 0; list-style: none; position: relative; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.6rem; color: var(--orange); }
.prose details[open] summary::after { content: "–"; }
.prose details > *:not(summary) { margin-left: 0; }
