/* Design tokens, reset, typography, focus. No page-specific layout. */

:root {
  --navy: #2f4738;
  --navy-800: #24382c;
  --navy-600: #3d5a48;
  --navy-400: #5c7a66;
  --teal: #6a8f6e;
  --teal-dark: #55745a;
  --teal-soft: #e8f0e4;
  --teal-muted: #3f5c44;
  --bg: #f6f4ee;
  --card: #ffffff;
  --text: #2a332c;
  --text-muted: #5e6b62;
  --text-faint: #8b948c;
  --border: #e3e6dc;
  --border-strong: #c8d0c2;
  --overlay: rgba(36, 56, 44, 0.46);

  --green: #4d7c4f;
  --green-bg: #e6f2e4;
  --amber: #a16207;
  --amber-bg: #f6ead2;
  --slate: #5c6560;
  --slate-bg: #e8ebe6;
  --rose: #9f3a3a;
  --rose-bg: #f8e8e6;
  --info: #4a6b58;
  --info-bg: #e4eee8;

  --radius: 8px;
  --radius-sm: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;

  --shadow-sm: 0 1px 2px rgba(47, 71, 56, 0.06);
  --shadow-md: 0 4px 12px rgba(47, 71, 56, 0.08);
  --shadow-lg: 0 12px 32px rgba(47, 71, 56, 0.16);

  --font: Kanit, "Segoe UI", "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;

  --sidebar-width: 240px;
  --sidebar-compact: 72px;
  --header-height: 64px;
  --z-sidebar: 40;
  --z-overlay: 35;
  --z-header: 20;
  --z-toast: 60;
  --z-modal: 70;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -40px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
}

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

.is-hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
