/* ==========================================================================
   A Quality Construction & Outdoor Living — Design Tokens & Reset
   Palette derived from the brand's actual logo (champagne gold on charcoal).
   ========================================================================== */

@font-face {
  font-family: 'Switzer';
  src: url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap');
}

@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700,800&f[]=general-sans@400,500,600,700&display=swap');

:root {
  /* ---- Brand-derived hues ---- */
  --hue-warm: 66; /* gold/champagne hue extracted from logo */
  --hue-neutral: 60;

  /* ---- Light mode surfaces ---- */
  --color-bg: oklch(97.3% 0.006 var(--hue-warm));
  --color-surface: oklch(99% 0.003 var(--hue-warm));
  --color-surface-2: oklch(94.5% 0.009 var(--hue-warm));
  --color-surface-3: oklch(91% 0.012 var(--hue-warm));
  --color-border: oklch(85% 0.014 var(--hue-warm));

  --color-text: oklch(21% 0.006 var(--hue-neutral));
  --color-text-muted: oklch(46% 0.012 var(--hue-neutral));
  --color-text-faint: oklch(62% 0.012 var(--hue-neutral));

  /* ---- Accent (champagne gold, sampled from logo) ---- */
  --color-accent: oklch(56% 0.075 var(--hue-warm));
  --color-accent-strong: oklch(48% 0.078 var(--hue-warm));
  --color-accent-soft: oklch(88% 0.035 var(--hue-warm));
  --color-accent-on-dark: oklch(78% 0.06 var(--hue-warm));

  /* ---- Fixed ink surfaces — header/footer always match logo's native dark bg ---- */
  --color-ink: oklch(13% 0.004 var(--hue-neutral));
  --color-ink-2: oklch(18% 0.005 var(--hue-neutral));
  --color-ink-border: oklch(30% 0.01 var(--hue-neutral));
  --color-ink-text: oklch(96% 0.008 var(--hue-warm));
  --color-ink-text-muted: oklch(68% 0.015 var(--hue-warm));

  --color-error: oklch(52% 0.16 25);
  --color-success: oklch(58% 0.12 145);

  /* ---- Shadows (warm-tinted) ---- */
  --shadow-sm: 0 1px 2px oklch(20% 0.01 60 / 0.06), 0 1px 1px oklch(20% 0.01 60 / 0.04);
  --shadow-md: 0 4px 12px oklch(20% 0.01 60 / 0.08), 0 1px 3px oklch(20% 0.01 60 / 0.06);
  --shadow-lg: 0 16px 40px oklch(20% 0.01 60 / 0.14), 0 4px 12px oklch(20% 0.01 60 / 0.08);

  /* ---- Radius — sharper, architectural ---- */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.875rem;
  --radius-full: 999px;

  /* ---- Spacing (4px system) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Type scale (fluid) ---- */
  --text-xs: clamp(0.75rem, 0.72rem + 0.1vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.28rem + 0.4vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.55rem + 0.8vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.9rem + 1.4vw, 3.25rem);
  --text-hero: clamp(2.75rem, 2.1rem + 2.6vw, 4.75rem);

  /* ---- Fonts ---- */
  --font-display: 'Switzer', 'General Sans', sans-serif;
  --font-body: 'General Sans', 'Switzer', sans-serif;

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* ---- Motion ---- */
  --ease-golden: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-interactive: 180ms var(--ease-golden);
  --transition-page: 420ms var(--ease-golden);
}

/* ---- Dark mode (site-wide toggle) ---- */
html.dark {
  --color-bg: oklch(14.5% 0.006 var(--hue-neutral));
  --color-surface: oklch(18.5% 0.007 var(--hue-neutral));
  --color-surface-2: oklch(22% 0.008 var(--hue-neutral));
  --color-surface-3: oklch(26% 0.009 var(--hue-neutral));
  --color-border: oklch(32% 0.012 var(--hue-neutral));

  --color-text: oklch(94% 0.008 var(--hue-warm));
  --color-text-muted: oklch(70% 0.014 var(--hue-warm));
  --color-text-faint: oklch(52% 0.014 var(--hue-warm));

  --color-accent: oklch(76% 0.058 var(--hue-warm));
  --color-accent-strong: oklch(82% 0.055 var(--hue-warm));
  --color-accent-soft: oklch(30% 0.03 var(--hue-warm));
  --color-accent-on-dark: oklch(78% 0.06 var(--hue-warm));

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.4);
  --shadow-md: 0 4px 12px oklch(0% 0 0 / 0.45);
  --shadow-lg: 0 16px 40px oklch(0% 0 0 / 0.55);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

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

@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;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-page), color var(--transition-page);
}

img, picture, video, canvas {
  display: block;
  max-width: 100%;
  background: var(--color-surface-2);
}

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

img {
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--color-ink);
  color: var(--color-ink-text);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}
