/* The Weekend Game Studio: coming soon. Workbench: kraft paper, graphite, safety orange. */
:root {
  --bg: #E9DFC9; --surface: #F7F3EA; --surface-2: #DDD0B3;
  --ink: #1F1F1F; --ink-muted: #4A4640; --line: #1F1F1F;
  --accent: #FF5A1F; --on-accent: #1F1F1F; --accent-2: #2B4C7E; --focus: #2B4C7E;
  --font-head: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-label: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 3px; --border-w: 2px; --shadow: 3px 4px 0 rgba(31, 31, 31, 0.14);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100svh; color: var(--ink); font: 1.0625rem/1.55 var(--font-body);
  background-color: var(--bg);
  background-image: linear-gradient(rgba(43, 76, 126, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 76, 126, 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--accent-2); text-underline-offset: 3px; }

.soon { width: min(100%, 760px); margin: 0 auto; padding: 28px 20px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.soon__head { display: flex; flex-direction: column; align-items: center; width: 100%; }
.soon__title { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.soon__logo { display: block; flex: none; width: 132px; aspect-ratio: 108 / 66; color: var(--ink); line-height: 0; rotate: -3deg; margin-bottom: 18px; }
.soon__logo svg { display: block; width: 100%; height: auto; }

.kicker {
  display: inline-block; margin-bottom: 14px; padding: 0.25em 0.8em; background: var(--accent); color: var(--on-accent);
  font: 600 0.75rem/1.5 var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; rotate: -1.5deg;
}
h1 {
  margin: 0 0 12px; font: 850 clamp(2.1rem, 11vw, 3.6rem)/0.92 var(--font-head); text-transform: uppercase; letter-spacing: 0.01em;
}
.lead { margin: 0 auto 22px; font-size: 1.15rem; color: var(--ink-muted); max-width: 34ch; text-wrap: balance; }

.band { width: 100%; max-width: 560px; margin-inline: auto; text-align: center; padding: 20px; background: var(--surface-2); border: var(--border-w) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.band h2 { margin: 0 0 4px; font: 850 1.35rem/1.1 var(--font-head); text-transform: uppercase; }
.muted { margin: 0 0 14px; color: var(--ink-muted); font-size: 0.95rem; }
.signup { display: grid; gap: 10px; }
.signup input[type=email] {
  width: 100%; min-width: 0; padding: 0.8em 1em; font: inherit; color: var(--ink);
  background: var(--surface); border: var(--border-w) solid var(--line); border-radius: 2px;
}
.btn {
  padding: 0.85em 1.3em; font: 700 1rem/1 var(--font-body); cursor: pointer; text-align: center;
  border: var(--border-w) solid var(--line); border-radius: 2px; background: var(--accent); color: var(--on-accent); box-shadow: 2px 3px 0 var(--line);
}
.btn:disabled { opacity: 0.6; cursor: progress; }
/* The message has its space from the start, so it never pushes anything down. */
.signup__msg { margin: 0; min-height: 3em; font-size: 0.95rem; font-weight: 600; }
.signup__msg[data-ok="no"] { color: #9b2a0a; }
.signup.is-done input, .signup.is-done .btn { opacity: 0.5; pointer-events: none; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 16px; font-weight: 600; }

/* Nothing shows until the fonts are ready, then it fades in once. If the script
   never runs, it shows anyway after 2.5 seconds. */
html.booting main { opacity: 0; animation: boot-failsafe 0s 2.5s forwards; }
main { transition: opacity 0.3s ease; }
@keyframes boot-failsafe { to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .soon__logo svg { animation: stamp-in 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) both; transform-origin: 20% 50%; }
  .kicker { animation: tag-in 0.5s 0.25s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
  .btn { transition: transform 0.15s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { translate: 2px 2px; }
}
@keyframes stamp-in { 0% { opacity: 0; transform: scale(1.35) rotate(-8deg); } 60% { opacity: 1; transform: scale(0.96) rotate(1deg); } 100% { transform: none; } }
@keyframes tag-in { from { opacity: 0; translate: -14px 0; } to { opacity: 1; translate: none; } }
@media (prefers-reduced-motion: reduce) { main { transition: none; } }

/* Short screens: tighten up so the form is still on the first screen. */
@media (max-height: 700px) {
  .soon { padding-top: 16px; }
  .soon__logo { width: 104px; margin-bottom: 12px; }
  .lead { margin-bottom: 16px; }
  .band { padding: 16px; }
  .muted { margin-bottom: 10px; }
  .signup__msg { min-height: 2.6em; }
}
/* Room for it: the title moves up beside the stamp. */
@media (min-width: 560px) {
  .soon__head { flex-direction: row; justify-content: center; align-items: center; gap: 24px; margin-bottom: 14px; }
  .soon__logo { width: 150px; margin-bottom: 0; }
  .soon__title h1 { margin-bottom: 0; font-size: clamp(2.4rem, 6.4vw, 3.6rem); }
}
@media (min-width: 700px) {
  .soon { padding-top: 8vh; }
  .soon__logo { width: 190px; }
}
