:root {
  color-scheme: dark;
  --ink: #f3eadb;
  --muted: #b8ad9d;
  --paper: #15120e;
  --paper-soft: #1d1913;
  --panel: rgba(31, 26, 20, 0.88);
  --line: rgba(210, 168, 94, 0.28);
  --gold: #d2a85e;
  --gold-light: #efd398;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 6%, rgba(143, 98, 43, 0.17), transparent 28rem),
    linear-gradient(180deg, #17130f 0%, #0f0d0a 100%);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  color: #15120e;
  background: var(--gold-light);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.section,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: var(--serif);
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

nav a,
footer a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--gold-light);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding-block: clamp(5rem, 11vw, 9rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 6.8rem);
  letter-spacing: -0.045em;
}

.lead {
  max-width: 720px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: #17120b;
  background: var(--gold-light);
}

.button--secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
}

.hero__card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(51, 42, 31, 0.88), rgba(22, 19, 15, 0.8));
  box-shadow: var(--shadow);
}

.hero__card::after {
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.sigil {
  margin-bottom: 2rem;
  color: var(--gold-light);
  font-size: 2rem;
}

.hero__card dl,
.bibliography {
  margin: 0;
}

.hero__card dl > div {
  padding: 1rem 0;
  border-top: 1px solid rgba(210, 168, 94, 0.17);
}

dt {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 0.28rem 0 0;
}

.section {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-number {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.section__content > h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  letter-spacing: -0.03em;
}

.section-lead {
  max-width: 820px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}

.topics article {
  min-height: 255px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.018);
}

.topics span {
  color: var(--gold);
  font-size: 0.75rem;
}

.topics h3 {
  margin: 4rem 0 0.75rem;
  font-size: 1.55rem;
}

.topics p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section--dark {
  position: relative;
}

.bibliography {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.bibliography > div {
  min-height: 128px;
  padding: 1.35rem 1rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.bibliography > div:nth-child(odd) {
  margin-right: 2rem;
}

.citation-box {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.citation-box p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.copy-button {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--gold);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(100% - 32px, 680px);
  }

  .site-header nav a:not(:first-child) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__card {
    max-width: 540px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .topics {
    grid-template-columns: 1fr;
  }

  .topics article {
    min-height: auto;
  }

  .topics h3 {
    margin-top: 2rem;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero__actions,
  .citation-box,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .bibliography {
    grid-template-columns: 1fr;
  }

  .bibliography > div:nth-child(odd) {
    margin-right: 0;
  }

  footer {
    justify-content: center;
    padding-block: 1.5rem;
  }

  footer p {
    margin: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    color: #111;
    background: #fff;
  }

  body::before,
  .site-header,
  .hero__actions,
  .copy-button,
  footer {
    display: none;
  }

  .hero,
  .section {
    width: 100%;
    min-height: auto;
    padding-block: 2rem;
    border-color: #bbb;
  }

  .hero__card,
  .topics article,
  .citation-box {
    color: #111;
    border-color: #bbb;
    background: #fff;
    box-shadow: none;
  }

  .lead,
  .section-lead,
  .topics p,
  .citation-box p,
  nav a {
    color: #333;
  }
}
