@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap");

:root {
  font-family: "DM Sans", sans-serif;
  color: #e8e2d2;
  background: #1d2822;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #e8e2d2;
  --muted: #a7a99c;
  --line: rgba(224, 216, 196, 0.17);
  --moss: #8e9a75;
  --gold: #c6a66b;
  --night: #1d2822;
  --paper: #e8e2d2;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 72% 15%, rgba(85, 104, 79, 0.15), transparent 34rem),
    var(--night);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.site-header,
.site-footer {
  width: min(1240px, calc(100% - 96px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  height: 82px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.wordmark-seal {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--moss);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 12px;
}

.site-nav a,
.text-link,
.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.text-link:hover,
.footer-link:hover {
  color: var(--ink);
}

.site-nav .nav-spellbook {
  padding: 10px 14px;
  border: 1px solid rgba(198, 166, 107, 0.55);
  color: var(--gold);
}

.nav-spellbook span,
.footer-link span {
  margin-left: 8px;
}

.hero {
  position: relative;
  width: min(1240px, calc(100% - 96px));
  min-height: 598px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 58px 0 65px;
}

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 18px;
  height: 1px;
  display: inline-block;
  background: var(--gold);
}

.hero h1 {
  margin: 25px 0 19px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(54px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero h1 em,
.section-heading h2 em {
  color: var(--moss);
  font-weight: 500;
}

.hero-description {
  max-width: 425px;
  margin: 0;
  color: #b3b4a8;
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 27px;
  padding: 0 17px;
  font-size: 12px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--paper);
  color: #28332a;
}

.button-primary:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.text-link {
  font-size: 11px;
}

.text-link span {
  margin-left: 8px;
  color: var(--gold);
}

.edition-note {
  margin-top: 52px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.note-rule {
  width: 25px;
  height: 1px;
  margin-top: 8px;
  background: var(--gold);
}

.edition-note p {
  margin: 0;
  color: #d7d1c2;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.65;
}

.edition-note p span {
  color: var(--muted);
}

.hero-art {
  position: relative;
  min-height: 485px;
  margin: 20px 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(170, 145, 95, 0.14), transparent 34%),
    repeating-linear-gradient(153deg, transparent 0 47px, rgba(223, 215, 195, 0.025) 48px 49px, transparent 50px 96px);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(198, 166, 107, 0.22);
  border-radius: 50%;
}

.hero-art::before {
  width: 340px;
  height: 340px;
}

.hero-art::after {
  width: 420px;
  height: 420px;
  border-color: rgba(224, 216, 196, 0.1);
}

.orbit {
  position: absolute;
  width: 1px;
  height: 450px;
  background: linear-gradient(transparent, rgba(198, 166, 107, 0.25), transparent);
}

.orbit-one {
  transform: rotate(45deg);
}

.orbit-two {
  transform: rotate(-45deg);
}

.sigil {
  position: relative;
  z-index: 1;
  width: 224px;
  height: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border: 1px solid rgba(198, 166, 107, 0.62);
  border-radius: 50%;
  color: var(--gold);
  box-shadow: 0 0 70px rgba(198, 166, 107, 0.09), inset 0 0 50px rgba(198, 166, 107, 0.04);
}

.sigil::before,
.sigil::after {
  position: absolute;
  inset: 13px;
  content: "";
  border: 1px solid rgba(198, 166, 107, 0.3);
  border-radius: 50%;
}

.sigil::after {
  inset: 30px;
  border-color: rgba(224, 216, 196, 0.19);
}

.sigil-top,
.sigil-bottom {
  z-index: 1;
  font-size: 14px;
}

.sigil-eye {
  z-index: 1;
  width: 83px;
  height: 48px;
  margin: 5px 0;
  border: 1px solid var(--gold);
  border-radius: 100% 0 100% 0;
  transform: rotate(45deg);
}

.sigil-eye::after {
  width: 12px;
  height: 12px;
  margin: 16px auto;
  display: block;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--gold);
  content: "";
  box-shadow: 0 0 15px rgba(198, 166, 107, 0.7);
}

.art-caption,
.art-coordinate {
  position: absolute;
  color: rgba(224, 216, 196, 0.58);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
  line-height: 1.8;
}

.caption-top {
  top: 13%;
  left: 11%;
}

.caption-bottom {
  right: 9%;
  bottom: 12%;
  text-align: right;
}

.art-coordinate {
  right: 10%;
  top: 13%;
  color: var(--gold);
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 28px;
  color: #72776c;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-index span {
  color: var(--gold);
}

.archive {
  width: min(1240px, calc(100% - 96px));
  margin: 0 auto;
  padding: 91px 0 105px;
}

.section-heading {
  max-width: 570px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin: 17px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 445px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.archive-card {
  position: relative;
  min-height: 264px;
  padding: 28px 27px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(232, 226, 210, 0.025);
}

.archive-card::after {
  position: absolute;
  right: -48px;
  bottom: -93px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(198, 166, 107, 0.12);
  border-radius: 50%;
  content: "";
}

.card-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: #85877b;
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.card-icon {
  height: 43px;
  display: block;
  color: var(--gold);
}

.icon-d20 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
}

.icon-star {
  font-size: 26px;
}

.icon-compass {
  font-size: 33px;
  line-height: 0.9;
}

.card-kicker {
  margin: 13px 0 5px;
  color: var(--moss);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.12;
}

.archive-card > p:not(.card-kicker) {
  max-width: 240px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.card-foot,
.card-link {
  position: absolute;
  right: 27px;
  bottom: 23px;
  left: 27px;
  color: #999b8e;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.card-link {
  z-index: 1;
  color: var(--gold);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  text-decoration: none;
}

.card-link span {
  margin-left: 7px;
}

.card-link:hover {
  color: var(--ink);
}

.site-footer {
  min-height: 76px;
  border-top: 1px solid var(--line);
}

.site-footer > p {
  color: #898c80;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.footer-wordmark {
  font-size: 9px;
}

.footer-wordmark .wordmark-seal {
  width: 25px;
  height: 25px;
  font-size: 14px;
}

.footer-link {
  color: var(--gold);
  font-size: 11px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero,
  .archive {
    width: min(100% - 40px, 560px);
  }

  .site-header {
    height: 68px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav > a:not(.nav-spellbook) {
    display: none;
  }

  .hero {
    min-height: unset;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 62px 0 35px;
  }

  .hero h1 {
    font-size: clamp(54px, 13vw, 76px);
  }

  .hero-art {
    min-height: 340px;
    margin: 0 0 50px;
  }

  .hero-art::before {
    width: 270px;
    height: 270px;
  }

  .hero-art::after {
    width: 330px;
    height: 330px;
  }

  .sigil {
    width: 185px;
    height: 185px;
  }

  .hero-index {
    bottom: 18px;
  }

  .archive {
    padding: 68px 0 72px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .archive-card {
    min-height: 245px;
  }

  .site-footer {
    min-height: 70px;
  }

  .site-footer > p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
