/* Shared tokens and primitives. Page-specific styles live in home.css and
   map.css, and each page loads only its own. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/vendor/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/vendor/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/vendor/fonts/fraunces-latin-wght-italic.woff2') format('woff2-variations');
}

:root {
  --ink: #1d2a33;
  --ink-2: #44505a;
  --muted: #7b7167;
  --paper: #f4efe6;
  --paper-2: #faf7f1;
  --card: #ffffff;
  --line: #e7dfd2;
  --line-2: #efe9df;
  --red: #d6452a;
  --red-deep: #b5361e;
  --red-soft: #fbe6df;
  --jade: #1f5f55;
  --jade-soft: #dcebe6;
  --gold: #c8a04a;

  --font-sans: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Fraunces Variable', 'Fraunces', Georgia, 'Songti SC', serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(29, 42, 51, .06), 0 2px 8px rgba(29, 42, 51, .06);
  --shadow-md: 0 2px 6px rgba(29, 42, 51, .06), 0 12px 32px rgba(29, 42, 51, .10);
  --shadow-lg: 0 8px 24px rgba(29, 42, 51, .10), 0 28px 64px rgba(29, 42, 51, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  /* No text selection or long-press menus site-wide (see /js/protect.js);
     form fields opt back in below. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

img { max-width: 100%; display: block; -webkit-user-drag: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent);
  outline-offset: 2px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}

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

/* Brand seal: a vermilion chop with footprints (the #i-seal artwork) */
.seal {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 3px 6px rgba(214, 69, 42, .28));
  transform: rotate(-4deg);
}
.seal .icon { width: 100%; height: 100%; }
.seal-lg { width: 64px; height: 64px; }
/* A line icon (clock, key…) pressed into a plain vermilion square */
.seal-badge {
  border-radius: 18px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(214, 69, 42, .28);
  filter: none;
}
.seal-badge .icon { width: 38px; height: 38px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .7em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-ghost:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
