@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Spectral;
  src: url("/assets/fonts/spectral-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Spectral;
  src: url("/assets/fonts/spectral-semibold-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #101b2c;
  --ink: #1b2b3b;
  --body: #384554;
  --paper: #f7f3e9;
  --cream: #fff6df;
  --gold: #f1c775;
  --rule: #d7cebb;
  --serif: Spectral, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, textarea):focus-visible { outline: 3px solid #228cbd; outline-offset: 4px; }
section[id], footer[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(76rem, calc(100% - clamp(2.5rem, 11vw, 11rem))); margin-inline: auto; }
.sr-only, .roster-picker input, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus { position: absolute; z-index: 20; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--cream); color: var(--ink); }

/* The shared masthead */
.masthead { background: var(--night); color: var(--cream); border-bottom: 1px solid #364052; }
.masthead-inner { min-height: 4.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; white-space: nowrap; text-decoration: none; font: 600 1.65rem/1 var(--serif); letter-spacing: -.045em; }
.brand img { width: 2.45rem; height: 2.45rem; border-radius: 27%; box-shadow: 0 0 0 1px #b58d504f; }
.site-nav, .footer nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.65rem); }
.site-nav { flex-wrap: wrap; row-gap: 0; }
.site-nav a { position: relative; padding-block: .7rem; color: #d1d6dd; font-size: .94rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current], .site-nav a:hover, .footer a:hover { color: var(--gold); }
.site-nav a[aria-current]::after { content: ""; position: absolute; height: 2px; background: var(--gold); inset: auto 0 .36rem; }

/* The game and its featured roster */
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: linear-gradient(112deg, #121d30 0%, #14253c 57%, #172f49 100%);
  border-bottom: 2px solid #a68a56;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 0 25%;
  background: url("/assets/courtyard.webp") center 48% / cover no-repeat;
  opacity: .46;
  mask-image: linear-gradient(90deg, transparent, #000 65%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 75% 48%, #79abc523, transparent 44%), linear-gradient(0deg, #101c30ed 0%, transparent 36%, transparent 74%, #101b2c55 100%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: 1rem; min-height: 36rem; padding-block: clamp(2.2rem, 4vw, 4.35rem); }
.hero-copy { position: relative; z-index: 1; padding-bottom: .6rem; }
.eyebrow { display: flex; align-items: center; gap: .9rem; color: var(--gold); font-size: .78rem; font-weight: 700; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.thread { display: inline-block; flex: 0 0 2.15rem; height: 1px; background: currentColor; position: relative; }
.thread::after { content: ""; position: absolute; width: .32rem; height: .32rem; right: 0; top: 50%; transform: translateY(-50%) rotate(45deg); background: currentColor; }
.hero h1 { margin: 1.55rem 0 1.4rem -.045em; color: var(--cream); font-size: clamp(4.5rem, 7.6vw, 7.5rem); letter-spacing: -.069em; line-height: .96; }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.hero-intro { max-width: 28rem; color: #d5dce4; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.55rem; margin-top: 1.85rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.05rem; padding: .72rem 1.5rem; border: 1px solid transparent; border-radius: .45rem; cursor: pointer; font: 700 1rem/1.35 var(--sans); text-align: center; text-decoration: none; }
.button-gold { color: #222636; background: #f2ca7e; box-shadow: inset 0 1px #fff3bd9e, 0 3px 0 #846a3e; }
.button-gold:hover { background: #ffda92; }
.button-ink { color: white; background: #20394c; }
.button-ink:hover { background: #2e5066; }
.text-link { padding-block: .6rem; color: #f0e9d8; font-size: .98rem; font-weight: 600; text-decoration-color: #bca070; text-underline-offset: .36em; }
.text-link:hover { color: var(--gold); }
.showcase { position: relative; justify-self: center; width: min(100%, 35rem); min-width: 0; }
.stage { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; aspect-ratio: 1.29; }
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6% 9% 0;
  background: radial-gradient(ellipse, #62a3c457, #406b9030 45%, transparent 70%);
}
.stage::after { content: ""; position: absolute; z-index: -1; inset: auto 15% 2%; height: 8%; border-radius: 50%; background: #07111fab; filter: blur(9px); }
.astrolabe { position: absolute; z-index: -1; top: 49%; left: 50%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid #e8ca885e; border-radius: 50%; }
.astrolabe i { position: absolute; inset: 5%; border: 1px solid #e6ca854a; border-radius: 50%; }
.astrolabe i::before { content: ""; position: absolute; inset: -3%; border-radius: 50%; background: repeating-conic-gradient(#e9cc8999 0deg .45deg, transparent .45deg 7.5deg); mask-image: radial-gradient(closest-side, transparent 97%, #000 98%); }
.astrolabe b, .astrolabe span { position: absolute; width: .55rem; height: .55rem; background: #c3ae76; border: 2px solid #324258; transform: translate(-50%, -50%) rotate(45deg); }
.astrolabe b { top: 14.6%; left: 14.6%; }
.astrolabe span { top: 85.4%; left: 85.4%; }
.astrolabe::before, .astrolabe::after { content: ""; position: absolute; top: 50%; width: 11%; height: 1px; background: #d5bc7b8a; }
.astrolabe::before { left: -5.5%; }
.astrolabe::after { right: -5.5%; }
.champion { width: 88%; height: 100%; position: absolute; inset: 0; margin: auto; object-fit: contain; filter: drop-shadow(0 11px 9px #07111f80); }
.roster {
  max-width: 24rem;
  min-height: 4.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin: .55rem auto 0;
  padding: .74rem 1rem;
  background: #101e30f2;
  border: 1px solid #9c895c94;
  border-radius: .55rem;
  box-shadow: 0 .4rem 1.4rem #05111c4d;
}
.nameplate { display: grid; gap: .12rem; }
.hero-name { color: var(--cream); font: 600 clamp(1.25rem, 2.2vw, 1.65rem)/1.1 var(--serif); letter-spacing: -.04em; }
.hero-role { color: var(--gold); font-size: .73rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
.roster-picker { display: flex; align-items: center; gap: .38rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.roster-picker label { display: block; position: relative; cursor: pointer; }
.roster-picker label > span { display: grid; place-items: end center; width: 2.82rem; height: 2.82rem; overflow: hidden; border-radius: .32rem; border: 1px solid #768292; background: linear-gradient(#38465b, #223147); }
.roster-picker label img { width: 100%; height: 100%; object-fit: contain; opacity: .8; }
.roster-picker input:checked + span { border: 2px solid #ffcf6a; background: #46516a; }
.roster-picker input:checked + span img, .roster-picker label:hover img { opacity: 1; }
.roster-picker input:focus-visible + span { outline: 3px solid #a1e2ff; outline-offset: 3px; }

/* The field guide and support navigation */
.guide { padding: clamp(2.7rem, 5vw, 4.75rem) 0 clamp(3rem, 5.3vw, 5rem); }
.section-title { display: flex; align-items: center; gap: 1.8rem; }
.section-title h2, .prose h2, .request-panel h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.14; letter-spacing: -.047em; }
.section-title > span { position: relative; height: 1px; background: var(--rule); flex: 1; }
.section-title > span::before { content: ""; position: absolute; width: .42rem; height: .42rem; top: 50%; left: 0; transform: translateY(-50%) rotate(45deg); background: #af9157; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.1rem; }
.guide-steps article { padding: 0 clamp(1.25rem, 2.8vw, 2.8rem); border-left: 1px solid var(--rule); }
.guide-steps article:first-child { padding-left: 0; border-left: 0; }
.guide-steps article:last-child { padding-right: 0; }
.guide-steps img { width: 2.85rem; height: 2.9rem; object-fit: contain; object-position: left center; margin-bottom: .85rem; }
.guide-steps h3 { font-size: 1.55rem; letter-spacing: -.035em; line-height: 1.2; margin-bottom: .4rem; }
.guide-steps p { max-width: 23rem; }
.footer { background: var(--night); color: #d2d7de; border-top: 1px solid #344051; }
.footer-inner { min-height: 7.75rem; padding-block: 1.55rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-title { color: var(--cream); font: 600 1.5rem/1.2 var(--serif); letter-spacing: -.03em; }
.footer-note { color: #aeb8c6; font-size: .88rem; margin-top: .2rem; }
.footer nav { flex-wrap: wrap; }
.footer a { font-size: .93rem; text-decoration-color: #83909b; }

/* Public policy and request pages */
.page-intro { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(105deg, var(--night) 30%, #223d54); color: #d6dee6; border-bottom: 2px solid #a68a56; }
.page-intro::after { content: ""; z-index: -1; position: absolute; inset: 0 0 0 49%; opacity: .2; background: url("/assets/courtyard.webp") center 42% / cover; mask-image: linear-gradient(90deg, transparent, #000); }
.page-intro .wrap { padding-block: clamp(2.1rem, 4.3vw, 4rem); }
.page-intro h1, .receipt h1 { font-size: clamp(2.65rem, 5.25vw, 4.9rem); letter-spacing: -.06em; line-height: 1.04; margin: .65rem 0 .75rem; }
.page-intro h1 { color: var(--cream); }
.page-intro p:not(.eyebrow) { max-width: 46rem; font-size: 1.08rem; }
.page-intro p.updated { color: #bdc9d4; font-size: .9rem; margin-top: .8rem; }
.document-layout, .request-layout { display: grid; align-items: start; padding-block: clamp(2.2rem, 4.8vw, 4.3rem) clamp(3.2rem, 6vw, 5.8rem); }
.document-layout { grid-template-columns: minmax(10rem, 15.5rem) minmax(0, 45rem); gap: clamp(2rem, 6.7vw, 6rem); }
.contents { position: sticky; top: 2rem; display: flex; flex-direction: column; align-items: start; gap: .3rem; padding-left: 1rem; border-left: 2px solid #b5a078; }
.contents p { color: var(--ink); font-weight: 700; margin-bottom: .4rem; }
.contents a { color: #455566; text-decoration: none; padding-block: .18rem; }
.contents a:hover { text-decoration: underline; }
.prose section + section { margin-top: 2.15rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.prose h2, .request-panel h2 { font-size: clamp(1.65rem, 2.65vw, 2.15rem); margin-bottom: .8rem; }
.prose p + p, .prose li + li { margin-top: .9rem; }
.prose ul { margin: .65rem 0 0; padding-left: 1.35rem; }
.prose li::marker { color: #886b38; }
.prose strong { color: var(--ink); }
.prose a { color: #19536c; }
.request-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(2.25rem, 7vw, 6.25rem); }
.request-panel { grid-column: 2; grid-row: 1; padding: clamp(1.25rem, 3vw, 2.5rem); background: #fffdf7; border: 1px solid #cfc4ad; border-top: 3px solid #ad8b54; border-radius: .55rem; box-shadow: 0 .8rem 2.3rem #19243409; }
.deletion-details { grid-column: 1; grid-row: 1; }
.support-form { margin-top: 1.4rem; }
.support-form label { display: block; margin: 1.05rem 0 .35rem; color: var(--ink); font-weight: 700; }
.support-form label span { color: #546372; font-size: .88rem; font-weight: 400; }
.support-form :is(input:not([type="hidden"]), textarea) { width: 100%; padding: .66rem .8rem; border: 1px solid #8a969d; border-radius: .3rem; background: #fffefa; color: var(--ink); font: inherit; line-height: 1.45; }
.support-form textarea { display: block; resize: vertical; min-height: 5rem; }
.support-form .hint { margin: .37rem 0 0; color: #53606a; font-size: .9rem; line-height: 1.5; }
.support-form .button { margin-top: 1.35rem; }
.receipt-page { min-height: 100vh; display: flex; flex-direction: column; }
.receipt { flex: 1; padding-block: clamp(4rem, 10vw, 9rem); }
.receipt .eyebrow { color: #795a24; }
.receipt > p:not(.eyebrow) { max-width: 37rem; margin-bottom: 1.6rem; font-size: 1.12rem; }

@media (max-width: 53rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero-inner { min-height: 31rem; gap: .5rem; }
  .hero h1 { font-size: clamp(3.8rem, 8.7vw, 5.4rem); }
  .hero-copy .eyebrow { font-size: .72rem; gap: .6rem; }
  .hero-copy .thread { flex-basis: 1.2rem; }
  .roster { padding: .65rem .7rem; }
  .document-layout { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; }
  .request-layout { gap: 2rem; }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead-inner { min-height: 4.4rem; gap: .85rem; }
  .brand { font-size: 1.35rem; gap: .5rem; }
  .brand img { width: 2rem; height: 2rem; }
  .site-nav { gap: .9rem; }
  .site-nav a { font-size: .9rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2.75rem 1.9rem; }
  .hero-copy { padding: 0; }
  .hero-copy .eyebrow { font-size: .77rem; }
  .hero-copy .thread { flex-basis: 1.8rem; }
  .hero h1 { margin-block: 1.1rem 1rem; font-size: clamp(4.25rem, 12.5vw, 5.5rem); }
  .hero-intro { max-width: 32rem; }
  .hero-actions { margin-top: 1.3rem; }
  .hero::before { inset: 24% 0 0; mask-image: linear-gradient(180deg, transparent, #000 58%); }
  .showcase { width: min(100%, 28rem); }
  .stage { aspect-ratio: 1.45; }
  .astrolabe { width: 68%; }
  .roster { min-height: 4.1rem; max-width: 20rem; margin-top: .65rem; }
  .hero-name { font-size: 1.35rem; }
  .guide-steps { grid-template-columns: 1fr; margin-top: 1.3rem; }
  .guide-steps article { display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem .95rem; padding: 1.2rem 0; border-left: 0; border-top: 1px solid var(--rule); }
  .guide-steps article:first-child { border-top: 0; }
  .guide-steps article:last-child { padding-bottom: 0; }
  .guide-steps img { grid-row: span 2; width: 2.4rem; height: 2.6rem; margin: .1rem 0 0; }
  .guide-steps h3 { margin: 0; }
  .guide-steps p { max-width: none; }
  .footer-inner { flex-direction: column; align-items: start; gap: 1rem; }
  .footer nav { gap: .6rem 1.35rem; }
  .document-layout, .request-layout { grid-template-columns: 1fr; gap: 2.2rem; }
  .contents { position: static; flex-direction: row; flex-wrap: wrap; gap: .25rem 1.2rem; }
  .contents p { width: 100%; }
  .request-panel, .deletion-details { grid-column: auto; grid-row: auto; }
}

@media (max-width: 37rem) {
  .masthead-inner { align-items: flex-start; flex-direction: column; gap: .17rem; padding-block: .76rem .26rem; }
  .site-nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .site-nav a { padding-block: .48rem .6rem; }
  .site-nav a[aria-current]::after { bottom: .28rem; }
}

@media (max-width: 31rem) {
  .hero::after { background: linear-gradient(0deg, #101c30ed 0%, transparent 40%, #101b2c22 100%); }
  .section-title { gap: 1.1rem; }
  .request-panel .button { width: 100%; }
}

@media (max-width: 28rem) {
  .site-nav { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 0 1.65rem; }
  .site-nav a { justify-self: start; padding-block: .35rem; }
  .site-nav a[aria-current]::after { bottom: .12rem; }
}

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