/* Shree Krishna Temple, Coventry
   Palette taken from the mandir itself: kumkum, haldi, marigold, brick and
   the white of the shikhar, set on the warm cream of an old pothi page. */

:root {
  color-scheme: light;
  --paper: #f7f0e3;
  --paper-deep: #efe4d0;
  --paper-edge: #e3d3b6;
  --ink: #2b1a12;
  --ink-soft: #5b463a;
  --ink-faint: #8a7565;
  --kumkum: #9c1c33;
  --kumkum-deep: #6e1124;
  --haldi: #d4920b;
  --marigold: #e8a317;
  --gold: #b88a2c;
  --gold-soft: #d9bf7f;
  --brick: #7a3324;
  --night: #1d1110;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gujarati: "Noto Serif Gujarati", "Shruti", serif;
  --deva: "Noto Serif Devanagari", "Mangal", serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  /* faint paper grain */
  background-image:
    radial-gradient(rgba(122, 51, 36, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(122, 51, 36, 0.025) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 3px 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: var(--kumkum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--kumkum-deep); }
:focus-visible { outline: 2px solid var(--haldi); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 500; }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.gu { font-family: var(--gujarati); }
.sa { font-family: var(--deva); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ── Top strip ─────────────────────────────────────────────── */
.strip {
  background: var(--kumkum-deep);
  color: #f6e3c4;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.strip .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px;
}
.strip a { color: #f6e3c4; text-decoration: none; }
.strip a:hover { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-faint); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.status.is-open::before { background: #7bd389; }
.status.is-closed::before { background: #e7a33e; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 240, 227, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--paper-edge);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.brand-name small { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.98rem;
  padding: 8px 12px; border-radius: 2px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px;
  background: var(--kumkum); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--kumkum); }
.nav .nav-give {
  margin-left: 8px; background: var(--kumkum); color: #fff7ea; padding: 9px 18px;
}
.nav .nav-give::after { display: none; }
.nav .nav-give:hover { background: var(--kumkum-deep); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--paper-edge); color: var(--ink);
  font: inherit; font-size: 0.95rem; padding: 8px 14px; cursor: pointer;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--paper-edge);
    padding: 8px var(--gutter) 18px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--paper-deep); }
  .nav a::after { display: none; }
  .nav .nav-give { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* toran: a hanging row of leaves under the header on the home page */
.toran {
  height: 18px;
  background:
    radial-gradient(circle at 50% 0, var(--marigold) 0 6px, transparent 6.5px) 0 0 / 24px 18px repeat-x,
    radial-gradient(ellipse 5px 9px at 50% 6px, #3f6b2f 0 98%, transparent 100%) 12px 2px / 24px 18px repeat-x;
  opacity: 0.9;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 13px 26px; text-decoration: none; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--kumkum); color: #fff7ea; }
.btn-primary:hover { background: var(--kumkum-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: min(86vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff8ec; overflow: hidden; background: var(--night);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 17, 16, 0.86) 0%, rgba(29, 17, 16, 0.55) 42%, rgba(29, 17, 16, 0.05) 75%),
    linear-gradient(0deg, rgba(29, 17, 16, 0.7) 0%, transparent 45%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 { color: #fff8ec; max-width: 11ch; margin-bottom: 0.25em; }
.hero-greeting {
  font-family: var(--gujarati); font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--gold-soft); margin-bottom: 18px; display: block;
}
.hero-lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34rem; color: #f3e6d3; margin-bottom: 30px; }

/* inner page heading */
.page-head {
  position: relative; background: var(--night); color: #fff8ec; overflow: hidden;
}
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.page-head .wrap { position: relative; padding-top: clamp(70px, 10vw, 120px); padding-bottom: clamp(46px, 7vw, 80px); }
.page-head h1 { color: #fff8ec; font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 0.15em; }
.page-head p { color: #efdcc0; max-width: 40rem; font-size: 1.12rem; margin: 0; }
.page-head .eyebrow { color: var(--gold-soft); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(44px, 6vw, 72px) 0; }
.section-deep { background: var(--paper-deep); border-top: 1px solid var(--paper-edge); border-bottom: 1px solid var(--paper-edge); }
.section-night { background: var(--night); color: #efe1cc; }
.section-night h2, .section-night h3 { color: #fff4e2; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--kumkum); font-weight: 500; margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* lotus divider */
.divider { display: flex; align-items: center; gap: 18px; color: var(--gold); margin: 0 auto 26px; max-width: 360px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 34px; height: 20px; flex: 0 0 auto; }
.center { text-align: center; }
.center .divider { margin-left: auto; margin-right: auto; }

/* ── Darshan board ─────────────────────────────────────────── */
.darshan {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0;
  border: 1px solid var(--gold-soft); background: #fbf6ec;
  box-shadow: 0 1px 0 #fff inset, 0 24px 50px -30px rgba(110, 17, 36, 0.35);
  position: relative;
}
.darshan::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(184, 138, 44, 0.35); pointer-events: none;
}
.darshan > div { padding: clamp(26px, 4vw, 44px); }
.darshan > div + div { border-left: 1px solid rgba(184, 138, 44, 0.35); }
.darshan h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.darshan .time { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); color: var(--kumkum); line-height: 1; margin: 6px 0 10px; font-variant-numeric: lining-nums; }
.darshan .label { font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--ink-soft); }
.darshan .label .gu { font-style: normal; font-size: 1rem; color: var(--ink-faint); display: block; margin-top: 2px; }
.darshan small { color: var(--ink-faint); font-size: 0.92rem; }
@media (max-width: 820px) {
  .darshan { grid-template-columns: 1fr; }
  .darshan > div + div { border-left: 0; border-top: 1px solid rgba(184, 138, 44, 0.35); }
}

/* ── Two column story ──────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split-wide { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 880px) { .split, .split-wide { grid-template-columns: 1fr; } }

.framed { position: relative; }
.framed img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 78%; }
.framed::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); z-index: -1;
}
.framed-wide img { aspect-ratio: 16 / 11; }
.caption { font-size: 0.86rem; color: var(--ink-faint); margin-top: 26px; font-style: italic; }

/* shloka */
.shloka { text-align: center; max-width: 820px; margin: 0 auto; }
.shloka .sa { font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.7; color: #fff1d6; display: block; margin-bottom: 22px; }
.shloka blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.45; color: #efe1cc; }
.shloka cite { display: block; margin-top: 18px; font-style: normal; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }

/* ── Offerings list (not cards) ────────────────────────────── */
.offerings { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(36px, 6vw, 80px); }
.offering { padding: 30px 0; border-top: 1px solid var(--paper-edge); display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.offering:nth-last-child(-n+2) { border-bottom: 1px solid var(--paper-edge); }
.offering .num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.offering h3 { margin-bottom: 6px; }
.offering p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
  .offerings { grid-template-columns: 1fr; }
  .offering:nth-last-child(2) { border-bottom: 0; }
}

/* ── Festival calendar ─────────────────────────────────────── */
.calendar { border-top: 1px solid var(--ink); }
.fest {
  display: grid; grid-template-columns: 170px 1fr 220px; gap: 28px;
  padding: 30px 0; border-bottom: 1px solid var(--paper-edge); align-items: baseline;
}
.fest .when { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--kumkum); font-weight: 500; }
.fest h3 { margin-bottom: 4px; }
.fest p { margin: 0; color: var(--ink-soft); }
.fest .native { font-family: var(--gujarati); color: var(--ink-faint); text-align: right; font-size: 1.1rem; }
@media (max-width: 820px) {
  .fest { grid-template-columns: 1fr; gap: 6px; }
  .fest .native { text-align: left; }
}

/* ── Facts / info grid ─────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--paper-edge); }
.facts > div { padding: 28px 24px 28px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--paper-edge); }
.facts dt { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--paper-edge); }
}

/* etiquette list */
.etiquette { list-style: none; padding: 0; margin: 0; counter-reset: e; }
.etiquette li { counter-increment: e; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--paper-edge); }
.etiquette li::before {
  content: counter(e, lower-roman) "."; position: absolute; left: 0; top: 13px;
  font-family: var(--serif); font-size: 1.4rem; color: var(--gold); font-style: italic;
}

/* price table */
.rates { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.rates th, .rates td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--paper-edge); vertical-align: top; }
.rates th { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; border-bottom-color: var(--ink); }
.rates td:last-child, .rates th:last-child { text-align: right; padding-right: 0; white-space: nowrap; font-family: var(--serif); font-size: 1.3rem; color: var(--kumkum); }
.rates th:last-child { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint); }
.rates small { display: block; color: var(--ink-faint); font-size: 0.9rem; }

.note {
  border-left: 3px solid var(--haldi); background: rgba(212, 146, 11, 0.08);
  padding: 16px 20px; color: var(--ink-soft); font-size: 0.98rem;
}

/* map */
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--paper-edge); filter: sepia(0.25) saturate(0.85); }

/* gift aid figure */
.giftaid { display: grid; grid-template-columns: auto auto auto auto auto; align-items: baseline; gap: 18px; font-family: var(--serif); justify-content: start; flex-wrap: wrap; }
.giftaid .amt { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--kumkum); line-height: 1; }
.giftaid .op { font-size: 2rem; color: var(--gold); }
.giftaid small { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }
@media (max-width: 560px) { .giftaid { grid-template-columns: auto auto auto; } .giftaid .op:nth-of-type(4) { display: none; } }

/* call to action band */
.band {
  background: var(--kumkum); color: #fff3e0; position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; right: -80px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  background: url("../img/om.png") center / contain no-repeat; opacity: 0.08;
}
.band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.band h2 { color: #fff7ea; margin: 0; max-width: 22ch; }
.band p { margin: 10px 0 0; color: #f6dcc2; }
.band .btn-primary { background: #fff7ea; color: var(--kumkum-deep); }
.band .btn-primary:hover { background: #fff; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--night); color: #cdb9a2; font-size: 0.95rem; }
.site-footer a { color: #ead7bb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 48px; }
.footer-top h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; font-weight: 500; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.6rem; color: #fff4e2; font-weight: 500; line-height: 1.1; }
.footer-bottom { border-top: 1px solid rgba(217, 191, 127, 0.18); padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: #9f8a74; }
.footer-bottom .gu { color: var(--gold-soft); }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* gentle reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
