/* ==========================================================================
   Motorsport Visuals · Consent
   Tokens from motorsportvisuals.com (same as the photo store):
   Night #0A0B0D · Bone #F4F3EF · Teal #00A19B
   Type: Inter (text) · JetBrains Mono (labels)
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin.woff2) format("woff2-variations"); }

:root {
  --bone: #f4f3ef; --bone-2: #ebeae4; --bone-3: #e1e0d9;
  --night: #0a0b0d; --night-2: #141619; --night-3: #1d2024;
  --teal: #00a19b; --teal-d: #008a85;
  --ink: var(--night); --ink-2: rgba(10, 11, 13, .68); --ink-3: rgba(10, 11, 13, .46);
  --line: rgba(10, 11, 13, .13); --line-2: rgba(10, 11, 13, .24);
  --on-dark-2: rgba(244, 243, 239, .72); --on-dark-3: rgba(244, 243, 239, .5); --line-dark: rgba(244, 243, 239, .14);
  --ok: #1f7a4d; --bad: #b3261e; --warn: #9a6200;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono Variable", ui-monospace, "SF Mono", monospace;
  --g: clamp(16px, 3.2vw, 52px);
  --cut: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  --cut-s: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 16.5px/1.55 var(--sans); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; min-height: 100svh; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: var(--g); }
.mono { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--ink-3); }
.h1 { font-weight: 800; text-transform: uppercase; letter-spacing: -.022em; font-size: clamp(34px, 6vw, 64px); line-height: .92; }
.h2 { font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: 22px; line-height: 1; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; height: 64px;
  padding: 0 var(--g); padding-top: env(safe-area-inset-top); box-sizing: content-box; background: var(--night); color: var(--bone); }
.top img { width: 150px; height: auto; }
.top .grow { flex: 1; }
.top .mono { color: var(--on-dark-3); }
.top a.mono:hover { color: var(--teal); }

/* panels and fields */
.panel { background: #fff; padding: clamp(18px, 2vw, 26px); margin-bottom: 18px; }
.panel .h2 { margin-bottom: 14px; }
.field { display: grid; gap: 6px; }
.field input { width: 100%; height: 52px; padding: 0 14px; border: 0; background: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line-2); font: 500 18px/1 var(--sans); color: var(--ink); border-radius: 0; }
.field input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--teal); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }

/* buttons: cut corner like the main site */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 22px; background: var(--teal); color: #fff; font-weight: 700; clip-path: var(--cut); transition: background .2s; }
.btn:hover { background: var(--teal-d); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; clip-path: var(--cut-s); }
.btn--quiet { background: var(--bone-2); color: var(--night); }
.btn--quiet:hover { background: var(--night); color: var(--bone); }
.btn--danger { background: var(--bad); }
.btn--danger:hover { background: #8c1d17; }
.btn--block { width: 100%; }

/* lists and tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px 8px 0; }
td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tag { display: inline-block; padding: 3px 8px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tag--ok { background: #e3f3ea; color: var(--ok); }
.tag--bad { background: #fbe9e8; color: var(--bad); }
.tag--warn { background: #fbf1dc; color: var(--warn); }

.code { font: 700 clamp(28px, 6vw, 44px)/1.1 var(--mono); letter-spacing: .08em; padding: 18px; background: var(--night); color: var(--bone); text-align: center; user-select: all; }
.note { padding: 12px 14px; background: var(--bone-2); font-size: 15px; }
.note--bad { background: #fbe9e8; color: var(--bad); }
.note--ok { background: #e3f3ea; color: var(--ok); }
.err { color: var(--bad); min-height: 1.4em; font-size: 15px; }
.landing { padding-top: 32px; }
.landing .muted { margin-top: 12px; }
