/* Cuddalore Crackers — v2 "Pattasu" design tokens + primitives */
:root {
  --sky: #0B0B2B;
  --sky-deep: #06061A;
  --sky-line: #23235A;
  --red: #C8102E;
  --gold: #FFC300;
  --orange: #FF7A00;
  --pink: #C2185B;
  --blue: #1E4FD8;
  --green: #0F7A3E;
  --purple: #6A1B9A;
  --cream: #FFF6E0;
  --ink: #1E1B2E;
  --muted: #5A5266;
  --muted-dark: #CFCBF2;
  --white: #FFFFFF;

  --font-head: 'Baloo Thambi 2', 'Hind Madurai', system-ui, sans-serif;
  --font-body: 'Hind Madurai', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --container: 1200px;
  --gutter: 16px;
  --garland-h: 16px;
}
@media (min-width: 768px) {
  :root { --gutter: 24px; --garland-h: 26px; }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
}
img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; }
p { margin: 0 0 1em; }
dl, dt, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: .5rem 1rem; border-radius: var(--radius-pill); z-index: 1000; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Thoranam garland strip */
.garland {
  height: var(--garland-h);
  background-color: var(--green);
  background-image:
    radial-gradient(circle at 50% 50%, var(--orange) 0 calc(var(--garland-h) * .24), transparent calc(var(--garland-h) * .24 + 1px)),
    radial-gradient(circle at 50% 50%, var(--gold) 0 calc(var(--garland-h) * .24), transparent calc(var(--garland-h) * .24 + 1px)),
    linear-gradient(transparent 46%, rgba(0, 0, 0, .28) 46%, rgba(0, 0, 0, .28) 54%, transparent 54%);
  background-size: calc(var(--garland-h) * 1.4) var(--garland-h), calc(var(--garland-h) * 1.4) var(--garland-h), 100% 100%;
  background-position: 0 0, calc(var(--garland-h) * .7) 0, 0 0;
  background-repeat: repeat-x, repeat-x, no-repeat;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}

/* Buttons (pill, ≥44px) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.4rem;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:active { transform: translate(2px, 2px); }
.btn--sm { min-height: 44px; padding: .4rem 1.1rem; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: .8rem 1.8rem; font-size: 1.15rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-hard-sm); }
.btn--gold:hover { background: #FFD03A; }
.btn--red { background: var(--red); color: var(--white); border-color: var(--gold); }
.btn--red:hover { background: #AD0C27; }
.btn--green { background: var(--green); color: var(--white); border-color: var(--green); box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); }
.btn--green:hover { background: #0C6632; }
.btn--blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--blue:hover { background: #163FB0; }
.btn--white { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { background: #B8B3C4; color: #4A4556; border-color: #B8B3C4; box-shadow: none; cursor: not-allowed; }
.btn.is-copied { background: var(--green); border-color: var(--green); color: var(--white); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .8rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; line-height: 1.2;
}
.pill--off { background: var(--gold); color: var(--ink); border: 1.5px solid var(--ink); }
.pill--shop { background: var(--ink); color: var(--white); min-height: 36px; padding: .35rem 1rem; }

/* Eyebrow + section heads */
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--red); margin: 0 0 .35rem; letter-spacing: .01em; }
.eyebrow--gold { color: var(--gold); }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--sky); color: var(--white); }
.section--red { background: var(--red); color: var(--white); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__title { margin-bottom: .3em; }
.section__lead { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section--dark .section__lead, .section--red .section__lead { color: var(--muted-dark); }
.section--red .section__lead { color: #FFE6EA; }

/* Cards */
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-hard); }

/* Stickers & stars (text inside SVG) */
.sticker__small { font-family: var(--font-head); font-weight: 800; font-size: 18px; fill: var(--gold); letter-spacing: .08em; }
.sticker__big { font-family: var(--font-head); font-weight: 800; font-size: 40px; fill: var(--white); }
.stepstar__n { font-family: var(--font-head); font-weight: 800; font-size: 32px; fill: var(--ink); }
.star-sep { color: var(--gold); flex: none; }
.ico { flex: none; }

/* Prose for admin-authored pages */
.prose { max-width: 760px; font-size: 1.08rem; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose a { color: var(--blue); }
.pagehead { background: var(--sky); color: var(--white); padding: clamp(36px, 6vw, 72px) 0; border-bottom: 4px solid var(--gold); }
.pagehead__title { margin: 0; font-size: clamp(36px, 6vw, 64px); }
.contact-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0; }
.contact-card { display: flex; align-items: center; gap: .6rem; min-height: 56px; padding: .6rem 1rem; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-hard-sm); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.contact-card--wa { background: var(--green); color: var(--white); border-color: var(--green); }
/* (map-embed moved to base.css) */


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sticker__mid { font-family: var(--font-head); font-weight: 800; font-size: 30px; fill: var(--white); letter-spacing: .02em; }
