/* Khayal Fest 2026 — event & sponsorship site
   Theme: the ticket. Palette, radii and type are lifted from the pass the
   customer receives, which was itself measured from the organiser's mockups —
   #5c2824 accent, warm white surface on #f8f8f8, #f8f2ef tint, 1px #e0e0e0
   rules, 8px corners, system sans. No external requests. */

:root {
  --ink: #221c16;
  --ink-soft: #6a5c4e;
  --muted: #9c8b78;
  --line: #e3dac6;
  --surface: #f8f8f8;
  --canvas: #faf6ef;
  --tint: #f3ece0;
  --shade: #f5f2ed;
  --gold: #e1c290;
  --on-gold: #4a3410;
  --accent: #5c2824;
  --accent-strong: #451c19;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { font-size: 16.2px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 0.9rem; }
a { color: var(--accent-strong); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 50; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.lede { font-size: 1.04rem; max-width: 62ch; color: var(--ink-soft); }
.muted { color: var(--muted); font-size: 0.92rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.98rem; font-weight: 600; padding: 0.42rem 0.65rem; border-radius: var(--radius); }
.nav a:hover { color: var(--accent-strong); background: var(--tint); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff !important;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-strong) !important; }
.head-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 1.15rem; line-height: 1; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  padding: 0 0 clamp(2rem, 4vw, 3rem);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-banner { margin: clamp(0.8rem, 2vw, 1.3rem) 0 clamp(1.2rem, 2.5vw, 1.8rem); width: 100%; }
.hero-banner img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero .kicker { color: var(--accent); }
.hero-mahotsav { margin: 0 0 0.9rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.hero-sub { max-width: 68ch; font-size: 1.05rem; color: var(--ink-soft); text-align: center; }
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.4rem;
  margin: 1.5rem 0 1.7rem;
  padding: 0;
}
.hero-facts li { font-size: 1.02rem; font-weight: 600; color: var(--ink); text-align: center; }
.hero-facts span {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.78rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 90ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

.disclosure { max-width: 64ch; margin: 1.2rem auto 0; font-size: 0.85rem; color: var(--muted); text-align: center; }
.section .disclosure { color: var(--muted); }

/* ---------- award ---------- */
.award { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(1.8rem, 4vw, 2.8rem) 0; }
.award-inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: center; }
.award h2 { margin-bottom: 0.7rem; }
.award-label { margin: 0 0 0.25rem; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); }
.award-name { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); color: var(--accent); letter-spacing: -0.01em; margin: 0 0 0.9rem; }
.award-photo { margin: 0; text-align: center; background: radial-gradient(120% 95% at 50% 0%, #fdfdfd 0%, #efe4c9 55%, #d9c8a4 100%); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.award-photo img { display: block; width: 100%; max-height: 420px; object-fit: contain; object-position: bottom; }
.award-photo figcaption { background: var(--accent); color: #fff; font-size: 0.86rem; font-weight: 600; padding: 0.55rem 0.8rem; }

/* ---------- sections ---------- */
.section { padding: clamp(2.2rem, 4.5vw, 3.4rem) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 2.8rem); align-items: start; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.section.alt .panel, .hero + .section .panel { background: var(--tint); }
.panel h3 { margin-top: 0; }
.facts { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.facts li { font-size: 0.93rem; }

/* ---------- programme ---------- */
.session { margin-top: 1.1rem; }
.session h3 { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 1.2rem; }
.tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #efefef;
  color: var(--ink-soft);
}
.tag-pass { background: var(--tint); color: var(--accent-strong); }
.timeline { list-style: none; margin: 0.6rem 0 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; padding: 0.4rem 0 0.4rem 1.1rem; position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5.5px;
  top: 0.9rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.timeline time { font-family: var(--mono); font-weight: 700; color: var(--accent-strong); font-size: 0.9rem; }
.timeline strong { display: block; color: var(--ink); }
/* The Puraskar is the day's centrepiece in the brochure, so its row carries the maroon. */
.timeline li.is-award {
  background: #f2e6e3;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #e3cec8;
  padding-top: 0.55rem;
  padding-bottom: 0.5rem;
  margin: 0.2rem 0;
}
.timeline li.is-award::before { background: var(--accent); border-color: var(--accent); }
.timeline li.is-award strong { color: var(--accent-strong); }
.timeline li.is-award span { color: #6a4f4a; }
.timeline span { font-size: 0.92rem; }

/* ---------- poster ---------- */
.poster-block { display: grid; grid-template-columns: 1fr; gap: clamp(1.4rem, 4vw, 2.8rem); align-items: center; }
.poster-figure { margin: 0; text-align: center; }
.poster-figure img {
  width: 100%;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.poster-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }
.zoomable { cursor: zoom-in; }
/* Full-size poster: a native <dialog>, so Esc closes it and focus is trapped for free. */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; background: rgba(20, 16, 15, 0.94); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

/* ---------- artists ---------- */
.artist-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem; }
.artist { display: flex; flex-direction: column; background: linear-gradient(180deg, #f8f8f8, #e6dcc6); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section.alt .artist { background: linear-gradient(180deg, #fcfcfc, #e9dfc8); }
.artist img { width: 100%; flex: 0 0 auto; aspect-ratio: 3 / 3.6; object-fit: cover; object-position: center top; background: radial-gradient(120% 95% at 50% 0%, #fdfdfd 0%, #efe4c9 55%, #d5c299 100%); }
.artist-meta { flex: 1 1 auto; background: var(--gold); padding: 0.6rem 0.9rem 0.8rem; }
.artist h3 { font-size: 0.98rem; margin: 0; color: var(--ink); }
.artist p { font-size: 0.82rem; color: var(--on-gold); margin: 0.2rem 0 0; }

/* ---------- passes ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin: 2rem 0; }
.price-card { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; }
.price-card.featured { background: var(--surface); border-color: var(--accent); }
.price { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--ink); margin: 0.2rem 0 0.1rem; }
.price-note { font-size: 0.84rem; color: var(--muted); margin-bottom: 0.9rem; }
.price-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; font-size: 0.9rem; }
.cta-block { text-align: center; margin-top: 1.5rem; }

/* ---------- gurukul story ---------- */
.story {
  border: 0;
  padding: 0;
  width: min(760px, 100% - 2rem);
  max-height: min(88vh, 100% - 2rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: 0 30px 60px -30px rgba(40, 25, 15, 0.6);
}
/* `display` lives here, not on .story: a closed <dialog> is hidden by the UA rule
   `dialog:not([open]) { display: none }`, and declaring display:flex on the base class
   overrode it, leaving the panel in normal flow at the bottom of the page. */
.story[open] { display: flex; flex-direction: column; }
.story::backdrop { background: rgba(28, 20, 15, 0.62); }
/* The body owns the scrolling. Without flex + min-height the dialog grows to its content and the
   wheel chains to the page behind it instead of scrolling the text. */
.story-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.4rem, 4vw, 2.2rem); }
.story-body h2 { margin-top: 0.2rem; }
.story-body h3 { margin-top: 1.5rem; }
.story-body h4 { margin-top: 1.2rem; font-size: 1rem; color: var(--accent); }
.story-gallery { margin: 1.3rem 0 0.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.story-gallery.two { grid-template-columns: repeat(2, 1fr); }
.story-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.story-gallery figcaption { grid-column: 1 / -1; margin-top: 0.3rem; font-size: 0.76rem; color: var(--muted); }
.story-close { position: absolute; top: 0.8rem; right: 0.8rem; width: 2.3rem; height: 2.3rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.story-contact { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- venue & contact ---------- */
.address { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.contact { background: var(--shade); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 1.4rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.contact-list a { color: var(--accent-strong); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--accent); }
.contact-role { display: block; margin-top: 0.15rem; font-size: 0.82rem; line-height: 1.35; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { background: var(--tint); border-top: 1px solid var(--line); color: var(--ink-soft); padding: 2.4rem 0 2rem; font-size: 0.88rem; }
.site-foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.7rem; }
.foot-brand { display: flex; flex-direction: column; gap: 1rem; }
.foot-logo { display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; }
.foot-logo img { height: auto; width: 100%; max-width: 210px; }
.foot-logo span { font-size: 0.68rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-soft); }
.foot-school { display: flex; gap: 0.7rem; align-items: flex-start; }
.foot-school img { width: 56px; height: 56px; flex: none; border-radius: var(--radius); background: var(--surface); padding: 2px; border: 1px solid var(--line); }
.foot-school strong { color: var(--ink); }
.foot-partners h4 { color: var(--accent); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; }
.foot-legal a { color: var(--accent-strong); }
.site-foot p { margin: 0 0 0.6rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .award-inner, .two-col { grid-template-columns: 1fr; }
  .award-photo { order: -1; }
  .award-photo img { max-height: 420px; }
  .poster-block { grid-template-columns: 1fr; }
}
@media (min-width: 721px) and (max-width: 1024px) and (orientation: portrait) {
  .brand img { height: 52px; }
}
@media (max-width: 720px) {
  .wrap { width: min(1120px, 100% - 2rem); }
  .head-inner { flex-direction: row; align-items: center; gap: 0.5rem; }
  .brand img { height: 50px; }
  .head-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0.5rem 1rem 0.8rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -20px rgba(60, 40, 20, 0.45);
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 0.95rem; padding: 0.6rem 0.5rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0.15rem; }
  .hero-facts { flex-direction: column; gap: 0.6rem; }
  .story-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .site-head, .hero-actions, .cta-block, .btn, .share-row { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section, .award { padding: 1rem 0; border: 0; }
  .hero { background: #fff; }
  .hero-banner img { box-shadow: none; }
}
