/* =========================================================
   DESIGN TOKENS
   Change values here to re-theme the entire site at once.
   ========================================================= */
:root {
  /* Colors */
  --bg: #f7f5ef;          /* warm paper background */
  --surface: #ffffff;      /* card / panel background */
  --ink: #1e2a30;          /* primary text - deep slate, not pure black */
  --muted: #705b67;        /* secondary text */
  --accent: #78001e;       /* deep burgundy - links, headings accents */
  --accent-warm: #a4c2f4ff;  /* baby blue - used sparingly, for emphasis/CTA */
  --line: #ddd6c7;         /* hairline borders/dividers */

  /* Type */
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --content-width: 760px;
  --wide-width: 1040px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
}

/* =========================================================
   RESET / BASE
   A minimal reset - just enough to get consistent defaults
   without fighting the browser too much.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-warm); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 var(--space-2); max-width: 68ch; }

/* Visible keyboard focus - accessibility floor, don't skip this */
:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
}

/* =========================================================
   LAYOUT SHELL
   ========================================================= */
.wrap {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

main { padding-bottom: var(--space-5); }

/* -------- Header / nav -------- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.site-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.site-nav { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent-warm);
}

/* -------- Footer -------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-3) 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   HERO (used on Home)
   ========================================================= */
.hero {
  padding: var(--space-5) 0 var(--space-4);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4);
  align-items: center;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  background: var(--line); /* shows as a placeholder block until a photo is added */
}
.hero-eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  margin: 0 0 var(--space-1);
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 280px; }
}

/* =========================================================
   SECTIONS / CARDS
   ========================================================= */
.section { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--space-3);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--space-3);
}
.card h3 { margin-bottom: var(--space-1); }
.card p { margin-bottom: var(--space-2); }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}
.link-list li:last-child { border-bottom: none; }
.link-list a { font-weight: 600; text-decoration: none; }
.link-list .desc { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; }
.tag-list li {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--space-3);
  display: inline-block;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
