@import url('https://fonts.googleapis.com/css2?family=Baloo+Tammudu+2:wght@500;600&family=Mukta:wght@400;600&display=swap');

:root {
  /* surfaces */
  --mist: #F1F4EB;
  --sandal: #FDFBF6;
  --sky: #E4EDF4;

  /* accents — fill shapes */
  --kumkum: #A85068;
  --haldi: #E4BE74;
  --durva: #7B9B6C;

  /* text */
  --ink: #38342D;
  --ink-soft: #77706A;
  --kumkum-ink: #8C3F55;
  --durva-ink: #55764B;

  --line: #E0E3D6;
  --radius: 10px;

  /* today's dress code, overwritten by festival.js on festival days */
  --day-colour: var(--sky);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Mukta', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Baloo Tammudu 2', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.1875rem; }

p { margin: 0 0 1rem; max-width: 62ch; }
ul, ol { max-width: 62ch; }

a { color: var(--kumkum-ink); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--kumkum-ink); outline-offset: 3px; }

/* Wide screens are the mobile layout with air around it, per docs/design.md. */
.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px 4rem; }

.lede { font-size: 1.0625rem; color: var(--ink-soft); }

/* ---------- masthead ---------- */

/* The supplied logo carries its own blue gradient, so it runs full-bleed as a
   banner rather than being cut out. Replace with a transparent PNG later and
   this rule can go back to a padded --sky band. */
.masthead { border-bottom: 1px solid var(--line); }
.masthead img { display: block; width: 100%; height: auto; }
.masthead .society {
  margin: 0;
  padding: .625rem 20px;
  background: var(--sky);
  font-size: .8125rem;
  text-align: center;
  color: var(--ink-soft);
  max-width: none;
}

/* ---------- site nav ---------- */

.sitenav {
  background: var(--sandal);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sitenav ul {
  display: flex;
  gap: .25rem;
  margin: 0 auto;
  padding: 0 12px;
  max-width: 560px;
  list-style: none;
  white-space: nowrap;
}
.sitenav a {
  display: block;
  padding: .75rem .625rem;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
}
.sitenav a:hover { color: var(--ink); }
.sitenav a[aria-current="page"] {
  color: var(--kumkum-ink);
  border-bottom-color: var(--kumkum);
}

.title { text-align: center; padding: 2rem 0 .5rem; }
.title h1 { margin-bottom: .25rem; }
.title .dates { color: var(--ink-soft); margin: 0; max-width: none; }
.title .venue { color: var(--ink-soft); margin: 0; font-size: .9375rem; max-width: none; }

/* ---------- today card — the one bold thing ---------- */

.today-card {
  background: var(--sandal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}
.today-card .field {
  background: var(--day-colour);
  padding: 1.125rem 1.25rem;
}
.today-card .eyebrow {
  margin: 0;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: none;
}
.today-card .field h2 {
  margin: .125rem 0 .125rem;
  font-size: 1.375rem;
}
.today-card .dress { margin: 0; font-size: .9375rem; max-width: none; }
.today-card .body { padding: 1.125rem 1.25rem; }
.today-card .body > :last-child { margin-bottom: 0; }

.agenda { margin: 0; padding: 0; list-style: none; }
.agenda li {
  display: flex;
  gap: .875rem;
  padding: .375rem 0;
  font-size: .9375rem;
}
.agenda .at {
  flex: 0 0 5.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.agenda .what small { display: block; color: var(--ink-soft); font-size: .8125rem; line-height: 1.45; }

/* ---------- actions ---------- */

.actions { display: grid; gap: .75rem; margin: 1.5rem 0; }

.action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--sandal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.action strong { font-size: 1.0625rem; font-weight: 600; }
.action small { display: block; color: var(--ink-soft); font-size: .875rem; line-height: 1.45; }
.action .go { color: var(--kumkum-ink); font-weight: 600; white-space: nowrap; }
.action.primary { background: var(--kumkum); border-color: var(--kumkum); color: #fff; }
.action.primary small { color: rgba(255,255,255,.85); }
.action.primary .go { color: #fff; }

/* ---------- cards ---------- */

.card {
  background: var(--sandal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card > :last-child { margin-bottom: 0; }

.note {
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .9375rem;
}
.note p:last-child { margin-bottom: 0; }

.empty {
  color: var(--ink-soft);
  font-size: .9375rem;
  font-style: italic;
}

/* ---------- schedule ---------- */

.day {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.day:last-child { border-bottom: 0; }

.day .when {
  flex: 0 0 4.5rem;
  font-weight: 600;
  font-size: .9375rem;
}
.day .when span {
  display: block;
  font-weight: 400;
  font-size: .8125rem;
  color: var(--ink-soft);
}
.day .what { flex: 1; }
.day .what p { margin: 0; font-size: .9375rem; max-width: none; }
.day .theme { color: var(--ink-soft); }
.day .slots { color: var(--durva-ink); font-size: .875rem; }

.day.today {
  background: var(--sandal);
  border-radius: var(--radius);
  padding: 1rem;
  border-bottom: 0;
  box-shadow: inset 3px 0 0 var(--kumkum);
}

.swatch {
  display: inline-block;
  width: .75rem;
  height: .75rem;
  border-radius: 3px;
  vertical-align: -1px;
  margin-right: .35rem;
  border: 1px solid rgba(0,0,0,.12);
}

/* ---------- price rows ---------- */

.rows { margin: 0; padding: 0; list-style: none; }
.rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .625rem 0;
  border-bottom: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 0; }
.rows .amount { font-weight: 600; white-space: nowrap; }
.rows small { display: block; color: var(--ink-soft); font-size: .8125rem; line-height: 1.45; }

/* ---------- donation progress — number first, bar second ---------- */

.give { padding: .875rem 0; border-bottom: 1px solid var(--line); }
.give:last-child { border-bottom: 0; }
.give .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.give .name { font-weight: 600; }
.give .target { color: var(--ink-soft); font-size: .875rem; white-space: nowrap; }
.give .raised { font-size: 1.0625rem; font-weight: 600; margin: .125rem 0 .375rem; }
.give .bar {
  height: 8px;
  background: var(--sky);
  border-radius: 999px;
  overflow: hidden;
}
.give .bar i { display: block; height: 100%; background: var(--haldi); border-radius: 999px; }
.give.full .bar i { background: var(--durva); }
.give.full .raised { color: var(--durva-ink); }
.give .note-line { color: var(--ink-soft); font-size: .875rem; margin: .25rem 0 0; max-width: none; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.75rem 0 0;
  font-size: .875rem;
  color: var(--ink-soft);
}
.foot p { max-width: none; }
.foot nav a { margin-right: 1rem; display: inline-block; }

.back { display: inline-block; margin: 1.5rem 0 0; font-size: .9375rem; }

/* Motion only confirms something the user just did — one fade on the day card. */
@media (prefers-reduced-motion: no-preference) {
  .day.today { transition: background .2s ease; }
  .today-card .field { animation: fill .35s ease both; }
  @keyframes fill { from { opacity: 0; } to { opacity: 1; } }
}
