:root {
  --iron: #1d2129;
  --iron-raised: #262b35;
  --rule: #3a404c;
  --bone: #e6decd;
  --ash: #a9a397;
  --gold: #c9a24a;

  --display: "Grenze Gotisch", "Palatino Linotype", serif;
  --body: "Alegreya Sans", "Segoe UI", sans-serif;

  --step-0: 1.125rem;
  --step-1: 1.4rem;
  --step-2: 2.1rem;
  --step-3: clamp(3.4rem, 11vw, 7.5rem);
}

[data-faction="accord"] { --cloth: #2f5ba6; --trim: #d9b24c; --mark: #d9b24c; --tone: #6f95d6; }
[data-faction="pact"]   { --cloth: #5b3a96; --trim: #2eb0a4; --mark: #5fe0d2; --tone: #a587d8; }
[data-faction="union"]  { --cloth: #8e3622; --trim: #c8b48a; --mark: #e8d9b4; --tone: #d4785c; }

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

html { background: var(--iron); }

body {
  margin: 0;
  background: var(--iron);
  color: var(--bone);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--bone); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; }
h2 { font-size: var(--step-2); margin-bottom: 1.5rem; }
h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(68rem, 100% - 2rem); margin-inline: auto; }
main > section { padding-block: 4.5rem; border-top: 1px solid var(--rule); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--gold); color: var(--iron); padding: 0.5rem 1rem; z-index: 2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Hero */

.hero { padding-block: 3.5rem 4.5rem; }
.studio { color: var(--ash); margin-bottom: 0.25rem; }
.hero h1 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.01em; color: var(--gold); }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 34rem; margin-top: 1rem; }
.status { color: var(--ash); }

.matchup { margin-top: 3rem; }
.field { display: flex; align-items: flex-start; justify-content: center; gap: clamp(1rem, 6vw, 5rem); }

.banner { margin: 0; width: clamp(8rem, 24vw, 13rem); text-align: center; }
.banner svg { display: block; width: 100%; height: auto; --pole: #8a6f3a; transform-origin: top; animation: unfurl 900ms cubic-bezier(.2, .8, .2, 1) both; }
.banner[data-side="b"] svg { animation-delay: 150ms; }
.banner figcaption { margin-top: 0.75rem; }
.banner strong { display: block; font: 500 var(--step-1)/1.2 var(--display); color: var(--tone); }
.banner span { color: var(--ash); }

.versus { font: 500 var(--step-1)/1 var(--display); color: var(--ash); align-self: center; margin: 0 0 4rem; }

@keyframes unfurl { from { transform: scaleY(0.05); opacity: 0; } to { transform: none; opacity: 1; } }

.picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.picker p { width: 100%; text-align: center; color: var(--ash); margin-bottom: 0.5rem; }
.picker button {
  font: 500 1rem/1 var(--body);
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
}
.picker button[aria-pressed="true"] { background: var(--cloth); border-color: var(--trim); }
.picker button:hover { border-color: var(--trim); }

/* Sections */

.prose p { max-width: 38rem; }

.loop { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 2.5rem; }
.loop p { color: var(--ash); }
.win { margin-top: 2rem; max-width: 38rem; }

.factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.faction { background: var(--iron-raised); border-left: 6px solid var(--cloth); padding: 1.5rem; }
.faction h3 { color: var(--tone); }
.faction .motto { font-style: italic; color: var(--trim); }

.road { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.road li { counter-increment: step; position: relative; padding: 0 0 2rem 3.5rem; max-width: 42rem; }
.road li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  font: 700 1.2rem/1 var(--display);
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ash);
}
.road li::after { content: ""; position: absolute; left: 1.1rem; top: 2.5rem; bottom: 0.25rem; width: 1px; background: var(--rule); }
.road li:last-child::after { display: none; }
.road li.current::before { background: var(--gold); border-color: var(--gold); color: var(--iron); }
.road p { color: var(--ash); }

.note { color: var(--ash); max-width: 38rem; }
.log article { padding-block: 1.25rem; border-bottom: 1px solid var(--rule); max-width: 44rem; }
.log time { display: block; font: 400 1rem/1.4 var(--body); color: var(--gold); margin-bottom: 0.2rem; }
.log p { color: var(--ash); margin: 0; }

.follow ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

footer { padding-block: 2rem 3rem; border-top: 1px solid var(--rule); color: var(--ash); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .banner svg { animation: none; }
}
