/* core.css — variables, reset, typography, utilities */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations"),
       url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1A1A1A;
  --ink-soft: #2A2A2A;
  --bordeaux: #7A1F2A;
  --bordeaux-dark: #5C161F;
  --forest: #1F3A2E;
  --chalk: #EDEAE3;
  --chalk-dim: #DDD8CE;
  --paper: #FFFFFF;
  --muted: #5A5A58;
  --muted-soft: #8A8783;
  --rule: #C9C5BD;

  --font-display: "Cormorant", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --container-narrow: 880px;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;

  --shadow-soft: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.06);
  --shadow-card: 0 2px 6px rgba(26,26,26,.05), 0 18px 44px rgba(26,26,26,.08);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--bordeaux); text-decoration: none; }
a:hover { color: var(--bordeaux-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

p { margin: 0 0 16px; max-width: 70ch; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.55rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }

/* layout helpers */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section--tight { padding: 48px 0; }
.section--ample { padding: 96px 0; }
.section--dark { background: var(--ink); color: var(--chalk); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--chalk); }
.section--dark a { color: var(--chalk); }
.section--bordeaux { background: var(--bordeaux); color: var(--chalk); }
.section--bordeaux h1, .section--bordeaux h2, .section--bordeaux h3 { color: var(--chalk); }

@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .section--ample { padding: 128px 0; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r);
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  transition: transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  min-height: 48px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary { background: var(--bordeaux); color: var(--chalk); }
.btn--primary:hover { background: var(--bordeaux-dark); color: var(--chalk); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--chalk); text-decoration: none; }
.btn--on-dark { background: var(--chalk); color: var(--ink); }
.btn--on-dark:hover { background: var(--paper); color: var(--ink); text-decoration: none; }

/* small utilities */
.eyebrow { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bordeaux); margin: 0 0 12px; }
.lead { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); color: var(--ink-soft); }
.muted { color: var(--muted); }
.italic-q { font-family: var(--font-display); font-style: italic; font-weight: 700; }

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

/* skip link */
.skip {
  position: absolute; top: -100px; left: 8px;
  background: var(--ink); color: var(--chalk);
  padding: 8px 14px; border-radius: var(--r-sm);
  z-index: 200;
}
.skip:focus { top: 8px; }

/* focus */
:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 3px;
}

/* tables */
table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15.5px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--ink); background: var(--chalk-dim); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr:hover td { background: rgba(122,31,42,.03); }

/* breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--bordeaux); }
.crumbs span[aria-current] { color: var(--ink); }
.crumbs i { font-style: normal; padding: 0 8px; color: var(--muted-soft); }

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