:root {
  --yellow: #f7ce04;
  --grey: #58585a;
  --ink: #333335;
  --muted: #6b6b6e; /* darker than logo #87878A so secondary text meets 4.5:1 on white */
  --green: #8cbb44;
  --line: #e6e6e8;
  --soft: #f6f6f7;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: #fff;
  color: var(--grey);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #000; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--ink); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

h1, h2, h3 { color: var(--grey); line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }

h2::after {
  content: "";
  display: block;
  width: 3rem; height: 4px;
  background: var(--yellow);
  margin-top: .6rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem;
}
.logo img { width: 165px; height: auto; }
.nav { display: flex; gap: 1.25rem; }
.nav a { text-decoration: none; font-weight: 600; padding: .4rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--yellow); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--yellow);
}
.btn:hover { background: #e9c000; border-color: #e9c000; color: #000; }
.btn-outline { background: #fff; border-color: var(--grey); }
.btn-outline:hover { background: var(--soft); border-color: var(--ink); }

/* Hero */
.hero { padding: 3rem 0 2.5rem; }
.hero p.lead { font-size: 1.2rem; max-width: 36rem; margin: 0 0 1.5rem; color: var(--muted); }
.hero-img { margin-top: 2rem; border-radius: 8px; width: 100%; }

/* Sections */
section { padding: 3rem 0; }
.alt { background: var(--soft); }

.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; align-items: start; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 6px;
  overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.card .body { padding: 1.1rem 1.25rem 1.4rem; }
.card p { margin: 0; color: var(--muted); }
.card.plain .body { padding-top: 1.4rem; }

.about-img { margin-top: 1.5rem; border-radius: 8px; width: 100%; }
.about p { max-width: 42rem; }

/* Contact */
.contact dl { margin: 1.5rem 0; display: grid; grid-template-columns: 1fr; gap: .25rem 1.5rem; }
.contact dt { font-weight: 700; color: var(--ink); margin-top: .75rem; }
.contact dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.site-footer a { color: var(--muted); }

/* 404 */
.notfound { padding: 5rem 0; text-align: left; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact dl { grid-template-columns: 11rem 1fr; }
  .contact dt { margin-top: 0; }
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; }
  .hero { padding: 4.5rem 0 3.5rem; }
  section { padding: 4.5rem 0; }
}

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

/* Logo-only landing */
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 1.5rem; text-align: center; }
.splash img { width: min(300px, 80vw); height: auto; }
.splash-note { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.splash-note a { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
