/* ==========================================================================
   SIGCHI Paris Chapter — stylesheet
   Structure: tokens → seasons → base → layout → header → cards → timeline
              → forms/dialog → utilities → responsive → motion
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Fluid type scale: 375px → 1440px viewports */
  --fs-xs: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --fs-sm: clamp(0.9rem, 0.87rem + 0.15vw, 0.975rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem);
  --fs-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-lg: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  --fs-xl: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.55;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 4rem;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Neutral palette */
  --ink: #171a20;
  --ink-2: #3a404a;
  --ink-3: #5d6472;
  --line: rgba(23, 26, 32, 0.1);

  /* Surfaces */
  --card-bg: rgba(255, 255, 255, 0.84);
  --card-border: rgba(255, 255, 255, 0.7);
  --card-shadow: 0 12px 40px rgba(16, 24, 40, 0.14), 0 1px 2px rgba(16, 24, 40, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
  --glass-blur: 18px;

  /* Layout */
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --content-max: 46rem;
  --side-w: 15rem;
  --page-max: 84rem;
  --sticky-top: 0.75rem;
  --hero-top: clamp(1rem, 6vh, 3.5rem);
  --hero-gap: clamp(2rem, 18vh, 11rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 300ms;
  --dur-slow: 520ms;
}

/* -------------------------------------------------------------------------
   2. Seasonal themes (set on <html data-season="…">)
   ------------------------------------------------------------------------- */
:root,
:root[data-season="spring"] {
  --accent: #d64f8c;
  --accent-ink: #a52b66;
  --accent-soft: rgba(214, 79, 140, 0.12);
  --accent-ring: rgba(214, 79, 140, 0.45);
  --accent-2: #3f9fd0;
  --accent-2-soft: rgba(63, 159, 208, 0.18);
  --theme-color: #d64f8c;
}
:root[data-season="summer"] {
  --accent: #0a8ba3;
  --accent-ink: #086b7e;
  --accent-soft: rgba(10, 139, 163, 0.12);
  --accent-ring: rgba(10, 139, 163, 0.45);
  --accent-2: #e08a45;
  --accent-2-soft: rgba(224, 138, 69, 0.2);
  --theme-color: #0a8ba3;
}
:root[data-season="fall"] {
  --accent: #d2740a;
  --accent-ink: #9e5606;
  --accent-soft: rgba(210, 116, 10, 0.12);
  --accent-ring: rgba(210, 116, 10, 0.45);
  --accent-2: #5f9a58;
  --accent-2-soft: rgba(95, 154, 88, 0.2);
  --theme-color: #d2740a;
}
:root[data-season="winter"] {
  --accent: #b9282f;
  --accent-ink: #8d1c22;
  --accent-soft: rgba(185, 40, 47, 0.12);
  --accent-ring: rgba(185, 40, 47, 0.45);
  --accent-2: #2f7a4f;
  --accent-2-soft: rgba(47, 122, 79, 0.2);
  --theme-color: #b9282f;
}

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: var(--lh-base);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The header changes height near the top of the page; letting the browser
     "anchor" the scroll position would move the page under the user's finger. */
  overflow-anchor: none;
  scroll-padding-top: calc(var(--header-h, 4.5rem) + var(--sticky-top) + 0.75rem);
  background: #1d2430;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, address {
  margin: 0;
}

ul, ol {
  padding: 0;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

strong {
  font-weight: 600;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-pill);
  box-shadow: var(--card-shadow);
  transform: translateY(-200%);
  transition: transform var(--dur-fast);
}

.skip-link:focus {
  transform: none;
}

/* -------------------------------------------------------------------------
   4. Background painting
   ------------------------------------------------------------------------- */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh; /* largest viewport: no jump when mobile toolbars hide */
  z-index: -1;
  overflow: hidden;
  background-color: #1d2430;
  background-size: cover;
  background-position: center bottom;
}

/* The painting spans the full width and keeps its proportions, so it is
   taller than the screen (at least 20% taller, so phones get movement too).
   It pans over the whole length of the page, upwards: top of the page =
   bottom of the painting, bottom of the page = top of the painting.
   Longer pages (Talks) pan more slowly, and the speed is capped (see
   MAX_BG_SPEED in js/app.js). Without scrolling (short page, reduced
   motion, no scroll timeline yet) it rests on its bottom edge. */
.bg__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 120%;
  object-fit: cover;
  object-position: center top;
  transform: translate3d(0, calc(100lvh - 100%), 0);
  opacity: 0;
  transition: opacity var(--dur-slow) ease;
  will-change: opacity, transform;
}

/* Modern browsers link the pan directly to the page's scroll position,
   on the compositor: smooth, and it adapts by itself whenever the page
   grows or shrinks (tab change, card opened). Others use js/app.js. */
@supports (animation-timeline: scroll()) {
  .bg__img {
    animation-name: bg-pan;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root block);
  }
}

/* --bg-shift is how far the painting may travel on this page. js/app.js
   sets it to min(full travel, page length × max speed), so the background
   never moves faster than the cap; on short pages it stops before the sky.
   Without the script it defaults to the full travel. */
@keyframes bg-pan {
  from { transform: translate3d(0, calc(100lvh - 100%), 0); }
  to { transform: translate3d(0, calc(100lvh - 100% + var(--bg-shift, calc(100% - 100lvh))), 0); }
}

.bg__img.is-ready {
  opacity: 1;
}

/* Soft vignette: keeps white header text legible on bright skies */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 24, 0.28) 0%, rgba(10, 14, 24, 0) 32%),
    linear-gradient(0deg, rgba(10, 14, 24, 0.22) 0%, rgba(10, 14, 24, 0) 30%);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   5. Glass & card surfaces
   ------------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  padding: clamp(1.25rem, 2.2vw + 0.5rem, 2.25rem);
}

/* -------------------------------------------------------------------------
   6. Page layout
   ------------------------------------------------------------------------- */
.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.hero-space {
  height: var(--hero-top);
  flex: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  margin-top: var(--hero-gap);
  align-items: start;
}

.layout__main {
  min-width: 0;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.layout__side {
  min-width: 0;
}

.layout__side--right {
  display: none;
}

#contents-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* -------------------------------------------------------------------------
   7. Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: var(--sticky-top);
  z-index: 50;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(1.1rem, 2.5vw, 2rem) clamp(1rem, 3vw, 2.5rem) clamp(0.9rem, 2vw, 1.5rem);
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 18px rgba(0, 0, 0, 0.25);
  transition:
    top var(--dur-slow) var(--ease-out),
    max-width var(--dur-slow) var(--ease-out),
    padding var(--dur-slow) var(--ease-out),
    border-radius var(--dur-slow) var(--ease-out),
    background-color var(--dur);
}

/* Once the script has measured the header, it is fixed in BOTH states and a
   spacer of constant height (the expanded header) holds its place in the
   page. Expanding or compacting therefore never moves the content, which
   is what used to make the header flip back and forth near the top.
   Before the script runs, the header simply stays sticky in the flow. */
.has-fixed-header .site-header {
  position: fixed;
  top: var(--hero-top);
  left: var(--gutter);
  right: var(--gutter);
  width: auto;
}

.has-fixed-header .site-header.is-compact {
  top: var(--sticky-top);
}

.has-fixed-header .site-header__spacer {
  height: var(--header-expanded-h, 0px);
}

.site-header__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.brand {
  color: inherit;
  text-decoration: none;
  display: block;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  text-wrap: balance;
  transition: font-size var(--dur-slow) var(--ease-out);
}

.brand__tagline {
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.95;
  line-height: var(--lh-snug);
  text-wrap: balance;
  max-height: 5rem;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out), opacity var(--dur), margin var(--dur-slow) var(--ease-out);
}

.site-header__rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  margin: var(--sp-4) 0 var(--sp-3);
  transition: margin var(--dur-slow) var(--ease-out), opacity var(--dur);
}

/* Season switcher ----------------------------------------------------- */
.season {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-top: var(--sp-2);
}

.season__btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}

.season__btn svg {
  width: 1.15rem;
  height: 1.15rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.season__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.season__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.season__btn[aria-pressed="true"] svg {
  filter: none;
}

.season__btn:active {
  transform: scale(0.94);
}

/* Navigation ------------------------------------------------------------ */
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
}

.nav-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 2.5rem;
  padding: 0.45em 1.1em;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast),
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
}

.nav-link {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.nav-link[aria-current="page"] {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  text-shadow: none;
}

.site-nav__cta {
  margin-left: var(--sp-2);
}

.btn--primary {
  color: #fff;
  background: var(--accent);
  border: 1.5px solid transparent;
  text-shadow: none;
  box-shadow: 0 6px 18px -6px var(--accent-ring);
}

.btn--primary:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Compact (scrolled) state --------------------------------------------- */
.site-header.is-compact {
  max-width: var(--page-max);
  padding: 0.6rem clamp(0.75rem, 2vw, 1.5rem);
  text-align: left;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.22);
}

.site-header__spacer {
  height: 0;
  flex: none;
}

.site-header.no-transition,
.site-header.no-transition * {
  transition: none !important;
}

.site-header.is-compact .site-header__top {
  flex-direction: row;
  justify-content: space-between;
  gap: var(--sp-4);
}

.site-header.is-compact .brand__title {
  font-size: var(--fs-md);
}

.site-header.is-compact .brand__tagline {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.site-header.is-compact .site-header__rule {
  margin: 0;
  opacity: 0;
  height: 0;
}

.site-header.is-compact .season {
  margin-top: 0;
}

.site-header.is-compact .season__btn {
  width: 2rem;
  height: 2rem;
}

.site-header.is-compact .season__btn svg {
  width: 1rem;
  height: 1rem;
}

.site-header.is-compact .site-nav ul {
  justify-content: flex-start;
}

.site-header.is-compact .nav-link,
.site-header.is-compact .btn {
  min-height: 2.25rem;
  padding: 0.35em 0.95em;
}

/* -------------------------------------------------------------------------
   8. Content cards
   ------------------------------------------------------------------------- */
.card--entry {
  opacity: 0;
  transform: translateY(14px);
  animation: card-in var(--dur-slow) var(--ease-out) forwards;
  animation-delay: calc(min(var(--i, 0), 8) * 45ms);
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.card--entry.is-target {
  box-shadow: 0 0 0 3px var(--accent-ring), var(--card-shadow);
}

.card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.75em;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(23, 26, 32, 0.07);
}

.badge--accent {
  color: #fff;
  background: var(--accent);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}

.card__speaker {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--accent-ink);
}

.meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 2.1rem;
  padding: 0.3em 0.9em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.3;
}

.chip svg {
  width: 1em;
  height: 1em;
  flex: none;
  color: var(--accent);
}

.chip--action {
  border-color: var(--accent-ring);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.chip--action:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip--action:hover svg {
  color: #fff;
}

.card__text p + p {
  margin-top: 0.8em;
}

.card__text .lead {
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  display: block;
  margin-bottom: 0.25em;
}

.expand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  min-height: 2.75rem;
  margin-top: var(--sp-5);
  padding: 0.5em 1em;
  border: 1.5px solid var(--accent-ring);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.expand:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.expand svg {
  width: 1em;
  height: 1em;
  transition: transform var(--dur);
}

.expand[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.card__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);
  visibility: hidden;
}

.card__details.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.card__details-inner {
  min-height: 0;
  overflow: hidden;
}

.card__details-content {
  padding-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.bio {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}

.bio__photo {
  flex: none;
  width: clamp(5.5rem, 22vw, 9rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: var(--accent-soft);
}

.bio__text {
  flex: 1;
  min-width: 0;
}

.event-figure {
  display: flex;
  justify-content: center;
}

.event-figure img {
  max-height: 24rem;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.people h3 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.4em;
}

.people ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.people li {
  padding-left: 1.1em;
  position: relative;
}

.people li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--accent);
}

.people + .people {
  margin-top: calc(var(--sp-4) * -1);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.4rem;
  padding: 0.4em 1.1em;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--accent-ring);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.link-pill svg {
  width: 0.9em;
  height: 0.9em;
}

.link-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.link-pill.is-visited {
  background: var(--accent-2-soft);
  border-color: var(--accent-2);
  color: var(--ink-2);
}

.extras {
  text-align: center;
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.extras code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  color: var(--ink);
  background: rgba(23, 26, 32, 0.06);
  padding: 0.1em 0.45em;
  border-radius: 6px;
}

/* Rendered markdown (event programs) */
.prose {
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 0.8em;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: var(--lh-snug);
  margin-top: 1.4em;
}

.prose h1 { font-size: var(--fs-lg); }
.prose h2 { font-size: var(--fs-md); }
.prose h3, .prose h4 { font-size: var(--fs-base); }

.prose ul, .prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.25em;
}

.prose img {
  border-radius: var(--r-md);
  margin: 0 auto;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5em 0;
}

.prose blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.prose pre {
  overflow-x: auto;
  padding: 1em;
  border-radius: var(--r-sm);
  background: rgba(23, 26, 32, 0.06);
  font-size: 0.9em;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--fs-sm);
}

.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.4em 0.6em;
  text-align: left;
}

/* Intro / contact / empty / error cards */
.card--intro {
  font-size: var(--fs-base); /* same size as the text in the cards below */
  font-weight: 400;
  line-height: var(--lh-base);
  text-align: center;
}

.card--intro p + p {
  margin-top: 0.9em;
}

.card--intro strong {
  font-weight: 600;
}

.section-heading {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 14px rgba(0, 0, 0, 0.3);
  margin: var(--sp-2) 0 calc(var(--sp-3) * -1);
}

.card--notice {
  text-align: center;
  color: var(--ink-2);
}

.card--notice h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: var(--fs-lg);
  text-align: center;
  margin-bottom: var(--sp-4);
}

.contact h2 + * {
  margin-top: 0;
}

.contact > * + * {
  margin-top: var(--sp-4);
}

.contact > h2:not(:first-child) {
  margin-top: var(--sp-7);
}

.contact ul {
  list-style: disc;
  padding-left: 1.4em;
}

.contact li + li {
  margin-top: 0.3em;
}

.contact .center {
  text-align: center;
}

.contact address {
  font-style: normal;
  line-height: 1.5;
}

/* Mailing list check ------------------------------------------------- */
.ml-check {
  display: flex;
  gap: var(--sp-2);
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

.ml-check__input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55em 1em;
  border: 1px solid #cfd3da;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: max(16px, var(--fs-sm)); /* >= 16px: no zoom on focus in iOS */
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.ml-check__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ml-check__btn {
  flex: none;
  min-height: 2.75rem;
  min-width: 6rem;
  padding: 0.5em 1.2em;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur-fast);
}

.ml-check__btn:hover {
  background: var(--accent-ink);
}

.ml-check__btn:active {
  transform: scale(0.98);
}

.ml-check[data-state="loading"] .ml-check__btn {
  cursor: progress;
  opacity: 0.85;
}

.ml-check[data-state="yes"] .ml-check__btn {
  background: #1d7a46;
}

.ml-check[data-state="no"] .ml-check__btn {
  background: #4a5160;
}

.ml-check__msg {
  min-height: 1.4em;
  margin-top: var(--sp-2) !important;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.ml-check__msg[data-state="yes"] { color: #1d7a46; }
.ml-check__msg[data-state="error"] { color: #b00020; }

.ml-check + .ml-check__msg + p {
  margin-top: var(--sp-5);
}

@media (max-width: 30em) {
  .ml-check {
    flex-direction: column;
  }

  .ml-check__input {
    flex: none; /* in a column, a flex-basis would set the height */
    width: 100%;
  }

  .ml-check__btn {
    white-space: normal;
  }
}

.committee {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--sp-3);
  list-style: none !important;
  padding: 0 !important;
}

.committee li {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  margin: 0 !important;
}

.committee .role {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.2em;
}

.committee .affil {
  display: block;
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.email-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

/* Skeleton loading --------------------------------------------------- */
.skeleton {
  min-height: 11rem;
  overflow: hidden;
}

.skeleton::before,
.skeleton::after,
.skeleton .skeleton__line {
  display: block;
  content: "";
  height: 0.95rem;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(23, 26, 32, 0.07) 25%, rgba(23, 26, 32, 0.13) 50%, rgba(23, 26, 32, 0.07) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton::before {
  width: 60%;
  height: 1.5rem;
  margin: 0 auto var(--sp-4);
}

.skeleton .skeleton__line {
  margin-bottom: var(--sp-3);
}

.skeleton .skeleton__line:nth-child(2) { width: 90%; }
.skeleton .skeleton__line:nth-child(3) { width: 75%; }

.skeleton::after {
  width: 100%;
  height: 2.5rem;
  margin-top: var(--sp-4);
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* -------------------------------------------------------------------------
   9. Timeline (archive navigation)
   ------------------------------------------------------------------------- */
.timeline {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.timeline summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-lg);
}

.timeline summary::-webkit-details-marker {
  display: none;
}

.timeline summary svg {
  width: 1em;
  height: 1em;
  transition: transform var(--dur);
}

.timeline[open] summary svg {
  transform: rotate(180deg);
}

.timeline__body {
  padding: 0 var(--sp-3) var(--sp-3);
  max-height: min(70vh, 48rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.timeline__year {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 0.55em 0.75em;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: transparent;
  color: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: 0.02em;
  transition: background var(--dur-fast);
}

.timeline__year:hover {
  background: rgba(255, 255, 255, 0.14);
}

.timeline__year svg {
  width: 0.9em;
  height: 0.9em;
  opacity: 0.85;
  transition: transform var(--dur);
}

.timeline__year[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.timeline__count {
  margin-left: auto;
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: 0.85;
  padding: 0.05em 0.55em;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.2);
}

.timeline__entries {
  list-style: none;
  margin: var(--sp-2) 0 var(--sp-3);
  padding-left: 0.75em;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  display: grid;
  grid-template-rows: 1fr;
}

.timeline__entries[hidden] {
  display: none;
}

.timeline__entry a {
  display: block;
  padding: 0.35em 0.6em;
  margin-left: 0.25em;
  border-radius: var(--r-sm);
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
  transition: background var(--dur-fast);
}

.timeline__entry a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.timeline__entry a.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-shadow: none;
}

.timeline__date {
  display: block;
  font-size: var(--fs-xs);
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.timeline__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* Right aside ------------------------------------------------------------ */
.side-card {
  color: #fff;
  padding: var(--sp-4) var(--sp-5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.side-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}

.side-card address {
  font-style: normal;
  font-size: var(--fs-sm);
  line-height: 1.5;
  opacity: 0.95;
}

.side-card .btn {
  width: 100%;
  margin-top: var(--sp-4);
}

.side-card .btn + .btn {
  margin-top: var(--sp-2);
}

/* Secondary button on glass: white outline */
.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* -------------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--sp-8);
  padding: var(--sp-5) 0 var(--sp-6);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  font-size: var(--fs-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.site-footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.site-footer a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-5);
}

.site-footer .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-shadow: inherit;
}

.site-footer .link-button:hover {
  text-decoration-color: #fff;
}

/* -------------------------------------------------------------------------
   11. Proposal dialog
   ------------------------------------------------------------------------- */
.pf-dialog {
  width: min(100% - 2rem, 36rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.pf-dialog::backdrop {
  background: rgba(16, 20, 32, 0.55);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.pf-dialog[open] {
  animation: dialog-in var(--dur) var(--ease-out);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

html:has(dialog[open]) {
  overflow: hidden;
}

/* Browsers without <dialog>.showModal(): emulate the modal placement */
@supports not selector(:modal) {
  .pf-dialog[open] {
    position: fixed;
    inset: 0;
    z-index: 100;
    margin: auto;
    height: fit-content;
  }
}

.pf-modal {
  position: relative;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.pf-modal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: var(--fs-lg);
  margin: 0 0.5em 0.25em 0;
  padding-right: 2rem;
}

.pf-sub {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-5);
}

.pf-field {
  margin-bottom: var(--sp-4);
}

.pf-field > label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.35em;
}

.pf-opt {
  font-weight: 400;
  color: var(--ink-3);
}

.pf-field input,
.pf-field textarea,
.pf-field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6em 0.8em;
  border: 1px solid #cfd3da;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: max(16px, var(--fs-sm)); /* ≥16px prevents iOS zoom-on-focus */
  background: #fff;
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.pf-field input[type="file"] {
  padding: 0.5em 0.6em;
}

.pf-field input:focus,
.pf-field textarea:focus,
.pf-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pf-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.pf-row {
  display: flex;
  gap: var(--sp-3);
}

.pf-row .pf-field {
  flex: 1;
  min-width: 0;
}

.pf-links,
.pf-people {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.pf-link-row {
  display: flex;
  gap: var(--sp-2);
  align-items: stretch;
}

.pf-link-row .pf-link-name {
  flex: 0 0 36%;
}

.pf-link-row .pf-link-url {
  flex: 1;
}

.pf-link-remove {
  flex: none;
  width: 2.75rem;
  border: 1px solid #cfd3da;
  background: #f5f6f8;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  font-size: 1.25em;
  line-height: 1;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.pf-link-remove:hover {
  background: #fbe9e9;
  color: #b00020;
  border-color: #efc4c4;
}

.pf-link-add,
.pf-person-add {
  margin-top: var(--sp-2);
  border: 0;
  background: none;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.25em 0;
}

.pf-link-add:hover,
.pf-person-add:hover {
  text-decoration: underline;
}

.pf-person-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  background: #f7f8fa;
  border: 1px solid #e6e8ec;
  border-radius: var(--r-md);
  padding: var(--sp-2);
}

.pf-person-row .pf-p-name,
.pf-person-row .pf-p-title,
.pf-person-row .pf-p-affil {
  flex: 1 1 8rem;
  min-width: 0;
}

.pf-role {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
}

.pf-role input {
  width: auto;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
}

.pf-hidden {
  display: none !important;
}

.pf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pf-status {
  min-height: 1.3em;
  margin: var(--sp-1) 0 var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.pf-status.is-error {
  color: #b00020;
}

.pf-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.pf-btn {
  flex: 1;
  min-height: 2.9rem;
  padding: 0.7em 1em;
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: background var(--dur-fast), opacity var(--dur-fast);
}

.pf-btn-primary {
  background: var(--accent);
  color: #fff;
}

.pf-btn-primary:hover {
  background: var(--accent-ink);
}

.pf-btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.pf-btn-secondary {
  background: #eceef1;
  color: var(--ink-2);
}

.pf-btn-secondary:hover {
  background: #e1e4e9;
}

.pf-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  font-size: 1.6em;
  line-height: 1;
  display: grid;
  place-items: center;
}

.pf-close:hover {
  background: #eceef1;
  color: var(--ink);
}

.pf-done {
  text-align: center;
  padding: var(--sp-3) 0;
}

.pf-done p {
  color: var(--ink-2);
  margin: 0.5em 0 1.5em;
}

/* Add to calendar dialog ------------------------------------------------ */
.cal-option + .cal-option {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.cal-option h3 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: var(--sp-4) 0 var(--sp-2);
}

.cal-option__text {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}

.cal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: var(--sp-2);
}

.cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.75rem;
  padding: 0.5em 1em;
  border: 1.5px solid var(--accent-ring);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.cal-btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.cal-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cal-btn--primary {
  width: 100%;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cal-btn--primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.cal-copy__label {
  display: block;
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.cal-copy {
  display: flex;
  gap: var(--sp-2);
}

.cal-copy__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5em 0.8em;
  border: 1px solid #cfd3da;
  border-radius: var(--r-sm);
  background: #f7f8fa;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: max(16px, var(--fs-xs));
}

.cal-copy__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cal-note {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* -------------------------------------------------------------------------
   12. Responsive layout
   ------------------------------------------------------------------------- */

/* Phones */
@media (max-width: 47.99em) {
  :root {
    --hero-top: 0.75rem;
    --hero-gap: clamp(1.25rem, 6vh, 3rem);
    --sticky-top: 0.5rem;
    --glass-blur: 14px;
  }

  .site-header {
    padding: 1.1rem 1rem 0.9rem;
    border-radius: var(--r-md);
  }

  /* Expanded header: every link visible, call-to-action on its own row */
  .site-nav ul {
    gap: var(--sp-2);
  }

  .site-nav__cta {
    margin-left: 0;
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-top: var(--sp-1);
  }

  .site-nav__cta .btn {
    width: 100%;
    max-width: 20rem;
  }

  .site-header.is-compact {
    padding: 0.5rem 0.75rem;
  }

  .site-header.is-compact .site-header__top {
    gap: var(--sp-2);
  }

  .site-header.is-compact .brand__title {
    font-size: var(--fs-base);
  }

  .site-header.is-compact .site-nav {
    margin-top: 0.4rem;
  }

  .card {
    padding: 1.15rem 1rem 1.25rem;
    border-radius: var(--r-md);
  }

  .card__head {
    gap: var(--sp-1);
  }

  .meta {
    margin-bottom: var(--sp-4);
  }

  .chip {
    font-size: var(--fs-xs);
    max-width: 100%;
  }

  .chip span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bio {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .bio__photo {
    width: 7.5rem;
  }

  .pf-row {
    flex-direction: column;
    gap: 0;
  }

  .pf-link-row {
    flex-wrap: wrap;
  }

  .pf-link-row .pf-link-name {
    flex: 1 1 100%;
  }

  .pf-person-row .pf-p-name,
  .pf-person-row .pf-p-title,
  .pf-person-row .pf-p-affil {
    flex: 1 1 100%;
  }

  .pf-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }
}

/* Tablets and small laptops: single column, timeline as collapsible */
@media (max-width: 68.74em) {
  /* Compact header: one horizontally scrollable row with an edge fade */
  .site-header.is-compact .site-nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2.5rem 2px 0.25rem;
    margin: 0 -0.25rem;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
  }

  .site-header.is-compact .site-nav ul::-webkit-scrollbar {
    display: none;
  }

  .site-header.is-compact .site-nav li {
    flex: none;
  }

  .site-header.is-compact .site-nav__cta {
    flex-basis: auto;
    margin: 0 0 0 auto;
    display: block;
  }

  .site-header.is-compact .site-nav__cta .btn {
    width: auto;
  }

  .site-header.is-compact .nav-link,
  .site-header.is-compact .btn {
    font-size: var(--fs-xs);
    padding: 0.3em 0.85em;
  }

  .layout__side--left {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
  }

  .timeline__body {
    max-height: 22rem;
  }
}

/* Wide screens: three-column grid with sticky sides */
@media (min-width: 68.75em) {
  .layout {
    grid-template-columns: var(--side-w) minmax(0, 1fr) var(--side-w);
    gap: var(--sp-6);
  }

  .layout__side {
    position: sticky;
    top: calc(var(--header-h, 4.5rem) + var(--sticky-top) + 0.75rem);
  }

  .layout__side--left { grid-column: 1; }
  .layout__main { grid-column: 2; }
  .layout__side--right { grid-column: 3; display: block; }

  .timeline summary {
    pointer-events: none;
  }

  .timeline summary svg {
    display: none;
  }

  .site-nav__cta {
    margin-left: var(--sp-3);
  }
}

@media (min-width: 90em) {
  :root {
    --side-w: 16.5rem;
  }
}

/* Short landscape viewports (phones rotated): less hero space */
@media (max-height: 30em) {
  :root {
    --hero-gap: 1rem;
    --hero-top: 0.5rem;
  }
}

/* Devices without hover: no lift effects, larger tap targets */
@media (hover: none) {
  .btn--primary:hover {
    transform: none;
  }

  .nav-link,
  .btn,
  .chip--action,
  .expand,
  .link-pill {
    min-height: 2.75rem;
  }
}

/* No backdrop-filter support: make surfaces opaque enough to read */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(28, 36, 52, 0.72);
  }

  .card {
    background: rgba(255, 255, 255, 0.95);
  }

  .site-header.is-compact {
    background: rgba(28, 36, 52, 0.85);
  }
}

/* -------------------------------------------------------------------------
   13. Motion preferences & print
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Motion linked to scrolling can cause discomfort: keep the painting still. */
  .bg__img {
    animation: none !important;
    transform: translate3d(0, calc(100lvh - 100%), 0) !important;
  }

  .card--entry {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .bg,
  .site-header,
  .site-header__spacer,
  .hero-space,
  .layout__side,
  .site-footer,
  .expand,
  .chip--action,
  .skip-link {
    display: none !important;
  }

  html, body {
    background: #fff;
  }

  .card {
    background: #fff;
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .card__details {
    grid-template-rows: 1fr;
    visibility: visible;
  }
}
:root[data-season="spring"] .bg { background-image: url("data:image/webp;base64,UklGRj4BAABXRUJQVlA4IDIBAADwBQCdASoYABwAPrVSo00nJKMiKAgA4BaJbACdMuxLEn9uE8l+y0l/00LW78Wp7Z4p2Gf/imf+AAD3huD4NDSAGOILrjd0Jq+WzKm9E6sTjxkEKuUJj459BsLwOe931AwWHX8HclYBev8QA5Y8CiXs3Ipf/CPwJn8mtEl6OH4mYXnAz+Dq7NTNNURnL0/w7/lBKbGMr86zDlXdXYPOGPpGASyTYRSt+vTHJNIZ1QYiHbpiExhhhwxdQNp7Fi1UrsGWnAmehkOczavMeCBdQL8DzCIuxibIGURj8eSkM+i4g9B0vwomuwLBzNzqmU2HrhoDsIumi6jmxzDxHsjluOuQd0/RK9ZB9vmO53TYH2I0lA7av/TtPMpoZ+TJRCypbUxImJLqBwRmOQYbmh5SCfAAAAA="); }
:root[data-season="summer"] .bg { background-image: url("data:image/webp;base64,UklGRgQBAABXRUJQVlA4IPgAAAAwBgCdASoYABwAPrVMn0mnJKKhMAgA4BaJZACdMoMkonMG8C4T10oglRDW/tFHwcw4ivKIlAOOLMbAANSh7qHHzTEUQFt9i9yS24yTT+gEGs/EhAs354KsL1Vr2sDjrxBlWgyWsA34NVuvTAUnhrrXUMLTMy1oaQnjhTcZ6I6kAYQhUdIuQ+WjcPpL2KjP2y44bBlZqGv0O9uwMtZPCozVo7jbyn+tnmiXIDtFlMrHXUGsuInwkJ4rV0zU6ixwg0MXOzLoX9izANku1Whl+kZm3eQjbpTW4PxRcdxGviDELpN3PskADbhEsGeifUwIcS2rHAvBBAAAAA=="); }
:root[data-season="fall"] .bg { background-image: url("data:image/webp;base64,UklGRiIBAABXRUJQVlA4IBYBAADwBgCdASoYABsAPrVKoEqnJCMhqA1Q4BaJagCdMoR6b4GqfdmagAihwWn1a+A+Llw9OM/Beaz+QhvXQL2VYvwAAP4Iy1HyABwYakrfbC0jUEP1Ev1WlwaE5mMyAM3stRMrpTq5+PXe9EvG6kFGO73VKoCEfGr1cAJT/vF59QMATodAJt5HvxFSJk4f4014gIGlwX8Nlx917Rh7zbPN9dScI4E5cF0iSc4jdG1Wcyp9QUwQeR9HRSBcE1BQCIBsU0HXN93mtFhB+3Ucd1sCeOMu2AGA/TPf+exX3/Kk0ywpeWjaaokhu+vFoQG3NwO2+Gk52NsP1CdkZQN/XRoVUQ2iWO98tyu2IdiS+uN+MO3gYLxKtTSsAA=="); }
:root[data-season="winter"] .bg { background-image: url("data:image/webp;base64,UklGRgQBAABXRUJQVlA4IPgAAADwBQCdASoYABwAPrVQoEynJKMiKAqo4BaJYwCBwpZSgBHp28ZgpepRdV6iOv9lLD+RNjQWioj3oAD2h0NEeBZrvkKWBwd70KPRnMr1f4MAz/ac9fNjCbwgU9cbMbzkCGhP4lqag2QtuOS+bwJHPycQPJxSDJe2+sSopHhJVuMuRYgRNHllw4nBuP7oQjx1SRKFQVPJrJvgaN8nY/g+hX2EhnrDGOQN2jUVw3PsMVwnvrZz/oxjnNhBtOF+Tr9sowQoxdE/BVj6OmAWaw/SbJShLB4FLR6NgY3aYmoCvwSmFo7gwmwpSmpD0OlWctU+0p18vqmlJXPQAA=="); }
