/* Shared base for all six variations: tokens, glass nav (MinLønn / TickerWeb), footer, buttons, switcher.
   Motion follows emilkowalski/skills: strong ease-out, under 300 ms for UI, transform + opacity only. */

@font-face {
  font-family: "Allo";
  src: url("/fonts/AlloVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* One radius scale. Nested shapes step down by their padding. */
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 20px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-24: 96px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --accent: #635bff;
  --w: 1120px;

  /* Light (default) */
  --bg: #f5f5f8;
  --surface: #ffffff;
  --surface-2: #ececf1;
  --ink: #17171e;
  --ink-2: rgb(23 23 30 / 0.64);
  --ink-3: rgb(23 23 30 / 0.42);
  --line: rgb(23 23 30 / 0.09);
  --accent-text: #5952e6;
  --accent-soft: rgb(99 91 255 / 0.1);
  --on-accent: #ffffff;
  --good: #1f9d55;
  --shadow: 0 1px 2px rgb(23 23 30 / 0.04), 0 8px 24px rgb(23 23 30 / 0.06);
  --wash: rgb(99 91 255 / 0.08);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #111116;
  --surface: #1a1a21;
  --surface-2: #24242d;
  --ink: #f1f1f5;
  --ink-2: rgb(241 241 245 / 0.66);
  --ink-3: rgb(241 241 245 / 0.42);
  --line: rgb(241 241 245 / 0.1);
  --accent-text: #8f89ff;
  --accent-soft: rgb(99 91 255 / 0.18);
  --good: #3ccf7f;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.25);
  --wash: rgb(99 91 255 / 0.12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Allo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 430;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* The hint of accent: one soft wash at the top of the page, nothing else. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  pointer-events: none;
  background: radial-gradient(60% 420px at 50% 0%, var(--wash), transparent 70%);
  z-index: -1;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 640; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: var(--r-1); }

.wrap { width: min(var(--w), calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.kicker { font-size: 15px; font-weight: 560; color: var(--accent-text); }
.num { font-variant-numeric: tabular-nums; }

.h1 { font-size: clamp(40px, 6.2vw, 76px); }
.h2 { font-size: clamp(30px, 3.8vw, 48px); }
.h3 { font-size: 21px; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 58ch; }

.section { padding-block: clamp(72px, 10vw, 128px); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-2);
  font-size: 16px;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  background: var(--ink);
  color: var(--bg);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--soft { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { opacity: 0.88; }
}

.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* ------------------------------------------------------------------ nav
   MinLønn's pattern: a soft fill + blur edge at the top of the viewport, and a
   bar that narrows into real glass once you scroll (Infinity Tattoo: the two
   buttons sit apart at the top, the bar appears past 36 px). */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 18px 12px 0;
  pointer-events: none;
}
.nav::before,
.nav::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.nav::before { height: 130%; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav::after { height: 120%; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.nav__bar {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--w);
  height: 64px;
  padding: 0 8px;
  border-radius: var(--r-3);
  border: 1px solid transparent;
  background-color: transparent;
  transform: translateY(0);
  transition:
    max-width 400ms var(--ease-out),
    transform 400ms var(--ease-out),
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}
.nav[data-scrolled] .nav__bar {
  max-width: 720px;
  transform: translateY(-10px);
  background-color: color-mix(in srgb, var(--surface) 68%, transparent);
  border-color: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--surface) 80%, transparent), 0 16px 32px rgb(0 0 0 / 0.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
}

.nav__side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 172px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-2);
  font-size: 15px;
  font-weight: 560;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.nav__side:active { transform: scale(0.97); }
.nav__left { justify-self: start; justify-content: flex-start; }
.nav__right { justify-self: end; justify-content: flex-end; }
.nav:not([data-scrolled]) .nav__side {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: var(--shadow);
}
.nav__side .icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .nav[data-scrolled] .nav__side:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
}

.logo {
  display: grid;
  justify-items: center;
  font-weight: 760;
  font-size: 19px;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.logo span:last-child { color: var(--accent-text); }
.logo--line { display: inline-flex; font-size: 22px; line-height: 1; }

@media (max-width: 620px) {
  .nav { padding-top: 10px; }
  .nav__bar { height: 58px; padding: 0 6px; }
  .nav[data-scrolled] .nav__bar { transform: translateY(-4px); }
  .nav__side { width: 118px; height: 42px; padding: 0 10px; font-size: 14px; gap: 6px; }
  .nav__left .nav__label-long { display: none; }
}
@media (min-width: 621px) {
  .nav__left .nav__label-short { display: none; }
}

.nav-spacer { height: 104px; }

/* ------------------------------------------------------------------ footer (hg-media's panel) */
.footer { padding: 0 0 120px; }
.footer__panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-8);
  padding: var(--s-10);
  border-radius: var(--r-3);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.footer__brand p { margin-top: var(--s-3); max-width: 30ch; color: var(--ink-2); font-size: 15px; }
.footer__col { display: grid; align-content: start; gap: 10px; font-size: 15px; }
.footer__col strong { font-weight: 600; margin-bottom: 4px; }
.footer__col a { color: var(--ink-2); width: fit-content; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--ink); } }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: var(--s-5);
  padding-inline: var(--s-10);
  font-size: 14px;
  color: var(--ink-3);
}
.footer__legal a { color: var(--ink-3); }
@media (max-width: 820px) {
  .footer__panel { grid-template-columns: 1fr 1fr; padding: var(--s-6); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__legal { padding-inline: var(--s-6); }
}

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border-radius: var(--r-3);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-1);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}
.tag--accent { background: var(--accent-soft); color: var(--accent-text); }
.tag--good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.tag .icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ switcher
   emilkowalski/skills prototype PICKER.md, verbatim. It is comparison chrome,
   not part of any variation. */
.proto-picker {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 24px rgba(0, 0, 0, 0.24),
    0 2px 6px rgba(0, 0, 0, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}
.proto-picker-highlight {
  position: absolute;
  top: 4px;
  left: 0;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.proto-picker[data-ready] .proto-picker-highlight {
  transition:
    transform 250ms cubic-bezier(0.23, 1, 0.32, 1),
    width 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-reduced-motion: reduce) {
  .proto-picker[data-ready] .proto-picker-highlight { transition: none; }
}
.proto-picker-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  cursor: pointer;
  transition:
    color 150ms ease-out,
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .proto-picker-item:hover { color: rgba(255, 255, 255, 0.85); }
}
.proto-picker-item:active { transform: scale(0.97); }
.proto-picker-item:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.4); outline-offset: 2px; }
.proto-picker-item[data-active] { color: #fff; }
.proto-picker-divider { width: 1px; height: 16px; margin: 0 4px; background: rgba(255, 255, 255, 0.12); }
.proto-picker-replay { padding: 0 10px; font-size: 14px; }

/* ------------------------------------------------------------------ entrance
   One-shot hero entrance. Lead travels furthest, support less, decoration fades. */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter 640ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
  .enter--soft { animation-name: enter-soft; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes enter-soft { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .enter { animation: fade 300ms ease both; }
}
@keyframes fade { from { opacity: 0; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
