@font-face {
  font-family: 'Amulith Serif';
  src: url('assets/fonts/NotoSerif-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Amulith Serif';
  src: url('assets/fonts/NotoSerif-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Amulith Sans';
  src: url('assets/fonts/NotoSans-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --surface: #fff1d6;
  --text: #282d23;
  --muted: #535849;
  --accent: #42603b;
  --rule: #a5ad90;
  --build-surface: #e4e6cf;
  --focus: #30502c;
  --serif: 'Amulith Serif', Georgia, serif;
  --sans: 'Amulith Sans', sans-serif;
}
:root[data-theme='blight'] {
  color-scheme: dark;
  --surface: #15102a;
  --text: #f3ead2;
  --muted: #c4bbd5;
  --accent: #c7dc45;
  --rule: #655973;
  --build-surface: #1e1230;
  --focus: #e8bd5a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { overflow-wrap: anywhere; margin: 0; background: var(--surface); color: var(--text); font: 1rem/1.7 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .3em; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1.18; letter-spacing: -.04em; }
h3 { font-size: 1.375rem; line-height: 1.4; letter-spacing: -.025em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.section-wrap { width: min(1200px, calc(100% - 6rem)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 5; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--surface); color: var(--text); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Key art anchors the page. It is a concept illustration, not a live game. */
.hero-shell { position: relative; isolation: isolate; min-height: 860px; height: min(980px, 100svh); color: #f3ead2; background: #120d1a; display: flex; flex-direction: column; }
.hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero-shell::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(12, 9, 18, .88), rgba(12, 9, 18, .58) 25%, transparent 55%, rgba(12, 9, 18, .72) 82%, #120d1a); }
:root[data-theme='blight'] .hero-art { filter: saturate(.8) brightness(.78); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-inline: 3rem; min-height: 104px; border-bottom: 1px solid #f3ead24d; }
.hero-shell a:focus-visible, .hero-shell button:focus-visible { outline-color: #e8bd5a; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; font: 1.5rem var(--serif); text-decoration: none; }
.wordmark svg { width: 21px; height: 28px; color: #e8bd5a; }
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .875rem; }
.site-header nav a:hover { text-decoration: underline; }
.theme-switch { display: flex; gap: .25rem; padding: .25rem; border: 1px solid #f3ead277; border-radius: 3rem; background: #120d1ad9; }
.theme-switch button { display: flex; gap: .5rem; align-items: center; justify-content: center; color: #f3ead2; border: 1px solid transparent; background: transparent; padding: .5rem .875rem; min-height: 44px; border-radius: 2rem; font-size: .875rem; }
.theme-switch button[aria-pressed='true'] { background: #f3ead2; color: #120d1a; border-color: #f3ead2; }
.theme-switch svg { width: 18px; height: 18px; }
.hero-title { text-align: center; margin: 3rem 1.5rem 0; }
.event { font-size: .875rem; }
h1 { font-size: clamp(5rem, 11vw, 10.5rem); letter-spacing: .04em; line-height: 1.15; margin: .5rem 0; text-shadow: 0 4px 32px #120d1a88; }
.hero-line { font: italic clamp(1.125rem, 2vw, 1.625rem)/1.5 var(--serif); }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 2rem; width: min(1200px, calc(100% - 6rem)); margin: auto auto 0; padding-top: 10rem; }
.hero-bottom > p { max-width: 540px; font: 1.25rem/1.65 var(--serif); }
.hero-link { display: inline-flex; align-items: center; gap: 2rem; padding: .5rem 0; min-height: 44px; border-bottom: 1px solid #e8bd5a; text-decoration: none; white-space: nowrap; }
.hero-link svg { width: 24px; height: 24px; }
.art-caption { width: min(1200px, calc(100% - 6rem)); margin: 1.75rem auto 1.5rem; color: #c9c1cf; font-size: .75rem; }

.play-section { padding-block: 7rem; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.intro-copy { max-width: 530px; padding-top: .5rem; color: var(--muted); }
.intro-copy p + p { margin-top: 1rem; color: var(--text); }
.play-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding: 0; margin: 4rem 0 0; }
.play-steps li { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.step-number { font: 1rem var(--serif); color: var(--accent); }
.play-steps h3 { margin-top: 1rem; }
.play-steps p { color: var(--muted); margin-top: 1rem; max-width: 34ch; }
.development-note { font-size: .8125rem; color: var(--muted); max-width: 96ch; margin-top: 2rem; }
.factions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 4rem; }
.faction { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.5rem; position: relative; }
.bloom-path { background: #e8ebd0; color: #283c24; border: 1px solid #97a781; }
.blight-path { background: #261b3c; color: #f3ead2; border: 1px solid #79648c; }
.faction-text { max-width: 32ch; }
.path-name { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .875rem; }
.path-name svg { width: 24px; height: 24px; }
.faction h3 { font-size: 1.75rem; }
.faction p:not(.path-name) { margin-top: .75rem; font-size: .9375rem; }
.path-detail { display: block; font-size: .75rem; margin-top: 1.75rem; }
.bloom-path .path-detail { color: #4c5c40; }
.blight-path .path-name { color: #c7dc45; }
.blight-path .path-detail { color: #c9bed8; }
.sprite { image-rendering: pixelated; flex: none; max-width: none; }

.build-section { background: var(--build-surface); padding-block: 6rem; border-block: 1px solid var(--rule); }
.build-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.section-label { color: var(--accent); font-size: .875rem; margin-bottom: 1.25rem; }
.build-heading > p:not(.section-label) { max-width: 43ch; color: var(--muted); margin-top: 1.5rem; }
.text-link { display: inline-block; padding-block: .75rem; min-height: 44px; margin-top: 1rem; }
.remnant-figure { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; max-width: 400px; }
.remnant-figure img { filter: drop-shadow(0 12px 24px #8c7cff40); }
.remnant-figure figcaption { color: var(--muted); font: italic .875rem/1.5 var(--serif); text-align: center; margin-top: .5rem; }
.build-details dl { margin: 0; }
.build-details dl > div { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem; padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.build-details dl > div:first-child { padding-top: 0; border-top: 0; }
.build-details dt { font-size: .75rem; color: var(--accent); padding-top: .5rem; }
.build-details dd { margin: 0; }
.build-details dd p { color: var(--muted); margin-top: .75rem; font-size: .9375rem; }
.build-note { border-top: 1px solid var(--rule); padding-top: 1.5rem; font-size: .8125rem; color: var(--muted); }

.team-section { display: grid; grid-template-columns: 1.5fr 1fr; gap: 5rem; padding-block: 6rem; }
.team-section h2 { font-size: clamp(2rem, 3vw, 2.75rem); }
.team-names { color: var(--accent); margin-top: 1.5rem; }
.team-names span { padding-inline: .5rem; }
.team-section > div > p:last-child { max-width: 48ch; margin-top: 1rem; color: var(--muted); }
.project-links { display: flex; align-items: start; flex-direction: column; }
.source-button { background: var(--text); color: var(--surface); padding: 1rem 1.5rem; border: 1px solid var(--text); text-decoration: none; line-height: 1.5; min-height: 44px; }
.source-button:hover { text-decoration: underline; }
.devpost-placeholder { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; }
.project-links #devpost-note { font-size: .8125rem; margin-top: .25rem; max-width: 34ch; }
.site-footer { display: grid; grid-template-columns: 1fr 3fr auto; gap: 3rem; border-top: 1px solid var(--rule); padding-block: 2.5rem; align-items: start; }
.footer-wordmark { font: 1.5rem var(--serif); text-decoration: none; min-height: 44px; display: inline-flex; align-items: start; }
.credits { color: var(--muted); font-size: .75rem; max-width: 84ch; }
.credits p + p { margin-top: .75rem; }
.credits a { display: inline-block; padding-block: .25rem; }
.back-to-top { font-size: .8125rem; min-height: 44px; display: inline-flex; align-items: start; padding-top: .25rem; white-space: nowrap; }

@media (max-width: 1100px) {
  .site-header { margin-inline: 2rem; gap: 1rem; }
  .site-header nav { gap: 1.25rem; }
  .section-wrap, .hero-bottom, .art-caption { width: calc(100% - 4rem); }
  .hero-shell { min-height: 800px; }
  .section-intro { gap: 3rem; }
  .faction { padding: 2rem 1.5rem; gap: 1rem; }
  .faction h3 { font-size: 1.5rem; }
  .build-layout { gap: 3rem; }
  .team-section { gap: 3rem; }
}
@media (max-width: 760px) {
  .section-wrap, .hero-bottom, .art-caption { width: calc(100% - 3rem); }
  .site-header { margin-inline: 1.5rem; flex-wrap: wrap; gap: .5rem; padding-block: 1rem; }
  .wordmark { font-size: 1.25rem; }
  .wordmark svg { width: 17px; height: 24px; }
  .theme-switch button { padding: .5rem .625rem; font-size: .8125rem; gap: .375rem; }
  .site-header nav { order: 3; flex-basis: 100%; gap: 1.5rem; justify-content: space-between; }
  .hero-shell { min-height: max(780px, 100svh); height: auto; }
  .hero-art { object-position: 50% 55%; }
  .hero-shell::before { background: linear-gradient(180deg, #120d1aeb, #120d1a88 37%, transparent 53%, #120d1ae6 80%, #120d1a); }
  .hero-title { margin-top: 2rem; }
  h1 { font-size: clamp(4rem, 17vw, 7rem); margin-block: .75rem; }
  .event { font-size: .75rem; }
  .hero-line { max-width: 27ch; margin-inline: auto; }
  .hero-bottom { align-items: start; flex-direction: column; gap: 1.25rem; padding-top: 12rem; }
  .hero-bottom > p { font-size: 1.0625rem; max-width: 36ch; }
  .hero-link { font-size: .875rem; gap: 1.5rem; }
  .art-caption { font-size: .625rem; margin-top: 1rem; margin-bottom: 1.25rem; }
  .play-section { padding-block: 4rem; }
  .section-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro-copy { padding: 0; }
  .play-steps { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
  .play-steps li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .75rem; }
  .step-number { padding-top: .25rem; grid-row: 1 / 3; }
  .play-steps h3 { margin: 0; font-size: 1.25rem; }
  .play-steps p { grid-column: 2; margin-top: .5rem; max-width: none; }
  .development-note { margin-top: 1.5rem; }
  .factions { grid-template-columns: minmax(0, 1fr); margin-top: 2.5rem; }
  .faction { padding: 1.5rem; gap: 1rem; flex-wrap: wrap; }
  .faction-text { min-width: 0; flex: 1 1 120px; }
  .faction h3 { font-size: 1.375rem; }
  .path-detail { margin-top: 1rem; }
  .build-section { padding-block: 4rem; }
  .build-layout { grid-template-columns: 1fr; gap: 3rem; }
  .remnant-figure { margin-top: 1rem; margin-inline: auto; }
  .build-heading > p:not(.section-label) { max-width: none; }
  .build-details dl > div { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .team-section { grid-template-columns: 1fr; gap: 2rem; padding-block: 4rem; }
  .team-names { font-size: .9375rem; }
  .site-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding-block: 2rem; }
  .credits { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 359px) {
  .section-wrap, .hero-bottom, .art-caption { width: calc(100% - 2rem); }
  .site-header { margin-inline: 1rem; }
  .theme-switch svg { display: none; }
  .faction { padding: 1.25rem 1rem; gap: .5rem; }
  .faction h3 { font-size: 1.25rem; }
  .faction p:not(.path-name) { font-size: .875rem; }
  .team-names span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
