:root {
  --gfv-canvas: #f6f2e8;
  --gfv-surface: #fdfaf3;
  --gfv-surface-alt: #efe9db;
  --gfv-ink: #142622;
  --gfv-ink-muted: #3d524d;
  --gfv-accent: #195d51;
  --gfv-accent-hover: #12473e;
  --gfv-accent-ink: #fdfaf3;
  --gfv-secondary: #bf3f34;
  --gfv-secondary-soft: #f9e6e4;
  --gfv-border: #d5ccb9;
  --gfv-border-strong: #b6aa94;
  --gfv-cabinet-bg: #10211d;
  --gfv-cabinet-panel: #172e29;
  --gfv-cabinet-ink: #f4efe3;
  --gfv-focus: #bf3f34;
  --gfv-radius-sm: 6px;
  --gfv-radius: 9px;
  --gfv-radius-lg: 14px;
  --gfv-max: 1180px;
  --gfv-font-head: 'Literata', Georgia, serif;
  --gfv-font-body: 'Commissioner', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gfv-shadow: 0 1px 2px rgba(20, 38, 34, 0.06);
  --gfv-shadow-lg: 0 12px 28px rgba(20, 38, 34, 0.14);
}

[data-gfv-theme="nocturne"] {
  --gfv-canvas: #0f1a18;
  --gfv-surface: #162522;
  --gfv-surface-alt: #1d312d;
  --gfv-ink: #edf2ef;
  --gfv-ink-muted: #b0c2bc;
  --gfv-accent: #4dbba5;
  --gfv-accent-hover: #6ad0bc;
  --gfv-accent-ink: #0c1715;
  --gfv-secondary: #e77366;
  --gfv-secondary-soft: #311d1c;
  --gfv-border: #2a403b;
  --gfv-border-strong: #3d5a54;
  --gfv-cabinet-bg: #0a1311;
  --gfv-cabinet-panel: #12211e;
  --gfv-cabinet-ink: #edf2ef;
  --gfv-focus: #e77366;
  --gfv-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --gfv-shadow-lg: 0 16px 34px rgba(0, 0, 0, 0.55);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--gfv-canvas);
  color: var(--gfv-ink);
  font-family: var(--gfv-font-body);
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--gfv-font-head);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 0.65rem;
  color: var(--gfv-ink);
}

h1 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); }
h3 { font-size: clamp(1.12rem, 1.5vw, 1.32rem); }

p { margin: 0 0 0.95rem; }

a {
  color: var(--gfv-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--gfv-accent-hover); }

:focus-visible {
  outline: 2px solid var(--gfv-focus);
  outline-offset: 2px;
}

.gfv-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gfv-accent);
  color: var(--gfv-accent-ink);
  padding: 0.7rem 1.1rem;
  z-index: 2000;
  font-weight: 600;
}
.gfv-skip:focus { left: 0.75rem; top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
