/* ============================================================
   TANZANIA — trip field guide
   palette: ivory / sunset orange / savannah gold / acacia green
   ============================================================ */

:root {
  --ink:        #1a1410;
  --ink-soft:   #4a3a2a;
  --muted:      #7a6a55;
  --paper:      #fbf6ea;
  --paper-warm: #f5ead2;
  --paper-deep: #ebdcb6;
  --line:       #d4c39a;

  --sun:        #e88a4a;
  --sun-deep:   #c2552a;
  --gold:       #d4a449;
  --gold-soft:  #ecc97b;
  --acacia:     #4f6b35;
  --acacia-dk:  #2c3d1d;
  --clay:       #b65334;
  --night:      #1f2a1c;
  --night-deep: #14180e;

  --shadow-sm:  0 2px 8px rgba(58, 36, 14, 0.07);
  --shadow-md:  0 8px 28px rgba(58, 36, 14, 0.10);
  --shadow-lg:  0 24px 60px rgba(58, 36, 14, 0.16);

  --serif:      "Fraunces", Georgia, "Times New Roman", serif;
  --sans:       "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --hand:       "Caveat", cursive;

  --maxw:       1200px;
  --maxw-text:  720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--sun-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--clay); }
img, svg { display: block; max-width: 100%; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sun-deep);
}
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.sw {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sun-deep);
  font-size: 0.9em;
  margin-left: 6px;
}
code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--paper-deep);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ============================================================ NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 234, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding .3s ease;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__home {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251, 246, 234, 0.4);
  transition: background .2s, color .2s, border-color .2s;
}
.nav__home:hover {
  color: var(--ink);
  background: var(--paper-deep);
  border-color: var(--paper-deep);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  margin-right: auto;
}
.nav__brand-mark {
  color: var(--sun-deep);
  display: inline-flex;
}
.nav__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.nav__links a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--sun-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 18px 24px;
    gap: 14px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav.open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__home { font-size: 0.78rem; }
}

/* ============================================================ HERO */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__art {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__svg { width: 100%; height: 100%; }
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 24px 80px;
  width: 100%;
}
.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 245, 214, 0.92);
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(255, 245, 214, 0.45);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__title span {
  display: block;
}
.hero__lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.4;
  margin: 0 0 48px;
  max-width: 540px;
  color: rgba(255, 245, 214, 0.95);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero__countdown {
  display: flex;
  gap: 12px;
  margin: 0 0 40px;
  flex-wrap: wrap;
}
.hero__countdown > div {
  background: rgba(20, 12, 6, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 245, 214, 0.18);
  padding: 14px 22px;
  border-radius: 12px;
  text-align: center;
  min-width: 86px;
}
.hero__countdown strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}
.hero__countdown span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 245, 214, 0.7);
  margin-top: 6px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn--primary {
  background: var(--sun);
  color: #fff;
}
.btn--primary:hover {
  background: var(--sun-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 85, 42, 0.35);
}
.btn--ghost {
  background: rgba(255, 245, 214, 0.08);
  color: #fff;
  border-color: rgba(255, 245, 214, 0.5);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255, 245, 214, 0.18);
  color: #fff;
  border-color: rgba(255, 245, 214, 0.8);
}
.btn--small {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}
.btn--small:hover { color: var(--ink); border-color: var(--ink); background: transparent; }

/* ============================================================ SECTION FRAMING */

.section {
  padding: 110px 24px;
  scroll-margin-top: 72px;
}
.section--cream    { background: var(--paper-warm); }
.section--accent   { background: linear-gradient(180deg, var(--paper-warm) 0%, #f7e4b3 100%); }
.section--dark     {
  background: var(--night);
  color: var(--paper);
}
.section--dark a { color: var(--gold-soft); }
.section--dark a:hover { color: var(--gold); }
.section--dark strong { color: #fff; }
.section--dark .muted { color: rgba(251, 246, 234, 0.65); }

.section__hd {
  max-width: var(--maxw-text);
  margin: 0 auto 64px;
  text-align: center;
}
.section__hd h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 14px 0 18px;
  color: var(--ink);
}
.section--dark .section__hd h2 { color: var(--paper); }
.section__hd .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 620px;
}
.section--dark .section__hd .lede { color: rgba(251, 246, 234, 0.78); }
.section__hd--light .kicker { color: var(--gold-soft); }

/* ============================================================ QUICK FACTS */

.facts__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.fact {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .2s ease;
}
.fact:hover {
  background: var(--paper-warm);
}
.fact__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--sun-deep);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.fact__label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.fact__sub {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================ ADMIN CARDS */

.admin__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 195, 154, 0.4);
}
.card--accent {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card.card--accent h3 { color: #fff; }
.card.card--accent a { color: var(--gold-soft); }
.card.card--accent .muted { color: rgba(251, 246, 234, 0.6); }
.card ul, .card ol {
  margin: 0;
  padding: 0 0 0 20px;
}
.card li {
  margin: 8px 0;
}
.card .check {
  list-style: none;
  padding: 0;
}
.card .check li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
}
.card .check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sun-deep);
  font-weight: 700;
}
.card--accent .check li::before { color: var(--gold); }

.dl { margin: 0; }
.dl dt {
  font-weight: 600;
  margin-top: 14px;
  color: var(--ink);
}
.card--accent .dl dt { color: #fff; }
.dl dt:first-child { margin-top: 0; }
.dl dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}
.card--accent .dl dd { color: rgba(251, 246, 234, 0.85); }

/* ============================================================ ITINERARY */

.itinerary { padding-bottom: 130px; }

.route {
  max-width: var(--maxw);
  margin: 0 auto 72px;
  text-align: center;
}
.route__svg {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  height: auto;
  background: var(--paper-warm);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 12px;
}
.route figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--line);
}

.day {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  padding: 20px 0;
  align-items: start;
}
.day__date {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.day__num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
}
.day__month {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-deep);
}
.day__dow {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.day--zanzibar .day__date {
  background: linear-gradient(150deg, #cce6f0 0%, #fff 100%);
  border-color: #a0c8d6;
}
.day--safari .day__date {
  background: linear-gradient(150deg, var(--gold-soft) 0%, #fff 100%);
  border-color: var(--gold);
}
.day--highlight .day__date {
  background: linear-gradient(150deg, var(--sun) 0%, var(--sun-deep) 100%);
  border-color: var(--sun-deep);
  color: #fff;
}
.day--highlight .day__num,
.day--highlight .day__month,
.day--highlight .day__dow { color: #fff; }
.day--end .day__date {
  background: var(--ink);
  border-color: var(--ink);
}
.day--end .day__num,
.day--end .day__month,
.day--end .day__dow { color: #fff; }
.day--split .day__date {
  background: linear-gradient(180deg, var(--paper) 50%, var(--gold-soft) 50%);
}

.day__body {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 195, 154, 0.4);
}
.day__pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.day--zanzibar .day__pill { background: #4d7a8a; }
.day--highlight .day__pill { background: var(--sun-deep); }
.day__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.day__where {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sun-deep);
  margin: 0 0 14px;
  font-size: 1rem;
}
.day__body p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}
.day__body p:last-child { margin-bottom: 0; }

.day__plan {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.day__plan li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 6px 0;
}

.day__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chip {
  display: inline-block;
  padding: 4px 12px;
  background: var(--paper-warm);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .timeline::before { left: 32px; }
  .day { grid-template-columns: 64px 1fr; gap: 14px; }
  .day__date { padding: 8px 4px; }
  .day__num { font-size: 1.3rem; }
  .day__month, .day__dow { font-size: 0.62rem; }
  .day__body { padding: 18px 20px; }
}

/* ============================================================ WILDLIFE */

.wildlife { padding-bottom: 130px; }
.wildlife__rubric {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 12px;
  color: var(--paper);
}
.wildlife__rubric-sub {
  text-align: center;
  font-style: italic;
  font-family: var(--serif);
  color: rgba(251, 246, 234, 0.7);
  margin: 0 auto 40px;
  max-width: 540px;
}

.wildlife__big5 {
  max-width: var(--maxw);
  margin: 0 auto 80px;
}
.wildlife__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.beast {
  background: rgba(251, 246, 234, 0.06);
  border: 1px solid rgba(212, 164, 73, 0.2);
  border-radius: 14px;
  padding: 22px 24px;
  color: var(--paper);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.beast:hover {
  transform: translateY(-4px);
  background: rgba(251, 246, 234, 0.10);
  border-color: rgba(212, 164, 73, 0.5);
}
.beast__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.beast__icon svg { width: 36px; height: 36px; }
.beast h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--paper);
}
.beast h4 .sw { color: var(--gold-soft); }
.beast p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(251, 246, 234, 0.82);
  margin: 0 0 8px;
}
.beast .small { color: rgba(251, 246, 234, 0.55); }

.wildlife__rest {
  max-width: var(--maxw);
  margin: 0 auto;
}
.wildlife__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 28px;
  max-width: 980px;
  margin: 0 auto 50px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.wildlife__list > div {
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 164, 73, 0.18);
  color: rgba(251, 246, 234, 0.85);
}
.wildlife__list strong { color: var(--paper); }
.wildlife__list .sw { color: var(--gold-soft); }

.wildlife__migration {
  margin: 60px auto 0;
  max-width: 720px;
  background: rgba(212, 164, 73, 0.08);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  border-radius: 0 12px 12px 0;
}
.wildlife__migration h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--gold-soft);
}
.wildlife__migration p {
  margin: 0;
  color: rgba(251, 246, 234, 0.85);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================================ COUNTRY */

.country__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.ctry {
  background: #fff;
  border-radius: 14px;
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 195, 154, 0.4);
}
.ctry h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 18px;
}
.ctry h3::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px;
  height: 6px;
  background: var(--sun-deep);
  border-radius: 50%;
}
.ctry p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.ctry__weather {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.ctry__weather li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.ctry__weather li:last-child { border-bottom: 0; }

/* ============================================================ HISTORY */

.era {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
  position: relative;
}
.era::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.era__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 24px 0;
  position: relative;
}
.era__item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 36px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border: 2.5px solid var(--sun-deep);
  border-radius: 50%;
  z-index: 1;
}
.era__item--highlight::before {
  background: var(--sun);
  border-color: var(--sun-deep);
  box-shadow: 0 0 0 6px rgba(232, 138, 74, 0.18);
}
.era__when {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  color: var(--sun-deep);
  font-size: 1.05rem;
  padding-left: 50px;
  padding-top: 4px;
}
.era__what h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.era__what p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.era__what p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .era__item { grid-template-columns: 1fr; gap: 8px; }
  .era__when { padding-left: 50px; padding-top: 0; font-size: 0.95rem; }
  .era__what { padding-left: 50px; }
}

/* ============================================================ FOOD */

.food__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.dish {
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  border: 1px solid rgba(212, 195, 154, 0.5);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.dish::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 4px;
  height: 100%;
  background: var(--sun-deep);
  border-radius: 12px 0 0 12px;
}
.dish:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.dish__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.dish p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.dish--drink::before { background: var(--acacia); }

/* ============================================================ TALES */

.tales__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.tale {
  background: var(--paper-warm);
  border-radius: 14px;
  padding: 36px 38px;
  border: 1px solid var(--line);
  position: relative;
}
.tale::before {
  content: "“";
  position: absolute;
  top: 0;
  left: 18px;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--sun);
  opacity: 0.35;
  z-index: 0;
}
.tale > * { position: relative; z-index: 1; }
.tale header { margin-bottom: 18px; }
.tale__tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.tale h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tale p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.tale__moral {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sun-deep);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
}

/* ============================================================ SWAHILI */

.phrases {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.phrase-group {
  background: #fff;
  border-radius: 14px;
  padding: 26px 30px;
  border: 1px solid rgba(212, 195, 154, 0.5);
  box-shadow: var(--shadow-sm);
}
.phrase-group h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.phrase-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.phrase-list li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.phrase-list li:last-child { border-bottom: 0; }
.phrase-list b {
  color: var(--ink);
  font-weight: 600;
}
.phrase-list i {
  color: var(--sun-deep);
  font-style: italic;
  font-family: var(--serif);
  font-size: 0.9em;
  margin: 0 6px;
}
.phrase-list--cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 12px;
}
.phrase-list--cols li {
  padding: 6px 0;
}

/* ============================================================ PACKING */

.packing__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.pack {
  background: #fff;
  border-radius: 14px;
  padding: 26px 28px;
  border: 1px solid rgba(212, 195, 154, 0.5);
  box-shadow: var(--shadow-sm);
}
.pack h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pack-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pack-list li {
  padding: 4px 0;
}
.pack-list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 4px 0;
  transition: color .15s ease;
}
.pack-list label:hover {
  color: var(--ink);
}
.pack-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #fff;
  margin: 2px 0 0;
  cursor: pointer;
  position: relative;
  transition: all .15s ease;
}
.pack-list input[type="checkbox"]:hover {
  border-color: var(--sun-deep);
}
.pack-list input[type="checkbox"]:checked {
  background: var(--sun-deep);
  border-color: var(--sun-deep);
}
.pack-list input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}
.pack-list input[type="checkbox"]:checked + span,
.pack-list label:has(input:checked) {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(122, 106, 85, 0.5);
}
.pack .muted.small { margin-top: 14px; }

#reset-pack {
  margin-top: 16px;
}

/* ============================================================ HEALTH */

.health__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.hcard {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px;
  border: 1px solid rgba(212, 195, 154, 0.4);
  box-shadow: var(--shadow-sm);
}
.hcard h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hcard h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--acacia);
  border-radius: 50%;
}
.hcard ul {
  margin: 0;
  padding: 0 0 0 20px;
}
.hcard li {
  margin: 10px 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================ FOOTER */

.foot {
  background: var(--night-deep);
  color: rgba(251, 246, 234, 0.75);
  padding: 80px 24px 50px;
  text-align: center;
}
.foot__inner {
  max-width: var(--maxw-text);
  margin: 0 auto;
}
.foot__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.4;
  color: var(--paper);
  margin: 0 0 12px;
}
.foot__cite {
  color: var(--gold-soft);
  margin: 0 0 50px;
  font-style: italic;
}
.foot__meta {
  border-top: 1px solid rgba(251, 246, 234, 0.15);
  padding-top: 32px;
}
.foot__meta p {
  margin: 8px 0;
}
.foot__meta strong {
  color: #fff;
}
.foot__meta .muted {
  color: rgba(251, 246, 234, 0.5);
}
.foot__meta code {
  background: rgba(251, 246, 234, 0.1);
  color: var(--gold-soft);
}

/* ============================================================ SCROLL TO TOP */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  box-shadow: var(--shadow-md);
  z-index: 40;
}
.to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.to-top:hover {
  background: var(--sun-deep);
  transform: translateY(-3px);
}

/* ============================================================ REVEAL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================ RESPONSIVE TWEAKS */

@media (max-width: 720px) {
  .section { padding: 70px 18px; }
  .hero__content { padding: 80px 24px 60px; }
  .hero__countdown > div { padding: 10px 14px; min-width: 70px; }
  .hero__countdown strong { font-size: 1.5rem; }
  .phrase-list--cols { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
