@font-face {
  font-family: Tomorrow;
  src: url('/media/fonts/tomorrow-800-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('/media/fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('/media/fonts/barlow-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --primary: #33ecc4;
  --primary-text: #05251e;
  --shadow: #10493e48;
  --error: #852043;
  --paper: #aff7e5;
  --surface: #d1fff3;
  --soft: #8cf0d8;
  --ink: #062d29;
  --muted: #21524c;
  --line: #488b80;
  --accent: #0b5148;
  --poster: #22e5b8;
  --poster-ink: #052f2a;
  --register: #93ffe7;
  --plate: #092e2a;
  --plate-text: #cbfff1;
  --plate-rule: #488b80;
  --display-face: Tomorrow, 'Arial Narrow', sans-serif;
  font-family: Barlow, system-ui, sans-serif;
  accent-color: var(--accent);
  color: var(--ink);
  background: var(--paper);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --shadow: #020e10c7;
  --error: #ff9cbd;
  --paper: #082d29;
  --surface: #10423b;
  --soft: #155248;
  --ink: #d7fff3;
  --muted: #a7d8cd;
  --line: #548c80;
  --accent: #65f5d4;
  --poster: #24d7b0;
  --register: #b0ffe9;
  --plate: #061d1a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.site { margin: 0; color: var(--ink); background: var(--paper); font-size: 1.1rem; line-height: 1.5; }
.theme-ready .site,
.theme-ready .site-header,
.theme-ready .site .card,
.theme-ready .site .button { transition: color .35s, background-color .25s, border-color .25s; }
a { color: var(--accent); text-underline-offset: .22em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site p { line-height: 1.55; }
.shell { width: min(100% - clamp(28px, 6vw, 96px), 1320px); margin-inline: auto; }
.icon-definitions { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 15; padding: 12px; background: var(--surface); clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }
.site-header { margin: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site .brand { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); text-decoration: none; font: italic 800 clamp(.88rem, 1.55vw, 1.35rem)/1 var(--display-face); text-transform: uppercase; }
.brand img { display: block; flex-shrink: 0; border-radius: 4px; }
.nav-links { display: flex; gap: clamp(12px, 3vw, 30px); align-items: center; }
.nav-links a, .site-footer a:not(.brand) { color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a:hover, .site-footer a:hover { text-decoration: underline; }
::selection { color: var(--poster-ink); background: var(--register); }
.site button.site-theme { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: transparent; }
.site button.site-theme:hover { background: var(--soft); color: var(--accent); }
.site-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 16px; min-height: 48px; border: 1px solid transparent; border-radius: 0; background: var(--ink); color: var(--paper); font-size: .88rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.site .button:hover:not(:disabled) { border-color: var(--ink); background: var(--poster); color: var(--poster-ink); }
.site .button-quiet { color: var(--ink); border-color: var(--line); background: var(--surface); }
.overlay-scene { --overlay-reveal: 50%; position: relative; isolation: isolate; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); cursor: ew-resize; touch-action: pan-y; user-select: none; }
.overlay-scene > img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.overlay-reveal { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--overlay-reveal)) 0 0); pointer-events: none; }
.overlay-preview-layout { position: absolute; top: 0; left: 0; width: 960px; height: 540px; transform: scale(var(--preview-scale, .53)); transform-origin: top left; }
#overlay-scene .desktop-workspace { position: absolute; inset: 34px 211px auto auto; width: 430px; margin: 0; }
#overlay-scene .desk-input { height: 95px; }
#overlay-scene .desk-output { height: 235px; }
.overlay-divider { position: absolute; inset: 0 auto 0 clamp(15px, var(--overlay-reveal), calc(100% - 15px)); width: 2px; transform: translateX(-50%); background: var(--primary); box-shadow: 0 0 8px var(--shadow); pointer-events: none; }
.overlay-divider svg { position: absolute; top: 50%; left: 50%; padding: 6px; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; color: var(--primary-text); background: var(--primary); box-shadow: 0 2px 7px var(--shadow); }
.overlay-range-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.overlay-scene:has(.overlay-range-input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-block: 23px; margin-top: 48px; }
.site-footer div { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.landing-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 14px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.landing-account p { margin: 0; font-size: .89rem; }
@media (max-width: 500px) {
  .nav { min-height: 64px; gap: 8px; }
  .nav .brand { font-size: .87rem; gap: 5px; }
  .nav .brand img { width: 27px; height: 27px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
