@font-face {
  font-family: "Noto Serif Display";
  src: url("noto-serif-display.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("noto-sans.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("noto-sans-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0d1117;
  --surface: #131a22;
  --text: #f1ede7;
  --muted: #b5bec8;
  --muted-dark: #9ca8b5;
  --gold: #dbaf77;
  --gold-light: #efc68f;
  --line: #2b3540;
  --body: "Noto Sans", system-ui, sans-serif;
  --serif: "Noto Serif Display", Georgia, serif;
  --wrap: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 1rem/1.65 var(--body);
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--gold-light); }
.wrap { width: min(var(--wrap), calc(100% - 5rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  inset: .75rem auto auto .75rem;
  transform: translateY(-180%);
  padding: .5rem 1rem;
  color: var(--ink);
  background: var(--gold-light);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #28323c;
  background: #11171f;
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header-inner { min-height: 4.6rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .82rem;
  min-height: 2.75rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand-text {
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.brand-icon {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid #856d51;
  color: var(--gold-light);
  transform: rotate(45deg) scale(.8);
  margin-inline: .1rem;
}
.brand-icon span {
  transform: rotate(-45deg);
  font: 1.42rem/1 Georgia, serif;
}
.site-nav ul, .footer-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3.5vw, 3.2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 4.6rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .915rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-light); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--gold);
}

.home-hero, .article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #202b36;
}
.home-hero > img, .article-hero > img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero > img { object-position: 60% 47%; }
.home-hero::after, .article-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
}
.home-hero::after {
  background:
    linear-gradient(0deg, var(--ink) 0%, #0d1117ae 13%, transparent 52%),
    linear-gradient(90deg, #0d1117f5 0%, #0d1117cf 20%, #0d111784 40%, #0d111725 67%, #0d111719 100%);
}
.hero-inner {
  display: flex;
  min-height: clamp(34rem, 44vw, 46rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 3.3rem 4.8rem;
}
.eyebrow {
  color: var(--gold-light);
  font: 700 .77rem/1.4 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.with-mark { display: flex; align-items: center; gap: .8rem; }
.with-mark::before { content: ""; height: 1px; width: 1.8rem; background: currentColor; }
.hero-title {
  margin: .72rem 0 .1rem -.035em;
  font-size: clamp(5rem, 9.4vw, 9.5rem);
  line-height: .97;
  letter-spacing: .025em;
}
.hero-subtitle {
  color: var(--gold-light);
  font: 400 clamp(1.45rem, 2.55vw, 2.35rem)/1.24 var(--serif);
}
.hero-summary {
  max-width: 29.5rem;
  margin-top: 1.25rem;
  color: #e0e3e7;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  margin-top: 1.8rem;
  padding: .65rem 1.2rem;
  border: 1px solid #ebc08a;
  background: var(--gold);
  color: #15110c;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 700;
}
.button:hover { background: var(--gold-light); }

.materials { padding-block: 1rem clamp(3rem, 7vw, 6.2rem); scroll-margin-top: 1.5rem; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.section-heading h2, .chronicle-title {
  margin-top: .34rem;
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  line-height: 1.08;
}
.section-heading > p { max-width: 25rem; color: var(--muted); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 2.2vw, 1.6rem);
}
.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.card:hover, .card:focus-visible { background-color: #18212b; border-color: #9f815b; }
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background-color: #263340;
  border-bottom: 1px solid var(--line);
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #1018206b, transparent 44%);
  pointer-events: none;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease-out;
}
.card:hover img { transform: scale(1.035); }
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.25rem; }
.card h3 {
  margin: .35rem 0 .55rem;
  font-size: clamp(1.42rem, 2.25vw, 1.93rem);
  line-height: 1.14;
}
.card p:not(.eyebrow) { color: var(--muted); }
.card-action {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.05rem;
  color: var(--gold-light);
  font-size: .9rem;
  font-weight: 700;
}
.card:hover .card-action { text-decoration: underline; }

.chronicle-strip { border-block: 1px solid var(--line); background: #111820; }
.chronicle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(2.4rem, 6vw, 4.5rem);
}
.chronicle-intro > p:last-child { max-width: 26rem; margin-top: 1rem; color: var(--muted); }
.milestones { margin: 0; padding: 0; list-style: none; }
.milestones li + li { border-top: 1px solid var(--line); }
.milestones a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .7rem 0;
  min-height: 2.75rem;
  text-decoration: none;
}
.milestones a::before { content: "◇"; color: var(--gold); font-size: 1.1rem; }
.milestones a:hover { color: var(--gold-light); }
.milestones span { margin-left: auto; color: var(--muted); font-size: .88rem; text-align: right; }

.site-footer { padding-block: 2rem; }
.footer-meta { max-width: 32rem; margin-top: .45rem; color: var(--muted-dark); font-size: .85rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: .9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-light); text-decoration: underline; }

.article-hero > img { object-position: center 48%; }
.article-hero::after {
  background:
    linear-gradient(0deg, #0d1117 0%, #0d111768 56%, #0d11172b 100%),
    linear-gradient(90deg, #0d1117dc 0%, #0d1117a5 38%, transparent 100%);
}
.article-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: clamp(22rem, 38vw, 34rem);
  padding-block: 2.5rem 2.2rem;
}
.breadcrumbs { margin-bottom: auto; padding-bottom: 3.5rem; color: #d2d7dd; font-size: .88rem; }
.breadcrumbs a { display: inline-block; padding-block: .35rem; text-decoration-color: #b7a387; }
.breadcrumbs a:hover { color: var(--gold-light); }
.article-hero h1 {
  max-width: 54rem;
  margin: .6rem 0 .8rem;
  font-size: clamp(2.55rem, 6.1vw, 5.65rem);
  line-height: 1.035;
  text-wrap: balance;
}
.article-deck { max-width: 45rem; color: #dce1e8; font-size: clamp(1.03rem, 1.65vw, 1.23rem); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: 1.5rem 4.25rem;
}
.prose { grid-row: 1; grid-column: 1; min-width: 0; max-width: 46rem; color: #d5dde6; }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.78; }
.prose p + p { margin-top: .88rem; }
.prose section + section { margin-top: 2.5rem; }
.prose h2 { margin-bottom: .65rem; color: var(--text); font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.16; }
.prose section { scroll-margin-top: 1.5rem; }
.prose a { color: var(--gold-light); }
.prose strong { color: var(--text); }
.toc {
  grid-row: 1;
  grid-column: 2;
  position: sticky;
  top: 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.toc h2 { font-size: 1.36rem; }
.toc ul { margin: .45rem 0 0; padding: 0; list-style: none; }
.toc a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem 0;
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
}
.toc li + li { border-top: 1px solid var(--line); }
.toc a:hover { color: var(--gold-light); text-decoration: underline; }
.spoiler {
  margin-bottom: 1.7rem;
  padding: .65rem .85rem;
  border-left: 2px solid var(--gold);
  background: #181d24;
  color: #e2c69f;
}
.prose .spoiler { font-size: .9rem; }
.prose .sources { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.sources ul, .prose ol { margin: .6rem 0 0; padding-left: 1.4rem; }
.sources li + li, .prose ol li + li { margin-top: .35rem; }
.sources li { font-size: .94rem; }
.related { padding-block: 2.4rem 3.1rem; border-block: 1px solid var(--line); background: #111820; }
.related .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related .card { display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr); }
.related .card-media { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.related .card-copy { padding: .95rem 1rem; }
.related .card h3 { margin-bottom: 0; }
.related .card-action, .related .card p:not(.eyebrow) { display: none; }

@media (max-width: 55rem) {
  .wrap { width: calc(100% - 3.25rem); }
  .hero-inner { min-height: 33rem; }
  .home-hero > img { object-position: 62% 45%; }
  .home-hero::after {
    background:
      linear-gradient(0deg, var(--ink), #0d111761 39%, transparent 70%),
      linear-gradient(90deg, #0d1117eb, #0d111768 59%, #0d111715);
  }
  .article-layout { gap: 2rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .6rem; }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; min-height: auto; }
  .header-inner > .brand { align-self: center; min-height: 3.45rem; }
  .site-nav ul { justify-content: space-between; gap: .25rem; }
  .site-nav a { padding-inline: .22rem; min-height: 2.75rem; font-size: .875rem; }
  .hero-inner {
    min-height: 33.5rem;
    justify-content: end;
    padding-block: 9rem 2.45rem;
  }
  .home-hero > img { object-position: 68% center; }
  .home-hero::after {
    background: linear-gradient(0deg, var(--ink) 0%, #0d1117f2 23%, #0d1117b3 49%, #0d11172b 75%, #0d11170f);
  }
  .hero-title { font-size: clamp(3.25rem, 13.3vw, 5.7rem); margin-top: .57rem; }
  .hero-summary { margin-top: .8rem; }
  .button { margin-top: 1.15rem; }
  .materials { padding-top: .82rem; }
  .card-grid, .chronicle, .article-layout { grid-template-columns: 1fr; }
  .card-grid { gap: 1rem; }
  .card-media { aspect-ratio: 16/8.5; }
  .card-copy { padding: 1rem 1.15rem; }
  .card h3 { font-size: 1.72rem; }
  .chronicle { gap: 1.15rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .85rem; }
  .footer-nav ul { flex-wrap: wrap; }
  .article-hero::after {
    background: linear-gradient(0deg, var(--ink), #0d1117b5 53%, #0d11174c 83%);
  }
  .article-hero-copy { padding-block: .85rem 1.55rem; }
  .article-hero h1 { text-wrap: initial; }
  .article-layout { gap: 1.65rem; padding-block: .5rem 2.7rem; }
  .toc, .prose { position: static; grid-row: auto; grid-column: auto; }
  .related .card-grid { grid-template-columns: 1fr; }
  .related .card h3 { font-size: 1.4rem; }
}

@media (max-width: 22rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .site-nav a { font-size: .82rem; }
  .milestones a { gap: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
