/* Spark & Siege teaser. One screen, system fonts, no third-party requests.
   Ground: blue-black of a night sky behind a wall. Ember: the spark. */
:root {
  --ground: #12161b;
  --ink: #ece7df;
  --muted: #a3acb6;
  --ember: #ff7a2f;
  --stone: #232a33;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  -webkit-text-size-adjust: 100%;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left));
  max-width: 34rem;
}

.status {
  margin: 0 0 1.25rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

h1 {
  margin: 0 0 1.75rem;
  font-weight: 700;
  font-size: clamp(3.75rem, 21vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

h1 .w,
h1 .amp {
  display: block;
}

h1 .amp {
  color: var(--ember);
  font-style: italic;
  font-weight: 400;
  line-height: 0.8;
  margin-left: 0.04em;
}

.lede {
  margin: 0;
  max-width: 26rem;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--muted);
}

footer {
  padding: 0 max(24px, env(safe-area-inset-left)) 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

footer p { margin: 0 0 1rem; }

/* Battlements: merlons on a base, running the full width. */
.wall {
  height: 22px;
  margin: 0 calc(-1 * max(24px, env(safe-area-inset-left)));
  padding-bottom: env(safe-area-inset-bottom);
  background:
    repeating-linear-gradient(90deg, var(--stone) 0 28px, transparent 28px 56px) top / 100% 12px no-repeat,
    linear-gradient(var(--stone), var(--stone)) bottom / 100% 10px no-repeat;
}

@media (min-width: 720px) {
  main { margin-left: 8vw; }
  footer { padding-left: 8vw; }
  .wall { margin-left: -8vw; }
}

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