/* wrathstrike.com. Layout: the visor slit. The page is the inside of a helm: dark steel, and the
   world (the art) seen through a horizontal slit. One ember light source, from the app icon. */
@font-face { font-family: "Grenze Gotisch"; font-weight: 700; font-display: swap; src: url("/fonts/grenze-gotisch-700.woff2") format("woff2") }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-sans-400.woff2") format("woff2") }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-500.woff2") format("woff2") }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-700.woff2") format("woff2") }
@font-face { font-family: "Alegreya Sans SC"; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-sc-700.woff2") format("woff2") }

:root {
  color-scheme: dark;
  --ink: #0c0b0a;        /* inside the helm */
  --plate: #16140f;      /* lit steel plate */
  --steel: #a8a39b;      /* secondary text, 7.6:1 on ink */
  --bone: #efe8dc;       /* primary text */
  --ember: #ff6a1a;      /* the one light */
  --ember-deep: #c2410c;
  --rule: #2a2621;
  --field: #4a4239;
  --display: "Grenze Gotisch", Georgia, "Times New Roman", serif;
  --body: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --label: "Alegreya Sans SC", "Alegreya Sans", system-ui, sans-serif;
  --measure: 62ch;
}
* { box-sizing: border-box }
html { background: var(--ink); -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 1.125rem/1.6 var(--body); -webkit-font-smoothing: antialiased }
img { max-width: 100% }
a { color: var(--ember) }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.label { margin: 0; font: 700 .85rem/1 var(--label); letter-spacing: .14em; text-transform: lowercase; color: var(--ember) }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: .95; letter-spacing: .005em; text-wrap: balance; margin: 0 }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem) }
p { margin: 0; max-width: var(--measure) }

/* Masthead */
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone) }
.brand img { width: 40px; height: 40px; border-radius: 10px }
.brand span { font: 700 1.6rem/1 var(--display); letter-spacing: .02em }
.mast .status { font: 500 .95rem/1.2 var(--body); color: var(--steel) }
.mast .status b { color: var(--bone); font-weight: 500 }

/* Hero: the slit */
.hero { position: relative; isolation: isolate }
.slit { position: relative; margin: 0; border-block: 1px solid #3a342c; overflow: hidden; background: #000 }
.slit img { display: block; width: 100%; height: clamp(300px, 46vw, 620px); object-fit: cover; object-position: 62% 50% }
.slit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,10,.92) 0%, rgba(12,11,10,.55) 34%, rgba(12,11,10,0) 60%); pointer-events: none }
.hero-copy { position: absolute; inset: 0; display: flex; align-items: center }
.hero-copy .wrap { width: 100% }
.hero-copy .inner { max-width: 34rem; display: grid; gap: 18px }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.2rem); color: var(--bone); text-shadow: 0 2px 30px rgba(0,0,0,.6) }
.hero .promise { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--bone); max-width: 30rem }

/* Form */
.join { display: grid; gap: 12px; max-width: 30rem }
.row { display: flex; gap: 10px; flex-wrap: wrap }
.row input[type=email] { flex: 1 1 15rem; min-width: 0; height: 52px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--field); background: rgba(12,11,10,.85); color: var(--bone); font: 400 1.05rem var(--body) }
.row input::placeholder { color: #8f8a83 }
.row input[aria-invalid=true] { border-color: var(--ember) }
.row button, .note button { flex: 0 0 auto; height: 52px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--ember); color: #140a04; font: 700 1.05rem/1 var(--body); cursor: pointer; box-shadow: 0 0 0 1px #ff8a4a inset, 0 10px 30px -10px rgba(255,106,26,.6) }
.row button:hover, .note button:hover { background: #ff7d33 }
.row button:disabled { opacity: .7; cursor: progress }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--bone) }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ember); flex: 0 0 auto }
.fine { font-size: .9rem; color: var(--steel) }
.beta-note { font-size: .9rem; color: var(--steel); border-left: 2px solid var(--ember); padding-left: 10px }
.err { font-size: .95rem; color: #ffb38a }
.ts:empty { display: none }
.done { display: grid; gap: 6px; max-width: 30rem; padding: 16px 18px; border: 1px solid var(--field); border-radius: 4px; background: rgba(12,11,10,.85) }
.done strong { font: 700 1.6rem/1 var(--display) }
.done span { color: var(--bone) }
noscript p { color: #ffb38a; font-size: .95rem }

/* Sections */
section { padding-block: clamp(64px, 9vw, 120px) }
section.tight { padding-top: 0 }
.thin-slit { height: 10px; background: linear-gradient(90deg, transparent, var(--ember-deep) 30%, var(--ember) 50%, var(--ember-deep) 70%, transparent); opacity: .5 }

/* The duel story */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start }
.story ol { list-style: none; margin: 0; padding: 0; counter-reset: beat }
.story li { counter-increment: beat; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 16px; padding-block: 22px; border-top: 1px solid var(--rule); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.45 }
.story li::before { content: counter(beat, upper-roman); font: 700 1.5rem/1.2 var(--display); color: var(--ember) }
.story li:last-child { border-bottom: 1px solid var(--rule) }
.story li em { font-style: normal; color: var(--ember) }
.story .payoff { margin-top: 28px; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); color: var(--bone); max-width: 26ch }

/* Compass */
.compass-sec { background: radial-gradient(ellipse at 30% 50%, #1d1812 0%, var(--ink) 65%) }
.compass { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center }
.compass figure { margin: 0; max-width: 460px; width: 100%; justify-self: center }
.compass svg { width: 100%; height: auto; display: block }
.moves { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px }
.moves li { display: grid; gap: 4px }
.moves b { font: 700 1.5rem/1 var(--display); color: var(--bone) }
.moves span { color: var(--steel) }
.thumb { animation: duel 6s infinite cubic-bezier(.5,0,.3,1) }
.trail { animation: trail 6s infinite }
.flash { animation: flash 6s infinite }
@keyframes duel {
  0%, 8%   { transform: translate(0, 0) }
  22%, 36% { transform: translate(0, -128px) }
  48%, 56% { transform: translate(-128px, 0) }
  62%      { transform: translate(0, 0) }
  100%     { transform: translate(0, 0) }
}
@keyframes flash { 0%, 60% { opacity: 0 } 64% { opacity: 1 } 80%, 100% { opacity: 0 } }
@keyframes trail { 0%, 40% { opacity: 0 } 48%, 56% { opacity: .9 } 64%, 100% { opacity: 0 } }
.cap { font: 700 15px var(--label); letter-spacing: .12em; fill: var(--steel) }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 36px }
.rules div { padding: 26px 22px 28px 0; display: grid; gap: 8px; align-content: start }
.rules div + div { padding-left: 22px; border-left: 1px solid var(--rule) }
.rules b { font: 700 1.9rem/1 var(--display) }
.rules span { color: var(--steel); font-size: 1rem }

/* Waiting */
.waiting { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px }
.waiting article { display: grid; gap: 10px; align-content: start; padding: 26px; background: var(--plate); border: 1px solid var(--rule); border-radius: 2px }
.waiting h3 { margin: 0; font: 700 1.8rem/1 var(--display) }
.waiting p { color: var(--steel); font-size: 1.02rem }

/* Zornhau note */
.zorn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: baseline; padding-block: 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule) }
.zorn .word { font: 700 clamp(2.4rem, 6vw, 4rem)/1 var(--display); color: var(--ember) }
.zorn p { color: var(--steel); font-size: 1.05rem }
.zorn p b { color: var(--bone); font-weight: 500 }

/* FAQ */
.faq { max-width: 52rem; margin-top: 28px; border-top: 1px solid var(--rule) }
.faq details { border-bottom: 1px solid var(--rule) }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 500 1.2rem/1.35 var(--body); color: var(--bone) }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 700 1.6rem/1 var(--display); color: var(--ember) }
.faq details[open] summary::after { content: "\2212" }
.faq details p { padding: 0 0 22px; color: var(--steel) }

/* Final call */
.final { display: grid; gap: 20px; justify-items: start }
.final h2 { font-size: clamp(2.6rem, 6vw, 4.6rem) }
footer { border-top: 1px solid var(--rule); padding-block: 28px 40px; color: var(--steel); font-size: .95rem }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px }
footer a { color: var(--steel) }

/* Pages the Worker builds (confirm, leave) and the 404 */
.note { display: grid; gap: 18px; justify-items: start; padding-block: 48px 96px; max-width: 46rem; margin-left: auto; margin-right: auto }
.note h1 { font-size: clamp(2.4rem, 6vw, 4rem) }
.note p { color: var(--steel) }

/* Phones: the slit becomes a band on top, the words go under it. */
@media (max-width: 760px) {
  .mast .status { display: none }
  .slit img { height: 62vw; object-position: 66% 50% }
  .slit::after { background: linear-gradient(0deg, rgba(12,11,10,.85) 0%, rgba(12,11,10,0) 40%) }
  .hero-copy { position: static; padding-block: 24px 40px }
  .story, .compass { grid-template-columns: minmax(0, 1fr) }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .rules div:nth-child(3) { padding-left: 0; border-left: 0 }
  .rules div:nth-child(n+3) { border-top: 1px solid var(--rule) }
  .waiting { grid-template-columns: minmax(0, 1fr) }
  .zorn { grid-template-columns: minmax(0, 1fr); gap: 8px }
}
@media (prefers-reduced-motion: reduce) {
  .thumb, .flash, .trail { animation: none }
  .flash { opacity: 1 }
  .trail { opacity: .9 }
}
