/* =====================================================================
   PucaCon: STYLES
   Colours, fonts and the hero image come from CSS variables that are set
   by config.js (theme block). Change the look there, not here.
   ===================================================================== */

/* ---------- Fonts (hosted on this site, so visitors never connect to Google) ----------
   Files in fonts/ (SIL Open Font License, see the OFL-*.txt files there). Inter's file is variable,
   so 400/600/700 share it; each weight is declared separately so 500 still renders as 400, as before. */
@font-face { font-family: "Eagle Lake"; font-weight: 400; font-display: swap; src: url("../fonts/eagle-lake-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Eagle Lake"; font-weight: 400; font-display: swap; src: url("../fonts/eagle-lake-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap; src: url("../fonts/marcellus-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap; src: url("../fonts/marcellus-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #10161a; --surface: #182126; --text: #e8eddf; --muted: #9aa8a4;
  --primary: #1d3a3a; --primary-text: #e8eddf; --accent: #b8d94a; --border: #2a3a3a;
  --radius: 8px; --hero-overlay: .45; --hero-image: none;
  --font-heading: Georgia, serif; --font-body: system-ui, sans-serif;
  --max: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5em; color: var(--heading-text, var(--text)); }
h1 { font-family: var(--font-h1, var(--font-heading)); }
h2 { font-family: var(--font-h2, var(--font-heading)); }
h3 { font-family: var(--font-h3, var(--font-heading)); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.small, .meta { font-size: .875rem; color: var(--muted); }
section { padding: 3.5rem 0; }

/* ---------- Buttons ---------- */
.btn-arrow { display: none; flex: none; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.2rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }
.btn-primary { background: var(--accent); color: #10161a; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-sm { padding: .4rem .9rem; font-size: .875rem; }
.btn:hover { opacity: .88; }
.link-arrow { font-weight: 600; text-decoration: none; font-size: .9rem; transition: color .18s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow::after { content: " →"; }

/* ---------- Header: transparent over hero, solid on scroll ---------- */
.site-header { position: sticky; top: 0; z-index: 20; color: var(--primary-text);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease; }
.site-header.scrolled, .site-header.open { background: var(--primary); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; text-decoration: none; }
.site-header .logo, .site-footer .logo { color: var(--heading-text); }
/* Lime triskele before "PucaCon" in the header (assets/logo-icon.svg, from the design folder's "PucaCon branding lime.svg") */
.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo-icon { height: 1.75rem; width: auto; flex: none; }
/* Trickster touch: the header triskele gives one quick turn on hover or keyboard focus (off for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .site-header .logo-icon { transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
  .site-header .logo:hover .logo-icon, .site-header .logo:focus-visible .logo-icon { transform: rotate(120deg); }
}
/* 404 page: a large triskele turning slowly above the message */
.lost .container { text-align: center; }
.lost p { margin-left: auto; margin-right: auto; text-wrap: balance; }
.lost-mark { display: block; width: clamp(7rem, 22vw, 10rem); height: auto; margin: 0 auto 1.75rem; }
@media (prefers-reduced-motion: no-preference) { .lost-mark { animation: lost-spin 24s linear infinite; } }
@keyframes lost-spin { to { transform: rotate(360deg); } }
/* End-of-story mark: sits on the last line, just after the final word (a block on its own line looked like a stray bullet) */
.story-end { display: inline-block; height: 1em; width: auto; margin-left: .45em; vertical-align: -.12em; }
.main-nav a:not(.btn):hover, .footer-inner a:hover { color: var(--heading-text); }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a:not(.btn) { text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.main-nav a.active { border-color: var(--accent); }
/* "Home" is only in the phone menu; on desktop the logo already links home */
.main-nav .nav-home { display: none; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: inherit; }
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  /* Full-screen mobile menu */
  /* Links start just below the 64px header bar (not centred, which left a big gap above them) */
  .main-nav { display: none; position: fixed; inset: 0; z-index: 30; flex-direction: column; align-items: flex-start;
    justify-content: flex-start; background: var(--bg); color: var(--text); padding: calc(64px + 1.5rem) 2rem 2rem; gap: 1.75rem; overflow-y: auto; }
  .main-nav a:not(.btn) { font-family: var(--font-heading); font-size: 1.6rem; }
  .main-nav .nav-home { display: block; }
  .site-header.open .main-nav { display: flex; }
  .site-header.open .menu-toggle { position: relative; z-index: 40; }
  /* Full-width call to action with an arrow, set apart from the links (matches the home page phone button) */
  .main-nav .btn { align-self: stretch; margin-top: 1.5rem; background: var(--accent); color: #10161a; justify-content: center; font-size: 1.1rem; padding: .9rem 1.5rem; }
  .main-nav .btn-arrow { display: block; width: 1.1rem; height: 1.1rem; }
}

/* ---------- Hero: artwork blends into the dark page ---------- */
.hero { position: relative; color: #fff; padding: 7rem 0 6rem; margin-top: -64px; padding-top: calc(7rem + 64px);
  background: var(--bg) var(--hero-image) center 20%/cover no-repeat; }
/* Mobile-only stacked tagline in the hero (hidden on desktop) */
.hero-mobile-tagline { display: none; }

@media (max-width: 760px) {
  .hero { padding-top: 25rem; padding-bottom: 2rem;
    background-image: var(--hero-image-mobile, var(--hero-image));
    /* the Púca is ~80% across the image: show its right-hand part so he is whole, ears just below the header */
    background-size: auto 40rem; background-position: 88.5% -40px; }
  .hero::before { background:
    linear-gradient(180deg, transparent 0%, transparent 46%,
    color-mix(in srgb, var(--bg) 72%, transparent) 58%, color-mix(in srgb, var(--bg) 88%, transparent) 70%, var(--bg) 86%); }
  /* Header already shows the name, so the big title is hidden on phones */
  .hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-text .lead, .hero-text .hero-intro { display: none; }
  .hero-mobile-tagline { display: block; margin: 0 0 1.6rem; font-family: var(--font-h2); font-size: 2.6rem; font-weight: 400;
     line-height: 1.1; color: var(--heading-text, var(--text)); }
  .hero-text .hero-mobile-tagline { color: var(--heading-text, #fff); text-shadow: 0 2px 14px rgb(0 0 0 / .8); }
  .hero-mobile-tagline span { display: block; }
  /* Full-width buttons with arrows */
  .hero .actions { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero .actions .btn { justify-content: center; width: 100%; padding: .9rem 1.25rem; }
  .hero .actions .btn-arrow { display: block; width: 1.1rem; height: 1.1rem; }
  /* Bolder, brighter menu icon */
  .menu-toggle { font-size: 2rem; font-weight: 700; color: #fbfcf4; line-height: 1; }
  /* Tighter vertical rhythm between sections */
  section { padding: 1.25rem 0; }
  .story-panels { margin-top: 0; }
  .band > .container { padding-top: 0; padding-bottom: 0; }
}
.hero::before { content: ""; position: absolute; inset: 0; }
/* Desktop: shade only the left (behind the text), soften the moon, fade the bottom edge.
   Phones use their own overlay in the max-width: 760px block above. */
@media (min-width: 761px) {
  /* The Púca sits at the right with his feet ~93% down the image: anchor the image to the bottom and the right side
     (so narrower screens crop the empty sky and the left bank, not him), and keep the bottom fade below his trainers. */
  .hero { min-height: min(92vh, 760px); background-position: 85% 100%; }
  .hero::before { background:
    linear-gradient(90deg, rgb(16 22 26 / .78) 0%, rgb(16 22 26 / .55) 38%, rgb(16 22 26 / .05) 62%, transparent 100%),
    linear-gradient(180deg, transparent 0%, transparent 91%, var(--bg) 100%); }
}
/* Portrait tablets (iPad upright): the text column ran over his ears and face. Keep the text to the left half and
   slide the picture so he sits in the right half (his tail may just touch the right edge on a 768px iPad). */
@media (min-width: 761px) and (max-width: 1099px) and (orientation: portrait) {
  .hero { background-position: 78% 100%; }
  .hero .hero-text .lead { max-width: 44vw; } /* .hero-text is the full-width container; the tagline is the wide line */
}
/* Wide screens: the photo fills the full width (no side fades: fading the quay and paving looked wrong).
   The hero grows taller with the screen so the crop only trims sky and leaves from the top and his ears stay
   below the header (the image is 2560px wide, so it isn't upscaled). The text shade follows the centred text column. */
@media (min-width: 1400px) {
  .hero { min-height: min(92vh, 1200px); background-size: cover; background-position: 85% 85%; }
  .hero::before { background:
    linear-gradient(90deg, rgb(16 22 26 / .75) 0%, rgb(16 22 26 / .6) calc(50% - 300px), rgb(16 22 26 / .1) calc(50% + 150px), transparent calc(50% + 300px)),
    linear-gradient(180deg, transparent 0%, transparent 91%, var(--bg) 100%); }
}
.hero .container { position: relative; max-width: var(--max); }
.hero-text { max-width: 560px; text-shadow: 0 2px 18px rgb(0 0 0 / .55); }
.hero .lead { font-size: 1.25rem; text-wrap: balance; } /* balance: no lone "Púca." on the second line */
/* "Dublin · Halloween 2027" above the title, in the uppercase eyebrow style */
.hero-text .hero-eyebrow { margin: 0 0 .6rem; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .85); }
.hero-text .hero-what { display: none; } /* phone-only line */
/* Phones: three stepped words, then "CYBERSECURITY CONFERENCE / DUBLIN · HALLOWEEN 2027" as one label.
   padding-top places the text below the laptop and keeps Get Involved on a ~664px-tall iPhone screen. */
@media (max-width: 760px) {
  .hero { padding-top: 24.25rem; }
  .hero-text { display: flex; flex-direction: column; }
  .hero-text .hero-mobile-tagline { margin-bottom: .55rem; }
  .hero-text .hero-what { display: block; order: 1; margin: 0 0 .15rem; letter-spacing: .1em; }
  .hero-text [data-event-line] { order: 2; margin: 0 0 1.1rem; letter-spacing: .1em; }
  .hero-text .actions { order: 3; margin-top: 0; }
}
.hero-text p { color: rgb(255 255 255 / .78); }
.hero .btn-outline { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.page-hero { background: linear-gradient(180deg, var(--primary), var(--bg)); padding: 5rem 0 3.5rem; margin-top: -64px; padding-top: calc(5rem + 64px); }
/* Keep intro text readable: never wider than ~80 characters per line */
.page-hero p { max-width: 48ch; text-wrap: pretty; } /* pretty: avoids a lone word on the last line */
/* Subtitle under a page heading, sized like the home page tagline */
.page-hero .page-lead { font-size: 1.25rem; color: var(--heading-text, var(--text)); text-wrap: balance; margin-top: -.25rem; margin-bottom: 1.75rem; }
/* About page: intro on the left, key facts (When / Where / Status) on the right; stacked on phones */
.hero-split { display: grid; grid-template-columns: minmax(0, max-content) auto; justify-content: start; gap: 2.5rem 5rem; align-items: center; }
/* Lime status light with a slow, soft pulse (still for people who prefer reduced motion) */
.status-dot { display: inline-block; width: .6em; height: .6em; margin-right: .5em; border-radius: 50%; vertical-align: .08em;
  background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: status-pulse 2.4s ease-in-out infinite; }
@keyframes status-pulse { 50% { opacity: .55; box-shadow: 0 0 14px 2px var(--accent); } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }
/* Icons and the status dot share one 1.15rem column so the three values start at the same point */
.event-facts dd { display: flex; align-items: center; gap: .65rem; }
.event-facts .meta-icon { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: var(--primary-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.event-facts .status-dot { flex: none; width: .75rem; height: .75rem; margin: 0 .2rem; }
.event-facts { margin: 0; padding-left: 1.75rem; border-left: 2px solid var(--border); display: grid; gap: 1.4rem; }
/* Labels match the eyebrow labels (.story-panel-heading); the dividing line uses the border colour, so the status dot is the only lime */
.event-facts dt { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--muted) 60%, var(--text)); margin-bottom: .2rem; }
.event-facts dd { margin: 0; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.3; color: var(--heading-text, var(--text)); }
@media (max-width: 760px) { .hero-split { grid-template-columns: 1fr; } }
/* Global: no paragraph ever runs wider than ~80 characters per line */
p { max-width: 48ch; }
.accent { color: var(--accent); }

/* ---------- Featured story ---------- */
.featured-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.featured-story .fs-media img, .featured-story .fs-media .placeholder { aspect-ratio: 16/10; width: 100%; height: 100%; object-fit: cover; }
.featured-story .fs-body { padding: 2rem; }
.featured-story .fs-body h2 { margin-top: 0; }
/* "Read the story →" matches the home page story panel link */
.featured-story .link-arrow { color: var(--text); font-size: 1rem; }
.featured-story .link-arrow:hover { color: var(--accent); }
@media (max-width: 760px) { .featured-story { grid-template-columns: 1fr; } }
/* Stories page: featured story (about two-thirds) with the next two stories stacked in a column on its right,
   the column stretched to the featured story's height. Phones stack it all; side stories keep a small picture on the left. */
.stories-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
.stories-top:has(> .story-side[hidden]) { grid-template-columns: 1fr; }
[data-stories][hidden] { display: none; }
@media (min-width: 761px) {
  .stories-top .featured-story { align-items: stretch; }
  .stories-top .featured-story .fs-media img { aspect-ratio: auto; height: 100%; min-height: 20rem; display: block; }
  .stories-top .featured-story .fs-body { align-self: center; }
}
.story-side { display: grid; grid-auto-rows: 1fr; gap: 1.5rem; }
.story-side .card { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); }
.story-side .card-media { display: block; }
.story-side .card-media img, .story-side .card-media .placeholder { aspect-ratio: auto; width: 100%; height: 100%; min-height: 7.5rem; }
.story-side .card-body { display: flex; flex-direction: column; justify-content: center; padding: 1rem 1.25rem; }
.story-side .card-body h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.story-side .card-body p { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-side .link-arrow, .featured-story .link-arrow { color: var(--text); font-size: 1rem; }
.story-side .link-arrow:hover { color: var(--accent); }
@media (max-width: 960px) { .stories-top { grid-template-columns: 1fr; } .story-side { grid-auto-rows: auto; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel { padding: 1.5rem; }
.card-body { padding: 1rem 1.25rem 1.25rem; }
.card-media img, .placeholder { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.placeholder { background: linear-gradient(135deg, var(--primary), var(--surface)); }
.feature { text-align: center; padding: 1.25rem; }
.feature .icon { font-size: 1.75rem; display: block; margin-bottom: .5rem; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
/* Keep split-section text readable: never wider than ~80 characters per line */
.split p { max-width: 48ch; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
/* Cut-out artwork (Founders, Púca): background is painted in var(--bg) colour (#10161a); re-export it if the theme background changes */
/* About page Púca and founders: same width, so the figures stand about the same height (owner's choice, 17 Nov 2026) */
.cutout-img { display: block; width: 100%; max-width: 380px; height: auto; margin-inline: auto; }
/* About page signpost with text laid over the sign faces (very tall image: about 530px high at 300px wide) */
.signpost-figure { position: relative; width: 100%; max-width: 300px; margin: 0 auto; container-type: inline-size; }
.signpost-figure img { display: block; width: 100%; height: auto; }
.sign-label { position: absolute; transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)); white-space: nowrap; pointer-events: none;
  font-family: var(--font-heading); font-size: 4.6cqw; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: #1c4a29;
  -webkit-text-stroke: .045em currentColor; /* Marcellus has no bold, so thicken the strokes slightly */ } /* tall, narrow figure: keep its height close to the Founders image */
/* Image on the left on desktop; phones still stack text first */
@media (min-width: 761px) {
  .split-reverse { grid-template-columns: 1fr 1.2fr; }
  .split-reverse > img, .split-reverse > figure { order: -1; }
  .split-reverse > div:only-child { grid-column: 2; } /* no image yet: keep the text in the right column */
}
.icon-row { display: flex; gap: 1rem; align-items: flex-start; }
.icon-row .icon { font-size: 1.75rem; flex-shrink: 0; }
/* Line-icon version (Get involved page): same off-white line style as the About/Contact icons, lime when its link is hovered */
.icon-row svg.icon { width: 1.6rem; height: 1.6rem; margin-top: .15rem; color: var(--text); transition: color .18s ease; }
.icon-row:has(a:hover) svg.icon { color: var(--accent); }
/* Get involved page: role cards stacked tightly on the left, signpost on the right */
.roles-split { gap: 2.5rem; }
.roles-cards { gap: 1rem; }
.roles-cards .panel p { margin-bottom: .6rem; }
/* Email address under a role's "Register interest" link, so it can be copied */
.interest-email { display: block; margin-top: .25rem; font-size: .85rem; color: var(--muted); user-select: all; transition: color .18s ease; }
/* Link, address and icon light up together when either the link or the address is hovered */
.interest-email:hover, .icon-row:has(a:hover) .interest-email,
.icon-row:has(.interest-email:hover) .link-arrow, .icon-row:has(.interest-email:hover) svg.icon { color: var(--accent); }
/* Home page tiles link to get-involved.html#sponsor / #speak / #volunteer: land below the sticky header */
.roles-cards .panel[id] { scroll-margin-top: calc(64px + 1.5rem); }
.roles-cards .panel:target { border-color: var(--accent); }
/* Important dates timeline (from event.keyDates): steps left to right joined by a line; vertical on phones.
   A step with a date ("confirmed") gets a glowing lime dot; the rest stay hollow with no date line */
.timeline { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 2rem 1.5rem 0 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; top: calc(.5rem - 1px); left: 0; right: 0; height: 2px; background: var(--border); }
.tl-dot { position: absolute; top: 0; left: 0; z-index: 1; width: 1rem; height: 1rem; border-radius: 50%; background: var(--bg); border: 2px solid color-mix(in oklab, var(--muted) 55%, var(--border)); }
.timeline .confirmed .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
/* Home page strip under Next conference: eyebrow, then the timeline */
.road-section { padding-top: 1rem; }
.road-section .road-heading { margin: 0 0 1.25rem; }
/* The step we're at now: same pulsing lime light as the About page status dot */
.timeline .current .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 6px var(--accent); animation: status-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .timeline .current .tl-dot { animation: none; } }
.tl-label { font-weight: 600; color: var(--heading-text, var(--text)); }
.tl-date { color: var(--muted); font-size: .95rem; font-style: italic; opacity: .8; font-variant-numeric: tabular-nums; }
.timeline .confirmed .tl-date { font-style: normal; opacity: 1; }
/* Clickable step labels (link in keyDates) turn lime on hover like the site's other links */
/* Clickable step labels: no underline (a dotted one was tried and dropped), lime on hover */
.tl-link { text-decoration: none; transition: color .18s ease; }
.tl-link:hover { color: var(--accent); }
/* Finish step (the conference): the lime triskele instead of a dot, so it reads as the destination
   (a grey line-icon flag was used before 5 Nov 2026). 1.6rem wide, centred where the other dots' centres are (.5rem in) */
.timeline .finish .tl-mark { top: -.3rem; left: -.3rem; width: 1.6rem; height: auto; border: 0; border-radius: 0; background: transparent; }
@media (max-width: 760px) { .timeline .finish .tl-mark { top: -.1rem; } }
.timeline .finish .tl-date { font-style: normal; }
@media (max-width: 760px) {
  .timeline { grid-auto-flow: row; }
  .timeline li { padding: 0 0 1.5rem 2rem; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li:not(:last-child)::before { top: .2rem; bottom: -.2rem; left: calc(.5rem - 1px); right: auto; width: 2px; height: auto; }
  .tl-dot { top: .2rem; }
}
.cta-band { background: var(--bg); }

/* ---------- Get involved band (home): centred heading and four link tiles, no artwork ---------- */
.involved-section { margin-bottom: 4rem; }
.next-panel .story-panel-media img { object-fit: contain; height: 560px; } /* artwork sits on the page colour, so show it whole; tall image, so cap its height */
.involved-band { text-align: center; }
.involved-band > p { margin-inline: auto; } /* paragraphs have a max width, so centre the boxes too */
.involved-band h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin: 0 0 .6rem; }
.involved-band .involved-text { margin: 0 auto 2rem; color: var(--text); font-size: 1.05rem; text-wrap: balance; }
/* One column per visible tile (Merchandise stays hidden until event.merchUrl is set), centred */
.involved-band .involved-links { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 11rem); justify-content: center; gap: 1rem; margin: 0 auto; }
.involved-link[hidden] { display: none; }
.involved-band .involved-link { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem .75rem 1.2rem; background: rgb(255 255 255 / .03);
  transition: border-color .18s ease, box-shadow .18s ease; }
.involved-band .involved-link:hover { border-color: var(--accent); box-shadow: 0 0 14px rgb(184 217 74 / .18); }
.story-panel-heading { margin: 0 0 .4rem; font-family: var(--font-body); font-size: .8rem; font-weight: 500; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--muted) 60%, var(--text)); }
.involved-links { display: flex; flex-wrap: wrap; gap: 3.5rem; justify-content: flex-start; }
.involved-link { display: grid; justify-items: center; gap: .3rem; text-decoration: none; color: var(--text); font-size: .9rem; text-align: center; }
.involved-link svg { width: 30px; height: 30px; color: var(--text); transition: color .18s ease; }
.involved-link .plus { color: var(--text); line-height: 1; transition: color .18s ease; }
.involved-link:hover svg, .involved-link:hover .plus { color: var(--accent); }
.involved-link:hover span:not(.plus) { color: var(--accent); }
/* About page: Get involved entries with the home page icons on the left */
.involved-item { display: flex; gap: .9rem; align-items: flex-start; }
.involved-item svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: .1rem; color: var(--text); transition: color .18s ease; }
.involved-item a { transition: color .18s ease; }
.involved-item a:hover, .involved-item:has(a:hover) svg { color: var(--accent); }
@media (max-width: 720px) {
  .involved-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .75rem; }
  .involved-links .involved-link { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem .75rem 1.1rem; background: rgb(255 255 255 / .03); }
}
.quote { font-family: var(--font-heading); font-size: 1.5rem; text-align: center; font-style: italic; }

/* ---------- Lists, chips, tabs ---------- */
.list-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; align-items: center; padding: 1rem;
  border-bottom: 1px solid var(--border); text-decoration: none; }
.list-row p { margin: 0; }
.list-thumb img, .list-thumb .placeholder { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.chev { font-size: 1.75rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip, .tab { border: 1px solid var(--border); background: var(--surface); padding: .35rem .9rem; border-radius: 999px; cursor: pointer; font: inherit; color: inherit; }
.chip.active { background: var(--primary); color: var(--primary-text); }
.tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border); margin: 2rem 0 1.5rem; }
.tab { border: 0; border-radius: 0; background: none; padding: .5rem 0; border-bottom: 2px solid transparent; }
.tab.active { border-color: var(--primary); font-weight: 600; }
.story-media { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.prose { max-width: 48ch; }
/* Privacy page: short sections with small headings */
.policy { padding-top: 1rem; }
.policy h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.policy h2:first-child { margin-top: 0; }
.policy ul { padding-left: 1.2rem; }
/* Get involved page: Code of Conduct line under the role cards */
.conduct-note { margin: 0; font-size: .95rem; color: var(--muted); }
.conduct-note a { color: var(--heading-text, var(--text)); text-underline-offset: .2em; transition: color .18s ease; }
.conduct-note a:hover { color: var(--accent); }
.policy li + li { margin-top: .4rem; }
.policy-contact { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.back { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-size: .9rem; }
/* Story page: back link styled like the grey uppercase eyebrows, lime on hover; picture starts right under the heading band */
.story-hero .back { margin-bottom: .75rem; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--muted) 60%, var(--text)); transition: color .18s ease; }
.story-hero .back:hover { color: var(--accent); }
.story-hero h1 { margin-bottom: .5rem; }
.story-hero { padding-bottom: 2rem; }
.story-hero + .container .story-media { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: var(--primary-text); padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9rem; }
.footer-inner a { text-decoration: none; }
.social { display: flex; gap: .8rem; }
.contact-social { margin-top: 1.25rem; }
.contact-card { padding: 2rem; align-content: start; }
.contact-card h2 { margin-bottom: .75rem; } /* Contact page: social icons directly under the general email */
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgb(255 255 255 / .07);
  color: var(--primary-text);
  transition: background-color .18s ease, color .18s ease;
}
.social a:hover { background: var(--accent); color: var(--bg, #10161a); }

/* ---------- Full-width band with straight top edge ---------- */
.band { position: relative; background: var(--bg); color: var(--text); }
.band > .container { position: relative; z-index: 1; padding-top: 1rem; padding-bottom: 1rem; }
@media (max-width: 760px) { .band > .container { padding-top: 0; padding-bottom: 0; } .event-panel .story-panel-body { padding-bottom: .5rem; } }
.event-panel { margin: 0; grid-template-columns: 1fr minmax(0, 42%); }
.event-panel .story-panel-media { order: 2; }
.event-panel .story-panel-body { order: 1; }
.story-panel.event-panel h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin: 0 0 .75rem; letter-spacing: -.01em; }
.event-panel .story-panel-body > p.event-blurb { color: var(--text); font-size: 1.05rem; max-width: 32rem; margin: 0 0 1.1rem; }
.event-panel .btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.event-panel .btn-row:not(:has(> :not([hidden]))) { display: none; } /* no visible buttons yet (e.g. no ticket link) */
.event-panel .btn-row .btn { margin: 0; }
.event-panel .btn-primary { background: var(--accent-deep, #55702f); color: var(--text); }
.event-meta { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .5rem; }
.event-meta li { display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--muted); }
.event-meta .meta-icon { width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: var(--primary-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Customize page ---------- */
.customizer { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .customizer { grid-template-columns: 1fr; } }
.field { display: grid; gap: .3rem; margin-bottom: 1rem; font-size: .9rem; }
.field input, .field select { font: inherit; padding: .5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.field input[type=color] { height: 40px; padding: 2px; }
.code-out { width: 100%; min-height: 220px; font-family: monospace; font-size: .8rem; }

/* Box with artwork that fades into the page background (image set by --box-image or hero image) */
.panel-bg { position: relative; padding: 2.5rem; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 45%, color-mix(in srgb, var(--bg) 30%, transparent) 100%),
    var(--box-image, var(--hero-image)) center/cover no-repeat; border: 1px solid var(--border); }
.panel-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px 30px var(--bg); }
.panel-bg > * { position: relative; z-index: 1; max-width: 38rem; }
body[data-page="home"] .panel-bg { border: 0; }

/* Home stories: stacked About-style panels, artwork left and text right */
.story-panels { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.story-panel { display: grid; grid-template-columns: minmax(0, 42%) 1fr; align-items: stretch; }
.story-panel-media img, .story-panel-media .placeholder { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); }
.story-panel-media { display: block; min-height: 240px; }
.story-panel-body { padding: 1.75rem 2.25rem; align-self: center; }
.story-panel h3 { margin: 0 0 .55rem; font-size: 1.7rem; }
.story-panel-body > p:not(.eyebrow) { margin: 0 0 1rem; color: var(--muted); max-width: 30rem; }
.story-panel .link-arrow { color: var(--text); font-size: 1rem; }
.story-panel .link-arrow:hover { color: var(--accent); }
@media (max-width: 720px) {
  .story-panel { grid-template-columns: 1fr; }
  .story-panel-media { min-height: 0; max-height: 280px; }
  .story-panel-body { padding: 1.25rem 1.25rem 1.5rem; }
  .event-panel .story-panel-media { order: -1; margin-inline: -1.25rem; max-height: none; }
  .event-panel .story-panel-media img { border-radius: 0; height: min(95vw, 460px); object-position: 16% top; }
  .next-panel .story-panel-media img { height: min(120vw, 460px); object-position: center; }
  /* Phones: three tiles share one row; with all four back it becomes 2x2 */
  .involved-band .involved-links { grid-auto-columns: 1fr; justify-content: stretch; gap: .6rem; }
  .involved-band .involved-link { padding: 1.2rem .4rem 1rem; }
  .involved-band .involved-links:has(> :not([hidden]) ~ :not([hidden]) ~ :not([hidden]) ~ :not([hidden])) { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 1rem .75rem; }
  .story-panels .story-panel-media { margin-inline: -1.25rem; max-height: none; }
  .story-panels .story-panel-media img { border-radius: 0; height: min(95vw, 460px); object-position: 78% 30%; }
}
