/* -----------------------------------------------------------------------------
   SUITS - the shared skin for every page on the site.

   There are four pages now (/, /docs, /apply, and the two apps at /city and
   /app) and the design system was living inside the home page's <style> block,
   which meant a second page could only exist by copying it. Copied CSS drifts:
   one page gets a new amber and the others quietly do not. It lives here
   instead, and each page adds only what is genuinely its own.

   The palette is the game's. #ffd479 is the tag that floats over a shopfront
   when you can open it; #efe9dc is the paper the shop panels are printed on;
   #14161c is the ink of their border. Nothing here was invented for the web.
   -------------------------------------------------------------------------- */

:root {
  --ink:    #0f1117;
  --panel:  #171a22;
  --raised: #1e222c;
  --line:   #2c3240;
  --amber:  #ffd479;
  --red:    #e05a3c;
  --green:  #7fb069;
  --paper:  #efe9dc;
  --text:   #cfd5df;
  --muted:  #79818f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 15px; line-height: 1.7; overflow-x: hidden;
}

img { image-rendering: pixelated; display: block; }
a { color: var(--amber); text-decoration: none; }
h1, h2, h3, .pix { font-family: Silkscreen, monospace; font-weight: 700; letter-spacing: 1px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* The same faint scanline the app wears, so the whole site reads as one screen. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.02) 0 1px, transparent 1px 3px);
}

/* ------------------------------------------------------------------- header */
header {
  position: sticky; top: 0; z-index: 50; background: rgba(15,17,23,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.mark { font-family: Silkscreen, monospace; font-weight: 700; font-size: 17px;
        letter-spacing: 3px; color: var(--amber); }
.bar nav { margin-left: auto; display: flex; gap: 6px; font-size: 12px; letter-spacing: 1px; }
.bar nav a { color: var(--muted); text-transform: uppercase; padding: 6px 10px;
             border: 1px solid transparent; }
.bar nav a:hover { color: var(--amber); border-color: var(--line); }
/* The page you are on says so, rather than looking like a link that did nothing. */
.bar nav a[aria-current="page"] { color: var(--amber); border-color: var(--amber); }

/* ------------------------------------------------------------------ sections */
section { padding: 66px 0; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 11px; letter-spacing: 5px; color: var(--red); text-transform: uppercase; }
h2 { font-size: clamp(22px, 3.6vw, 32px); margin: 12px 0 16px; color: var(--paper); }
h3 { font-size: 15px; color: var(--paper); margin: 30px 0 8px; letter-spacing: 1px; }
.lede { font-size: 17px; max-width: 680px; color: #dbe0e9; }
p { max-width: 680px; }

/* ------------------------------------------------------------------- pieces */
.btn {
  display: inline-block; padding: 14px 26px; font-family: Silkscreen, monospace;
  font-size: 12px; letter-spacing: 2px; border: 2px solid var(--amber);
  background: var(--amber); color: #14161c; box-shadow: 5px 5px 0 rgba(0,0,0,.5);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 rgba(0,0,0,.5); background: #fff; }
.btn.ghost { background: transparent; color: var(--amber); }
.btn.ghost:hover { background: var(--amber); color: #14161c; }
.btn:disabled { background: var(--raised); border-color: var(--line); color: var(--muted);
                box-shadow: none; cursor: not-allowed; transform: none; }
.buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.card { border: 1px solid var(--line); background: var(--panel); padding: 20px; position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--amber); }
.card .n { font-family: Silkscreen, monospace; font-size: 24px; color: var(--red); }
.card b { font-family: Silkscreen, monospace; font-size: 12px; display: block; margin: 8px 0 6px; color: var(--paper); }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 18px; margin-top: 30px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
         gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 34px; }
.stat { background: var(--panel); padding: 20px 18px; }
.stat .n { font-family: Silkscreen, monospace; font-size: 30px; color: var(--amber); line-height: 1.1; }
.stat .k { font-size: 11px; letter-spacing: 2px; color: var(--muted); margin-top: 8px; }

table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-family: Silkscreen, monospace; font-size: 10px; letter-spacing: 1px; color: var(--muted);
     border-bottom: 2px solid var(--amber); text-transform: uppercase; }
td b { font-family: Silkscreen, monospace; font-size: 12px; color: var(--paper); }
.num { text-align: right; white-space: nowrap; color: var(--amber); }
tr:hover td { background: var(--raised); }

.note { border-left: 3px solid var(--red); padding: 2px 0 2px 16px; margin-top: 28px;
        color: var(--muted); font-size: 14px; max-width: 680px; }
.note b { color: var(--paper); font-weight: 500; }

.stamp { display: inline-block; border: 2px solid var(--red); color: var(--red);
         font-family: Silkscreen, monospace; font-size: 12px; letter-spacing: 2px;
         padding: 8px 12px; transform: rotate(-3deg); margin-top: 24px; }

/* ------------------------------------------------------------------- footer */
footer { padding: 34px 0 64px; }
.foot { display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap; }
.foot .right { margin-left: auto; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--amber); }

@media (max-width: 760px) {
  .bar nav { gap: 0; font-size: 11px; }
  .bar nav a { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
