@font-face{font-family:display;src:url('/media/display.ae062b6d5ae3.woff2') format('woff2');font-display:optional;font-weight:600}
@font-face{font-family:text;src:url('/media/text.0f73f35e08cd.woff2') format('woff2');font-display:optional;font-weight:400}
:root {
  color-scheme: dark;
  background: #19120e;
  color: #f5e5c7;
  font: 1.125rem/1.62 text, system-ui, sans-serif;
  --ink: #f5e5c7;
  --ember: #ffd598;
  --timber: #392315;
  --frame: clamp(7px, .94vw, 18px);
  --field: min(100%, clamp(38rem, 46.875vw, 72rem));
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--ember); text-underline-offset: .2em; }
:focus-visible {
  outline: 3px solid #ffd27e;
  outline-offset: 4px;
  box-shadow: 0 0 .9rem #e99a45;
}

.skip {
  position: fixed;
  top: .65rem;
  left: .65rem;
  z-index: 4;
  transform: translateY(-200%);
  background: #24180f;
  padding: .45rem .7rem;
}

.skip:focus { transform: none; }

.backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: #241911;
  pointer-events: none;
}

.backdrop > * { position: absolute; inset: 0 0 -28vh; }
.backdrop-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.68) saturate(.85);
}
.mist { background: linear-gradient(176deg, transparent 15%, #503a5426 38%, transparent 65%); }
.lantern { background: radial-gradient(ellipse at 50% 23%, #bd803b42, transparent 47%); }
.motes {
  background:
    radial-gradient(circle at 13% 44%, #ebb16b80 1px, transparent 2px),
    radial-gradient(circle at 82% 64%, #efad6750 1px, transparent 2px),
    radial-gradient(circle at 91% 32%, #f4bd785d 1px, transparent 2px),
    radial-gradient(circle at 26% 75%, #e6ae685d 1px, transparent 2px);
  animation: flicker 4s ease-out both;
}

@keyframes flicker { from { opacity: .28; } to { opacity: .8; } }

.hud {
  position: relative;
  min-height: 80px;
  display: grid;
  align-items: center;
  background:
    repeating-linear-gradient(173deg, transparent 0 17px, #dba16408 18px 19px, #170e0a32 20px 21px),
    linear-gradient(180deg, #3b2b1f, #21170f);
  border-block: 1px solid #7e5837;
  box-shadow: 0 5px 0 #20130c, 0 8px 20px #0d0907b3;
}

.hud-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1.6rem;
  width: min(100%, 86rem);
  margin-inline: auto;
  padding: .55rem clamp(.55rem, 2vw, 1.6rem);
}

.wordmark, h1, h2, .tagline { font-family: display, Georgia, serif; font-weight: 600; }
.wordmark { font-size: 1.65rem; line-height: 1.1; color: var(--ember); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem; }

nav a {
  display: block;
  padding: .25rem .5rem;
  min-height: 1.8rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .86rem;
  border: 1px solid transparent;
}

nav a:hover, nav a[aria-current] {
  background: #45301e;
  border-color: #936541;
  color: #ffe0a6;
}

.timber {
  width: var(--field);
  margin-inline: auto;
  padding-inline: var(--frame);
  background:
    repeating-linear-gradient(88deg, #dba16422 0 1px, transparent 2px 5px, #1c10086b 6px 7px),
    linear-gradient(90deg, #20150e, #634026 var(--frame), #634026 calc(100% - var(--frame)), #20150e);
  box-shadow: 0 0 0 1px #8b5c39, 0 0 2.2rem #0d0907bb;
}

main, footer { background: #281c14; }
main { min-height: calc(100vh - 9rem); }
main:focus-visible { outline-offset: -5px; }

.opening, .stratum, .fallback {
  padding-inline: clamp(1rem, 4vw, 4.3rem);
}

.opening {
  position: relative;
  padding-block: clamp(1.8rem, 4.5vw, 4rem) clamp(1.25rem, 3vw, 2.75rem);
  background: radial-gradient(ellipse at 46% 0%, #543721, transparent 74%), #2d2016;
  border-bottom: 1px solid #775136;
}

.badge, .status { margin: 0; font-size: .85rem; color: #f2c993; }
.badge { letter-spacing: .1em; }
.status {
  width: fit-content;
  margin-top: .9rem;
  padding: .12rem .65rem;
  background: linear-gradient(#573c26, #3e2b1d);
  border: 1px solid #936541;
}

h1, h2 {
  margin: 0;
  color: #ffdb9f;
  line-height: 1;
  text-shadow: 0 0 1.45rem #d593512e;
  overflow-wrap: break-word;
}
h1 { margin-top: .5rem; font-size: clamp(2.75rem, 5.4vw, 6.75rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3vw, 3.45rem); }
.tagline { margin: .55rem 0 0; font-size: clamp(1.3rem, 2.15vw, 2.2rem); line-height: 1.2; }
.lead { max-width: 47ch; margin: 1rem 0 0; font-size: clamp(1.02rem, 1.4vw, 1.35rem); line-height: 1.45; color: #f3dcb7; }

figure { margin: 1.3rem 0; border: 1px solid #936541; background: #20140e; }
.key-art { margin: 0; border-width: 0 0 1px; }
figure img { display: block; width: 100%; height: auto; }

.stratum {
  padding-block: clamp(1.25rem, 3vw, 2.5rem);
  background: radial-gradient(ellipse at 15% 0%, var(--seam, #402b1c), transparent 60%), var(--earth, #261b14);
}
.stratum + .stratum { border-top: 1px solid #795137; }
.stratum:nth-child(2 of .stratum) { --seam: #43301e; --earth: #2b1f15; }
.stratum:nth-child(3 of .stratum) { --seam: #453421; --earth: #272016; }
.stratum:nth-child(4 of .stratum) { --seam: #383723; --earth: #23231a; }
.stratum:nth-child(5 of .stratum) { --seam: #3d3839; --earth: #282325; }
.stratum:nth-child(6 of .stratum) { --seam: #462d25; --earth: #2c201d; }
.stratum:nth-child(7 of .stratum) { --seam: #342c32; --earth: #211c22; }
.stratum > :first-child { margin-top: 0; }
.stratum > :last-child { margin-bottom: 0; }
.stratum p { max-width: 64ch; }
.stratum p + p { margin-top: 1.1em; }
.fallback { margin: 0; padding-bottom: 1.75rem; }

footer {
  border-top: 1px solid #795137;
  padding: .75rem 1rem 1rem;
  background: #201710;
}

.maker {
  margin: 0 0 .3rem;
  text-align: center;
  font-size: .9rem;
}

@media (max-width: 749px) {
  .hud-inner { flex-direction: column; }
  .wordmark { margin-block: .2rem; }
  .hud nav a { padding-inline: .36rem; }
  .opening { padding-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop > * { transform: none !important; }
  .motes { animation: none; opacity: .35; }
}
