/* Lorikeet Lights — shared styles
   Day (light) and night (dark) colours live here as tokens.
   The site picks day/night from the clock; the visitor can flip it with the button. */

:root {
  --bg: #FBF8F3;
  --bg-2: #F3EEE6;
  --card: #FFFFFF;
  --ink: #1F1B17;
  --soft: #6B625A;
  --line: #E6DED3;
  --accent: #C9862B;          /* warm amber, for links and buttons */
  --accent-ink: #FFFFFF;
  --flame: #FFC21A;           /* candle flame: always yellow */
  --flame-core: #FFF6CF;
  --flame-glow: rgba(255, 194, 26, .28);
  --logo-wax: #2A2420;        /* day: the logo candle is dark */
  --glass: rgba(255, 255, 255, .35);
  --glass-line: rgba(60, 50, 40, .28);
  --cork: #C9A27A;
  --shadow: 0 20px 60px rgba(60, 40, 20, .10);
  --radius: 26px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #100E12;
  --bg-2: #18151B;
  --card: #1E1A21;
  --ink: #F5F0E9;
  --soft: #B3A99F;
  --line: #2E2832;
  --accent: #FFC75A;
  --accent-ink: #1A1408;
  --flame-glow: rgba(255, 194, 26, .45);
  --logo-wax: #F7F3EC;        /* night: the logo candle is white */
  --glass: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .30);
  --cork: #A9845F;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .8s ease, color .8s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 700; }
h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; }
.soft { color: var(--soft); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 48px; overflow: visible; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.theme-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; width: 40px; height: 40px; font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
}
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .brand span { display: none; }
}

/* ---------- flame (shared by logo and jars) ---------- */
.flame-flicker { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.4s ease-in-out infinite; }
.flame-glow { animation: glow 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  20% { transform: scale(.96, 1.07) rotate(-2deg); }
  45% { transform: scale(1.03, .95) rotate(1.5deg); }
  70% { transform: scale(.98, 1.04) rotate(-1deg); }
}
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.smoke { opacity: 0; }
.burnt .smoke { animation: smoke 3s ease-out infinite; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: .5; } 100% { opacity: 0; transform: translateY(-30px); } }

/* ---------- hero ---------- */
.hero { min-height: calc(100vh - 64px); display: grid; align-items: center; padding: 48px 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: clamp(19px, 2.2vw, 24px); color: var(--soft); max-width: 30ch; }
.hero img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.scroll-hint { margin-top: 28px; font-size: 14px; color: var(--soft); display: flex; align-items: center; gap: 8px; }
.scroll-hint::before { content: ""; width: 1px; height: 28px; background: var(--soft); animation: hint 2s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- candle scenes: one jar per section, melts as you scroll ---------- */
.scene { position: relative; height: 230vh; }
.scene .sticky { position: sticky; top: 64px; height: calc(100vh - 64px); display: grid; align-items: center; }
.scene .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.scene .tint {
  position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background: radial-gradient(60% 50% at 30% 55%, var(--wax), transparent 70%);
  transition: opacity .6s;
}
:root[data-theme="dark"] .scene .tint { opacity: .18; }
.jar-box { display: grid; place-items: center; }
.jar-box svg { width: min(78vw, 360px); height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0,0,0,.12)); }
.scene .eyebrow { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px; }
.facts b { min-width: 92px; font-weight: 600; color: var(--soft); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.burn-meter { margin-top: 20px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.burn-meter i { display: block; height: 100%; width: 100%; background: var(--flame); transform-origin: left; }
.scene .photo { margin-top: 20px; border-radius: 18px; aspect-ratio: 16/10; object-fit: cover; width: 100%; max-width: 420px; opacity: .95; }
@media (max-width: 820px) {
  .scene .wrap { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .jar-box svg { width: min(52vw, 230px); }
  .facts li { justify-content: center; }
  .scene .photo { display: none; }
  .scene h2 { font-size: 34px; }
}

/* ---------- sections and cards ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--bg);
}
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid var(--glass-line); }
.btn {
  display: inline-block; text-decoration: none; background: var(--ink); color: var(--bg);
  border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 600; border: 0; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* seasons */
.season-card { min-height: 360px; display: flex; flex-direction: column; }
.season-card .animal { font-size: 54px; line-height: 1; }
.season-card .band { position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.season-card.now { outline: 2px solid var(--accent); }
.season-card .mini-jar { width: 90px; margin: 10px 0 0 auto; }
.season-card .mini-jar svg { width: 100%; height: auto; overflow: visible; }
.now-badge { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }

/* cultures & events */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 28px; }
.search {
  flex: 1 1 260px; font: inherit; font-size: 16px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.filter { font: inherit; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.event-card .when { font-size: 14px; color: var(--soft); }
.event-card .culture { font-weight: 600; }
.event-card .share { display: flex; gap: 14px; margin-top: 14px; font-size: 14px; }
.event-card .share a { color: var(--soft); }
.empty { color: var(--soft); padding: 40px 0; text-align: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 15px; color: var(--soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer a { color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  .flame-flicker, .flame-glow, .scroll-hint::before, .burnt .smoke { animation: none; }
  html { scroll-behavior: auto; }
}
