/* PLUMB: the game's night over the city, on the web. Every colour is the app's own
   (apps/plumb/lib/ui/look.dart in flutter-shell), chosen there with its reason:
   the page is the concept's night, the accent the first floor's cyan glass, gold the
   sun's warm top, kept for what is earned. Display face: Unbounded (OFL, fonts/). */
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --night: #120a24;        /* the page: the night over the city */
  --card: #1c1236;         /* one step toward the dusk violet */
  --deep: #0b0618;         /* toward the space at the top of the climb */
  --glass: #f6eefe;        /* text: the light through the glass */
  --muted: #b8a9d6;        /* the same light, dimmed */
  --rule: #2e2150;
  --accent: #51c9f6;       /* the first floor's cyan glass */
  --gold: #ffc86b;         /* the sun's warm top: what is earned */
  --sky-top: #2a1856;      /* dusk, top to bottom */
  --sky-mid: #8a3a86;
  --sky-low: #ff8f5e;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--glass); font: 17px/1.62 var(--text); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
strong { font-weight: 650; }
code { font-size: 0.9em; background: var(--card); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }

/* The bar: a dusk sky over a dark skyline, shared by every PLUMB page */
.bar { background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 62%, var(--sky-low)); position: relative; }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath fill='%23120a24' d='M0 14 L0 10 L14 10 L14 4 L26 4 L26 8 L34 8 L34 2 L40 2 L40 0.5 L42 0.5 L42 2 L48 2 L48 7 L60 7 L60 5 L70 5 L70 9 L84 9 L84 3 L96 3 L96 6 L104 6 L104 1 L112 1 L112 6 L122 6 L122 9 L136 9 L136 4 L146 4 L146 7 L158 7 L158 2 L166 2 L166 8 L180 8 L180 5 L192 5 L192 10 L204 10 L204 3 L214 3 L214 7 L226 7 L226 4 L240 4 L240 14 Z'/%3E%3C/svg%3E") 0 100% / 240px 16px repeat-x; }
.bar-in { max-width: 62rem; margin: 0 auto; padding: 14px 20px 26px; display: flex; gap: 12px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 0.92rem; }
.bar a { color: #fff; text-decoration: none; opacity: 0.88; }
.bar a:hover, .bar a[aria-current="page"] { opacity: 1; text-decoration: underline; }
.bar nav { display: flex; gap: 18px; }
.bar nav a:first-child { font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; }

/* Text pages: support, privacy */
.qa { max-width: 42rem; margin: 0 auto; padding: 40px 20px 72px; }
.qa h1 { font-size: clamp(2rem, 7vw, 2.8rem); letter-spacing: 0.02em; }
.qa h2 { font-size: 1.15rem; letter-spacing: 0.03em; margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); color: var(--glass); }
.qa p, .qa ul { margin: 0.9rem 0 0; }
.qa ul { padding-left: 1.3rem; }
.qa li + li { margin-top: 0.35rem; }
.qa li::marker { color: var(--accent); }
.qa .sub { color: var(--gold); margin-top: 0.4rem; font-size: 1.02rem; }
.qa .lead { font-size: 1.07rem; padding: 16px 18px; background: var(--card); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.qa .updated { margin-top: 3rem; font-size: 0.85rem; color: var(--muted); }

/* The game's own page */
.hero { max-width: 42rem; margin: 0 auto; padding: 40px 20px 8px; text-align: center; }
.hero img { width: 148px; height: 148px; border-radius: 33px; box-shadow: 0 10px 40px rgba(81, 201, 246, 0.18); }
.hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); letter-spacing: 0.08em; margin-top: 22px; }
.hero .line { color: var(--gold); margin: 8px 0 0; font-size: 1.05rem; }
.plumbline { width: 1px; height: 54px; margin: 22px auto 0; background: linear-gradient(var(--glass), transparent); opacity: 0.6; }
.facts { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.facts li { margin: 0 !important; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.88rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
