/* fantasyjam.io: one stylesheet for the studio page and the game's policy pages. */
:root {
  --page: #eef1f4;
  --sheet: #ffffff;
  --ink: #17212b;
  --muted: #4a5866;
  --rule: #d5dbe1;
  --tape: #f5c518;
  --tape-ink: #17212b;
  --link: #1f5fa8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f161d;
    --sheet: #17212b;
    --ink: #e8edf2;
    --muted: #a7b3bf;
    --rule: #2a3744;
    --link: #8cc3ff;
  }
}

* { box-sizing: border-box; }
/* `hidden` must win over display rules like .form's grid. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 'Barlow', system-ui, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; border-radius: 2px; }

.tape { height: 10px; background: repeating-linear-gradient(-45deg, var(--tape) 0 14px, var(--tape-ink) 14px 22px); }
.wrap { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }

h1, h2, .brand { font-family: 'Big Shoulders Display', 'Barlow', sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 9vw, 4rem); margin: 0.2rem 0 0.6rem; }
h2 { font-size: 1.7rem; margin: 2.4rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.3rem; }
p, li { max-width: 68ch; }
ul { padding-left: 1.2rem; }
li { margin: 0.3rem 0; }

.brand { display: inline-block; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }

.game { display: flex; gap: 1rem; align-items: center; background: var(--sheet); border: 1px solid var(--rule); border-bottom: 4px solid var(--tape); border-radius: 10px; padding: 1rem; margin: 2rem 0; }
.game img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.game h2 { margin: 0; font-size: 1.8rem; }
.game p { margin: 0.2rem 0 0; color: var(--muted); }

.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 1.25rem 1.25rem 1.5rem; }
.sheet h2:first-child { margin-top: 0.4rem; }
.box { border-left: 4px solid var(--tape); padding: 0.2rem 0 0.2rem 1rem; margin: 1rem 0; }

.steps { list-style: none; padding: 0; margin: 1.2rem 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3rem; margin: 0; max-width: none; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--tape); color: var(--tape-ink); font: 800 1.25rem/2.1rem 'Big Shoulders Display', 'Barlow', sans-serif; text-align: center; }
.steps h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.steps p { margin: 0.2rem 0 0.6rem; }
.button { display: inline-block; background: var(--tape); color: var(--tape-ink); font-weight: 600; text-decoration: none; padding: 0.6rem 1.1rem; border-radius: 8px; border-bottom: 3px solid #c79c00; }
.button:hover { filter: brightness(1.05); }

/* Forms (the closed beta signup). */
.form { display: grid; gap: 1rem; margin: 1rem 0 0.5rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 600; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--rule); border-radius: 8px; padding: 0.6rem 0.75rem; width: 100%; }
.form textarea { min-height: 5rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--tape); outline-offset: 1px; }
.form .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 0.35rem; }
.form button { justify-self: start; font: inherit; font-weight: 600; cursor: pointer; border: 0; background: var(--tape); color: var(--tape-ink); padding: 0.7rem 1.3rem; border-radius: 8px; border-bottom: 3px solid #c79c00; }
.form button:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0.5rem 0 0; font-weight: 600; }
.status.error { color: #c2410c; }
.done { border-left: 4px solid var(--tape); padding: 0.4rem 0 0.4rem 1rem; margin: 1rem 0; }
.done h3 { margin-top: 0; }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
