/* Isle of Dogess — Colour Tokens, Typography & Surface Primitives */
:root {
  color-scheme: dark;
  --idg-canvas: #120d14;
  --idg-surface: #1d1521;
  --idg-surface-alt: #271c2d;
  --idg-surface-soft: #17101b;
  --idg-cabinet: #0c080f;
  --idg-ink: #f4eff7;
  --idg-ink-muted: #c3b6ca;
  --idg-ink-soft: #9e8fa8;
  --idg-accent: #a7e048;
  --idg-accent-ink: #120d14;
  --idg-secondary: #e4b45a;
  --idg-tertiary: #d98ef0;
  --idg-teal: #8be8d8;
  --idg-danger: #f07b82;
  --idg-border: rgba(214, 190, 224, 0.2);
  --idg-border-strong: rgba(167, 224, 72, 0.45);
  --idg-shadow: 0 16px 40px rgba(4, 2, 8, 0.48);
  --idg-font-display: 'Gilda Display', Georgia, 'Times New Roman', serif;
  --idg-font-body: 'Hind', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --idg-radius-sm: 6px;
  --idg-radius: 10px;
  --idg-radius-lg: 14px;
  --idg-max: 1240px;
  --idg-header-h: 72px;
}

[data-idg-theme="light"] {
  color-scheme: light;
  --idg-canvas: #faf6fb;
  --idg-surface: #ffffff;
  --idg-surface-alt: #f2eaf5;
  --idg-surface-soft: #f5eff8;
  --idg-cabinet: #17101c;
  --idg-ink: #1e1424;
  --idg-ink-muted: #52435c;
  --idg-ink-soft: #6c5b77;
  --idg-accent: #3d660c;
  --idg-accent-ink: #ffffff;
  --idg-secondary: #8a560f;
  --idg-tertiary: #75348a;
  --idg-teal: #1b6b61;
  --idg-danger: #b42632;
  --idg-border: rgba(54, 34, 66, 0.16);
  --idg-border-strong: rgba(61, 102, 12, 0.45);
  --idg-shadow: 0 14px 32px rgba(34, 18, 46, 0.09);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--idg-font-body);
  background-color: var(--idg-canvas);
  color: var(--idg-ink);
  line-height: 1.65;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1, h2, h3, h4 {
  font-family: var(--idg-font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 0.65rem;
  color: var(--idg-ink);
}

h1 { font-size: clamp(2rem, 4.2vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }

p { margin: 0 0 1rem; color: var(--idg-ink-muted); }

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

a:hover { opacity: 0.88; }

:focus-visible {
  outline: 2.5px solid var(--idg-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.idg-container {
  width: 100%;
  max-width: var(--idg-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.idg-main {
  flex: 1 0 auto;
}

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

[data-idg-reduced-motion="true"] *,
[data-idg-reduced-motion="true"] *::before,
[data-idg-reduced-motion="true"] *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
