:root {
  --bg: #f3efe9;
  --text: #1c1c1c;
  --muted: #6f6f6f;
  --line: #ded7cd;
  --card: #ffffff;
  --accent: #b00020;
  --shadow: 0 12px 28px rgba(0,0,0,.10);
  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--card);
  color:var(--text);
  padding:.75rem 1rem;
  border-radius:999px;
  box-shadow:var(--shadow);
  z-index:999;
}
.skip-link:focus{ left:1rem; top:1rem; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  background: rgba(253,253,252,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

nav ul {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

nav .brand a {
  font-weight: 800;
  letter-spacing: .02em;
}

nav .tabs a {
  margin-left: 1.2rem;
  color: var(--text);
  font-weight: 500;
}

/* HERO */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem 1.25rem;
  text-align: center;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 650;
  font-size: .85rem;
  margin: .9rem 0 .5rem;
}

.hero h1 {
  margin: .35rem 0 .75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.hero-sub {
  margin: 0 auto 1rem;
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ✅ FIXED HERO IMAGE (works desktop + mobile) */
.hero-image {
  max-width: 980px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);

  /* stable layout + nice cropping */
  aspect-ratio: 16 / 9;
  background: #e8e2da;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;        /* keeps it nicely cropped */
  object-position: center;  /* adjust if you want: center 30% */
}

/* CTA buttons */
.cta-row {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.cta-row.left { justify-content: flex-start; }

.btn{
  display:inline-block;
  padding:.8rem 1.1rem;
  border-radius:999px;
  font-weight:700;
  border:1px solid var(--line);
  background:var(--card);
  box-shadow:var(--shadow);
}
.btn.primary{
  background:var(--accent);
  color:#fff;
  border-color:transparent;
}
.btn.primary:hover{ text-decoration:none; filter:brightness(.95); }
.btn.secondary:hover{ text-decoration:none; background:#fff; }

/* CONTENT */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 1rem 0;
  border: 1px solid rgba(0,0,0,.03);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.col { min-width: 0; }

.muted { color: var(--muted); margin-top: 0; }

ul.clean {
  margin: .5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.pills { margin-top: 1rem; }
.pill {
  display:inline-block;
  padding:.25rem .6rem;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:.9rem;
  margin:.25rem .25rem 0 0;
}

.note{
  margin-top:1rem;
  color:var(--muted);
  border-left:3px solid var(--line);
  padding-left:.9rem;
}

/* FOOTER */
.footer{
  text-align:center;
  padding:2rem 1rem;
  color:var(--muted);
  font-size:.9rem;
  border-top: 1px solid rgba(0,0,0,.05);
}

/* MOBILE */
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  nav .tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
  }
  nav .tabs a { margin-left: 0; }

  /* On small screens, a slightly taller hero crop looks better */
  .hero-image { aspect-ratio: 4 / 3; }
}
