/* gimmepage: colours, type and layout shared by every page. The design language is
   gimmeproxy's (warm paper, one orange accent, navy code, Inter Tight headlines), so the two
   products read as one family; the billing service's payment page uses the same colours
   (crates/gimmepage/billing/gimmepage.yaml). Light only, as gimmeproxy is. */

:root {
  --bg: #f8f7f3;
  --surface: #fbfaf8;
  --surface-2: #f3f2ee;
  --ink: #0b0f14;
  --ink-2: #262b33;
  --muted: #5d636d;
  --muted-2: #868b93;
  --line: #e8e7e3;
  --line-2: #dfddd7;
  --accent: #f94a1f;
  --accent-hover: #e23c12;
  --accent-ink: #d93a10;
  --accent-soft: #fcece4;
  --accent-tint: #fde6dc;
  --panel: #f8f2e9;
  --panel-2: #f4efe5;
  --navy: #131b25;
  --navy-2: #1a232e;
  --navy-line: #2a3440;
  --navy-text: #e7ebf0;
  --navy-muted: #8c96a3;
  --code-str: #ff7149;
  --ok: #34c06a;
  --ok-ink: #2e7d4a;
  --ok-soft: #e3f3e8;
  --bad: #e5432a;
  --bad-ink: #b83018;
  --bad-soft: #fdebe6;
  --warn: #d9a400;

  --f-display: "Inter Tight", "Inter Tight Fallback", Inter, system-ui, sans-serif;
  --f-body: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --wide: 1236px;
  --radius: 8px;
  --hdr: 72px;
  color-scheme: light;
}

/* Metric-matched fallbacks keep text from jumping when the web fonts arrive. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial Narrow"), local("Arial"); size-adjust: 100%; ascent-override: 95%; descent-override: 24%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
h1, h2, h3, h4, p, ol, ul, figure, pre, dl, dd, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--f-mono); font-size: .9em; }
em { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent-tint); }

.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), 100% - 24px); margin-inline: auto; }
.ic { width: 1em; height: 1em; flex: none; }

/* ---------- type ---------- */

.display, .h1, .h2, .h3, .h4 { font-family: var(--f-display); color: var(--ink); }
.display { font-size: 82px; line-height: 82px; font-weight: 800; letter-spacing: -.036em; }
.display > span, .display > em { display: block; }
.display em, .h1 em, .h2 em, .h3 em { color: var(--accent); }
.h1 { font-size: 56px; line-height: 1.04; font-weight: 800; letter-spacing: -.045em; }
.h2 { font-size: 48px; line-height: 51px; font-weight: 800; letter-spacing: -.032em; }
.h2--sm { font-size: 44px; line-height: 49px; letter-spacing: -.03em; }
.h3 { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.h4 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.012em; }
.eyebrow { font: 500 12px/18px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.eyebrow--wide { font-size: 13px; letter-spacing: .26em; }
.eyebrow--accent { color: var(--accent); font-weight: 600; }
.lead { font-size: 20.5px; line-height: 28px; color: var(--muted); letter-spacing: -.005em; }
.lead--sm { font-size: 19px; line-height: 27.5px; }
.small { font-size: 14.5px; line-height: 22px; }
.muted { color: var(--muted); }
.note { font-size: 13px; line-height: 19px; color: var(--muted-2); }
.note a, .muted a, .lead a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.note a:hover, .muted a:hover, .lead a:hover { color: var(--accent-ink); }
.count { font: 500 24px/30px var(--f-display); color: var(--accent); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.br-d { display: block; }
.m-only { display: none; }
.nowrap { white-space: nowrap; }
:not(pre) > code { font-size: .88em; color: var(--ink-2); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

.link, .more {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.link:hover, .more:hover { color: var(--accent-ink); }
.more { font-size: 15px; }
.more .ic { width: 14px; height: 14px; stroke-width: 2; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- dotted grid and circuit lines: the family's ornament ---------- */

.dots { position: absolute; pointer-events: none; background-image: radial-gradient(circle, rgba(249, 74, 31, .55) 1.1px, transparent 1.6px); background-size: 32px 32px; }
.circuit { position: absolute; overflow: visible; pointer-events: none; max-width: none; }
.circuit path, .circuit line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }

/* ---------- layout helpers ---------- */

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stack { display: grid; gap: 16px; }
.stack > .btn:not(.btn--block) { justify-self: start; }
.inline { display: inline; }
.sec { padding-top: 28px; }
.page-hero { position: relative; padding: 42px 0 34px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero .lead { margin-top: 16px; max-width: 720px; }

@media (max-width: 640px) {
  :root { --hdr: 60px; }
  .wrap { width: calc(100% - 40px); }
  .wrap-wide { width: calc(100% - 24px); }
  .m-only { display: inline; }
  .d-only { display: none; }
  .display { font-size: 46px; line-height: 45px; letter-spacing: -.05em; }
  .h1 { font-size: 40px; }
  .h2, .h2--sm { font-size: 33px; line-height: 35px; letter-spacing: -.045em; }
  .h3 { font-size: 30px; }
  .lead { font-size: 18px; line-height: 26px; }
  .page-hero { padding: 30px 0 26px; }
}

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