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

:root {
  --red:    #c1272d;
  --green:  #006233;
  --gold:   #b8962e;
  --cream:  #f9f6f0;
  --dark:   #1a1a1a;
  --mid:    #555;
}

body {
  font-family: 'Georgia', serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  background: var(--dark);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 56px;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-family: sans-serif;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
nav a:hover, nav a.active { border-color: var(--gold); color: var(--gold); }
nav .brand {
  margin-right: auto;
  font-size: 1rem;
  font-weight: bold;
  color: var(--gold);
  border: none;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, #8b1a1e 50%, var(--green) 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem 4rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: .03em;
  margin-bottom: .75rem;
}
.hero p {
  font-size: 1.15rem;
  opacity: .85;
  max-width: 600px;
  margin: 0 auto;
}

/* ── SECTION / CONTAINER ── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ── CARD GRID (index) ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.card-body h2 { font-size: 1.2rem; margin-bottom: .4rem; color: var(--red); }
.card-body .meta { font-size: .85rem; color: var(--mid); font-family: sans-serif; }
.card-body p { margin-top: .75rem; font-size: .95rem; }

/* accent stripe at top of card */
.card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to right, var(--red), var(--green));
}

/* ── DETAIL PAGE ── */
.detail-hero {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 4rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(193,39,45,.55) 0%, rgba(0,98,51,.55) 100%);
}
.detail-hero * { position: relative; }
.detail-hero .emoji { font-size: 4rem; display: block; margin-bottom: .75rem; }
.detail-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .5rem; }
.detail-hero p { opacity: .8; font-size: 1.1rem; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.stat {
  background: #fff;
  border-left: 4px solid var(--gold);
  padding: .75rem 1.25rem;
  border-radius: 0 6px 6px 0;
  flex: 1 1 180px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.stat dt { font-family: sans-serif; font-size: .75rem; text-transform: uppercase;
           letter-spacing: .08em; color: var(--mid); }
.stat dd { font-size: 1.3rem; font-weight: bold; color: var(--red); margin-top: .2rem; }

article h2 {
  font-size: 1.35rem;
  color: var(--green);
  margin: 2rem 0 .6rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
article p { margin-bottom: 1rem; }
article ul { padding-left: 1.4rem; margin-bottom: 1rem; }
article li { margin-bottom: .4rem; }

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--red);
  font-family: sans-serif;
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.back-link:hover { color: var(--green); }

/* ── SECTION HEADING (index) ── */
.section-heading {
  font-size: 1.6rem;
  color: var(--green);
  border-left: 5px solid var(--gold);
  padding-left: .75rem;
  margin-bottom: .25rem;
}
.section-sub { color: var(--mid); font-family: sans-serif; font-size: .95rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: #888;
  text-align: center;
  padding: 1.5rem;
  font-family: sans-serif;
  font-size: .85rem;
  margin-top: 3rem;
}
footer span { color: var(--gold); }
