/* Huddle (Page Lemon template). Dark violet ground, coloured speech bubbles, rounded sans.
   Colour and type tokens live in :root. Edit them to re-skin the whole site. */
:root {
  --bg: #1E1433;        /* page ground: dark violet */
  --panel: #2B1E4A;     /* raised cards and the house-rules band */
  --paper: #F7F3FF;     /* main text on dark */
  --muted: #CFC4EA;     /* secondary text on dark */
  --ink: #1E1433;       /* text on coloured bubbles and buttons */
  --coral: #FF7A6B;     /* bubble colour */
  --mint: #5EE6C1;      /* bubble colour and links */
  --butter: #FFD15C;    /* bubble colour, primary button, kickers */
  --sky: #7CB8FF;       /* bubble colour */
  --pink: #FF8FD0;      /* bubble colour */
  --line: #4A3A6E;      /* hairlines and outlines */
  --focus: #FFD15C;     /* focus ring */
  --font-display: "Fredoka", system-ui, sans-serif;   /* headings and numerals */
  --font-body: "Nunito", system-ui, sans-serif;       /* running text */
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--paper); font: 400 1.0625rem/1.6 var(--font-body); overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 1.4rem + 5vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); }
h3 { font-size: 1.4rem; line-height: 1.15; }
main a { color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--butter); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
.kicker { font-weight: 700; color: var(--butter); letter-spacing: 0.02em; margin-bottom: 0.75rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--butter); color: var(--ink); font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Header and navigation */
.top { position: relative; display: flex; align-items: center; gap: 10px; max-width: var(--max); margin: 0 auto; padding: 14px 16px; }
.mark { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font: 600 1.6rem/1 var(--font-display); color: var(--paper); text-decoration: none; }
.mark-dot { width: 20px; height: 18px; border-radius: 50% 50% 50% 6px; background: var(--coral); }
.top > .btn-small { display: none; }
.nav-desk { display: none; }
.nav-desk ul, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-desk a, .nav-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--paper); font-weight: 700; text-decoration: none; }
.nav-desk a[aria-current="page"], .nav-list a[aria-current="page"] { background: var(--butter); color: var(--ink); }
.nav-mob { position: static; }
.nav-mob > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; cursor: pointer; }
.nav-mob > summary::-webkit-details-marker { display: none; }
.nav-list { position: absolute; right: 16px; top: 100%; z-index: 5; width: min(260px, calc(100% - 32px)); padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }

/* Speech bubbles: the signature. Each bubble takes its colour from --c. */
.bubble { --c: var(--coral); position: relative; max-width: 38ch; padding: 24px 26px 26px; border-radius: 30px 30px 30px 8px; background: var(--c); color: var(--ink); transition: transform 0.25s ease; }
.bubble::after { content: ""; position: absolute; left: 18px; bottom: -15px; border-top: 17px solid var(--c); border-right: 20px solid transparent; }
.bubble:hover { transform: rotate(-1.2deg) translateY(-3px); }
.bubble h2, .bubble h3 { color: var(--ink); margin-bottom: 0.4em; }
.bubble p { margin: 0 0 0.6em; }
.bubble p:last-child { margin-bottom: 0; }
.c-coral { --c: var(--coral); }
.c-mint { --c: var(--mint); }
.c-butter { --c: var(--butter); }
.c-sky { --c: var(--sky); }
.c-pink { --c: var(--pink); }
.talk-no { font-weight: 700; font-size: 0.9rem; }
.speaker { font-weight: 700; }

/* Home: hero */
.hero { padding: 40px 0 80px; overflow: clip; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-art { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 10px; }
.date-bubble { position: relative; display: grid; place-content: center; justify-items: center; width: min(280px, 72vw); aspect-ratio: 1; border-radius: 50% 50% 50% 14%; background: var(--butter); color: var(--ink); text-align: center; animation: bob 6s ease-in-out infinite; }
.date-day, .date-month { font: 700 1.3rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; }
.date-num { font: 600 clamp(6rem, 30vw, 9rem)/0.85 var(--font-display); }
.chatter { position: static; margin: 0; max-width: 190px; padding: 12px 16px; border-radius: 22px 22px 22px 6px; background: var(--c); color: var(--ink); font-weight: 700; line-height: 1.2; animation: bob 7s ease-in-out infinite; }
.chatter-a { top: 0; right: 0; animation-delay: -2s; }
.chatter-b { bottom: 8px; left: 0; animation-delay: -4s; }
.chatter-c { top: 68%; right: -4px; max-width: 120px; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-2deg); } }
.facts { display: grid; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--butter); }
.facts dd { margin: 0; }

/* Sections */
.lineup, .past, .wants, .formats, .qa-sec, .apply, .team, .venue, .run, .archive, .archive-cta, .rsvp { padding: 72px 0; }
.page-head { padding: 64px 0 24px; }
.stack { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 36px; }
.stack > li { display: flex; }
.stack > li:nth-child(even) { justify-content: flex-end; }
.stack > li > .bubble { max-width: min(100%, 46ch); }
.past-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 32px; }
.past-head a { font-weight: 700; color: var(--mint); }
.past-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.past-grid .bubble { max-width: none; }
.speak-band { padding: 72px 0; background: var(--coral); color: var(--ink); }
.speak-band h2 { color: var(--ink); }
.speak-band p { max-width: 50ch; font-size: 1.1rem; }
.speak-band .btn { background: var(--ink); color: var(--paper); }
.rsvp .slot p { font-size: 1.1rem; max-width: 56ch; }

/* Forms (slot forms only render when a plugin fills the slot) */
.rsvp-form, .proposal-form { max-width: 520px; margin-top: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; min-height: 48px; max-width: 100%; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--paper); }
.field textarea { min-height: 110px; }

/* Talks archive */
.filters { display: none; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.js .filters { display: flex; }
.filters button { min-height: 44px; padding: 8px 18px; border: 2px solid var(--line); border-radius: 999px; background: transparent; color: var(--paper); font: 700 1rem/1 var(--font-body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.talk-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.talk-grid > li { display: flex; }
.talk-grid .bubble { max-width: none; width: 100%; }
.talk-title { font-size: 1.5rem; }
.archive-cta { background: var(--panel); }

/* Speakers call */
.want-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; counter-reset: want; }
.want-list li { counter-increment: want; position: relative; padding: 24px 0 0 84px; border-top: 2px solid var(--line); }
.want-list li::before { content: counter(want, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 600 3rem/1 var(--font-display); color: var(--pink); }
.format-cards { display: grid; gap: 20px; margin-top: 32px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); }
.format-len { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--sky); color: var(--ink); font-weight: 700; }
.qa-sec details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.qa-sec summary { list-style: none; display: flex; align-items: center; min-height: 44px; font: 600 1.25rem/1.3 var(--font-display); cursor: pointer; }
.qa-sec summary::-webkit-details-marker { display: none; }
.qa-sec summary::after { content: "+"; margin-left: auto; padding-left: 16px; font-size: 1.6rem; color: var(--mint); }
.qa-sec details[open] summary::after { content: "\2212"; }
.qa-sec details p { margin: 10px 0 0; color: var(--muted); }

/* Organisers */
.people { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.person-card { padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); }
.avatar { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 16px; border-radius: 50% 50% 50% 14%; background: var(--c); color: var(--ink); font: 600 1.8rem/1 var(--font-display); }
.person-card .role { color: var(--butter); font-weight: 700; }
.venue-grid { display: grid; gap: 32px; align-items: center; }
.photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 32px; }
.run-list { list-style: none; margin: 32px 0 0; padding: 0 0 0 4px; border-left: 3px dotted var(--line); }
.run-list li { position: relative; padding: 0 0 26px 28px; }
.run-list li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); }
.run-list time { display: block; font: 600 1.3rem/1.2 var(--font-display); color: var(--butter); }
.house { background: var(--panel); padding: 72px 0; }
.house-in { max-width: 70ch; }

/* Footer */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--muted); }
.foot p { margin: 0 0 0.6em; }
.foot a { color: var(--paper); }
.foot .btn { color: var(--ink); }
.foot .btn + a { margin-left: 16px; }
.foot-name { font: 600 1.5rem/1.2 var(--font-display); color: var(--paper); }
.social { display: flex; gap: 18px; margin: 12px 0 20px; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 760px) {
  .nav-desk { display: block; }
  .nav-desk ul { display: flex; gap: 6px; }
  .nav-mob { display: none; }
  .top > .btn-small { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-art { min-height: 360px; display: grid; place-items: center; }
  .chatter { position: absolute; }
  .past-grid { grid-template-columns: repeat(3, 1fr); }
  .past-grid li:nth-child(2) { margin-top: 40px; }
  .format-cards { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .venue-grid { grid-template-columns: 1fr 1.1fr; }
  .talk-grid { grid-template-columns: repeat(2, 1fr); }
  .talk-grid > li:nth-child(even) { margin-top: 56px; }
  .stack > li { width: min(100%, 640px); }
  .stack > li:nth-child(even) { margin-left: auto; }
}
@media (min-width: 1000px) {
  .hero-grid { gap: 72px; }
  .people { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
