/* Same Time Tomorrow? — before dawn on an ordinary weekday: concrete grey, sodium streetlight
   orange, a station board. Deliberately plain. */
:root {
  --night: #0f1011;
  --night-2: #151617;
  --ink: #d6d3cc;
  --ink-soft: #9a978f;
  --muted: #6c6a65;
  --amber: #d98c2b;
  --amber-dim: #6e4a1a;
  --dawn: #b9772f;
  --rose: #a0545a;
  --board: #0a0a0a;
  --line: rgba(214, 211, 204, 0.09);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dots: "Doto", "Courier New", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffd08a; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--amber); color: #111; padding: 8px 12px; border-radius: 4px;
}
.skip:focus { left: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 96px); }
.hero-sky { /* an overcast sky lit from below by streetlights, and a little film grain */
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 50% at 70% 110%, rgba(217, 140, 43, 0.12), transparent 70%),
    linear-gradient(180deg, #0b0c0d 0%, #131415 70%, #18191a 100%);
}
.hero-sky::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--max); margin: 0 auto;
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}
.eyebrow {
  margin: 0 0 14px; font: 600 12px/1 var(--sans); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber);
}
h1 {
  margin: 0; font: 400 clamp(52px, 8.5vw, 104px)/0.92 var(--serif); letter-spacing: -0.01em;
}
h1 em { display: block; color: var(--ink-soft); font-style: italic; }
.lede { margin: 22px 0 0; max-width: 34ch; font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); }

.clock {
  display: inline-grid; margin-top: 34px; padding: 16px 22px 14px;
  background: var(--board); border: 1px solid #1d2233; border-radius: 10px;
  box-shadow: inset 0 0 0 4px #0e1118, 0 20px 40px -20px #000c;
}
.clock-label, .clock-note {
  font: 600 11px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.clock-face {
  font: 800 clamp(56px, 9vw, 84px)/1 var(--dots); color: var(--amber);
  text-shadow: 0 0 10px rgba(217, 140, 43, 0.25); margin: 6px 0 4px; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.colon { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
.clock-note { color: var(--amber-dim); }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0 0;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.03);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }

.hero-shot { margin: 0; position: relative; }
.hero-shot img, .feature img {
  width: 100%; border-radius: 2px; image-rendering: pixelated;
  filter: saturate(0.55) brightness(0.82) contrast(1.05);
  box-shadow: 0 30px 60px -30px #000, 0 0 0 1px #ffffff10;
}
.hero-shot figcaption {
  margin-top: 10px; color: var(--muted); font: 400 italic 16px/1 var(--serif);
}

/* ---------------------------------------------------------------- departure board */
.board-section { padding: clamp(40px, 6vw, 72px) var(--gutter); background: var(--night-2); border-block: 1px solid var(--line); }
.board {
  max-width: 900px; margin: 0 auto; background: var(--board); border-radius: 12px;
  padding: clamp(16px, 3vw, 28px); border: 1px solid #1c2030;
  box-shadow: inset 0 0 0 5px #0d1017, 0 30px 60px -30px #000;
}
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.board h2, .board-day { margin: 0; font: 800 clamp(18px, 2.6vw, 26px)/1.2 var(--dots); color: var(--amber); letter-spacing: 0.06em; text-transform: uppercase; }
.board-day { color: var(--amber-dim); }
.board table { width: 100%; border-collapse: collapse; font: 600 clamp(15px, 2.2vw, 22px)/1.3 var(--dots); color: var(--amber); }
.board th {
  text-align: left; font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 10px 8px; border-bottom: 1px dashed #2a2f3f;
}
.board td { padding: 12px 8px; border-bottom: 1px dashed #1c2030; white-space: nowrap; }
.board tbody tr { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; }
.board.lit tbody tr { opacity: 1; transform: none; }
.board td.ok { color: #7fa368; }
.board td.due { color: var(--amber); animation: blink 1.6s steps(1) infinite; }
.board td.tomorrow { color: var(--rose); }
@media (max-width: 560px) { .board .opt { display: none; } }

/* ---------------------------------------------------------------- about */
.about { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); display: grid; gap: clamp(24px, 5vw, 72px); }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; align-items: start; } }
.about blockquote { margin: 0; }
.about blockquote p { margin: 0; font: 400 italic clamp(34px, 5vw, 56px)/1.08 var(--serif); color: var(--ink); }
.about blockquote p::before { content: "\201C"; color: var(--dawn); }
.about blockquote p::after { content: "\201D"; color: var(--dawn); }
.about-copy p { margin: 0 0 18px; color: var(--ink-soft); font-size: 18px; }
.about-copy strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- features */
.features { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.section-title { margin: 0 0 clamp(28px, 4vw, 48px); font: 400 clamp(36px, 5vw, 56px)/1 var(--serif); }
.feature { display: grid; gap: clamp(18px, 3vw, 48px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.15fr 0.85fr; }
  .feature:nth-of-type(even) { grid-template-columns: 0.85fr 1.15fr; }
  .feature:nth-of-type(even) img { order: 2; }
}

.feature-num { font: 800 15px/1 var(--dots); color: var(--amber); letter-spacing: 0.1em; }
.feature h3 { margin: 10px 0 12px; font: 400 clamp(28px, 3.4vw, 38px)/1.1 var(--serif); }
.feature p { margin: 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------- facts */
.facts { border-block: 1px solid var(--line); background: var(--night-2); }
.facts ul {
  list-style: none; margin: 0 auto; padding: clamp(28px, 5vw, 48px) var(--gutter); max-width: var(--max);
  display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 800px) { .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts li { display: flex; flex-direction: column; gap: 6px; }
.fact-big { font: 800 clamp(34px, 5vw, 48px)/1 var(--dots); color: var(--amber); }
.facts li span:last-child { color: var(--ink-soft); font-size: 15px; }

/* ---------------------------------------------------------------- the life before */
.before {
  max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; text-align: center;
}
.before p {
  margin: 0; font: 400 italic clamp(24px, 3.2vw, 34px)/1.3 var(--serif); color: #b8a98c;
  filter: blur(0.3px); opacity: 0.85;
}
.before .muted { margin-top: 14px; font: 400 15px/1.5 var(--sans); filter: none; }

/* ---------------------------------------------------------------- status, footer */
.status { max-width: 760px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter); text-align: center; }
.status p { font-size: 19px; color: var(--ink-soft); margin: 0 0 10px; }
.muted { color: var(--muted); }
footer { padding: 36px var(--gutter) 48px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.footer-title { margin: 0 0 6px; font: 400 italic 22px/1 var(--serif); }

@media (prefers-reduced-motion: reduce) {
  .colon, .board td.due { animation: none; }
  .board tbody tr { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- playtest page */
.pt-nav { padding: 20px var(--gutter); max-width: var(--max); margin: 0 auto; font-size: 15px; }
.pt-nav a { color: var(--ink-soft); text-decoration: none; }
.pt-nav a:hover { color: var(--ink); }
.pt-head { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(28px, 4vw, 48px); }
.pt-head h1 { font-size: clamp(44px, 7vw, 80px); }
.pt-head h1 em { display: inline; }
.pt-main {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .pt-main { grid-template-columns: 1fr 1fr; } .pt-wide { grid-column: 1 / -1; } }
.pt-card {
  background: var(--night-2); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(20px, 3vw, 36px); min-width: 0;
}
.pt-card-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.pt-card h2 { margin: 0; font: 400 clamp(28px, 3.4vw, 36px)/1.1 var(--serif); }
.pt-card label, .pt-card legend { display: block; font-size: 14px; color: var(--ink-soft); margin: 14px 0 6px; }
.pt-card input:not([type=radio]), .pt-card textarea {
  width: 100%; background: var(--board); color: var(--ink); border: 1px solid #2a2b2d; border-radius: 3px;
  padding: 11px 12px; font: 400 16px/1.5 var(--sans);
}
.pt-card input:focus, .pt-card textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
#code { font: 800 22px/1 var(--dots); letter-spacing: 0.12em; color: var(--amber); text-transform: uppercase; }
.pt-row { display: flex; gap: 10px; }
.pt-row input { flex: 1; min-width: 0; }
.pt-card button, .pt-btn {
  display: inline-block; background: var(--amber); color: #141414; border: 0; border-radius: 3px;
  padding: 12px 20px; font: 600 16px/1.2 var(--sans); cursor: pointer; text-decoration: none;
}
.pt-card button:hover, .pt-btn:hover { background: #e9a04a; color: #141414; }
.pt-card button:disabled { opacity: 0.6; cursor: wait; }
.pt-form button { margin-top: 20px; }
.pt-msg { min-height: 1.5em; margin: 10px 0 0; color: var(--amber); font-size: 15px; }
.small { font-size: 14px; }
.pt-build { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.pt-ver { font: 800 26px/1 var(--dots); color: var(--amber); }
.pt-notes { color: var(--ink-soft); padding-left: 20px; margin: 16px 0 0; }
.pt-how { margin-top: 18px; color: var(--ink-soft); }
.pt-how summary { cursor: pointer; color: var(--ink); }
.pt-how code, kbd {
  font: 500 13px/1 ui-monospace, Consolas, monospace; background: var(--board); border: 1px solid #2a2b2d;
  border-radius: 3px; padding: 2px 6px; color: var(--ink);
}
kbd { margin-right: 3px; }
.pt-list { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.pt-list li { margin-bottom: 10px; }
.pt-list strong { color: var(--ink); font-weight: 600; }
.pt-keys { margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.pt-keys th { text-align: left; padding: 6px 18px 6px 0; font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.pt-keys td { color: var(--ink); }
.pt-kinds, .pt-rating { border: 0; padding: 0; margin: 0; }
.pt-kinds label, .pt-rating label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 18px 4px 0; color: var(--ink); font-size: 15px; }
.pt-kinds input, .pt-rating input { accent-color: var(--amber); }
.pt-two { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .pt-two { grid-template-columns: 1fr 1fr; } }
.pt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- feedback admin */
.admin-main { max-width: 860px; margin: 0 auto; padding: 40px var(--gutter); }
.admin-main h1 { font-size: 48px; }
.fb { background: var(--night-2); border: 1px solid var(--line); border-left: 3px solid var(--muted); padding: 16px 18px; margin: 14px 0; border-radius: 3px; }
.fb-bug { border-left-color: var(--rose); }
.fb-idea { border-left-color: var(--amber); }
.fb header { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--ink-soft); text-transform: capitalize; }
.fb header span { margin-left: auto; text-transform: none; }
.fb p { margin: 10px 0; }
.fb footer { padding: 0; border: 0; text-align: left; font-size: 13px; color: var(--muted); }
