*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 5rem; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; max-width: 72ch; }
a { color: inherit; }
button { cursor: pointer; background: none; border: none; }
::selection { background: oklch(from var(--color-primary) l c h / 0.2); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
a, button, [role="button"] { transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition); }

:root, [data-theme="light"] {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);
  --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;
  --color-bg: #f4f2ec; --color-surface: #f8f6f0; --color-surface-2: #fbfaf6; --color-surface-offset: #edeae3;
  --color-divider: #dbd8d0; --color-border: #ccc9c1; --color-text: #1a1e24; --color-text-muted: #616875;
  --color-text-faint: #a8acb5; --color-text-inverse: #f4f2ec;
  --color-primary: #0a5f6e; --color-primary-hover: #084d5a; --color-primary-active: #063a44; --color-primary-highlight: #c8dde0;
  --color-accent: #c4832a; --color-accent-hover: #a86a1f; --color-navy: #1a2d3e;
  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-full: 9999px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px oklch(0.15 0.02 220 / 0.07);
  --shadow-md: 0 4px 16px oklch(0.15 0.02 220 / 0.10);
  --shadow-lg: 0 12px 40px oklch(0.15 0.02 220 / 0.14);
  --content-narrow: 640px; --content-default: 960px; --content-wide: 1200px;
}
[data-theme="dark"] {
  --color-bg: #111518; --color-surface: #161b1f; --color-surface-2: #1b2227; --color-surface-offset: #1e252b;
  --color-divider: #252d35; --color-border: #2e3840; --color-text: #d4d8de; --color-text-muted: #788088;
  --color-text-faint: #4e5761; --color-text-inverse: #111518;
  --color-primary: #3a9aac; --color-primary-hover: #4eb3c6; --color-primary-active: #62cde0; --color-primary-highlight: #1e3038;
  --color-accent: #e8a450; --color-accent-hover: #f0bb76; --color-navy: #c8d4de;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25); --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35); --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.45);
}
body { font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background-color: var(--color-bg); min-height: 100dvh; line-height: 1.65; }
.skip-link { position: absolute; top: -100%; left: var(--space-4); background: var(--color-primary); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600; z-index: 99999; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: var(--space-2); }
.container { max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-6); }
.container-wide { max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
