/* DURGA: The Lionhearted playtest site */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }


:root {
  --crimson: #961400;
  --crimson-deep: #6f0f00;
  --soot: #160c0a;
  --ember: #21110e;
  --ember-raised: #2b1612;
  --line: #44261f;
  --bone: #ffffff;
  --ash: #d9c8c3;
  --ash-dim: #b39d97;
  --error: #ffb3a6;
  --ok: #bfe3c4;

  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;

  --measure: 42rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--soot);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bone); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -3rem; z-index: 10;
  background: var(--bone); color: var(--soot); padding: 0.5rem 0.9rem; font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Hero ---------- */

.hero {
  background: var(--crimson);
  color: var(--bone);
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter) clamp(4.5rem, 10vw, 7.5rem);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - clamp(2.5rem, 7vw, 5.5rem)));
  overflow: hidden;
}

.hero-bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  max-width: 72rem; margin: 0 auto;
  font-size: var(--step--1); color: rgba(255, 255, 255, 0.86);
}
.hero-bar strong { color: var(--bone); font-weight: 700; letter-spacing: 0.01em; }

.hero-inner { max-width: 72rem; margin: clamp(2rem, 7vw, 4.5rem) auto 0; }

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.04em;
  font-size: clamp(4.6rem, 21vw, 15.5rem);
}
.wordmark-sub {
  display: block;
  font-size: clamp(1.35rem, 4.2vw, 2.6rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-top: 0.35em;
}

.hero-lede {
  max-width: 36rem;
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-actions { margin-top: 1.75rem; }

/* compact hero for inner pages */
.hero--compact { padding-bottom: clamp(2.75rem, 6vw, 3.75rem); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - clamp(1.5rem, 4vw, 3rem))); }
.hero--compact .wordmark { font-size: clamp(3.4rem, 12vw, 7.5rem); }
.hero--compact .wordmark-sub { font-size: clamp(1.1rem, 3vw, 1.6rem); }
.hero--compact .hero-inner { margin-top: clamp(1.5rem, 5vw, 3rem); }

/* ---------- Layout ---------- */

main { padding: 0 var(--gutter) 5rem; }

.column { max-width: 72rem; margin: 0 auto; }
.column > * { max-width: var(--measure); }

.block { margin-top: clamp(2.5rem, 6vw, 4rem); }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}
main h1 { font-family: var(--display); font-weight: 400; font-size: var(--step-3); line-height: 1.15; margin: 0 0 1rem; }
h3 { font-size: var(--step-1); font-weight: 700; margin: 0 0 0.5rem; line-height: 1.35; }

p { margin: 0 0 1rem; }
.muted { color: var(--ash); }
.small { font-size: var(--step--1); }

ul.plain { margin: 0; padding-left: 1.2rem; color: var(--ash); }
ul.plain li { margin-bottom: 0.65rem; }
ul.plain li::marker { color: var(--crimson); }
.specs-title { margin-top: 2rem; }

/* The playtest process is a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-size: var(--step-2); line-height: 1;
  color: var(--bone);
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: var(--crimson);
  grid-row: span 2;
}
.steps strong { display: block; font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.steps span { color: var(--ash); }

/* Progress bar for the tester journey */
.progress { list-style: none; display: flex; gap: 0.35rem; padding: 0; margin: 0 0 2rem; }
.progress li {
  flex: 1; font-size: var(--step--1); color: var(--ash-dim);
  padding-top: 0.6rem; border-top: 4px solid var(--line);
}
.progress li[aria-current="step"] { color: var(--bone); border-top-color: var(--bone); font-weight: 700; }
.progress li.done { color: var(--ash); border-top-color: var(--crimson); }

/* ---------- Panels ---------- */

.panel {
  background: var(--ember);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.panel + .panel { margin-top: 1.25rem; }
.panel--accent { border-left: 6px solid var(--crimson); }

.notice {
  border-left: 4px solid var(--crimson);
  background: var(--ember-raised);
  padding: 0.9rem 1rem;
  color: var(--ash);
  margin: 1.25rem 0;
}
.notice strong { color: var(--bone); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font: 700 var(--step-0)/1.2 var(--body);
  border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--crimson); color: var(--bone); border-color: var(--crimson); }
.btn-primary:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); text-decoration: none; }
.btn-light { background: var(--bone); color: var(--crimson); border-color: var(--bone); }
.btn-light:hover { background: transparent; color: var(--bone); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--ash-dim); }
.btn-ghost:hover { border-color: var(--bone); text-decoration: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Forms ---------- */

.form-section { margin-top: 2.75rem; }
#apply-fields, #fb-fields { margin-top: 2rem; }
.form-section:first-child { margin-top: 0; }
.form-section > h2 { font-size: var(--step-2); padding-bottom: 0.6rem; border-bottom: 2px solid var(--crimson); }

.q { margin: 1.75rem 0 0; border: 0; padding: 0; min-width: 0; }
.q-label, .q > legend {
  display: block; padding: 0;
  font-weight: 700; font-size: var(--step-0); line-height: 1.45; margin-bottom: 0.35rem;
}
.req { color: var(--ash-dim); font-weight: 400; }
.q-help { color: var(--ash-dim); font-size: var(--step--1); margin: 0 0 0.6rem; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--soot);
  color: var(--bone);
  border: 1px solid var(--ash-dim);
  border-radius: 2px;
  font: inherit;
}
input::placeholder, textarea::placeholder { color: #8f7a74; }
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--bone); outline-offset: 1px; border-color: var(--bone); }
input[readonly] { color: var(--ash); border-style: dashed; }
[aria-invalid="true"] { border-color: var(--error) !important; }

.options { display: grid; gap: 0.4rem; }
.option {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line); background: var(--soot);
  cursor: pointer; line-height: 1.45;
}
.option:hover { border-color: var(--ash-dim); }
.option:has(input:checked) { border-color: var(--bone); background: var(--ember-raised); }
.option input { margin: 0.2rem 0 0; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--crimson); }
.other-input { margin-top: 0.5rem; }

.scale { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0.4rem; max-width: 26rem; }
.scale-option { position: relative; }
.scale-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scale-option span {
  display: grid; place-items: center; height: 3rem;
  border: 1px solid var(--ash-dim); background: var(--soot);
  font-weight: 700; font-size: var(--step-1);
}
.scale-option input:checked + span { background: var(--crimson); border-color: var(--crimson); }
.scale-option input:focus-visible + span { outline: 3px solid var(--bone); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; max-width: 26rem; margin-top: 0.4rem; font-size: var(--step--1); color: var(--ash-dim); }

.consent { display: flex; gap: 0.75rem; align-items: flex-start; line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--crimson); }

.field-error { color: var(--error); font-size: var(--step--1); margin: 0.45rem 0 0; font-weight: 600; }
.field-error:empty { display: none; }

.form-error {
  margin-top: 1.5rem; padding: 0.85rem 1rem;
  border: 1px solid var(--error); color: var(--error); font-weight: 600;
}
.form-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile { margin-top: 1.5rem; min-height: 0; }

/* ---------- NDA document ---------- */

.nda-doc {
  background: #fbf8f7; color: #1c1210;
  max-height: 62vh; overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem; line-height: 1.7;
  border: 1px solid var(--line);
}
.nda-doc:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }
.nda-doc h1 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.25; margin: 0 0 0.25rem; color: var(--crimson); }
.nda-doc .nda-sub { font-weight: 700; margin-bottom: 1.5rem; }
.nda-doc h2 { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 0.6rem; color: #1c1210; letter-spacing: 0; }
.nda-doc h3 { font-family: Georgia, serif; font-size: 1rem; margin: 1.25rem 0 0.4rem; }
.nda-doc p, .nda-doc li { margin: 0 0 0.7rem; }
.nda-doc ol, .nda-doc ul { padding-left: 1.5rem; margin: 0 0 0.9rem; }
.nda-doc a { color: var(--crimson); }

.read-status { font-size: var(--step--1); color: var(--ash-dim); margin: 0.6rem 0 0; }
.read-status.done { color: var(--ok); }

.guardian { margin-top: 2rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.sign-date { font-size: var(--step--1); color: var(--ash); margin-top: 1.25rem; }

/* ---------- States ---------- */

.state { animation: settle 280ms ease-out; }
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.loading { color: var(--ash); display: flex; gap: 0.75rem; align-items: center; }
.loading::before {
  content: ""; width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--bone);
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.build-number { font-weight: 700; font-size: var(--step-1); color: var(--bone); font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter) 3rem;
  color: var(--ash-dim); font-size: var(--step--1);
}
.site-footer .column > * { max-width: none; }
.site-footer .column { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer a { color: var(--ash); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.discord { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.discord .btn-row { margin-top: 0.75rem; }

@media (max-width: 34rem) {
  .hero-bar span { display: none; }
  .steps li { grid-template-columns: 2.25rem 1fr; }
  .steps li::before { width: 2.25rem; height: 2.25rem; font-size: var(--step-1); }
  .btn { width: 100%; }
  .progress li { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
