/* Dashboard Speedway: the one-page site. The colours and font are the game's own
   (marketing/brand.md): navy and yellow from the logo, Saira Semi Condensed from the HUD. */

@font-face {
  font-family: "Saira SC";
  src: url("fonts/SairaSemiCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Saira SC";
  src: url("fonts/SairaSemiCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #16213f;
  --navy-deep: #0b1022;
  --panel: #131c38;
  --yellow: #f6c22b;
  --white: #ffffff;
  --soft: #b8c1da;
  --line: rgba(246, 194, 43, 0.35);
  --display: "Saira SC", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--white);
  font: 17px/1.55 var(--body);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--yellow); }
a:focus-visible, .pill:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---- The hero ---------------------------------------------------------------------- */
.hero {
  padding: 56px 16px 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(246, 194, 43, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 70%);
  border-bottom: 6px solid var(--yellow);
}
.logo { width: min(760px, 100%); margin: 0 auto 28px; }
.tagline {
  font: 700 clamp(26px, 4.6vw, 44px)/1.15 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 900px;
  margin: 0 auto 14px;
}
.tagline em { font-style: normal; color: var(--yellow); }
.lede { color: var(--soft); max-width: 640px; margin: 0 auto 26px; font-size: clamp(16px, 2.2vw, 19px); }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font: 700 17px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.pill-steam { background: var(--yellow); color: var(--navy-deep); }
.pill-link { border: 2px solid var(--yellow); color: var(--white); }
.pill-link:hover { background: rgba(246, 194, 43, 0.12); }

/* ---- The desktop: a maximized browser full of work, the game small in the corner -------- */
.desktop { margin: 44px auto 0; max-width: 980px; }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #f3f5f9;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

/* The browser fills the screen. Everything is drawn in shares of the screen, so it scales. */
.browser { position: absolute; inset: 0; display: flex; flex-direction: column; }
.tabs {
  height: 6.5%; flex: none; display: flex; align-items: flex-end; gap: 0.6%;
  padding: 0 1.2%; background: #d9dee8;
}
.tab { width: 16%; height: 72%; border-radius: 6px 6px 0 0; background: #c7cedb; }
.tab.on { background: #ffffff; }
.winctl { margin-left: auto; align-self: center; display: flex; gap: 6px; }
.winctl i { display: block; width: 12px; height: 2px; background: #8d97aa; }
.toolbar {
  height: 6%; flex: none; display: flex; align-items: center; gap: 1%;
  padding: 0 1.2%; background: #ffffff; border-bottom: 1px solid #e3e7ef;
}
.navbtn { width: 1.6%; aspect-ratio: 1; border-radius: 50%; background: #cfd5e0; }
.address { flex: 1; height: 58%; margin-left: 1%; border-radius: 999px; background: #eef1f6; }
.page { flex: 1; display: flex; flex-direction: column; background: #ffffff; overflow: hidden; }
.site-nav {
  height: 9%; flex: none; display: flex; align-items: center; gap: 2.4%;
  padding: 0 6%; border-bottom: 1px solid #edf0f5;
}
.site-nav span { width: 6%; height: 18%; border-radius: 3px; background: #dbe0e9; }
.site-nav .brand { width: 11%; height: 32%; background: #4d6db0; }
.site-nav .cta { margin-left: auto; width: 9%; height: 40%; border-radius: 999px; background: #8ca3d4; }
.page-body { flex: 1; display: flex; gap: 4%; padding: 3% 6% 0; }
.article { flex: 1; display: flex; flex-direction: column; gap: 2.6%; }
.article span { display: block; border-radius: 3px; background: #e2e6ee; }
.article .h1 { height: 5.5%; width: 82%; background: #b9c2d3; }
.article .h1.short { width: 54%; }
.article .meta { height: 2.4%; width: 30%; margin-bottom: 1.5%; background: #d4dae5; }
.article .ln { height: 2.4%; width: 100%; }
.article .ln.part { width: 64%; }
.article .figure { height: 26%; width: 100%; margin: 1% 0; border-radius: 6px; background: linear-gradient(135deg, #c9d6ee, #e3e9f4); }
.aside { width: 26%; display: flex; flex-direction: column; gap: 5%; }
.aside .card { height: 24%; border-radius: 8px; background: #eef1f6; border: 1px solid #e1e6ef; }

/* The game: borderless and small, docked bottom right just above the taskbar, on top of the
   work. About the size it opens at (1x). */
.game-window {
  position: absolute; right: 1.5%; bottom: 2.5%; width: 24%;
  aspect-ratio: 16 / 9;
  border-radius: 3px; overflow: hidden;
  outline: 2px solid var(--yellow);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  background: #000;
}
.game-video, .game-poster { width: 100%; height: 100%; object-fit: cover; }
.game-poster { display: none; }
@media (prefers-reduced-motion: reduce) {
  .game-video { display: none; }
  .game-poster { display: block; }
}

.taskbar {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  background: #0d1426; border-radius: 0 0 12px 12px;
}
.taskbar span { display: block; width: 22px; height: 22px; border-radius: 5px; background: #2a3554; }
.taskbar .start { background: var(--yellow); opacity: 0.85; }
.taskbar .task.on { box-shadow: inset 0 -3px 0 var(--yellow); }
.taskbar .clock { margin-left: auto; width: auto; height: auto; background: none; color: var(--soft); font: 600 13px/1 var(--body); }
figcaption { color: var(--soft); font-size: 15px; margin-top: 14px; }

/* ---- Features ---------------------------------------------------------------------- */
main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
h2 {
  font: 700 clamp(28px, 4vw, 38px)/1.1 var(--display);
  text-transform: uppercase;
  text-align: center;
  margin: 64px 0 28px;
}
h2::after { content: ""; display: block; width: 64px; height: 5px; margin: 14px auto 0; background: var(--yellow); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card h3 { font: 700 22px/1.2 var(--display); text-transform: uppercase; margin: 16px 18px 6px; }
.card p { color: var(--soft); margin: 0 18px 20px; font-size: 16px; }

.follow { text-align: center; padding-bottom: 24px; }
.follow p { color: var(--soft); margin: 0 auto 22px; max-width: 560px; }

/* ---- Footer ------------------------------------------------------------------------ */
footer { margin-top: 56px; padding: 28px 16px 40px; text-align: center; background: var(--navy); border-top: 6px solid var(--yellow); }
footer p { margin: 0 0 6px; }
footer a { font: 700 18px/1.4 var(--display); letter-spacing: 0.03em; text-decoration: none; }
.fine { color: var(--soft); font-size: 13px; }

@media (max-width: 560px) {
  .hero { padding-top: 36px; }
  .game-window { width: 34%; outline-width: 1.5px; }  /* a little bigger, so the race still reads on a phone */
  .winctl i { width: 6px; }
  .taskbar { height: 26px; }
  .taskbar span { width: 16px; height: 16px; }
}
