:root {
  --bg: #fff9f2;
  --ink: #3d2b56;
  --brand-pink: #FE9EC7;
  --brand-yellow: #F9F6C4;
  --brand-sky: #89D4FF;
  --brand-blue: #44ACFF;
  --brand-red: #EB4C4C;
  --brand-coral: #FF7070;
  --brand-blush: #FFA6A6;
  --brand-cream: #FFEDC7;
  --pink: #ffd7e7;
  --lavender: #e6ddff;
  --mint: #d7f7e7;
  --peach: #ffe5c7;
  --sky: #d9f2ff;
  --accent: #ff7ab6;
  --accent-2: #7f77ff;
  --paper-shadow: 0 12px 0 rgba(98, 79, 132, 0.12), 0 20px 40px rgba(50, 27, 88, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 5%, #fff6db 0, transparent 30%),
    radial-gradient(circle at 90% 25%, #ffe0f1 0, transparent 30%),
    radial-gradient(circle at 10% 80%, #d9f3ff 0, transparent 35%),
    var(--bg);
  line-height: 1.45;
}

.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.18;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 16px 16px;
}

.wrapper {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Shared nav styles for all pages */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(4px);
  background: rgba(255, 249, 242, 0.78);
  border-bottom: 2px dashed #c9bbdb;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
}

.nav-pill {
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid #6a567f;
  border-radius: 999px;
  padding: 0.38rem 1rem;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(106, 86, 127, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(106, 86, 127, 0.28);
  background: var(--brand-yellow);
}

.nav-pill.active {
  background: var(--brand-pink);
}

.hero {
  text-align: center;
  padding: 2.3rem 0 1.6rem;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.9rem;
  background: var(--mint);
  border: 2px dashed #82b8a0;
  border-radius: 999px;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Patrick Hand", cursive;
  line-height: 1.1;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 0.8rem 0 0.5rem;
}

.hero-copy {
  margin: 0 auto;
  max-width: 40ch;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
}

.hero-subtitle {
  margin: 0.25rem auto 0.55rem;
  max-width: 42ch;
  font-size: clamp(1.12rem, 2.1vw, 1.5rem);
  font-weight: 700;
}

/* Homepage-only width controls for cleaner desktop layout */
.home-main {
  width: min(980px, 92vw);
}

.home-main > section {
  margin-inline: auto;
}

.sticker,
.timeline-section {
  margin: 1.2rem 0 2rem;
  border: 3px solid #6a567f;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--paper-shadow);
  padding: clamp(1rem, 2.5vw, 1.8rem);
  position: relative;
}

.sticker::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 20px;
  width: 66px;
  height: 20px;
  transform: rotate(8deg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(86, 66, 122, 0.2);
  border-radius: 4px;
}

.countdown-block {
  background: linear-gradient(140deg, var(--pink), var(--lavender));
}

.countdown-label {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.9rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: clamp(0.55rem, 1.2vw, 1rem);
}

.time-bubble {
  background: #fff;
  border-radius: 18px;
  border: 2px solid #6a567f;
  text-align: center;
  padding: 0.8rem 0.4rem;
}

.time-value {
  display: block;
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 800;
  color: #52379b;
  line-height: 1;
}

.time-unit {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.countdown-message {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: #843056;
}

.countdown-note {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline-section {
  background: linear-gradient(180deg, #ffffff, #fffdf8);
}

.timeline-section:nth-of-type(2) {
  background: linear-gradient(180deg, #fefcff, #f8fcff);
}

.timeline-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.timeline-table-wrap {
  border: 2px dashed #c9b9dd;
  border-radius: 16px;
  background: #fff;
  overflow-x: auto;
}

.timeline-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 0;
}

.timeline-col-time {
  width: 11.5rem;
}

.timeline-col-activity {
  width: auto;
}

.timeline-col-location {
  width: 10rem;
}

.timeline-table th,
.timeline-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.timeline-table thead th {
  background: linear-gradient(140deg, var(--brand-yellow), #fff8cf);
  font-size: 1.02rem;
  border-bottom: 2px solid #d6c6e7;
}

.timeline-table thead th:first-child {
  border-top-left-radius: 12px;
}

.timeline-table thead th:last-child {
  border-top-right-radius: 12px;
}

.timeline-table tbody tr:nth-child(odd) {
  background: #fffdf6;
}

.timeline-table tbody tr:nth-child(even) {
  background: #fbf8ff;
}

.timeline-table tbody td {
  border-bottom: 1px dashed #dfd2eb;
}

.timeline-table tbody tr:last-child td {
  border-bottom: 0;
}

.timeline-table td:first-child {
  font-weight: 800;
  color: #4f3f74;
  white-space: nowrap;
}

.timeline-table td:last-child {
  font-weight: 700;
  color: #5f5188;
  white-space: nowrap;
}

.timeline-desktop {
  display: block;
}

.timeline-mobile {
  display: none;
}

/* Explicit desktop visibility rules */
@media (min-width: 761px) {
  .timeline-desktop {
    display: block !important;
  }

  .timeline-mobile {
    display: none !important;
  }
}

.timeline-mobile-card {
  border: 2px dashed #dfd2eb;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.7rem;
  background: #fff;
}

.timeline-mobile-card:last-child {
  margin-bottom: 0;
}

.timeline-mobile-card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.timeline-mobile-card strong {
  color: #4f3f74;
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.timeline-list li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  align-items: start;
  gap: 0.9rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: #fff;
  border: 2px dashed #d6cae6;
}

.time-tag {
  display: inline-block;
  background: var(--peach);
  border: 2px solid #d5a777;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.timeline-list p {
  margin: 0.1rem 0 0;
}

.organisers-section {
  background: linear-gradient(140deg, var(--sky), var(--mint));
  margin-bottom: 3rem;
}

.organisers-section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  margin-bottom: 0.4rem;
}

.organiser-intro {
  margin-top: 0;
  font-size: 1.05rem;
}

.organiser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin-inline: auto;
}

.organiser-card {
  text-align: center;
  background: #fff;
  border: 2px solid #5f5188;
  border-radius: 16px;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}

.organiser-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 2px dashed #a491c5;
  border-radius: 14px;
  background: #f4f0ff;
}

.organiser-card .organiser-avatar {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-inline: auto;
}

.organiser-card h3 {
  font-size: 1.35rem;
  margin: 0.45rem 0 0.2rem;
}

.organiser-card a {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.organiser-card a:hover,
.organiser-card a:focus-visible {
  color: var(--accent);
}

.supporters-section {
  background: linear-gradient(140deg, #fff6e8, #ffeef7);
  margin-bottom: 3rem;
}

.supporters-section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  margin-bottom: 0.35rem;
}

.supporters-intro {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.supporters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.supporter-card {
  background: #fff;
  border: 2px solid #5f5188;
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 7px 0 rgba(95, 81, 136, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.supporter-card img {
  display: block;
  width: min(100%, 280px);
  max-width: 100%;
  max-height: 185px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 0.8rem;
  border-radius: 14px;
  border: 2px dashed #a491c5;
  background: #f9f6ff;
}

.supporter-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.supporter-card p {
  margin-top: 0;
  max-width: 42ch;
}

.supporter-link {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.9rem;
  border: 2px solid #5f5188;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.supporter-link:hover,
.supporter-link:focus-visible {
  background: var(--brand-pink);
}

@media (max-width: 800px) {
  .timeline-list li {
    grid-template-columns: 1fr;
  }

  .supporters-grid {
    grid-template-columns: 1fr;
  }

  .organiser-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

@media (max-width: 540px) {
  .countdown-grid {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
  }

  .organiser-card .organiser-avatar {
    width: 100%;
    height: 160px;
  }

  .organiser-card img {
    height: 160px;
  }

  .timeline-table td,
  .timeline-table th {
    font-size: 0.95rem;
  }
}

@media (max-width: 760px) {
  .timeline-desktop {
    display: none !important;
  }

  .timeline-mobile {
    display: block !important;
  }
}

/* -------------------------------------------
   Projects page styles (scoped to body class)
-------------------------------------------- */
.projects-page main {
  padding: 1.2rem 0 3rem;
}

.projects-page .is-hidden,
.projects-page [hidden] {
  display: none !important;
}

.projects-intro {
  background: linear-gradient(150deg, var(--brand-yellow), #fff);
  margin-top: 0.4rem;
}

.projects-intro h1 {
  margin-bottom: 0.4rem;
}

.projects-intro p {
  margin-bottom: 0;
  max-width: 62ch;
}

.cohort-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}

.cohort-card {
  border: 3px solid #5f5188;
  border-radius: 22px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  box-shadow: var(--paper-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cohort-card:hover,
.cohort-card:focus-visible {
  transform: rotate(-1deg) translateY(-2px);
}

.cohort-card.selected {
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px #6a567f, var(--paper-shadow);
}

.kittens-card {
  background: linear-gradient(135deg, var(--brand-yellow), #fff8d8);
}

.lionesses-card {
  background: linear-gradient(135deg, var(--brand-sky), #e8f6ff);
}

.cohort-emoji {
  display: block;
  font-size: 2rem;
}

.cohort-title {
  display: block;
  margin-top: 0.2rem;
  font-family: "Patrick Hand", cursive;
  font-size: 2rem;
}

.cohort-copy {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
}

.projects-display {
  background: #fff;
}

.pick-message {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.selection-tools {
  margin-bottom: 1rem;
}

.selected-cohort-text {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.switch-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.switch-btn {
  border: 2px solid #6a567f;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.switch-btn:hover,
.switch-btn:focus-visible {
  background: #f4ecff;
}

.choose-again {
  background: var(--brand-cream);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.project-card {
  border-radius: 16px;
  border: 2px solid #5f5188;
  padding: 0.9rem;
  box-shadow: 0 7px 0 rgba(95, 81, 136, 0.16);
}

.project-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.project-card p {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.kittens-tone {
  background: linear-gradient(145deg, #fff7ca, #fff);
}

.lionesses-tone {
  background: linear-gradient(145deg, #d8eeff, #f9fdff);
}

.wildcard-tone {
  background: linear-gradient(145deg, #fff6ea, #fff0f7);
}

.build-your-own {
  border-style: dashed;
  border-color: #8b6a8f;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-row span {
  border-radius: 999px;
  border: 1.5px solid #7c6499;
  background: #fff;
  padding: 0.15rem 0.58rem;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .cohort-selector {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------
   Resources page styles (scoped to body class)
-------------------------------------------- */
.resources-page main {
  padding: 1.2rem 0 3rem;
}

.resources-page .is-hidden,
.resources-page [hidden] {
  display: none !important;
}

.resources-intro {
  background: linear-gradient(150deg, #ffe8f4, #fff7ce);
  margin-top: 0.4rem;
}

.resources-intro h1 {
  margin-bottom: 0.4rem;
}

.resources-intro p {
  margin-bottom: 0;
  max-width: 62ch;
}

.resources-display {
  background: #fff;
}

.resource-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.resource-card {
  border-radius: 16px;
  border: 2px solid #5f5188;
  padding: 0.9rem;
  box-shadow: 0 7px 0 rgba(95, 81, 136, 0.16);
}

.resource-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.resource-card p {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.resource-kittens-tone {
  background: linear-gradient(145deg, #fff7ca, #fff);
}

.resource-lionesses-tone {
  background: linear-gradient(145deg, #d8eeff, #f9fdff);
}

.resource-neutral-tone {
  background: linear-gradient(145deg, #fff6ea, #fff0f7);
  border-style: dashed;
  border-color: #8b6a8f;
}

.help-card {
  margin-top: 1rem;
}

.resource-btn {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.88rem;
  border: 2px solid #5f5188;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.resource-btn:hover,
.resource-btn:focus-visible {
  background: var(--brand-yellow);
}

.resource-btn[aria-disabled="true"] {
  background: #fffdf3;
  cursor: default;
}
