/* ============================================================
   Transition Sundays — style.css
   Vanilla CSS, no preprocessors, no frameworks.
   Organized by section in page order: tokens → hero → about →
   legend → activities → upcoming → ideas → stable → cta → footer
   → modal. Each section is independently editable.
   ============================================================ */

/* ---------- Tokens ---------------------------------------- */
:root {
  /* Palette pulled from Kathy's drawings — these drive the five
     activity-type colors AND the small accent uses across the page.
     Change these to recolor everything coherently. */
  --c-information: #4a6b8a;
  --c-skill:       #2a8c93;
  --c-discuss:     #b54a7a;
  --c-group:       #c98a3a;
  --c-work:        #6e8f3a;
  --c-experts:     #8a3346;
  --c-interest:    #6b5b95;   /* Interest Group (muted purple) */
  --c-meal:        #bf6b29;   /* Meal accent (warm amber) */
  --c-meal-bg:     #fdf3cf;   /* Meal card highlight (butter yellow) */

  /* Surfaces */
  --c-bg:        #efe6d2;   /* warm kraft cream — page bg */
  --c-paper:     #fffdf5;   /* activity card / modal bg */
  --c-sticky:    #fef4e6;   /* date + location stickies */
  --c-cta:       #2a8c93;   /* signal CTA panel */

  /* Ink */
  --c-ink:       #1a1815;   /* title-strength */
  --c-body:      #3a3833;   /* body copy */
  --c-muted:     #5a5752;   /* meta / Caveat labels */
  --c-rule:      rgba(0,0,0,0.18);

  /* Type families */
  --f-sans: 'Bricolage Grotesque', system-ui, -apple-system, Segoe UI, sans-serif;
  --f-hand: 'Caveat', cursive;
  --f-serif: 'Newsreader', Georgia, serif;

  /* Spacing rhythm */
  --pad-page:   40px;
  --gap-cards:  22px;
}

/* ---------- Reset / base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-body);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(rgba(110,90,60,0.05) 1px, transparent 1px),
    radial-gradient(rgba(110,90,60,0.04) 1px, transparent 1px);
  background-size: 8px 8px, 14px 14px;
  background-position: 0 0, 4px 7px;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px var(--pad-page) 60px;
  position: relative;
}

/* ---------- Hero (logo + corner stickies) ----------------- */
.hero {
  position: relative;
  padding-top: 18px;
  min-height: 560px;
  margin-bottom: 24px;
}
.hero__logo {
  position: relative;
  width: 94%;
  margin: 36px auto 0;
  transform: rotate(-1.2deg);
}
.hero__logo img { width: 100%; }

/* Scotch tape pieces — translucent paper with a subtle highlight. */
.tape {
  position: absolute;
  width: 90px;
  height: 34px;
  background: rgba(255,255,255,0.18);
  background-image: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.10) 30%,
    rgba(255,255,255,0.05) 60%,
    rgba(255,255,255,0.35) 100%);
  border: 1px solid rgba(255,255,255,0.35);
  clip-path: polygon(4% 0%, 96% 2%, 100% 50%, 96% 100%, 4% 98%, 0% 50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.04) inset;
  pointer-events: none;
}
/* Corner placements on the hero logo */
.tape--corner-tl { top: -10px; left: -14px;  transform: rotate(-38deg); }
.tape--corner-tr { top: -10px; right: -14px; transform: rotate(38deg);  }
.tape--corner-bl { bottom: -10px; left: -14px;  transform: rotate(38deg);  }
.tape--corner-br { bottom: -10px; right: -14px; transform: rotate(-38deg); }
.tape--top {
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
}

/* Date + location paper stickies. Pinned just outside the hero edge. */
.sticky {
  position: absolute;
  background: var(--c-sticky);
  padding: 14px 14px 12px;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.12);
}
.sticky--date {
  width: 235px;
  top: -10px;
  left: -22px;
  transform: rotate(-3deg);
  text-align: center;
}
.sticky--location {
  width: 240px;
  top: -6px;
  right: -22px;
  transform: rotate(2.2deg);
  text-align: center;
}
.sticky--location .sticky__inner {
  display: inline-block;
  text-align: left;
}
.sticky__schedule {
  font-family: var(--f-hand);
  font-size: 24px;
  line-height: 1.15;
  color: var(--c-body);
  margin-bottom: 8px;
}
.sticky__month {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.sticky__day {
  font-size: 72px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.sticky__label {
  font-family: var(--f-hand);
  font-size: 23px;
  color: var(--c-skill);
  margin-bottom: 4px;
  line-height: 1;
}
.sticky__venue {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}
.sticky__addr { font-size: 16px; line-height: 1.35; }
.sticky__food {
  font-family: var(--f-hand);
  font-size: 19px;
  color: var(--c-skill);
  margin-top: 8px;
  line-height: 1.15;
}
.sticky__addcal {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px;
  text-decoration: none;
  color: var(--c-skill);
  font-family: var(--f-hand);
  font-size: 18px;
  line-height: 1.1;
}
.sticky__addcal svg { width: 16px; height: 16px; flex-shrink: 0; }
.sticky__addcal:hover { text-decoration: underline; }
.sticky--date { padding-bottom: 12px; }

/* ---------- Section scaffolding --------------------------- */
.section { margin-top: 48px; }
.section__title {
  font-family: var(--f-sans);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--c-ink);
}
.section__title--upcoming { margin-bottom: 32px; }
.section__kicker {
  font-family: var(--f-hand);
  font-size: 28px;
  color: var(--c-experts);
  display: inline-block;
  line-height: 1;
  margin-bottom: 4px;
  transform: rotate(-1deg);
}

/* ---------- About section --------------------------------- */
.about__columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}
.about__text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-body);
  margin: 0;
}
.about__text p + p { margin-top: 1em; }
/* Inline "learn more →" at the end of the about paragraph (like the cards'
   "(more →)" but more prominent: theme color + bold). */
.about__more {
  white-space: nowrap;
  font-weight: 700;
  color: var(--c-skill);
  text-decoration: none;
}
.about__more:hover { text-decoration: underline; }
.about__drawing {
  position: relative;
  transform: rotate(-1.2deg);
}

/* ---------- Type legend ----------------------------------- */
.type-legend {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.type-legend li {
  padding: 10px 12px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  box-shadow: 1px 2px 6px rgba(0,0,0,0.12);
}
/* Map by data-type so colors stay correct if the type order changes. */
.type-legend li[data-type="information"] { background: var(--c-information); }
.type-legend li[data-type="skill"]       { background: var(--c-skill);       }
.type-legend li[data-type="discuss"]     { background: var(--c-discuss);     }
.type-legend li[data-type="group"]       { background: var(--c-group);       }
.type-legend li[data-type="work"]        { background: var(--c-work);        }
.type-legend li[data-type="experts"]     { background: var(--c-experts);     }
.type-legend li[data-type="interest"]    { background: var(--c-interest);    }
.type-legend li[data-type="meal"]        { background: var(--c-meal);        }

/* ---------- Upcoming date row ----------------------------- */
.date-row { margin-bottom: 48px; }
.date-row__header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 8px;
}
.postmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  border: 2px solid var(--c-ink);
  padding: 6px 12px 5px;
  background: rgba(255,255,255,0.5);
  transform: rotate(-1deg);
}
.postmark__date {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.postmark__status {
  font-family: var(--f-hand);
  font-size: 18px;
  color: var(--c-experts);
}

/* Inline pager — sits with the postmark on the same row. */
.pager {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  transform: rotate(-1deg);
}
.pager__btn {
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  font-family: inherit;
  font-weight: 700;
  background: rgba(255,255,255,0.5);
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
}
.pager__btn[disabled] {
  background: transparent;
  color: rgba(44,38,32,0.25);
  border-color: rgba(44,38,32,0.2);
  cursor: default;
}
.pager__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  min-width: 32px;
  text-align: center;
}

/* Add to calendar pill — sits in the postmark header for confirmed dates */
.date-row__addcal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-sans);
  text-decoration: none;
  color: var(--c-muted);
  transform: rotate(-0.5deg);
  transition: color 0.15s, border-color 0.15s;
  align-self: center;
}
.date-row__addcal:hover {
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.date-row__addcal svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Print pill — sits next to the calendar-link pill in the postmark header */
.date-row__print {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-sans);
  color: var(--c-muted);
  cursor: pointer;
  transform: rotate(0.5deg);
  transition: color 0.15s, border-color 0.15s;
  align-self: center;
}
.date-row__print:hover {
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.date-row__print svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Share pill — sits next to the print pill in the postmark header. Same
   look as the print pill, opposite slight rotation for hand-pinned feel. */
.date-row__share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-sans);
  color: var(--c-muted);
  cursor: pointer;
  transform: rotate(-0.5deg);
  transition: color 0.15s, border-color 0.15s;
  align-self: center;
}
.date-row__share:hover {
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.date-row__share svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Section-level print pill (Events Stable) — sits inline with the
   section title, same look as the date-row pill. */
.section__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.section__print {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-sans);
  color: var(--c-muted);
  cursor: pointer;
  transform: rotate(0.5deg);
  transition: color 0.15s, border-color 0.15s;
}
.section__print:hover { color: var(--c-ink); border-color: var(--c-ink); }
.section__print svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- Activity grid + cards ------------------------- */
.cards-grid,
.date-row__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-cards);
}

.activity {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  padding: 22px 22px 18px;
  box-shadow: 2px 4px 14px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 26px,
    rgba(165, 200, 230, 0.18) 27px
  );
}
.activity--proposed {
  background: transparent;
  border: 2px dashed var(--c-muted);
  background-image: none;
}

/* Open-call invite card — fills a date row that has no activities yet.
   Inherits proposed chrome (dashed border) plus a slight tint to
   distinguish it visually from real proposed activities. */
.activity--invite {
  background: rgba(255, 253, 245, 0.6);
}
.activity--invite .activity__type {
  color: var(--c-muted);
  font-style: italic;
}

/* Eyebrow type label — small uppercase line in the type color */
.activity__type {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.activity__time {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  margin-bottom: 8px;
}
.activity__title {
  font-family: var(--f-sans);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--c-ink);
}
.activity__desc {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--c-body);
}
.activity__more {
  cursor: pointer;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.activity__more:hover { text-decoration: underline; }
.activity__led {
  font-family: var(--f-hand);
  font-size: 18px;
  color: var(--c-body);
  margin-top: auto;
  margin-bottom: 6px;
}
.activity__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--c-rule);
}
/* When led-by is present it gets the auto-margin push to the bottom; the
   actions row sits flush beneath it (no second auto margin fighting for
   the free space). */
.activity:has(.activity__led) .activity__actions { margin-top: 0; }
.activity__btn {
  padding: 7px 12px;
  background: var(--type-color, var(--c-skill));
  color: #fff;
  border: 0;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
  transform: rotate(-0.5deg);
  box-shadow: 1px 2px 4px rgba(0,0,0,0.12);
}
.activity__count {
  font-family: var(--f-hand);
  font-size: 17px;
  color: var(--c-body);
  align-self: center;
}

/* Per-type color, applied via [data-type="..."] on .activity */
.activity[data-type="information"] { --type-color: var(--c-information); }
.activity[data-type="skill"]       { --type-color: var(--c-skill); }
.activity[data-type="discuss"]     { --type-color: var(--c-discuss); }
.activity[data-type="group"]       { --type-color: var(--c-group); }
.activity[data-type="work"]        { --type-color: var(--c-work); }
.activity[data-type="experts"]     { --type-color: var(--c-experts); }
.activity[data-type="interest"]    { --type-color: var(--c-interest); }
.activity[data-type="meal"]        { --type-color: var(--c-meal); }
.activity[data-type="skill"]   .activity__type { color: var(--c-skill); }
.activity[data-type="discuss"] .activity__type { color: var(--c-discuss); }
.activity[data-type="group"]   .activity__type { color: var(--c-group); }
.activity[data-type="work"]    .activity__type { color: var(--c-work); }
.activity[data-type="experts"] .activity__type { color: var(--c-experts); }
.activity[data-type="interest"] .activity__type { color: var(--c-interest); }
.activity[data-type="meal"]    .activity__type { color: var(--c-meal); }

/* Meal highlight — a warm butter-yellow wash so a meal reads as part of the
   schedule at a glance. Overrides the paper bg + blue ruled lines with a
   warm-toned ruled line. Applies to any Meal-type card regardless of status. */
.activity[data-type="meal"] {
  background: var(--c-meal-bg);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 26px,
    rgba(191, 140, 60, 0.16) 27px
  );
}

/* The "stable" cards — no buttons, dashed border */
.stable-card {
  background: transparent;
  border: 2px dashed var(--c-ink);
  padding: 14px 18px;
  transform: rotate(-0.3deg);
}

/* ---------- CTA (#165: compact "add to the list" row) ------ */
/* Sits directly under the "Which activities should be next?" grid and
   echoes its rows: flat, 4px accent bar left, bold label left, action
   right. Teal bar + button keep it read as the action, not an entry. */
.cta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 12px;
  border-left: 4px solid var(--c-cta);
  background: none;
  color: var(--c-ink);
  text-align: left;
}
.cta__title {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  line-height: 1.25;
}
.cta__btn {
  display: inline-block;
  background: var(--c-cta);
  color: #fffdf5;
  padding: 9px 16px;
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- Footer ---------------------------------------- */
.footer {
  margin-top: 36px;
  font-family: var(--f-hand);
  font-size: 20px;
  color: var(--c-muted);
  text-align: center;
  transform: rotate(-0.3deg);
}

/* ---------- Modal (activity detail popup) ----------------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20,18,15,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 50;
}
.modal[hidden] { display: none; }
.modal__sheet {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  background: var(--c-paper);
  padding: 32px 36px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.05);
  transform: rotate(-0.4deg);
}
.modal__close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: none;
  font: 24px / 1 'Newsreader', serif;
  color: var(--c-muted);
}
.modal__type {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal__title {
  font-family: var(--f-sans);
  font-size: 32px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--c-ink);
}
.modal__desc {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 20px;
  color: #2a2825;
}
.modal__meta {
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-body);
}
.modal__meta dt {
  font-family: var(--f-hand);
  font-size: 18px;
  color: var(--c-muted);
}
.modal__meta dd { margin: 0; }
.modal-notes { margin: 0 0 16px; }
.modal-notes__title {
  margin: 0 0 8px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.modal-notes__item { margin-bottom: 8px; }
.modal-notes__date {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
}
.modal-notes__text {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.45;
}
.modal__btn {
  padding: 10px 16px;
  border: 0;
  color: #fff;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Activity photos: card badge, modal gallery, lightbox ---------- */
.activity__photos-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-skill);
  cursor: pointer;
  background: rgba(255, 253, 245, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  padding: 2px 9px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.10);
}
.activity__photos-badge:hover { background: #fff; }

/* Gallery sits at the top of the detail modal, full-bleed (sheet pad 32/36/28). */
.modal-gallery { margin: -32px -36px 20px; }
.modal-gallery[hidden] { display: none; }
.modal-gallery__hero { position: relative; margin: 0; display: block; cursor: zoom-in; }
.modal-gallery__hero img { display: block; width: 100%; height: 300px; object-fit: cover; }
.modal-gallery__zoom {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 18, 15, 0.55);
  border-radius: 999px;
  padding: 3px 10px;
  pointer-events: none;
}
.modal-gallery__film {
  display: flex;
  gap: 10px;
  padding: 12px 36px 2px;
  overflow-x: auto;
}
.modal-gallery__film button {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  line-height: 0;
}
.modal-gallery__film button.is-active { border-color: var(--c-skill); }
.modal-gallery__film img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 2px;
}

/* Close button gets a scrim only when it sits over a full-bleed hero photo. */
.modal__sheet:has(.modal-gallery:not([hidden])) .modal__close {
  z-index: 3;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.5);
  color: #fff;
  top: 10px;
  right: 12px;
}

/* Fullscreen photo lightbox (dependency-free). */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(58, 56, 51, 0.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  background: var(--c-paper);
  padding: 8px;
  border-radius: 2px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 22px;
  font: 34px / 1 'Newsreader', serif;
  color: #f3ecdd;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 46px;
  color: #f3ecdd;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 18px;
  line-height: 1;
}
.lightbox__prev { left: 6px; }
.lightbox__next { right: 6px; }

/* ---------- Responsive ------------------------------------ */
@media (max-width: 860px) {
  .page { padding: 24px 20px 48px; }
  .hero { min-height: 0; padding-top: 36px; }
  .hero__logo { width: 100%; margin-top: 56px; }
  .sticky--date     { position: static; transform: rotate(-2deg); margin: 0 auto 16px; width: 225px; }
  .sticky--location { position: static; transform: rotate(1.5deg); margin: 0 auto 16px; width: 275px; }
  .about__columns { grid-template-columns: 1fr; }
  .about__drawing { max-width: 360px; margin: 0 auto; }
  .type-legend    { grid-template-columns: repeat(2, 1fr); }
  .cards-grid,
  .date-row__cards { grid-template-columns: 1fr; }
  .section__title { font-size: 32px; }
}

/* ---------- Print picker modal ---------- */
#print-modal[hidden] { display: none; }
#print-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#print-modal .modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
#print-modal .modal__panel {
  position: relative;
  background: var(--c-paper);
  padding: 28px;
  max-width: 460px;
  width: calc(100% - 32px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-family: var(--f-sans);
}
#print-modal .modal__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}
.print-choices {
  display: grid;
  gap: 12px;
}
.print-choice {
  display: block;
  padding: 16px 18px;
  border: 2px solid var(--c-ink);
  text-decoration: none;
  color: var(--c-ink);
  background: var(--c-paper);
  transition: transform 0.1s, background 0.15s;
}
.print-choice:hover {
  background: var(--c-sticky);
  transform: translateY(-1px);
}
.print-choice__label {
  display: block;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.print-choice__hint {
  display: block;
  font-size: 13px;
  color: var(--c-muted);
}
.print-choice__filter {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  color: var(--c-accent, var(--c-ink));
  font-weight: 700;
}
/* In sunday/stable modes the All/Confirmed filter is meaningless, so hide
   the filter label and the two extra "confirmed only" cells. Mode toggles
   via data-mode on the .print-choices container at modal open time. */
.print-choices[data-mode="sunday"] .print-choice--confirmed,
.print-choices[data-mode="stable"] .print-choice--confirmed { display: none; }
.print-choices[data-mode="sunday"] .print-choice__filter,
.print-choices[data-mode="stable"] .print-choice__filter { display: none; }
.print-choices[data-mode="month"] {
  grid-template-columns: 1fr 1fr;
}
#print-modal .modal__close {
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--c-rule);
  padding: 6px 14px;
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--c-muted);
  cursor: pointer;
}

/* ---------- Share modal ---------- */
#share-modal[hidden] { display: none; }
#share-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#share-modal .modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
#share-modal .modal__panel {
  position: relative;
  background: var(--c-paper);
  padding: 28px;
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-family: var(--f-sans);
}
#share-modal .modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.share-modal__hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.45;
}
.share-modal__text {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--c-rule);
  background: var(--c-sticky);
  padding: 12px 14px;
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-body);
}
.share-modal__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.share-modal__copy {
  padding: 10px 18px;
  border: 0;
  background: var(--c-cta);
  color: #fffdf5;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transform: rotate(-0.5deg);
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.12);
}
.share-modal__image {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--c-rule);
  padding-bottom: 1px;
}
.share-modal__image:hover { border-color: var(--c-ink); }
#share-modal .modal__close {
  margin-top: 18px;
  background: transparent;
  border: 1px solid var(--c-rule);
  padding: 6px 14px;
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--c-muted);
  cursor: pointer;
}

/* ---------- Propose modal (email composer) ----------------- */
#propose-modal .modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
#propose-modal .modal__panel {
  position: relative;
  background: var(--c-paper);
  padding: 28px;
  max-width: 520px;
  width: calc(100% - 32px);
  max-height: min(88vh, 88dvh);
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-family: var(--f-sans);
}
#propose-modal .modal__close {
  position: static;   /* undo the activity modal's absolute top-right */
  margin-top: 18px;
  background: transparent;
  border: 1px solid var(--c-rule);
  padding: 6px 14px;
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--c-muted);
  cursor: pointer;
}
/* display:flex below would defeat the hidden attribute — restate it. */
.propose-form[hidden],
.propose-result[hidden] { display: none; }
/* long address must wrap, not overflow, on narrow phones */
#propose-modal [data-propose-addr] { overflow-wrap: anywhere; }
.propose-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.propose-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
}
.propose-form input,
.propose-form select,
.propose-form textarea {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--c-ink);
  padding: 9px 11px;
  border: 1px solid var(--c-rule);
  background: var(--c-sticky);
  resize: vertical;
}
.propose-form__submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 18px;
  border: 0;
  background: var(--c-cta);
  color: #fffdf5;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.propose-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
/* Primary action = the mailto (the flow on phones); Copy is the fallback. */
.propose-result__mailto {
  display: block;
  padding: 12px 20px;
  background: var(--c-cta);
  color: #fffdf5;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.propose-result__copy {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--c-rule);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.propose-result .share-modal__text { min-height: 180px; }
.propose-result__back {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
  cursor: pointer;
}
.propose-result__back:hover { color: var(--c-ink); }

/* ---------- About page (about.html) ----------------------- */
.about-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 24px 80px;
  position: relative;
}
.topbar { margin-bottom: 28px; }
.backlink {
  font-family: var(--f-hand);
  font-size: 22px;
  color: var(--c-skill);
  text-decoration: none;
}
.backlink:hover { text-decoration: underline; }

/* clearfix so floated figures stay contained in their block */
.ap-hero::after, .ap-sec::after { content: ""; display: block; clear: both; }

/* Masthead */
.ap-hero { position: relative; margin: 6px 0 14px; }
.ap-title {
  font-family: var(--f-sans);
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 6px 0 0;
  color: var(--c-ink);
}
.ap-lede {
  font-family: var(--f-serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--c-body);
  margin: 18px 0 0;
}
.ap-lede em { color: var(--c-experts); font-style: italic; }
.ap-figure--person {
  float: right;
  width: 130px;
  margin: 2px -4px 8px 24px;
  transform: rotate(4deg);
}
.ap-figure--person img { filter: drop-shadow(2px 4px 5px rgba(0,0,0,.12)); }

/* Sections */
.ap-sec { margin-top: 52px; position: relative; }
.ap-sec h2 {
  font-family: var(--f-sans);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 0 0 12px;
}
.ap-sec p { font-size: 17px; line-height: 1.62; margin: 0 0 14px; color: var(--c-body); }
.ap-sec p strong { color: var(--c-ink); }

/* handwritten refrain */
.ap-quote {
  font-family: var(--f-hand);
  font-size: 32px;
  line-height: 1.1;
  color: var(--c-discuss);
  text-align: center;
  margin: 32px auto;
  max-width: 520px;
  transform: rotate(-1deg);
}

/* example list with stars */
.ap-examples { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 10px; }
.ap-examples li {
  position: relative;
  padding-left: 34px;
  font-size: 17px;
  line-height: 1.45;
}
.ap-examples li::before {
  content: "\2605";
  position: absolute;
  left: 0; top: -2px;
  font-size: 20px;
  color: var(--c-group);
}
.ap-examples li:nth-child(2)::before { color: var(--c-skill); }
.ap-examples li:nth-child(3)::before { color: var(--c-discuss); }
.ap-examples li:nth-child(4)::before { color: var(--c-work); }

/* floated spot images — illustration crops + the one photo, same treatment */
.ap-figure img { width: 100%; display: block; filter: drop-shadow(2px 4px 6px rgba(0,0,0,.14)); }
.ap-figure--left  { float: left;  margin: 2px 26px 10px -10px; transform: rotate(-2deg); }
.ap-figure--right { float: right; margin: 2px -10px 10px 28px; transform: rotate(2deg); }
.ap-figure--walk   { width: 235px; }
.ap-figure--nature { width: 200px; }

/* fit / not-a-fit */
.ap-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.ap-fit__card {
  background: var(--c-paper);
  padding: 16px 18px;
  box-shadow: 2px 4px 10px rgba(0,0,0,.10);
}
.ap-fit__card:first-child { transform: rotate(-0.8deg); }
.ap-fit__card:last-child { transform: rotate(0.8deg); }
.ap-fit__head { font-family: var(--f-hand); font-size: 24px; line-height: 1; margin-bottom: 8px; }
.ap-fit__card--yes .ap-fit__head { color: var(--c-work); }
.ap-fit__card--no .ap-fit__head { color: var(--c-experts); }
.ap-fit ul { list-style: none; padding: 0; margin: 0; }
.ap-fit li { font-size: 15.5px; line-height: 1.5; padding-left: 22px; position: relative; margin-bottom: 4px; }
.ap-fit__card--yes li::before { content: "\2713"; color: var(--c-work); position: absolute; left: 0; }
.ap-fit__card--no li::before { content: "\2715"; color: var(--c-experts); position: absolute; left: 0; }

/* role index cards */
.ap-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 10px; }
.ap-role {
  position: relative;
  background: var(--c-sticky);
  padding: 16px 16px 14px;
  box-shadow: 2px 4px 9px rgba(0,0,0,.12);
}
.ap-role:nth-child(1) { transform: rotate(-1.4deg); }
.ap-role:nth-child(2) { transform: rotate(1.2deg); }
.ap-role:nth-child(3) { transform: rotate(0.9deg); }
.ap-role:nth-child(4) { transform: rotate(-1.1deg); }
.ap-role .tape { top: -12px; left: 50%; width: 76px; height: 26px; }
.ap-role h3 { font-family: var(--f-sans); font-size: 18px; margin: 4px 0 4px; color: var(--c-ink); }
.ap-role p { font-size: 14.5px; line-height: 1.45; margin: 0; color: var(--c-muted); }

/* organizing note */
.ap-note { background: var(--c-paper); padding: 18px 20px; box-shadow: 2px 4px 10px rgba(0,0,0,.08); margin-top: 18px; }
.ap-note p { margin: 0 0 10px; font-size: 16px; }
.ap-note p:last-child { margin-bottom: 0; }

/* collapsible runbook (clean editorial accordion) */
.ap-runbook { margin-top: 58px; clear: both; }
.ap-details { border-top: 2px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); }
.ap-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 2px;
  font-family: var(--f-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ap-details > summary::-webkit-details-marker { display: none; }
.ap-details > summary .sub { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 17px; color: var(--c-muted); }
.ap-details > summary .chev { margin-left: auto; transition: transform .2s ease; color: var(--c-skill); font-size: 28px; }
.ap-details[open] > summary .chev { transform: rotate(90deg); }
.runbook-body { padding: 6px 0 30px; }
.runbook-body > p { font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--c-muted); margin: 0 0 24px; }
.phase { display: grid; grid-template-columns: 150px 1fr; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--c-rule); }
.phase__when { font-family: var(--f-sans); font-weight: 700; font-size: 16px; color: var(--c-experts); }
.phase ul { margin: 0; padding-left: 18px; }
.phase li { font-family: var(--f-serif); font-size: 16px; line-height: 1.55; margin-bottom: 5px; }
.role-tag {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-skill);
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 5px;
}

/* footer */
.ap-foot {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 2px dotted var(--c-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.ap-foot .credit { font-family: var(--f-hand); font-size: 20px; color: var(--c-muted); }

@media (max-width: 620px) {
  .ap-figure--person { display: none; }
  .ap-fit, .ap-roles { grid-template-columns: 1fr; }
  .ap-figure--left, .ap-figure--right { float: none; display: block; margin: 0 auto 16px; }
  .ap-figure--walk { width: 260px; }
  .ap-figure--nature { width: 190px; }
  .phase { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- "Which activities should be next?": compact rows ---------- */
.pastprop .section__intro { margin-bottom: 18px; }
.pastprop__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
}
.pastprop__row {
  /* reset inherited .activity card chrome */
  background: none;
  box-shadow: none;
  background-image: none;
  border-radius: 0;
  /* compact single-line layout */
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  margin: 0;
  min-height: 0;
  border-left: 4px solid var(--type-color, var(--c-skill));
}
.pastprop__name {
  /* <button> reset → reads as a bold, clickable label */
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  text-align: left;
  color: var(--c-ink, #1a1815);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pastprop__name:hover { text-decoration: underline; }
.pastprop__name:focus-visible { outline: 2px solid var(--type-color, var(--c-skill)); outline-offset: 2px; }
.pastprop__spark { display: inline-flex; align-items: center; }
.pastprop__spark .spark { display: block; }
.pastprop__count {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;  /* override handwriting font */
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
  min-width: 1.4em;
  text-align: right;
  color: var(--c-muted, #5a5752);
}
.pastprop__btn {
  padding: 6px 9px;
  text-transform: none;  /* override .activity__btn uppercase */
  transform: none;       /* override .activity__btn rotate */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pastprop__btn svg { width: 16px; height: 16px; display: block; }
@media (max-width: 860px) {
  .pastprop__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pastprop__row { gap: 8px; padding: 7px 6px; }
  .pastprop__btn { padding: 6px 8px; }
  /* On phones the name column is too narrow to ellipsis usefully (several
     "Ethical Tech: …" rows would read identically), so let the full name wrap. */
  .pastprop__name { white-space: normal; overflow: visible; text-overflow: clip; }
}
