:root {
  --ink: #1A1410;
  --ink-2: #2C231D;
  --ivory: #F5EFE6;
  --ivory-2: #EFE7DA;
  --clay: #E8D5C4;
  --terracotta: #B8553A;
  --terracotta-dark: #8E3F2A;
  --rule: rgba(26,20,16,.12);
  --rule-strong: rgba(26,20,16,.22);
  --muted: rgba(26,20,16,.62);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--terracotta); color: var(--ivory); }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--terracotta); text-decoration-color: var(--terracotta); }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(245,239,230,.88); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; max-width: 1180px; margin: 0 auto; }
.topbar .mark { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; letter-spacing: -.01em; text-transform: none; text-decoration: none; color: var(--ink); }
.topbar .mark em { font-style: normal; color: var(--terracotta); }
.topbar .meta { color: var(--muted); display: flex; gap: 18px; }
.topbar .meta a { text-decoration: none; color: var(--muted); }
.topbar .meta a:hover { color: var(--terracotta); }
@media (max-width: 640px) { .topbar-inner { padding: 12px 20px; } .topbar .meta { font-size: 10.5px; } .topbar .meta span { display: none; } }

/* Page head */
main { padding: 56px 0 80px; }
.page-head { margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 20px; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 24px;
}
h1 em { font-style: italic; color: var(--terracotta); }

.lede { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; font-weight: 300; color: var(--ink-2); max-width: 68ch; margin: 0; }

/* Article meta */
.article-meta { display: flex; gap: 22px; flex-wrap: wrap; padding: 18px 0; margin: 30px 0 40px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article-meta .author { color: var(--ink); }

/* Article body */
article p { font-size: 18px; line-height: 1.7; margin: 0 0 22px; max-width: 68ch; color: var(--ink-2); }
article h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -.015em; margin: 56px 0 18px; color: var(--ink); }
article h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 36px 0 12px; }

article blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--terracotta);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}

article .source-note {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  line-height: 1.55;
  color: var(--muted);
  background: var(--ivory-2);
  padding: 18px 22px;
  border-left: 2px solid var(--terracotta);
  margin: 28px 0;
}
article .source-note strong { color: var(--ink); }

article ul, article ol { padding-left: 24px; margin: 0 0 22px; max-width: 68ch; }
article li { font-size: 18px; line-height: 1.65; margin: 0 0 10px; color: var(--ink-2); }

article hr { border: none; border-top: 1px solid var(--rule); margin: 56px auto; max-width: 80px; }

/* References */
.refs { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--rule-strong); }
.refs h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 18px; font-weight: 500; }
.refs ol { padding-left: 22px; }
.refs li { font-size: 14.5px; line-height: 1.55; margin: 0 0 12px; color: var(--ink-2); }
.refs li a { word-break: break-word; }

/* Related */
.related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--rule); }
.related h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 24px; font-weight: 500; }
.related-list { display: grid; gap: 0; }
.related-list a { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: padding-left .25s, background .25s; }
.related-list a:first-child { border-top: 1px solid var(--rule); }
.related-list a:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(184,85,58,.04), transparent 60%); color: var(--terracotta); }
.related-list .t { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.3; }
.related-list .arr { font-family: var(--serif); font-style: italic; color: var(--terracotta); }

/* Journal index list */
.journal-list { display: grid; gap: 0; }
.j-item { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 32px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: padding-left .25s, background .25s; }
.j-item:first-child { border-top: 1px solid var(--rule); }
.j-item:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(184,85,58,.04), transparent 60%); }
@media (min-width: 760px) { .j-item { grid-template-columns: 140px 1fr 32px; gap: 36px; align-items: baseline; } }
.j-item .date { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.j-item h2 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 26px); font-weight: 400; margin: 0 0 8px; line-height: 1.2; letter-spacing: -.01em; transition: color .15s; }
.j-item:hover h2 { color: var(--terracotta); }
.j-item p { font-size: 15.5px; margin: 0; color: var(--muted); }
.j-item .arrow { font-family: var(--serif); font-style: italic; color: var(--terracotta); display: none; }
@media (min-width: 760px) { .j-item .arrow { display: inline; text-align: right; } }

/* Bottom CTA */
.bottom-cta { margin-top: 80px; padding: 48px 36px; background: var(--ink); color: var(--ivory); }
.bottom-cta h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 0 0 8px; letter-spacing: -.015em; }
.bottom-cta p { color: rgba(245,239,230,.75); margin: 0 0 20px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ivory); background: var(--ivory); color: var(--ink); text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ivory); text-decoration: none; }

/* Footer */
footer { padding: 32px 0 48px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--rule); margin-top: 60px; }
footer .wrap { max-width: 1180px; }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--terracotta); }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* Drop-cap for the first paragraph in articles */
article .lede + p::first-letter,
article > p.first::first-letter {
  font-family: var(--serif);
  font-size: 4.2em;
  line-height: .85;
  float: left;
  padding: 8px 12px 0 0;
  font-weight: 400;
  color: var(--terracotta);
  font-style: italic;
}
