/* The Lost Archives — website prototype */

:root {
  --ink: #eef4ee;
  --muted: #aab7b2;
  --gold: #d9aa47;
  --gold-soft: #f0ce7a;
  --deep: #050909;
  --surface: #091210;
  --surface-2: #0d1815;
  --line: rgba(217, 170, 71, .24);
  --blue: #234b6c;
  --teal: #16777b;
  --green: #078d5f;
  --red: #773833;
  --brown: #5e452d;
  --max: 1180px;
  --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 {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(2, 8, 12, .82), rgba(2, 8, 12, .94)),
    url("assets/galaxy-background.png") center top / cover fixed,
    var(--deep);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 1rem; left: 1rem;
  transform: translateY(-180%);
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--gold);
  color: #10100b;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(3, 7, 6, .92), rgba(3, 7, 6, .55), transparent);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}
.site-header.scrolled {
  background: rgba(4, 10, 8, .92);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .03em;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  position: relative;
  color: #dce7e1;
  text-decoration: none;
  font-size: .83rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -.45rem;
  height: 1px;
  background: var(--gold);
  transition: right .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.site-nav a.active:not(.nav-cta)::after { right: 0; }
.site-nav .nav-cta {
  padding: .65rem 1rem;
  border: 1px solid rgba(217, 170, 71, .65);
  color: var(--gold-soft);
}
.menu-button {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  padding: 10px;
}
.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 8rem 0 5.5rem;
}
.hero-art, .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-art {
  background-image: url("assets/galaxy-background.png");
  background-size: cover;
  background-position: center;
  filter: saturate(.92) brightness(.62);
  transform: scale(1.04);
}
.hero-overlay {
  z-index: -1;
  background:
    radial-gradient(circle at 68% 44%, rgba(6, 126, 101, .18), transparent 35%),
    linear-gradient(90deg, rgba(3, 7, 6, .97) 0%, rgba(3, 7, 6, .89) 38%, rgba(3, 7, 6, .44) 72%, rgba(3, 7, 6, .68) 100%),
    linear-gradient(to top, var(--deep), transparent 36%);
}
.hero-content { padding-top: 2rem; }
.hero-logo {
  width: 140px;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.4));
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--gold-soft);
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .about h2 {
  font-family: var(--serif);
  text-wrap: balance;
}
.hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: .95;
  letter-spacing: -.045em;
  text-shadow: 0 5px 28px rgba(0,0,0,.65);
}
.hero h1 span { color: var(--gold-soft); }
.hero-copy {
  max-width: 650px;
  margin: 1.6rem 0 0;
  color: #c1ccc7;
  font-size: clamp(1rem, 1.6vw, 1.17rem);
}
.hero-actions, .about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #11110d; }
.button-primary:hover { background: var(--gold-soft); }
.button-secondary {
  border-color: rgba(238, 244, 238, .48);
  background: rgba(5, 12, 10, .56);
}
.button-secondary:hover, .button-ghost:hover {
  border-color: var(--gold);
  background: rgba(217, 170, 71, .08);
}
.button-ghost { border-color: var(--line); color: var(--gold-soft); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.8rem;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: .55rem;
  color: #b7c1bc;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .67rem;
  font-weight: 800;
}
.scroll-cue i {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--gold), transparent);
}

.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.4rem;
}
.section-heading h2, .about h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.section-heading > p {
  margin: 0;
  max-width: 520px;
  justify-self: end;
  color: var(--muted);
}

.current { position: relative; }
.current::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.campaign-card {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.07);
  background: var(--surface);
  isolation: isolate;
  transition: transform .25s ease, border-color .25s ease;
}
.campaign-card::before, .campaign-card::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.campaign-card::before {
  inset: 0;
  opacity: .86;
}
.campaign-card::after {
  inset: auto -10% -42% 20%;
  height: 85%;
  border: 1px solid rgba(217, 170, 71, .22);
  transform: rotate(45deg);
  box-shadow: 0 0 0 44px rgba(217,170,71,.025), 0 0 0 88px rgba(217,170,71,.018);
}
.campaign-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 170, 71, .36);
}
.mistborn::before {
  background:
    linear-gradient(to top, rgba(6, 6, 7, .98) 0%, rgba(22, 13, 10, .87) 42%, rgba(12, 8, 6, .24) 100%),
    url("assets/shadows-of-luthadel-banner.png") center / cover no-repeat;
}
.stormlight::before {
  background:
    linear-gradient(to top, rgba(3, 9, 13, .98) 0%, rgba(4, 27, 35, .86) 42%, rgba(3, 13, 18, .22) 100%),
    url("assets/echoes-of-honor-banner.png") center / cover no-repeat;
}
.yawning::before {
  background:
    linear-gradient(to top, rgba(8, 6, 6, .98) 0%, rgba(43, 20, 17, .88) 42%, rgba(12, 7, 7, .2) 100%),
    url("assets/yawning-portal-banner.png") center / cover no-repeat;
}
.giants::before {
  background:
    linear-gradient(to top, rgba(4, 9, 8, .98) 0%, rgba(14, 40, 32, .86) 42%, rgba(5, 15, 12, .2) 100%),
    url("assets/return-of-the-giants-banner.png") center / cover no-repeat;
}
.campaign-number {
  position: absolute;
  top: 1rem; right: 1.2rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  color: rgba(255,255,255,.055);
  pointer-events: none;
}
.campaign-content { max-width: 520px; }
.campaign-system, .episode-series {
  margin: 0 0 .4rem;
  color: var(--gold-soft);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.campaign-content h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.campaign-content > p:not(.campaign-system) {
  max-width: 480px;
  margin: .9rem 0;
  color: #c0cbc6;
}
.campaign-meta { display: flex; gap: .5rem; margin: 1.15rem 0; }
.campaign-meta span {
  padding: .33rem .52rem;
  border: 1px solid rgba(255,255,255,.13);
  color: #d5dfda;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.campaign-content > a, .text-link {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.campaign-content > a span, .text-link span { margin-left: .25rem; }

.banner-break {
  width: min(calc(100% - 2rem), 1500px);
  margin-inline: auto;
  border: 1px solid var(--line);
  background: #090d0c;
  overflow: hidden;
}
.banner-image {
  aspect-ratio: 1640 / 360;
  background:
    linear-gradient(90deg, rgba(5,8,8,.15), transparent 15% 85%, rgba(5,8,8,.15)),
    url("assets/lost-archives-banner.png") center / cover no-repeat;
}

.latest { background: linear-gradient(180deg, rgba(10, 22, 19, .55), rgba(5, 9, 9, 0)); }
.latest-heading { align-items: center; }
.latest-heading .text-link { justify-self: end; }
.episode-list {
  border-top: 1px solid var(--line);
}
.episode {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  min-height: 150px;
  padding: 1.5rem .5rem;
  border-bottom: 1px solid rgba(217,170,71,.18);
  text-decoration: none;
  transition: background .2s ease, padding .2s ease;
}
.episode:hover {
  padding-inline: 1rem;
  background: rgba(217, 170, 71, .045);
}
.episode-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 800;
}
.mistborn-icon { background: rgba(119, 56, 51, .32); }
.yawning-icon { background: rgba(100, 58, 45, .32); }
.stormlight-icon { background: rgba(22, 119, 123, .28); }
.episode-main h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
}
.episode-main > p:last-child {
  margin: .35rem 0 0;
  color: var(--muted);
}
.episode-side {
  min-width: 95px;
  display: grid;
  gap: .5rem;
  justify-items: end;
  text-align: right;
}
.episode-side span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.episode-side strong {
  color: var(--gold-soft);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.freshness-note {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: #7f8e87;
  font-size: .78rem;
}

.about {
  border-top: 1px solid rgba(217,170,71,.14);
  border-bottom: 1px solid rgba(217,170,71,.14);
  background:
    radial-gradient(circle at 18% 48%, rgba(8, 141, 95, .14), transparent 24rem),
    rgba(5, 14, 14, .78);
}
.about-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about-mark {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(35,75,108,.23), rgba(7,141,95,.16)),
    repeating-linear-gradient(45deg, rgba(217,170,71,.025) 0 1px, transparent 1px 36px);
}
.about-mark img {
  width: min(74%, 370px);
  filter: drop-shadow(0 16px 36px rgba(0,0,0,.46));
}
.about-copy .lead {
  margin: 1.35rem 0 .9rem;
  color: #d6e0db;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}
.about-copy > p:not(.eyebrow):not(.lead) {
  max-width: 700px;
  color: var(--muted);
}

.archive-strip { padding-block: 3.2rem; }
.past-campaigns {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.past-campaigns span {
  padding: .6rem .8rem;
  border: 1px solid rgba(217, 170, 71, .2);
  color: #b8c3bd;
  font-family: var(--serif);
}

.site-footer {
  padding: 3.2rem 0 1.5rem;
  background: rgba(2, 5, 4, .88);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--serif);
  font-weight: 700;
}
.footer-brand img { width: 54px; }
.footer-note {
  margin: 0;
  color: #7e8b85;
  font-size: .88rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a {
  color: #b7c3bd;
  text-decoration: none;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #5f6b65;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Resources */
.resources-page {
  background:
    linear-gradient(rgba(2, 8, 13, .74), rgba(2, 8, 13, .95)),
    url("assets/galaxy-background.png") center top / cover fixed,
    #03080c;
}

.resource-hero {
  position: relative;
  overflow: hidden;
  padding: 10.5rem 0 6rem;
  border-bottom: 1px solid var(--line);
}
.resource-hero::before {
  content: "";
  position: absolute;
  width: 44rem;
  height: 44rem;
  top: -22rem;
  right: -10rem;
  border: 1px solid rgba(217, 170, 71, .12);
  rotate: 45deg;
  box-shadow: 0 0 0 5rem rgba(217, 170, 71, .018), 0 0 0 10rem rgba(8, 141, 95, .018);
  pointer-events: none;
}
.resource-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}
.resource-hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  line-height: .9;
  letter-spacing: -.05em;
}
.resource-hero-copy h1 span { color: var(--gold-soft); }
.resource-hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 1.6rem 0 0;
  color: #c1cdc8;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}
.resource-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.resource-jumps a {
  padding: .7rem .9rem;
  border: 1px solid rgba(217, 170, 71, .36);
  background: rgba(4, 12, 15, .58);
  color: var(--gold-soft);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease;
}
.resource-jumps a:hover {
  border-color: var(--gold);
  background: rgba(217, 170, 71, .08);
}
.resource-hero-mark {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  border: 1px solid rgba(217, 170, 71, .28);
  background:
    linear-gradient(135deg, rgba(35, 75, 108, .28), rgba(7, 141, 95, .2)),
    rgba(3, 9, 12, .58);
  box-shadow: inset 0 0 70px rgba(0,0,0,.25), 0 24px 70px rgba(0,0,0,.28);
}
.resource-hero-mark img {
  width: 58%;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.52));
}
.resource-hero-mark span {
  color: #aebbb5;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.trackers-section { background: rgba(3, 9, 12, .44); }
.resource-heading h2 { max-width: 720px; }
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.tracker-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 170, 71, .22);
  background: rgba(5, 13, 16, .82);
  backdrop-filter: blur(8px);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.tracker-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(217, 170, 71, .2);
}
.tracker-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 9, 12, .46), transparent 48%);
}
.tracker-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.tracker-card:hover .tracker-art img { transform: scale(1.025); }
.tracker-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem);
}
.resource-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 .7rem;
  color: var(--gold-soft);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.resource-kicker span + span::before { content: "•"; margin-right: .5rem; color: #63726b; }
.tracker-body h3, .library-card h3, .collection-callout h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1;
  letter-spacing: -.025em;
}
.tracker-body h3 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.tracker-body > p {
  margin: 1rem 0;
  color: var(--muted);
}
.feature-list {
  display: grid;
  gap: .5rem;
  margin: .2rem 0 1.5rem;
  padding: 0;
  list-style: none;
  color: #cbd6d1;
}
.feature-list li {
  position: relative;
  padding-left: 1.25rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 5px;
  height: 5px;
  rotate: 45deg;
  background: var(--gold);
}
.tracker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: auto;
}
.tracker-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--gold);
  background: rgba(217, 170, 71, .055);
  color: var(--muted);
}
.tracker-note strong { color: var(--gold-soft); }

.homebrew-section {
  position: relative;
  border-top: 1px solid rgba(217, 170, 71, .14);
  background: linear-gradient(180deg, rgba(7, 20, 22, .5), rgba(2, 7, 10, .84));
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.library-card {
  position: relative;
  min-height: 250px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 1rem 1.35rem;
  overflow: hidden;
  padding: 1.6rem;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(135deg, rgba(35,75,108,.13), rgba(7,141,95,.08)),
    rgba(5, 13, 16, .86);
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.library-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 170, 71, .38);
  background:
    linear-gradient(135deg, rgba(35,75,108,.2), rgba(7,141,95,.13)),
    rgba(5, 13, 16, .94);
}
.library-card::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: -5rem;
  bottom: -5rem;
  border: 1px solid rgba(217,170,71,.16);
  rotate: 45deg;
}
.library-index {
  color: rgba(217, 170, 71, .72);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}
.library-card h3 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.library-card div > p:last-child {
  max-width: 470px;
  margin: .75rem 0 0;
  color: var(--muted);
}
.library-card .resource-kicker { margin-bottom: .55rem; }
.status-pill, .library-link {
  grid-column: 2;
  width: fit-content;
  padding: .35rem .55rem;
  border: 1px solid rgba(217, 170, 71, .22);
  color: #92a19a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.library-link {
  border-color: rgba(217, 170, 71, .3);
  color: var(--gold-soft);
}
.library-link span {
  display: inline-block;
  margin-left: .25rem;
  transition: transform .2s ease;
}
.library-card:hover .library-link span { transform: translateX(3px); }
.collection-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 96, 82, .17), rgba(35,75,108,.11)),
    rgba(4, 11, 14, .82);
}
.collection-callout h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.collection-callout p:last-child { margin: .65rem 0 0; color: var(--muted); }
.legal-note {
  max-width: 760px;
  margin: 1.2rem 0 0;
  color: #71817a;
  font-size: .78rem;
}

/* Full homebrew rules */
.rules-page-hero {
  padding: 9.5rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 35%, rgba(8, 141, 95, .16), transparent 26rem),
    rgba(3, 10, 14, .5);
}
.rules-page-hero-inner { max-width: var(--max); }
.back-link {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  margin-bottom: 2.5rem;
  color: #afbeb7;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.back-link:hover { color: var(--gold-soft); }
.rules-page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: .88;
  letter-spacing: -.05em;
}
.rules-page-hero h1 span { color: var(--gold-soft); }
.rules-page-hero p:last-child {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: #c1cdc8;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}
.rules-section { padding-top: clamp(3.5rem, 7vw, 6.5rem); }
.homebrew-content {
  max-width: 1040px;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid rgba(217, 170, 71, .18);
  background: rgba(4, 12, 15, .84);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.homebrew-content > p:first-child { margin-top: 0; }
.homebrew-content p, .homebrew-content li { color: #c2cec8; }
.homebrew-content b, .homebrew-content strong { color: #eef4ee; }
.homebrew-content i { color: #aebbb5; }
.homebrew-content a { color: var(--gold-soft); text-underline-offset: .18em; }
.homebrew-content h2, .homebrew-content h3, .homebrew-content h4 {
  font-family: var(--serif);
  color: var(--ink);
  scroll-margin-top: 6rem;
}
.homebrew-content h2 {
  margin: 4rem 0 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(217, 170, 71, .24);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.homebrew-content #toc + h2 { margin-top: 3rem; }
.homebrew-content h3 {
  margin: 2.2rem 0 .8rem;
  color: var(--gold-soft);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}
.homebrew-content h4 { font-size: 1.15rem; }
.homebrew-content ul, .homebrew-content ol { padding-left: 1.4rem; }
.homebrew-content li + li { margin-top: .35rem; }
.homebrew-content #toc {
  margin: 2rem 0 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(217, 170, 71, .2);
  background: rgba(35, 75, 108, .12);
}
.homebrew-content #toc h2 {
  margin: 0 0 .85rem;
  padding: 0;
  border: 0;
  font-size: 1.6rem;
}
.homebrew-content #toc ul { margin: .45rem 0; }
.homebrew-content #toc a { text-decoration: none; }
.homebrew-content #toc a:hover { text-decoration: underline; }
.homebrew-content .table-scroll {
  max-width: 100%;
  margin: 1.25rem 0 2rem;
  overflow-x: auto;
  border: 1px solid rgba(217, 170, 71, .2);
}
.homebrew-content .rules-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(2, 8, 11, .62);
}
.homebrew-content .rules-table caption {
  padding: .9rem 1rem;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
}
.homebrew-content .rules-table th,
.homebrew-content .rules-table td {
  padding: .75rem .85rem;
  border: 1px solid rgba(255,255,255,.1);
  color: #c7d2cc;
  text-align: left;
  vertical-align: top;
}
.homebrew-content .rules-table th,
.homebrew-content .rules-table tr:first-child td {
  background: rgba(217, 170, 71, .09);
  color: #edf3ef;
  font-weight: 800;
}
.homebrew-content .mw-headline { display: inline; }

/* Embedded tracker pages */
.tracker-page {
  height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(2, 8, 13, .42), rgba(2, 8, 13, .72)),
    url("assets/galaxy-background.png") center / cover fixed,
    #031014;
}
.tracker-page-main {
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: 78px;
}
.tracker-page-bar {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: .7rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(217, 170, 71, .3);
  background:
    linear-gradient(90deg, rgba(13, 68, 79, .95), rgba(4, 21, 29, .98)),
    #071820;
  box-shadow: 0 8px 26px rgba(0,0,0,.24);
  z-index: 2;
}
.tracker-page-mistborn .tracker-page-bar {
  background:
    linear-gradient(90deg, rgba(73, 39, 26, .96), rgba(23, 13, 9, .98)),
    #1c100b;
}
.tracker-back {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  padding: .55rem .7rem;
  border: 1px solid rgba(217, 170, 71, .3);
  color: var(--gold-soft);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tracker-back:hover { background: rgba(217, 170, 71, .08); }
.tracker-page-bar > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  align-items: baseline;
}
.tracker-page-system {
  color: var(--gold-soft);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tracker-page-bar strong {
  overflow: hidden;
  color: #f1f5f2;
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tracker-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .menu-button { display: block; }
  .site-nav {
    position: fixed;
    top: 78px; left: 1rem; right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem;
    border: 1px solid var(--line);
    background: rgba(4,10,8,.98);
    box-shadow: 0 18px 48px rgba(0,0,0,.4);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem; }
  .site-nav .nav-cta { margin-top: .25rem; text-align: center; }
  .menu-button.open span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-button.open span:nth-of-type(3) { opacity: 0; }
  .menu-button.open span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

  .hero {
    min-height: 820px;
    align-items: end;
    padding-bottom: 6.2rem;
  }
  .hero-art { background-position: 57% center; }
  .hero-overlay {
    background:
      linear-gradient(to top, rgba(3,7,6,.99) 0%, rgba(3,7,6,.89) 46%, rgba(3,7,6,.47) 78%, rgba(3,7,6,.69) 100%);
  }
  .hero-logo { width: 112px; }
  .section-heading, .about-grid {
    grid-template-columns: 1fr;
  }
  .section-heading > p, .latest-heading .text-link { justify-self: start; }
  .campaign-grid { grid-template-columns: 1fr; }
  .campaign-card { min-height: 350px; }
  .about-mark { min-height: 310px; }
  .footer-grid { grid-template-columns: 1fr; }
  .resource-hero { padding-top: 8.5rem; }
  .resource-hero-grid { grid-template-columns: 1fr; }
  .resource-hero-mark { display: none; }
  .tracker-grid, .library-grid { grid-template-columns: 1fr; }
  .collection-callout { grid-template-columns: 1fr; }
  .collection-callout .button { justify-self: start; }
  .rules-page-hero { padding-top: 8.5rem; }
  .homebrew-content { width: min(calc(100% - 1.25rem), 1040px); }
  .tracker-page-bar { min-height: 62px; }
}

@media (max-width: 580px) {
  .shell { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand span { display: none; }
  .hero h1 { font-size: clamp(2.75rem, 15vw, 4.2rem); }
  .hero-copy { font-size: .98rem; }
  .hero-actions .button, .about-actions .button { width: 100%; }
  .campaign-card { padding: 1.35rem; }
  .banner-break { width: calc(100% - 1.25rem); }
  .banner-image { aspect-ratio: 3 / 1.1; background-size: cover; }
  .episode {
    grid-template-columns: 48px 1fr;
    gap: .9rem;
  }
  .episode-icon { width: 44px; height: 44px; }
  .episode-side {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    text-align: left;
  }
  .footer-bottom { flex-direction: column; }
  .resource-hero { padding-bottom: 4rem; }
  .resource-hero-copy h1 { font-size: clamp(3rem, 17vw, 4.4rem); }
  .resource-jumps { display: grid; }
  .resource-jumps a { text-align: center; }
  .tracker-actions .button { width: 100%; }
  .tracker-note { grid-template-columns: 1fr; gap: .35rem; }
  .library-card { grid-template-columns: 1fr; }
  .library-index { font-size: 1.45rem; }
  .status-pill, .library-link { grid-column: 1; }
  .rules-page-hero h1 { font-size: clamp(3.1rem, 16vw, 4.5rem); }
  .homebrew-content { padding: 1.1rem; }
  .homebrew-content h2 { margin-top: 3rem; }
  .tracker-page-bar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    padding-inline: .65rem;
  }
  .tracker-back {
    padding: .5rem .55rem;
    font-size: 0;
  }
  .tracker-back span { font-size: 1rem; }
  .tracker-page-system { display: none; }
  .tracker-page-bar strong { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
