@font-face {
  font-family: "Sohne";
  src: url("./fonts/sohne-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sohne";
  src: url("./fonts/sohne-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sohne";
  src: url("./fonts/sohne-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fafaf8;
  --surface: #ffffff;
  --ink: #0e1116;
  --muted: rgba(14, 17, 22, 0.62);
  --line: #e5e7eb;
  --accent: #e8923a;
  --dark: #14161b;
  color-scheme: light;
  font-family: "Sohne", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Sohne", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--accent); }

.site-header {
  width: calc(100% - 48px);
  max-width: 1440px;
  min-height: 64px;
  margin: 20px auto 0;
  padding: 0 20px 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(14, 17, 22, 0.98);
  color: #ffffff;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: baseline;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

.brand-dot { color: var(--accent); }

.journal-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-link {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.header-link:hover {
  border-color: var(--accent);
  background: rgba(232, 146, 58, 0.1);
  color: #ffffff;
}

.article-shell {
  width: min(100% - 48px, 620px);
  margin-inline: auto;
  padding: 56px 0 80px;
}

.article-header {
  max-width: 100%;
  margin: 0 auto 48px;
  text-align: left;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.dek {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.byline {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-figure {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 64px;
  padding: 0;
  background: #04141e;
  border: 0;
  border-radius: 8px;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-figure img {
  height: 400px;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 3px;
}

.article-body {
  max-width: 100%;
  margin: 0 auto;
  font-family: "Sohne", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 1.3vw, 1.16rem);
  line-height: 1.68;
  letter-spacing: -0.008em;
}

.article-body p { margin: 0 0 1.35em; }
.article-body strong { font-weight: 700; }

.article-body section {
  margin-top: clamp(52px, 7vw, 76px);
}

.article-body h2,
.article-body h3 {
  max-width: 100%;
  margin: 0 0 0.72em;
  font-family: "Sohne", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  text-wrap: balance;
}

.article-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}

.article-body h3 {
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
}

.wide-figure {
  width: 100%;
  max-width: 100%;
  margin: 54px auto 68px;
  padding: 0;
  background: var(--dark);
  border-radius: 8px;
}

.wide-figure img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 3px;
}

.causal-chain {
  margin: 2.1em 0 !important;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-align: left;
}

ul {
  margin: 0 0 1.7em;
  padding-left: 1.2em;
}

li { padding-left: 0.3em; }
li + li { margin-top: 0.65em; }
li::marker { color: var(--accent); }

.sequence {
  margin: 28px 0;
  padding: 0;
  list-style: none;
}
.sequence li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0 0 22px;
  align-items: start;
}
.sequence li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  color: #a65312;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sequence li:last-child { padding-bottom: 0; font-weight: 500; }
.sequence li > span:last-child { padding-top: 2px; }
a:focus-visible { outline: 2px solid #b85f13; outline-offset: 5px; }
.article-body { overflow-wrap: break-word; }

.closing {
  padding-top: clamp(40px, 5vw, 58px);
  border-top: 1px solid var(--ink);
}

.closing a {
  color: #b85f13;
  font-weight: 700;
}

.site-footer {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto 24px;
  padding: 30px 34px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > a:last-child {
  justify-self: end;
  color: #ffffff;
}

.footer-brand { color: #ffffff; }

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 24px);
    min-height: 58px;
    margin-top: 12px;
    padding: 0 14px 0 20px;
    grid-template-columns: 1fr auto;
  }

  .journal-label { display: none; }
  .header-link { padding: 8px 11px; }

  .article-shell {
    width: calc(100% - 40px);
    padding: 40px 0 64px;
  }

  h1 {
    font-size: clamp(1.9rem, 6.8vw, 2.75rem);
    line-height: 1.12;
  }

  .article-header { margin-bottom: 40px; }

  .hero-figure {
    max-width: 100%;
    margin-bottom: 52px;
    padding: 0;
  }

  .wide-figure {
    margin-top: 44px;
    margin-bottom: 56px;
    padding: 0;
  }

  .site-footer {
    width: calc(100% - 24px);
    padding: 26px 22px;
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Refined article spacing and responsive reading width. */
.article-shell{width:min(calc(100% - 48px),760px);padding:44px 0 56px}
.article-header{margin-bottom:36px;padding:36px;border:1px solid #30353b;border-radius:20px;background:#0e1116;color:#fafaf8}
.article-header .dek,.article-header .byline{color:#bfc3ca}
.article-header h1{font-size:clamp(30px,3.3vw,44px);line-height:1.15}
.article-header .byline{margin-top:20px;font-size:13px}
.hero-figure{max-width:100%;margin-bottom:44px;border-radius:14px;overflow:hidden}
.hero-figure img{height:auto;max-height:420px;object-fit:contain}
.article-body{font-size:18px;line-height:1.7}
.article-body section{margin-top:48px}
.wide-figure{margin:44px auto}
.closing{padding-top:36px}
.site-footer{max-width:1180px;grid-template-columns:1fr auto;gap:14px}
.site-footer p{grid-column:1/-1;grid-row:2;text-align:left}
.site-footer>a:last-child{grid-column:2;grid-row:1}
@media(max-width:700px){.article-shell{width:calc(100% - 32px);padding:28px 0 40px}.article-header{padding:28px 20px;margin-bottom:32px}.article-header h1{font-size:clamp(27px,7vw,38px)}.article-body{font-size:17px}.hero-figure{margin-bottom:36px}.hero-figure img{max-height:350px}.wide-figure{margin:36px auto}.article-body section{margin-top:36px}.sequence li{gap:10px}.site-footer{padding:24px 20px}.article-header .dek{font-size:18px}.byline{gap:7px 9px}}

/* Restore the original light article heading treatment. */
.article-header{max-width:100%;margin:0 auto 48px;padding:0;border:0;border-radius:0;background:transparent;color:var(--ink)}
.article-header .dek,.article-header .byline{color:var(--muted)}
.article-header h1{font-size:clamp(30px,3.8vw,44px);line-height:1.12}
.article-header .byline{margin-top:28px}
@media(max-width:700px){.article-header{padding:0;margin-bottom:36px}.article-header h1{font-size:clamp(30px,6.8vw,44px)}}
