/* ==========================================================================
   Fremont Area Leadership Prayer Breakfast
   Design system. Palette sampled from the 2027 Good Friday event logo.
   ========================================================================== */

:root {
  /* Brand — sampled from the logo mark */
  --brand:      #1f5b78;  /* deep teal-blue, the logo wordmark */
  --brand-deep: #143b4c;  /* darker teal, body ink */
  --brand-soft: #2e7d9a;  /* lighter teal, links on dark */
  --ember:      #dc4e27;  /* red-orange, the "2027" numerals */
  --orange:     #ef8b3c;  /* warm orange panel of the mark */
  --sage:       #9fb394;  /* muted green panel */
  --forest:     #4c7a3e;  /* deep green panel */

  /* Surfaces */
  --cream:  #fbf6ee;
  --paper:  #ffffff;
  --sand:   #f4ece0;
  --line:   #e4dacb;
  --line-2: #d3c5b0;

  /* Ink */
  --ink:      #143b4c;
  --ink-soft: #4d6470;
  --ink-mute: #7b8b93;

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --measure: 68ch;
  --wrap:    1120px;
  --wrap-narrow: 760px;
  --pad:     clamp(1.25rem, 5vw, 3rem);
  --section: clamp(3.5rem, 9vw, 7rem);

  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 59, 76, .06), 0 8px 28px rgba(20, 59, 76, .07);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ember); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------------------------------------------------------------- type -- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--brand-deep);
  line-height: 1.15;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.65rem, 1.35rem + 1.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.muted { color: var(--ink-mute); }
.small { font-size: .875rem; }

/* ------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section--paper { background: var(--paper); }
.section--sand  { background: var(--sand); }

.section--ink {
  background: var(--brand-deep);
  color: #dfe9ee;
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a { color: #9fd0e2; }
.section--ink .eyebrow { color: var(--orange); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-deep);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------- site head -- */

/* ------------------------------------------------- moving announcement -- */

.move-banner {
  background: var(--ember);
  color: #fff;
  text-align: center;
  padding: .7rem var(--pad);
  font-size: .95rem;
  line-height: 1.55;
}
.move-banner__tag {
  display: inline-block;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: .02rem .65rem;
  margin-right: .45rem;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.move-banner a { color: #fff; font-weight: 600; margin-left: .35rem; white-space: nowrap; }
.move-banner a:hover { color: var(--cream); }

/* The header shares the splash's deep teal, so on the home page the two read
   as one block and the eye goes straight to the event. The announcement
   strip above it stays orange. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 59, 76, .97);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
  flex: 0 1 auto;
  min-width: 0;
}
.brand:hover { color: #fff; }
/* White version of the mark, as in the footer: the mark's own teal would
   disappear against the teal header. */
.brand img { width: 34px; height: auto; flex: none; filter: brightness(0) invert(1); }
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.brand__name span { display: block; font-size: .72rem; font-family: var(--sans); font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase; color: #9fbccb; margin-top: .18rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }

.nav a {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: #cfe2ea;
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--ember); }
/* .nav a sets link colour at higher specificity than .btn--primary; without
   this the nav button's label would take the menu colour. */
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff; border-bottom-color: transparent; padding-block: .6rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius);
  padding: .5rem .7rem;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #143b4c;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    padding: .5rem var(--pad) 1.25rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding-block: .85rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--ember); padding-left: .75rem; }
  .nav .btn { margin-top: .9rem; text-align: center; border-bottom: 0; }
  .site-head__inner { position: relative; }
}

/* --------------------------------------------------------------- btns -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: #c43f1c; color: #fff; }

.btn--ghost { background: transparent; color: var(--brand-deep); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--paper); border-color: var(--brand); color: var(--brand); }

.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--sand); color: var(--brand-deep); }

.btn--sm { padding: .6rem 1rem; font-size: .8125rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(239, 139, 60, .10) 0%, rgba(239, 139, 60, 0) 55%),
    radial-gradient(90% 80% at 5% 100%, rgba(31, 91, 120, .09) 0%, rgba(31, 91, 120, 0) 60%),
    var(--cream);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__logo { max-width: 420px; width: 100%; margin-inline: auto; }

.hero h1 { margin-bottom: .35em; }
.hero h1 .year { display: block; color: var(--ember); font-size: .5em; letter-spacing: .06em; margin-bottom: .25em; }

.hero__meta, .event-meta {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: .85rem;
  max-width: 34rem;
}
.hero__meta li, .event-meta li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}
.hero__meta li:last-child, .event-meta li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__meta dt, .hero__meta .k, .event-meta .k {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__meta .v, .event-meta .v { font-size: 1.05rem; color: var(--brand-deep); font-weight: 500; }
.hero__meta .v small, .event-meta .v small { display: block; font-size: .85rem; font-weight: 400; color: var(--ink-mute); margin-top: .15rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { order: -1; max-width: 300px; }
  .hero__meta li { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------------------------------------------------------- home page -- */
/* The splash puts the next event's date, details and calls to action on the
   first screen (after the Norfolk Area Prayer Breakfast's layout), over a
   background photo when one is set in admin. Then the mission beside the
   "also coming up" card, then the full-width photo strip. */

.splash {
  position: relative;
  color: #e7f0f4;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(239, 139, 60, .22) 0%, rgba(239, 139, 60, 0) 55%),
    radial-gradient(80% 90% at 0% 100%, rgba(46, 125, 154, .35) 0%, rgba(46, 125, 154, 0) 60%),
    linear-gradient(135deg, #143b4c 0%, #1f5b78 100%);
  padding-block: clamp(3.25rem, 9vw, 6.5rem);
  overflow: hidden;
}
/* With a photo: darken toward the text side so it always stays readable. */
.splash--photo {
  background:
    linear-gradient(90deg, rgba(14, 42, 55, .94) 0%, rgba(14, 42, 55, .82) 45%, rgba(14, 42, 55, .45) 100%),
    var(--splash-image) center / cover no-repeat,
    #143b4c;
}

.splash__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.splash__inner--solo { grid-template-columns: minmax(0, 52rem); }

.splash__presents {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1.1rem;
}
.splash__date {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 .35rem;
  max-width: none;
}
.splash__title {
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.1rem);
  color: #fff;
  margin: 0 0 .45em;
}
.splash__title a { color: inherit; text-decoration: none; }
.splash__title a:hover { color: #ffd9bf; }
.splash__tagline { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: #cfe2ea; max-width: 40rem; }
.splash__details {
  display: grid;
  gap: .25rem;
  margin: 1.5rem 0 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ember);
  color: #e7f0f4;
  font-weight: 500;
}
.splash__details span + span { font-weight: 400; color: #b9cdd6; }

.splash__head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.splash__head .splash__title { margin-bottom: .3em; }
.splash__head--left { justify-content: flex-start; }
.splash__head--left > .photo-badge { order: -1; }
.splash .photo-badge { border-color: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

.splash__photo { max-width: 360px; width: 100%; justify-self: center; }
.splash__photo-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  background: #1f5b78;
}
.splash__photo-cap { text-align: center; margin: .9rem 0 0; font-family: var(--serif); font-weight: 600; color: #fff; max-width: none; }
.splash__photo-cap span { display: block; font-family: var(--sans); font-weight: 400; font-size: .85rem; color: #b9cdd6; }

/* Buttons that sit on the dark splash. */
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--on-dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--on-dark:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }

@media (max-width: 900px) {
  .splash__inner { grid-template-columns: 1fr; }
  .splash__photo { order: -1; max-width: 220px; justify-self: start; }
  .splash__photo-cap { text-align: left; }
}
@media (max-width: 560px) {
  .splash__head { flex-direction: column-reverse; align-items: flex-start; gap: .75rem; }
  .splash__head--left { flex-direction: column; }
}

/* Mission + "also coming up": two cards that start and end on the same lines. */
.home-intro {
  background: var(--cream);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
}
.home-panel {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
  min-width: 0;
}
.home-panel h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); }
.home-panel--events { border-top: 3px solid var(--ember); }
.home-panel--org { border-top: 3px solid var(--brand); }
.home-card__title a { color: inherit; text-decoration: none; }
.home-card__title a:hover { color: var(--ember); }
.home-card__summary { font-size: .95rem; color: var(--ink-soft); margin-top: 1rem; }
/* Pinned to the bottom so both cards finish on the same line. */
.home-card__foot { margin-top: auto; padding-top: 1.25rem; }
@media (max-width: 900px) {
  .home-split { grid-template-columns: 1fr; }
}

.mission p { color: var(--ink-soft); }

.committee {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: .9rem 1.5rem;
}
/* Chosen in admin → Organization. Two columns stack to one on a phone. */
.committee--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.committee--one { grid-template-columns: 1fr; }
@media (max-width: 480px) { .committee--two { grid-template-columns: 1fr; } }
.committee li { border-left: 2px solid var(--orange); padding-left: .85rem; line-height: 1.35; }
.committee__name { display: block; font-weight: 600; color: var(--brand-deep); }
.committee__role {
  display: block;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: .2rem;
}
.committee__empty { border-left: 0 !important; padding-left: 0 !important; color: var(--ink-mute); }

/* Leadership page. Officers as cards (office above the name), then the board
   beside the committee. */
.leaders__head { margin-bottom: 1.75rem; }
.officers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.officer {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ember);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.officer__office {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .5rem;
}
.officer__name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--brand-deep); line-height: 1.2; }
.officer__affiliation { font-size: .9rem; color: var(--ink-soft); margin-top: .35rem; line-height: 1.45; }
.leaders__empty { list-style: none; color: var(--ink-mute); border-left: 0 !important; padding-left: 0 !important; }

.leaders-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
/* Affiliations are longer than the old one-word roles. */
.leaders-split .committee__role { text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--ink-soft); line-height: 1.45; }
.leaders-split .committee { gap: 1.1rem 1.75rem; }
@media (max-width: 900px) { .leaders-split { grid-template-columns: 1fr; } }

.about-org__leaders p { color: var(--ink-soft); }

/* About page: mission beside a pointer to the Leadership page. */
.about-org__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.mission--lead p { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); line-height: 1.6; }
@media (max-width: 800px) { .about-org__grid { grid-template-columns: 1fr; } }

.eyebrow--quiet { color: var(--ink-mute); margin-bottom: .5rem; }

.link-arrow { font-weight: 600; font-size: .9rem; text-decoration: none; }
.link-arrow::after { content: " \2192"; }

@media (max-width: 900px) {
  .event-meta li { grid-template-columns: 1fr; gap: .15rem; }
}

/* ----------------------------------------------------- gallery strip -- */

.gallery-strip {
  background: var(--paper);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.gallery-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.gallery-strip__head h2 { margin: 0; }
.gallery-strip__head .eyebrow { margin-bottom: .5rem; }

.marquee {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track {
  --gap: 1rem;
  display: flex;
  gap: var(--gap);
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0 var(--pad);
}
.marquee__track li { flex: none; }
.marquee__track img {
  height: clamp(150px, 20vw, 230px);
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}

/* site.js duplicates the items and adds .is-animated; without JS, or with
   reduced motion, the strip is simply a horizontal scroller. */
.marquee.is-animated { overflow: hidden; }
.marquee.is-animated .marquee__track {
  padding: 0;
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}
.marquee.is-animated:hover .marquee__track,
.marquee.is-animated:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee.is-animated .marquee__track { animation: none; }
  .marquee.is-animated { overflow-x: auto; }
}

/* ------------------------------------------------------------- events -- */

.btn--muted { background: var(--sand); color: var(--brand-deep); border-color: var(--line-2); }
.btn--muted:hover { background: var(--paper); color: var(--brand); border-color: var(--brand); }

.event-list { display: grid; gap: 1.25rem; }
.event-list__past-head { margin-top: 3.5rem; font-size: 1.4rem; }

.event-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.event-card--past { opacity: .75; }
.event-card__date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 1rem;
  line-height: 1.1;
}
.event-card__date .m {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
}
.event-card__date .d {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--brand-deep);
}
.event-card__date .y { display: block; font-size: .8rem; color: var(--ink-mute); }
.event-card h3 { margin-bottom: .3rem; }
.event-card h3 a { color: inherit; text-decoration: none; }
.event-card h3 a:hover { color: var(--ember); }
.event-card p { font-size: .95rem; color: var(--ink-soft); }
.event-card .btn-row { margin-top: 1rem; }
@media (max-width: 560px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card__date { border-right: 0; padding-right: 0; text-align: left; display: flex; gap: .5rem; align-items: baseline; }
  .event-card__date .d { font-size: 1.4rem; }
}

.event-hero {
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(239, 139, 60, .10) 0%, rgba(239, 139, 60, 0) 55%),
    var(--cream);
  padding-block: clamp(2.75rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.event-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.event-hero__grid--solo { grid-template-columns: minmax(0, 46rem); }
.event-hero__img { max-width: 380px; width: 100%; margin-inline: auto; }
.event-hero .eyebrow a { color: inherit; text-decoration: none; }
.event-hero .eyebrow a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .event-hero__grid { grid-template-columns: 1fr; }
  .event-hero__img { order: -1; max-width: 260px; }
}

.event-notice {
  background: var(--brand-deep);
  color: #fff;
  padding-block: .85rem;
  font-size: .95rem;
}
.event-notice .wrap { text-align: center; }

.prose h3 { margin-top: 1.75rem; }

/* ------------------------------------------------------ speaker photo -- */
/* Placement is chosen per event in /admin (lib/events.js renders it). The
   crop is pure CSS; the focus-* class keeps the face in frame. */

/* --fy is where the face sits vertically; it drives both the crop and the
   point a round photo zooms toward. */
.focus-top    { object-position: 50% 18%; --fy: 20%; }
.focus-middle { object-position: 50% 50%; --fy: 50%; }
.focus-bottom { object-position: 50% 82%; --fy: 80%; }

/* Round frame + zoom. crop-* sets how far in. */
.photo-round {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: var(--sand);
  /* Safari clips transformed children to a radius only with this */
  isolation: isolate;
}
.photo-round__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1.7));
  transform-origin: 50% var(--fy, 20%);
}
.crop-close     { --zoom: 2.6; }
.crop-shoulders { --zoom: 1.7; }
.crop-full      { --zoom: 1; }

.photo-badge {
  flex: none;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(20, 59, 76, .14);
}
.photo-badge--sm { width: 3.25rem;  height: 3.25rem; border-width: 2px; }
.photo-badge--md { width: 5.25rem;  height: 5.25rem; }
.photo-badge--lg { width: 7.5rem;   height: 7.5rem; }

.upcoming__teaser-row { display: flex; align-items: flex-start; gap: .9rem; }

/* Corner badge on the left: badge first, title beside it. */
.event-hero__head--left { justify-content: flex-start; }
.event-hero__head--left > .photo-badge { order: -1; }

/* Events list card thumbnail. */
.event-card__body--photo { position: relative; padding-right: 6.5rem; }
.event-card__photo { position: absolute; top: 0; right: 0; }
@media (max-width: 560px) {
  .event-card__body--photo { padding-right: 0; }
  .event-card__photo { position: static; margin-bottom: .75rem; }
}

/* Event page — front and center: portrait in the hero's right column. */
.event-hero__portrait {
  position: relative;
  max-width: 380px;
  width: 100%;
  margin-inline: auto;
}
.event-hero__portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  background: var(--sand);
}
.event-hero__portrait-logo {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  background: var(--paper);
  border-radius: 50%;
  padding: .5rem;
  box-shadow: var(--shadow);
}
.event-hero__portrait-cap {
  margin: .9rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--brand-deep);
}
.event-hero__portrait-cap span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .85rem;
  color: var(--ink-mute);
}
@media (max-width: 900px) {
  .event-hero__portrait { order: -1; max-width: 260px; }
}

/* Event page — front and center, above or below the title: a wide photo
   in the main column. */
.event-hero__feature { margin: 0 0 1.75rem; max-width: 46rem; }
.event-hero__feature--below { margin-top: .25rem; }
.event-hero__feature-frame { position: relative; }
.event-hero__feature-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--sand);
}
.event-hero__feature figcaption .event-hero__portrait-cap { text-align: left; margin-top: .6rem; }
.event-hero__feature figcaption .event-hero__portrait-cap span { display: inline; margin-left: .4rem; }
@media (max-width: 560px) {
  .event-hero__feature figcaption .event-hero__portrait-cap span { display: block; margin-left: 0; }
}

/* Event page — corner badge beside the title. */
.event-hero__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.event-hero__head h1 { margin-bottom: .35em; }
@media (max-width: 560px) {
  .event-hero__head { flex-direction: column-reverse; align-items: flex-start; gap: .75rem; }
  /* the left variant reorders the badge first, so stack it the plain way */
  .event-hero__head--left { flex-direction: column; }
}

/* Event page — with the speaker bio. */
.speaker-feature {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}
.speaker-feature__img {
  width: 100%;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
@media (max-width: 640px) {
  .speaker-feature { grid-template-columns: 1fr; }
  .speaker-feature__img { width: 9rem; }
}

/* ---------------------------------------------------------- countdown -- */

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  margin-top: 1.75rem;
}
.countdown__unit { text-align: left; }
.countdown__n {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__l {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* -------------------------------------------------------------- cards -- */

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }

.card--accent { border-top: 3px solid var(--ember); }

.icon-rule {
  width: 2.25rem;
  height: 3px;
  background: var(--orange);
  border: 0;
  margin: 0 0 1.25rem;
}

/* ----------------------------------------------------------- timeline -- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: .3125rem;
  top: .55rem;
  bottom: .55rem;
  width: 1px;
  background: var(--line-2);
}
.timeline li {
  position: relative;
  padding: 0 0 2.25rem 2.25rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--brand);
}
.timeline li.is-next::before { background: var(--ember); border-color: var(--ember); }
.timeline__year {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
  display: block;
  line-height: 1.2;
}
.timeline p { margin: .35rem 0 0; font-size: .95rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- tables -- */

.table-scroll { overflow-x: auto; margin-block: 1.5rem; }

table.data {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .9375rem;
}
table.data th, table.data td {
  text-align: left;
  padding: .85rem 1rem .85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom-color: var(--line-2);
}
table.data td:first-child {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--brand);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- faq -- */

.faq { border-top: 1px solid var(--line); max-width: var(--measure); }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .5rem;
  top: 50%;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--ember); }
.faq .faq__a { padding: 0 0 1.5rem; color: var(--ink-soft); font-size: .975rem; }
.faq .faq__a p { max-width: 62ch; }

/* -------------------------------------------------------------- photos -- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
}
.gallery figcaption {
  padding: .8rem 1rem;
  font-size: .8125rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.empty-state {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  background: var(--paper);
}
.empty-state p { margin-inline: auto; }

/* ------------------------------------------------------------- embed --- */

.embed-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.embed-frame iframe {
  display: block;
  width: 100%;
  min-height: 1100px;
  border: 0;
}

.notice {
  border-left: 3px solid var(--orange);
  background: var(--sand);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.notice strong { color: var(--brand-deep); }

/* --------------------------------------------------------------- foot -- */

.site-foot {
  background: var(--brand-deep);
  color: #b9cdd6;
  font-size: .9rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-foot h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.site-foot a { color: #cfe2ea; text-decoration: none; }
.site-foot a:hover { color: var(--orange); text-decoration: underline; }
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
}
@media (max-width: 720px) { .site-foot__grid { grid-template-columns: 1fr; } }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-foot__mark { width: 46px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.site-foot__bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .8125rem;
  color: #8ba6b2;
}
.site-foot__credit a { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------- misc -- */

.page-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
}
.page-head p.lede { margin-top: .5rem; }

.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { max-width: var(--measure); padding-left: 1.1rem; }
.prose li { margin-bottom: .5rem; }

.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 100px;
  background: var(--sand);
  color: var(--brand);
  border: 1px solid var(--line-2);
}
.tag--next { background: var(--ember); color: #fff; border-color: var(--ember); }

.center { text-align: center; }
.center p { margin-inline: auto; }
.stack > * + * { margin-top: 1.25rem; }

[hidden] { display: none !important; }
