:root {
  color-scheme: dark;
  --umber: #26130e;
  --deep-umber: #170d0a;
  --paper: #f4e6cf;
  --light: #fff0d4;
  --muted: #d7bda3;
  --gold: #f4bf60;
  --gold-rule: #f4bf6033;
  --ruby: #861b24;
  --ruby-hover: #a2212a;
  --shadow-ink: #301c14;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--deep-umber);
  color: var(--light);
  font: 1rem / 1.65 var(--sans);
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.frame {
  width: min(100% - clamp(2.5rem, 10vw, 9rem), 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: .75rem;
  left: .75rem;
  padding: .55rem .85rem;
  background: var(--paper);
  color: var(--shadow-ink);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--gold-rule); }

.site-header__inner, .site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}

.site-header__inner { min-height: 4.5rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--light);
  font: 1.4rem / 1 var(--serif);
  letter-spacing: .04em;
  text-decoration: none;
}

.wordmark img { width: 2.5rem; height: auto; }

.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.1rem); }

.site-header nav a, .site-footer a {
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
  text-underline-offset: .23em;
}

.site-header nav a:hover, .site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.site-header nav a[aria-current="page"] { color: var(--gold); }

.hero {
  position: relative;
  isolation: isolate;
  background: var(--deep-umber);
  border-bottom: 1px solid var(--gold-rule);
}

.hero__scene, .hero__decor, .hero__image, .hero__lueurs, .hero__scene::after, .hero__particules {
  position: absolute;
  inset: 0;
}

.hero__scene {
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 43%;
}

.hero__lueurs {
  background:
    radial-gradient(ellipse at 46% 65%, #ffc17438, transparent 23%),
    radial-gradient(ellipse at 84% 82%, #f7a0493d, transparent 29%);
  opacity: .35;
}

.hero__scene::after {
  content: "";
  background:
    linear-gradient(0deg, var(--deep-umber), #170d0a26 23%, transparent 50%),
    linear-gradient(96deg, #170d0ae8 2%, #170d0ada 23%, #170d0a8c 44%, #170d0a1f 63%, transparent 82%);
}

.hero__particules {
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: max(36rem, calc(100svh - 4.5rem));
  padding-block: 3rem 4.5rem;
}

.eyebrow {
  color: var(--gold);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 15ch;
  margin-top: .28em;
  font: 400 clamp(2.85rem, 5.1vw, 5.35rem) / 1 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero__logo {
  display: block;
  width: clamp(11.5rem, 21vw, 19rem);
  height: auto;
  margin: 0 0 clamp(1rem, 2.5vw, 2rem);
  filter: drop-shadow(0 1rem 1rem #160905b3);
}

.hero__pause {
  position: absolute;
  inset: auto 0 1.35rem auto;
  min-height: 2.75rem;
  padding: .35rem .8rem;
  border: 1px solid #f4bf6070;
  background: #170d0ad9;
  color: var(--light);
  font: 500 .875rem / 1.2 var(--sans);
  cursor: pointer;
}

.hero__pause:hover, .hero__pause[aria-pressed="true"] { background: #4a271b; }
.hero__pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@keyframes hero-travelling {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.085) translateX(-1%); }
}

@keyframes hero-chandelles {
  0%, 100% { opacity: .31; }
  25%, 80% { opacity: .58; }
  55% { opacity: .42; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero[data-animation] .hero__decor { animation: hero-travelling 19s ease-in-out infinite alternate; }
  .hero[data-animation] .hero__lueurs { animation: hero-chandelles 7s ease-in-out infinite; }
  .hero[data-animation="pause"] :is(.hero__decor, .hero__lueurs) { animation-play-state: paused; }
}

.button {
  display: inline-block;
  margin-top: 1.9rem;
  padding: .7rem 1.15rem;
  border: 1px solid #d69b4e;
  background: var(--ruby);
  color: var(--light);
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: var(--ruby-hover); }
.button:focus-visible { outline-color: var(--light); }

.text-link {
  color: var(--ruby);
  font-weight: 650;
  text-underline-offset: .22em;
}

.text-link:hover { color: var(--ruby-hover); }

.destination {
  background: radial-gradient(ellipse at 48% 75%, #642e1a, transparent 72%), var(--umber);
  border-bottom: 1px solid var(--gold-rule);
  text-align: center;
}

.destination__inner { padding-block: clamp(3.25rem, 8vw, 6.5rem); }

.destination h1 {
  margin-block: .12em .24em;
  font: 400 clamp(3.05rem, 10vw, 8rem) / .98 var(--serif);
  letter-spacing: -.055em;
}

.destination__intro {
  max-width: 43ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  text-wrap: pretty;
}

.atlas {
  background: radial-gradient(ellipse at top, #492516, transparent 62%), var(--deep-umber);
  border-bottom: 1px solid var(--gold-rule);
}

.atlas__inner { padding-block: clamp(2rem, 5vw, 4.5rem); }

.atlas__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.atlas h1 {
  margin-top: .12em;
  font: 400 clamp(2.65rem, 7vw, 5.75rem) / 1 var(--serif);
  letter-spacing: -.05em;
}

.atlas__views { display: flex; flex-wrap: wrap; gap: .4rem; }

.atlas__views a {
  padding: .5rem .8rem;
  border: 1px solid var(--gold-rule);
  background: var(--umber);
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
}

.atlas__views a:hover, .atlas__views a[aria-current="true"] {
  border-color: var(--gold);
  background: #401f15;
  color: var(--gold);
}

.atlas__table { display: grid; gap: clamp(1rem, 2.3vw, 1.7rem); align-items: start; }

@media (min-width: 63rem) {
  .atlas__table { grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 24%); }
}

.atlas__map { min-width: 0; margin: 0; }

.atlas__stage {
  position: relative;
  outline: 1px solid var(--gold-rule);
  scroll-margin-top: 1rem;
}

.atlas__map img {
  display: block;
  width: 100%;
  height: auto;
  background: #07323a;
}

.atlas__map figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 1rem;
  padding-top: .65rem;
  color: var(--muted);
  font-size: .9375rem;
}

.atlas__map figcaption a { color: var(--gold); text-underline-offset: .22em; }

.atlas__caption-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }

.atlas__valtheris { --frontiere: #8bb1f8; }
.atlas__morvane { --frontiere: #ee7b7f; }
.atlas__elyndor { --frontiere: #b1dc72; }

.atlas__pin {
  position: absolute;
  left: var(--gauche);
  top: var(--haut);
  z-index: 1;
  width: clamp(1.85rem, 4.75vw, 2.75rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--light);
}

.atlas__pin::before {
  content: "";
  position: absolute;
  inset: 30%;
  border: 2px solid var(--frontiere);
  border-radius: 50%;
  background: #170d0ad9;
  box-shadow: 0 0 0 2px #170d0a;
}

.atlas__pin--blason {
  width: 21%;
  height: max(2rem, 8%);
  aspect-ratio: auto;
  border: 1px solid var(--frontiere);
  border-radius: .25rem;
  box-shadow: 0 0 0 1px #170d0ac9;
}

.atlas__pin--blason::before { content: none; }
.atlas__pin:hover, .atlas__pin:focus-visible { z-index: 2; }
.atlas__pin:hover::before, .atlas__pin:focus-visible::before { background: var(--frontiere); }
.atlas__pin--blason:hover, .atlas__pin--blason:focus-visible { box-shadow: 0 0 0 2px var(--frontiere); }

.atlas__pin span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--frontiere);
  padding: .22rem .55rem;
  background: var(--deep-umber);
  color: var(--light);
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.atlas__pin:hover span, .atlas__pin:focus-visible span { opacity: 1; }

.atlas__sidebar { min-width: 0; }

.atlas__fiche {
  scroll-margin-top: 1rem;
  border-top: 3px solid var(--frontiere);
  padding: 1.05rem 1.15rem;
  margin-bottom: .9rem;
  background: var(--paper);
  color: var(--shadow-ink);
  color-scheme: light;
}

.atlas__fiche:not(:target) { display: none; }
.atlas__fiche h2 { margin-block: .18em .4em; font: 400 1.9rem / 1.07 var(--serif); }
.atlas__location { color: var(--ruby); font-size: .875rem; font-weight: 700; }
.atlas__history { max-width: 60ch; line-height: 1.55; }

.atlas__index {
  border: 1px solid var(--gold-rule);
  padding: 1.05rem 1.15rem;
  background: var(--umber);
}

.atlas__index h2 { font: 400 1.28rem / 1.2 var(--serif); }

.atlas__index ul, .atlas__related {
  display: grid;
  gap: .3rem 1rem;
  padding: 0;
  margin: .7rem 0 0;
  list-style: none;
}

.atlas__index ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.25rem), 1fr)); }
.atlas__related { display: flex; flex-wrap: wrap; }
.atlas__sidebar a { text-underline-offset: .22em; }
.atlas__related a, .atlas__close { color: var(--ruby); }
.atlas__close { display: inline-block; margin-top: .7rem; font-size: .9375rem; }

.atlas__index a {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  padding-block: .15rem;
  color: var(--muted);
  font-size: .9375rem;
}

.atlas__index a::before {
  content: "";
  flex: none;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--frontiere);
}

.atlas__index a:hover { color: var(--light); }

.chroniques {
  background: var(--paper);
  color: var(--shadow-ink);
  color-scheme: light;
  padding-block: clamp(2.8rem, 6vw, 5.2rem);
}

.chroniques__header { margin-bottom: clamp(1.2rem, 3vw, 2.1rem); }

.chroniques h2 {
  font: 400 clamp(2.5rem, 5.75vw, 4.8rem) / 1 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.chroniques__header p {
  max-width: 62ch;
  margin-top: .8rem;
  font-size: clamp(1rem, 1.65vw, 1.18rem);
}

.chroniques__recits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.chronique {
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 3vw, 2.2rem);
  border: 1px solid #c49d76;
  background: #fbefd9;
  scroll-margin-top: 1rem;
}

.chronique--bramvirl { grid-column: 1 / -1; border-top: 3px solid var(--ruby); }

.chronique--portrait {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.chronique__portrait {
  display: block;
  width: 100%;
  max-width: 15rem;
  height: auto;
  justify-self: center;
  box-shadow: 0 .5rem 1.4rem #34201633;
}

.chronique__portrait-texte p { max-width: 66ch; margin-top: .65rem; }

.chronique h3 {
  font: 400 clamp(1.55rem, 2.9vw, 2.45rem) / 1.12 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.chronique > p { max-width: 78ch; margin-top: .65rem; }

.chronique > .chronique__liens {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  max-width: none;
  margin-top: auto;
  padding-top: 1rem;
}

@media (max-width: 45rem) {
  .chroniques__recits { grid-template-columns: 1fr; }
  .chronique--portrait { grid-template-columns: 1fr; }
}

.site-footer { border-top: 1px solid var(--gold-rule); }

.site-footer__inner {
  flex-wrap: wrap;
  min-height: 5rem;
  padding-block: 1.15rem;
  color: var(--muted);
  font-size: .9375rem;
}

.play-intro, .account {
  background: radial-gradient(ellipse at 68% 10%, #542916, transparent 67%), var(--umber);
  border-bottom: 1px solid var(--gold-rule);
}

.play-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .55fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}

.play-intro h1, .account h1 {
  font: 400 clamp(2.7rem, 7vw, 5.6rem) / 1 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.play-intro p, .account p {
  max-width: 52ch;
  margin-top: .85rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.15rem);
}

.play-intro__compte, .account__inner {
  border: 1px solid var(--gold-rule);
  border-top-color: var(--gold);
  background: var(--deep-umber);
}

.play-intro__compte { padding: clamp(1.15rem, 3vw, 2rem); }
.play-intro__compte h2 { font: 400 clamp(1.5rem, 3vw, 2.25rem) / 1.1 var(--serif); }
.play-intro__compte .button { margin-top: 1rem; }

.downloads {
  color-scheme: light;
  padding-block: clamp(2.8rem, 6vw, 5rem);
  background: var(--paper);
  color: var(--shadow-ink);
}

.downloads h2 { font: 400 clamp(2.2rem, 5.25vw, 4.3rem) / 1 var(--serif); letter-spacing: -.045em; }
.downloads__hint { margin-top: .8rem; }

.downloads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: start;
  gap: .75rem;
  margin-top: 1.25rem;
}

.download-platform { border: 1px solid #c49d76; padding: 1.15rem; background: #fbefd9; }
.download-platform h3 { font: 400 1.7rem / 1.2 var(--serif); }
.download-platform > p { margin-top: .5rem; }
.download-platform ul { display: grid; gap: .45rem; margin: .65rem 0 0; padding: 0; list-style: none; }

.download-package {
  display: grid;
  gap: .05rem;
  padding: .55rem .7rem;
  border: 1px solid #c49d76;
  color: var(--ruby);
  text-underline-offset: .2em;
}

.download-package:hover { border-color: var(--ruby); }
.download-package small { color: var(--shadow-ink); font-size: .875rem; }

.account { padding-block: clamp(2rem, 6vw, 5rem); }
.account__inner { max-width: 39rem; padding: clamp(1.2rem, 4vw, 2.8rem); }
.account h1 { font-size: clamp(2.25rem, 6vw, 4.15rem); }
.account__form { display: grid; gap: .85rem; margin-top: 1.5rem; }
.account__form label { display: block; margin-bottom: .3rem; font-weight: 650; }

.account__form input {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  border: 1px solid #a6724f;
  border-radius: 0;
  background: var(--umber);
  color: var(--light);
  font: inherit;
}

.account__form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.account__form .button { justify-self: start; margin-top: .3rem; font: inherit; font-weight: 650; cursor: pointer; }
.account .account__hint { margin-top: .25rem; font-size: .875rem; }
.account__link { display: block; width: fit-content; margin-top: .95rem; color: var(--gold); text-underline-offset: .2em; }
.account .account__error { border-left: 3px solid #ee7b7f; padding-left: .7rem; color: #ffd1d1; }

@media (max-width: 42rem) {
  .play-intro__inner { grid-template-columns: 1fr; }
}

.home-atlas {
  color-scheme: light;
  background: radial-gradient(ellipse at 74% 40%, #e3bd8b, transparent 67%), var(--paper);
  color: var(--shadow-ink);
}

.home-atlas__inner {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(1.65rem, 5vw, 5rem);
  padding-block: clamp(2.75rem, 6.7vw, 6rem);
}

.home-atlas h2, .home-personnage h2 {
  font: 400 clamp(2.65rem, 6vw, 5.25rem) / .98 var(--serif);
  letter-spacing: -.05em;
  text-wrap: balance;
}

.home-atlas__copy > p, .home-personnage__header > p {
  max-width: 48ch;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-wrap: pretty;
}

.home-atlas__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.25rem;
  margin-top: 1.45rem;
}

.home-atlas__actions .button { margin-top: 0; border-color: var(--ruby); }
.home-atlas__actions .button:focus-visible { outline-color: var(--ruby); }

.home-atlas__map {
  display: block;
  padding: .32rem;
  border: 1px solid #a6794e;
  background: var(--deep-umber);
  box-shadow: 0 1rem 2.25rem #4a281c40;
}

.home-atlas__map:hover { border-color: var(--ruby); }
.home-atlas__map img { display: block; width: 100%; height: auto; }

.home-personnage {
  padding-block: clamp(3rem, 7vw, 6rem);
  background: radial-gradient(ellipse at 50% 12%, #472518, transparent 72%), var(--deep-umber);
}

.home-personnage__header { margin-bottom: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.home-personnage h2 { font-size: clamp(2.3rem, 5vw, 4.75rem); }
.home-personnage__header > p { margin-inline: auto; color: var(--muted); }

.home-personnage__guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 1.4rem);
}

.home-guide {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1rem, 3vw, 2.4rem);
  border: 1px solid var(--gold-rule);
  border-top-color: var(--gold);
  background: var(--umber);
}

.home-guide h3 { font: 400 clamp(1.65rem, 3.25vw, 2.7rem) / 1.08 var(--serif); }

.home-guide h3 a {
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
}

.home-guide h3 a:hover { color: var(--gold); }
.home-guide > p { max-width: 44ch; margin-top: .85rem; color: var(--muted); }

.home-guide__index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.home-guide__index a {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: .5rem .25rem;
  border: 1px solid var(--gold-rule);
  background: var(--deep-umber);
  color: var(--light);
  font-size: .9375rem;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.home-guide__index a:hover, .home-guide__index a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.home-guide__index img { width: min(100%, 2.75rem); height: auto; }

.tenues {
  padding-block: clamp(2.8rem, 6vw, 5rem);
  border-top: 1px solid var(--gold-rule);
  background: var(--umber);
}

.tenues__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .9rem 2rem;
  margin-bottom: 1.35rem;
}

.tenues__header h2 {
  font: 400 clamp(2.3rem, 5vw, 4.65rem) / .98 var(--serif);
  letter-spacing: -.045em;
}

.tenues__header p { max-width: 47ch; color: var(--muted); }

.tenues__galerie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.65rem, 2vw, 1.2rem);
}

.tenue {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--gold-rule);
  background: var(--deep-umber);
  scroll-margin-top: 1rem;
}

.tenue--humain { --halo: #634936; }
.tenue--elfe { --halo: #59455e; }
.tenue--elvere { --halo: #605338; }
.tenue--alderane { --halo: #314752; }
.tenue--krif { --halo: #4a5036; }
.tenue--syphran { --halo: #633e4d; }

.tenue__portrait {
  background:
    radial-gradient(ellipse 35% 5% at 50% 88%, #0e0b09c9, transparent),
    radial-gradient(ellipse 68% 66% at 50% 57%, var(--halo), transparent),
    #201712;
}

.tenue__portrait img { display: block; width: min(100%, 25rem); height: auto; margin-inline: auto; }
.tenue figcaption { padding: clamp(.9rem, 2vw, 1.25rem); border-top: 1px solid var(--gold-rule); }
.tenue h3 { font: 400 clamp(1.35rem, 2.4vw, 2.15rem) / 1.13 var(--serif); }
.tenue figcaption p { margin-top: .4rem; color: var(--muted); font-size: .9375rem; }
.tenue figcaption a { color: var(--gold); text-underline-offset: .22em; }

@media (max-width: 53rem) {
  .home-atlas__inner { grid-template-columns: 1fr; }
  .home-atlas h2 { text-wrap: wrap; }
}

@media (max-width: 41rem) {
  .home-personnage__guides { grid-template-columns: 1fr; }
  .tenues__galerie { grid-template-columns: 1fr; }
}

.guide-intro .destination__inner { padding-block: clamp(3rem, 6.5vw, 5.75rem); }
.guide-intro h1 { font-size: clamp(2.75rem, 8vw, 6.5rem); }

.guide-body { padding-block: 1.5rem clamp(3rem, 7vw, 6rem); }

.guide-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.3rem, 1fr));
  gap: .55rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
  scroll-margin-top: 1rem;
}

.guide-index a {
  display: grid;
  justify-items: center;
  gap: .4rem;
  padding: .8rem .5rem;
  border: 1px solid var(--gold-rule);
  background: var(--umber);
  color: var(--light);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

.guide-index a:hover, .guide-index a[aria-current="true"] {
  border-color: var(--gold);
  background: #401f15;
  color: var(--gold);
}

.guide-index img { width: 2.75rem; height: auto; }

.people, .class-profile {
  background: var(--paper);
  color: var(--shadow-ink);
  color-scheme: light;
  scroll-margin-top: 1rem;
}

.people {
  display: grid;
  grid-template-columns: minmax(13rem, .75fr) minmax(0, 1.25fr);
  align-items: start;
  border-block: 1px solid #bc895a;
  gap: clamp(1.3rem, 4vw, 3.5rem);
  padding: clamp(1.35rem, 4.5vw, 4rem);
}

.people + .people { margin-top: .9rem; }
.people:target { border-color: var(--gold); }
.people .eyebrow { color: var(--ruby); letter-spacing: .09em; }

.people__presentation { min-width: 0; }
.people__figure { max-width: 19rem; margin: 1rem 0 0; }

.people__identity, .class-profile__heading {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.people__portrait, .class-profile__heading img {
  flex: none;
  width: clamp(3.4rem, 7vw, 5.5rem);
  height: auto;
  image-rendering: pixelated;
}

.people h2, .class-profile h2, .class-paths h2 {
  font: 400 clamp(2.45rem, 5.4vw, 4.75rem) / .98 var(--serif);
  letter-spacing: -.045em;
}

.people__story { max-width: 65ch; }
.people__story > p { margin-top: .7rem; }

.people__story > h3, .starting-spells h3, .path__content h3 {
  font: 400 clamp(1.45rem, 2.8vw, 2.2rem) / 1.15 var(--serif);
}

.starting-classes { margin-top: 1.25rem; }

.starting-classes h3, .class-profile__facts dt {
  color: var(--ruby);
  font-size: .875rem;
  font-weight: 700;
}

.starting-classes ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .45rem 0 0;
  padding: 0;
  list-style: none;
}

.starting-classes a {
  display: inline-block;
  border: 1px solid #b78d6a;
  padding: .24rem .65rem;
  font-size: .94rem;
  text-decoration: none;
}

.starting-classes a:hover { border-color: var(--ruby); color: var(--ruby); text-decoration: underline; }

.class-profile { padding: clamp(1.1rem, 4vw, 3.5rem); }
.class-profile__heading p { max-width: 65ch; margin-top: .7rem; }

.class-profile__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  border-block: 1px solid #d8bc9b;
  padding-block: .8rem;
  margin-block: 1.5rem;
}

.class-profile__facts dd { margin: 0; font-weight: 650; }
.class-profile__paths { margin-bottom: 1.25rem; }
.starting-spells > p { margin-top: .3rem; }

.spells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.spell {
  display: grid;
  align-content: start;
  min-width: 0;
  border: 1px solid #d8bc9b;
  padding: .9rem;
  background: #fff3df;
  color: var(--shadow-ink);
  color-scheme: light;
  overflow-wrap: anywhere;
}

.spell__header { display: flex; align-items: center; gap: .65rem; }
.spell__header img { width: 2.9rem; height: auto; }
.spell__kind { color: var(--ruby); font-size: .875rem; }
.spell__name { font: 400 1.2rem / 1.15 var(--serif); }
.spell__effects { padding-inline-start: 1.05rem; margin: .55rem 0 0; font-size: .94rem; }
.spell__effects li + li { margin-top: .3rem; }

.spell__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  list-style: none;
  border-top: 1px solid #d8bc9b;
  padding: .5rem 0 0;
  margin: .65rem 0 0;
  color: #68472e;
  font-size: .875rem;
}

.class-paths { margin-top: clamp(2rem, 5vw, 4.5rem); }
.class-paths > p { max-width: 66ch; margin-block: .65rem 1.3rem; color: var(--muted); }
.class-paths__list { display: grid; gap: .65rem; }
.path, .advancement { border: 1px solid var(--gold-rule); background: var(--umber); }

.path > summary, .advancement > summary {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1.05rem;
  cursor: pointer;
  list-style: none;
}

.path > summary::-webkit-details-marker, .advancement > summary::-webkit-details-marker { display: none; }
.path > summary:hover, .advancement > summary:hover { background: #401f15; }
.path > summary:focus-visible, .advancement > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.path > summary img, .advancement > summary img { width: 2.75rem; height: auto; flex: none; }
.path > summary strong { color: var(--light); font: 400 1.55rem / 1.12 var(--serif); }
.path__intro { display: block; color: var(--muted); font-size: .9375rem; }

.path > summary::after, .advancement > summary::after {
  content: "";
  flex: none;
  width: .55rem;
  height: .55rem;
  margin-left: auto;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

.path[open] > summary::after, .advancement[open] > summary::after { transform: rotate(225deg); }
.path__content { border-top: 1px solid var(--gold-rule); padding: clamp(1rem, 3vw, 1.9rem); }
.path__next { margin-top: 1.6rem; }
.path__next h3 { margin-bottom: .55rem; font-size: 1.35rem; }
.path__next h3:not(:first-child) { margin-top: 1rem; }
.advancement { background: var(--deep-umber); }
.advancement + .advancement { margin-top: .45rem; }
.advancement__level { color: var(--muted); font-size: .875rem; }
.advancement .spells { margin: 0; padding: .75rem; }

@media (max-width: 48rem) {
  .hero__inner {
    align-items: end;
    padding-block: clamp(11rem, 35svh, 22rem) 4.85rem;
    text-align: center;
  }
  .hero__scene { bottom: 28%; }
  .hero__scene::after {
    background: linear-gradient(0deg, var(--deep-umber) 0%, #170d0ae6 19%, #170d0a33 48%, transparent 75%);
  }
  .hero__image { object-position: 75% 30%; }
  .hero__logo { width: clamp(9rem, 31vw, 13rem); margin-inline: auto; }
  .hero h1 { margin-inline: auto; font-size: clamp(2.6rem, 7.5vw, 4.25rem); }
  .hero .button { margin-top: 1.4rem; }
  .hero__pause { inset-inline: 0; width: max-content; margin-inline: auto; }
}

@media (max-width: 42rem) {
  .people { grid-template-columns: 1fr; }
  .site-header nav { flex-wrap: wrap; gap: .25rem .85rem; }
}

@media (max-width: 23rem) {
  .site-header__inner { gap: .75rem; }
  .site-header__inner { flex-wrap: wrap; padding-block: .5rem; }
  .wordmark { gap: .35rem; }
  .wordmark img { width: 2rem; }
}

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