@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500&family=Unbounded:wght@500;800&display=swap");
:root {
  color-scheme: dark;
  --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --text-sm: 0.875rem; --text-md: 1.0625rem;
  --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem); --text-section: clamp(1.75rem, 2.2vw + 1rem, 3rem);
  --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --text-price: clamp(3.25rem, 8vw, 6.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms;
  --container: 1280px; --gutter: 64px; --gap-columns: 48px; --section-gap: 144px;
  --z-nav: 300; --z-base: 1;
  --color-paper: oklch(10.5% 0.035 262); --color-paper-2: oklch(14% 0.04 262); --color-paper-3: oklch(18% 0.045 261);
  --color-ink: oklch(96% 0.015 250); --color-muted: oklch(72% 0.045 255);
  --color-rule: oklch(27% 0.05 259);
  --color-accent: oklch(68% 0.17 255); --color-accent-ink: oklch(17% 0.05 262); --color-focus: oklch(82% 0.11 250);
  --color-bloom: oklch(34% 0.13 258 / 0.7);
  --metal-hi: oklch(46% 0.05 257); --metal-lo: oklch(25% 0.045 260);
  --edge-lit: inset 0 1px 0 oklch(100% 0 0 / 0.45); --color-well: oklch(8% 0.03 262); --shadow-well: inset 0 1px 3px oklch(0% 0 0 / 0.7); --color-thumb-edge: oklch(10% 0.02 258); --grip: oklch(0% 0 0 / 0.25);
  --edge-light: inset 0 1px 0 oklch(100% 0 0 / 0.14);
  --shadow-part: 0 1px 0 oklch(0% 0 0 / 0.5), 0 10px 18px -6px oklch(0% 0 0 / 0.6);
  --shadow-panel: 0 1px 0 oklch(0% 0 0 / 0.5), 0 28px 56px -18px oklch(0% 0 0 / 0.7);
  --font-display: "Unbounded", ui-sans-serif, system-ui, sans-serif; --font-body: "Golos Text", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 20px; --radius-part: 6px; --radius-pill: 999px;
  --tracking-display: -0.025em; --display-weight: 500;
  --beam: oklch(62% 0.16 255 / 0.2); --mask: linear-gradient(180deg, oklch(0% 0 0), oklch(0% 0 0 / 0) 85%); --fade: linear-gradient(180deg, oklch(0% 0 0 / 0.75), oklch(0% 0 0 / 0) 88%);
  --chrome: linear-gradient(180deg, oklch(99% 0.008 250) 0%, oklch(84% 0.07 255) 52%, oklch(60% 0.15 256) 100%); --primary-fill: linear-gradient(180deg, oklch(98% 0.01 250), oklch(84% 0.06 255));
  --site-background: radial-gradient(70vmax 50vmax at 50% -14%, var(--color-bloom), transparent 70%), var(--color-paper);
  --logo: url("../img/logo.webp");
}


.site-header {
  position: sticky;
  top: 12px;
  z-index: 300;
  width: min(100%, var(--container));
  margin: 12px auto 0;
  padding-inline: var(--gutter);
  color: var(--color-ink);
  font: 400 var(--text-sm)/1.6 var(--font-body);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 8px 8px 8px 24px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-paper-2) 70%, transparent);
  backdrop-filter: blur(14px);
}
.site-header a { color: inherit; text-decoration: none; }
.site-header .site-mark {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 1.25rem var(--font-display);
  letter-spacing: -.01em;
}
.site-mark-logo { width: 36px; height: 18px; background: var(--logo) center / contain no-repeat; }
.site-header ul { list-style: none; margin: 0; padding: 0; }
.site-header-links { display: flex; gap: 8px; }
.site-header-links a,.site-header-menu a { display: block; padding: 8px 16px; border-radius: 999px; color: var(--color-muted); }
.site-header a:hover,.site-header a[aria-current="page"] { color: var(--color-ink); }
.site-header a[aria-current="page"] { background: var(--color-paper-3); }
.site-header .site-account {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding-inline: 24px; border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in oklab,var(--color-accent) 88%,white),var(--color-accent));
  box-shadow: var(--edge-lit),var(--shadow-part); color: var(--color-accent-ink); font-weight: 500;
}
.site-header .site-account:hover { opacity: .92; color: var(--color-accent-ink); }
.site-header .site-account[data-muted] { background: var(--color-paper-3); color: var(--color-ink); border-color: var(--color-rule); box-shadow: none; }
.site-header-menu { display: none; }
.site-header :focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (max-width: 70rem) {
  .site-header { --gutter: 24px; }
  .site-header-links { display: none; }
  .site-header-menu { display: block; position: relative; }
  .site-header-menu summary { display: flex; align-items: center; min-height: 40px; cursor: pointer; color: var(--color-muted); }
  .site-header-menu ul { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; padding: 8px; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-3); }
}
@media (max-width: 40rem) {
  .site-header { --gutter: 16px; }
  .site-header-inner { gap: 10px; padding-left: 12px; }
  .site-header .site-mark { gap: 6px; font-size: 1rem; }
  .site-mark-logo { width: 24px; }
  .site-header .site-account { padding-inline: 12px; }
}

/* The grid stays sharp while the light moves behind it. */
body:has(> .site-header),body.site-admin {
  display: flow-root;
  isolation: isolate;
}
body:has(> .site-header)::before,body.site-admin::before,
body:has(> .site-header)::after,body.site-admin::after {
  content: "";
  position: fixed;
  pointer-events: none;
}
body:has(> .site-header)::before,body.site-admin::before {
  z-index: -2;
  inset: -12%;
  background:
    linear-gradient(119deg, transparent 37%, oklch(53% .11 256 / .13) 37.2%, transparent 54%),
    radial-gradient(ellipse at 68% 28%, oklch(49% .14 255 / .19), transparent 49%);
  transform: translate3d(-4%, -3%, 0);
}
body:has(> .site-header)::after,body.site-admin::after {
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to right, oklch(75% .09 251 / .095) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(75% .09 251 / .095) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 52% 28%, #000 4%, transparent 76%);
}
@keyframes aegis-light-drift {
  to { transform: translate3d(6%, 5%, 0); }
}
@keyframes aegis-enter {
  from { opacity: .35; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes aegis-menu-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  body:has(> .site-header)::before,body.site-admin::before {
    animation: aegis-light-drift 12s ease-in-out infinite alternate;
  }
  .site-header + main:not(.account-live),.account-tab-content,.site-admin .view.on {
    animation: aegis-enter 360ms var(--ease-out) both;
  }
  .site-header-menu[open] > ul,.account-menu[open] > ul {
    animation: aegis-menu-open 180ms var(--ease-out) both;
  }
  .site-header :is(a,summary),.account-toolbar :is(a,summary,button) {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
  }
}
@media (max-width: 40rem) {
  body:has(> .site-header)::after,body.site-admin::after { background-size: 40px 40px; }
}
