/* HoN Collezioni — design tokens and shared building blocks.
   Same family as the other House of Nerds sites (night navy, Manrope, HoN lettering),
   with a holographic "foil card" accent for the collector theme. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.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: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.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";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0a0e1a;
  --bg-2: #0c1120;
  --panel: #111728;
  --panel-2: #161e33;
  --panel-3: #1c2542;
  --ink: #eef1fb;
  --muted: #aeb6d4;
  --faint: #717a9c;
  --line: #222c46;
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #2f8cff;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(47, 140, 255, 0.14);
  --cyan: #6ddcff;
  --pink: #ff6fb5;
  --gold: #f3c659;
  --gold-soft: rgba(243, 198, 89, 0.14);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.14);
  --ok: #48d39e;
  --ok-soft: rgba(72, 211, 158, 0.14);
  --warn: #f5a524;
  --grad: linear-gradient(120deg, #027aff 0%, #4f7bff 55%, #8b5cf6 100%);
  --holo: linear-gradient(115deg, #4fb6ff 0%, #8b6cff 38%, #ff6fb5 70%, #ffc95c 100%);
  --holo-soft: linear-gradient(115deg, rgba(79, 182, 255, 0.16), rgba(139, 108, 255, 0.14) 38%, rgba(255, 111, 181, 0.12) 70%, rgba(255, 201, 92, 0.14));
  --halftone: rgba(140, 160, 255, 0.07);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.75);
  --shadow-lift: 0 24px 50px -24px rgba(0, 0, 0, 0.85);
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Cascadia Mono", ui-monospace, monospace;
  --radius: 16px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f6fc;
    --bg-2: #ffffff;
    --panel: #ffffff;
    --panel-2: #f1f4fb;
    --panel-3: #e7ecf8;
    --ink: #0d1430;
    --muted: #4a5578;
    --faint: #7c86a6;
    --line: #dde3f2;
    --line-soft: rgba(13, 20, 48, 0.06);
    --accent-soft: rgba(47, 140, 255, 0.1);
    --gold: #b9851a;
    --gold-soft: rgba(185, 133, 26, 0.12);
    --danger: #e11d48;
    --ok: #0f9f6e;
    --halftone: rgba(60, 80, 160, 0.06);
    --shadow: 0 16px 36px -24px rgba(20, 30, 70, 0.35);
    --shadow-lift: 0 22px 44px -24px rgba(20, 30, 70, 0.45);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fc;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1f4fb;
  --panel-3: #e7ecf8;
  --ink: #0d1430;
  --muted: #4a5578;
  --faint: #7c86a6;
  --line: #dde3f2;
  --line-soft: rgba(13, 20, 48, 0.06);
  --accent-soft: rgba(47, 140, 255, 0.1);
  --gold: #b9851a;
  --gold-soft: rgba(185, 133, 26, 0.12);
  --danger: #e11d48;
  --ok: #0f9f6e;
  --halftone: rgba(60, 80, 160, 0.06);
  --shadow: 0 16px 36px -24px rgba(20, 30, 70, 0.35);
  --shadow-lift: 0 22px 44px -24px rgba(20, 30, 70, 0.45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(139, 92, 246, 0.16), transparent 62%),
    radial-gradient(800px 480px at 105% 0%, rgba(47, 140, 255, 0.14), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Comic halftone dots, fading out towards the bottom. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--halftone) 1.1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

a { color: var(--accent); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(139, 108, 255, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.holo-text { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visually-hidden { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo img { height: 30px; width: auto; display: block; filter: drop-shadow(0 4px 14px rgba(139, 108, 255, 0.35)); }
.logo span { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.035em; }
.logo.large img { height: 54px; }
.logo.large span { font-size: 2.2rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 24px -14px rgba(79, 123, 255, 0.9);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.05s, box-shadow 0.15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.secondary { color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); filter: none; }
.btn.ghost { color: var(--ink); background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 0.86rem; border-radius: 10px; }
.btn.large { min-height: 52px; padding: 0 24px; font-size: 1.02rem; border-radius: 14px; }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.holo { color: #10122a; background: var(--holo); box-shadow: 0 12px 28px -14px rgba(255, 111, 181, 0.8); }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }

.alert { padding: 11px 13px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; margin-bottom: 14px; }
.alert.error { color: var(--danger); background: var(--danger-soft); }
.alert.ok { color: var(--ok); background: var(--ok-soft); }

/* Small uppercase label used above headings ("eyebrow"). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
