/* ---------- Fonts ---------- */

@font-face {
  font-family: "Ancizar Sans";
  src: url("../assets/fonts/AncizarSans-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Ancizar Sans";
  src: url("../assets/fonts/AncizarSans-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

/* ---------- Settings ---------- */

:root {
  --night: #10103a;
  --cream: #fdf1ed;
  --teal: #00a5a3;
  --pink: #fa2885;
  --orange: #ff5c12; /* The logo, the sun, the waves and the cover button. Never for text. */
  --font: "Ancizar Sans", Verdana, sans-serif;
  --font-meta: "Manrope", Verdana, sans-serif;
  --margin: clamp(1.25rem, 4.5vw, 5.5rem);
  --gap: clamp(0.75rem, 1.2vw, 1.25rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header: 4.25rem;
  --stick: calc(var(--header) + var(--float) + 1rem); /* the fixed menu and a little air under it */
  --float: clamp(0.7rem, 1.5vw, 1.15rem);
  --radius: 0.85rem;
  --radius-small: 0.65rem;
  --max: 1600px;
  color-scheme: light;
}

/* Activity colours. Each activity picks one in js/events.js. */
[data-tone] {
  background: var(--tone);
  color: var(--tone-text);
  box-shadow: inset 0 0 0 2px var(--tone-line, var(--tone));
}

[data-tone="pink"] {
  --tone: var(--pink);
  --tone-text: var(--night);
}

[data-tone="teal"] {
  --tone: var(--teal);
  --tone-text: var(--night);
}

[data-tone="night"] {
  --tone: var(--night);
  --tone-text: var(--cream);
  --tone-button-text: var(--night);
}

[data-tone="cream"] {
  --tone: var(--cream);
  --tone-text: var(--night);
  --tone-line: var(--night);
}

/* ---------- Base ---------- */

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

html {
  scrollbar-color: var(--night) var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--night);
  font-family: var(--font-meta);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}/* Ancizar Sans is for titles and highlighted text. Manrope is for the running text. */
h1,
h2,
h3,
h4,
blockquote,
.eyebrow,
.lede,
.button,
.card-title,
.card-day,
.event-title,
.event-description,
.price-lead,
.price-ratio,
.price-big strong,
.book-q,
.res-intro,
.thanks-lead,
.about-future p,
.founder,
.about-values,
.founder-hint {
  font-family: var(--font);
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--night);
  outline-offset: 3px;
}

::selection {
  background: var(--night);
  color: var(--cream);
}

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

.icon {
  display: block;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.frame {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  column-gap: var(--gap);
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--margin);
}

.frame > * {
  grid-column: 1 / -1;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.3rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--night);
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.icon-button:hover:enabled {
  background: color-mix(in srgb, var(--teal) 80%, var(--cream));
}

.button-line {
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
}

.button-line:hover {
  background: color-mix(in srgb, var(--night) 8%, transparent);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* On an activity colour, buttons use its text colour so they stand out. */
[data-tone] .button {
  background: var(--tone-text);
  color: var(--tone-button-text, var(--cream));
}

[data-tone] .button-line {
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
}

[data-tone] .button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.panel {
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border: 2px solid var(--night);
  border-radius: var(--radius);
}

.skip {
  position: absolute;
  left: var(--margin);
  top: 0.75rem;
  z-index: 50;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

main:focus {
  outline: none;
}

/*
  Where a link lands. The menu is fixed at the top, so a section stops just below it.
  Sections that have space above their title take that space off, so the title is what sits under the menu.
*/
main {
  scroll-margin-top: var(--stick);
}

#weekly,
#how {
  scroll-margin-top: calc(var(--stick) - var(--section));
}

#join {
  scroll-margin-top: var(--stick);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(100% - 2 * var(--float), var(--max));
  margin-inline: auto;
  padding-top: var(--float);
}

.header-inner {
  display: flex;
  gap: 0 1.25rem;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  padding: 0.5rem max(1.15rem, var(--margin) - var(--float));
  border: 2px solid color-mix(in srgb, var(--night) 16%, transparent);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 6px 24px -10px rgb(16 16 58 / 0.22);
}

@media (min-width: 961px) {
  .primary-nav {
    margin-left: auto;
  }
}

.logo {
  flex: none;
}

.logo img {
  width: auto;
  height: 2.5rem;
}

/* The orange logo is for light backgrounds. On Night the menu shows the cream one. */
.logo-cream {
  display: none;
}

[data-header="night"] .logo-orange {
  display: none;
}

[data-header="night"] .logo-cream {
  display: block;
}

/* Pages that open on Night: the menu melts into the page, with a thin line of Cream at 30%. */
[data-header="night"] {
  background: var(--night);
}

[data-header="night"] .site-header {
  color: var(--cream);
}

[data-header="night"] .header-inner {
  border-color: color-mix(in srgb, var(--cream) 30%, transparent);
  background: var(--night);
}

[data-header="night"] .primary-nav ul {
  border-right-color: color-mix(in srgb, var(--cream) 30%, transparent);
}

[data-header="night"] .primary-nav a.nav-book {
  background: var(--pink);
  color: var(--night);
}

[data-header="night"] .month-pill {
  background: var(--cream);
  color: var(--night);
}

[data-header="night"] .month-pill:hover,
[data-header="night"] .primary-nav a.nav-book:hover {
  background: color-mix(in srgb, var(--cream) 82%, var(--pink));
}

[data-header="night"] .site-header :focus-visible {
  outline-color: var(--cream);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-family: var(--font-meta);
}

/* Book is its own part of the menu: a line separates it from the page links. */
.primary-nav a.nav-book {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--cream);
  font-weight: 800;
}

.primary-nav a.nav-book:hover,
.primary-nav a.nav-book[aria-current="page"] {
  text-decoration: underline;
}

.primary-nav ul {
  display: flex;
  gap: 0.35rem 1.35rem;
  margin: 0;
  padding: 0 1.35rem 0 0;
  border-right: 2px solid color-mix(in srgb, var(--night) 20%, transparent);
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding-block: 0.65rem;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.28em;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
}

/* ---------- Home: What’s on ---------- */

.coming,
.how {
  padding-top: var(--section);
}

.coming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-opener {
  width: fit-content;
}

.section-opener {
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 5rem);
  font-weight: 700;
  line-height: 0.96;
}

.coming-head .section-opener {
  font-weight: 900;
}

.opener-line {
  display: block;
  height: 0.14em;
  margin-top: 0.22em;
  border-radius: 999px;
  background: var(--orange);
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--night);
  cursor: pointer;
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* The side padding leaves room for the focus outline. */
.carousel-track {
  display: flex;
  gap: var(--gap);
  margin: 1.4rem -0.5rem 0;
  padding: 0.5rem 0.5rem 1rem;
  overflow-x: auto;
  list-style: none;
  scroll-padding-inline: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--night) transparent;
}

.carousel-card {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3.25);
  min-width: 0;
  scroll-snap-align: start;
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: 0.65rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.card-link:focus-visible {
  outline-color: currentColor;
}

.card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-small);
}

.card-media img {
  width: 100%;
  object-fit: contain;
}

.card-media img {
  aspect-ratio: 4 / 3;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.2rem 0.4rem 0.45rem;
}

.card-day {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.card-title {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.02;
}

.card-meta {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  margin-top: 0.15rem;
  font-family: var(--font-meta);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.card-place {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-place .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.fallback-events {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- Home: How it works ---------- */

.how-title {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ---------- Calendar grid ---------- */

/* The spacing between days also goes around the table. The margins take it out, to line up the sides. */
.calendar-table {
  --space: 0.4rem;
  width: calc(100% + 2 * var(--space));
  margin: 1.5rem calc(-1 * var(--space)) 0;
  border-spacing: var(--space);
  table-layout: fixed;
}

.calendar-table caption,
.calendar-table th,
.cal-num {
  font-family: var(--font-meta);
  font-weight: 700;
}

.calendar-table caption {
  margin-bottom: 0.75rem;
  padding-left: var(--space);
  font-size: 1.15rem;
  text-align: left;
}

.calendar-table th {
  padding: 0 0.35rem 0.35rem;
  font-size: 0.875rem;
  text-align: left;
}

.calendar-table td {
  height: 5.6rem;
  padding: 0.5rem;
  border-radius: var(--radius-small);
  vertical-align: top;
}

.calendar-table td:not([data-tone], .cal-pad) {
  background: color-mix(in srgb, var(--night) 7%, var(--cream));
}

.calendar-table a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  border-radius: 0.3rem;
  text-decoration: none;
}

.calendar-table a:focus-visible {
  outline-color: currentColor;
  outline-offset: 0;
}

.cal-top {
  display: block;
}

.cal-top .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.cal-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.is-today .cal-num {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* ---------- Privacy and other long pages ---------- */

.legal {
  row-gap: 2rem;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.legal h1 {
  margin: 0.15em 0 0.3em;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.98;
}

.legal header p {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.4;
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: var(--section);
}

.about .crumbs {
  margin-bottom: calc(var(--float) - var(--section));
  padding-top: 1.5rem;
}

.about-hero,
.about-story,
.about-future {
  width: min(100% - 2 * var(--float), var(--max));
  margin-inline: auto;
  border-radius: var(--radius);
  text-align: left;
}

/* The opening of About: Night, with the two founders, and two round shapes of the palette. */
.about-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 5rem) var(--margin);
  background: var(--night);
  color: var(--cream);
}

.about-hero :focus-visible {
  outline-color: var(--cream);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-hero-text {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  justify-items: start;
}

.about h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 5.25rem);
  font-weight: 900;
  line-height: 0.98;
}

.about h1 em {
  color: var(--teal);
}

.about-hero p,
.about-future p,
.about-story p,
.about-story blockquote {
  margin: 0;
}

.founders {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
}

.founders-plus {
  font-size: 2.5rem;
  font-weight: 900;
}

.founder {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.founder:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* The ring is the flag of each person's country, with a thin line of Night around it so it holds on cream. */
.portrait-ring {
  display: block;
  padding: 0.4rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--night);
}

.flag-colombia {
  background: linear-gradient(180deg, #fcd116 0 50%, #003893 50% 75%, #ce1126 75% 100%);
}

.flag-chile {
  background: conic-gradient(var(--cream) 0 90deg, #d52b1e 90deg 270deg, #0039a6 270deg 360deg);
}

.portrait {
  width: clamp(6.5rem, 13vw, 10rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.founder-hint {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--night);
  background: var(--cream);
  color: var(--night);
  font-size: 1rem;
  font-weight: 700;
}

.about-hero .portrait-ring {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cream) 45%, transparent);
}

.about-hero .founder-hint {
  border-color: var(--night);
  background: var(--teal);
  color: var(--night);
}

/* The ring is a little thicker, and the Chilean flag shows its star on the blue corner. */
.about-hero .portrait-ring {
  padding: 0.42rem;
}

.about-hero .flag-chile {
  position: relative;
  overflow: hidden;
}

/* The photo sits in front of the flag, so the star looks like it is behind the photo. */
.about-hero .flag-chile .portrait {
  position: relative;
  z-index: 1;
}

.about-hero .flag-chile::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(50% - (50% - 0.21rem) * 0.7071 - 0.62rem);
  left: calc(50% - (50% - 0.21rem) * 0.7071 - 0.62rem);
  width: 1.24rem;
  height: 1.24rem;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-10L2.35-3.24 9.51-3.09 3.8 1.24 5.88 8.09 0 4 -5.88 8.09 -3.8 1.24 -9.51-3.09 -2.35-3.24Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-10L2.35-3.24 9.51-3.09 3.8 1.24 5.88 8.09 0 4 -5.88 8.09 -3.8 1.24 -9.51-3.09 -2.35-3.24Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The idea: the quote on the left with a pink bar, the idea and the values on the right. */
.about-future {
  padding: clamp(2.5rem, 6vw, 5rem) var(--margin);
}

.about-future h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
}

.about-future p:last-child {
  margin-top: 1.25rem;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .founders {
    justify-content: flex-start;
  }
}

.bio {
  width: min(42rem, 100% - 2rem);
  max-height: min(48rem, 100dvh - 2rem);
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 2px solid var(--night);
  border-radius: var(--radius);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream);
  color: var(--night);
  font-size: 1.125rem;
}

.bio::backdrop {
  background: color-mix(in srgb, var(--night) 75%, transparent);
}

.bio-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-meta);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.bio-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 3rem;
}

.bio-head .portrait {
  width: 6rem;
}

.bio-head .portrait-ring {
  flex: none;
}

.bio-head h2,
.bio-head p {
  margin: 0;
  line-height: 1.15;
}

/* ---------- Privacy and other legal pages ---------- */

.legal-text {
  max-width: 48rem;
  font-size: 1.125rem;
}

.legal-text h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
}

.legal-lead {
  font-size: 1.3rem;
}

.legal-text li + li {
  margin-top: 0.4rem;
}

.legal-text a {
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

/* Night with Cream text. The orange logo shows well on Night, so it needs nothing behind it. */
.site-footer {
  margin-top: var(--section);
  border-top: 4px solid var(--teal);
  background: var(--night);
  color: var(--cream);
}

.site-footer :focus-visible {
  outline-color: var(--cream);
}

/* Community Stars already ends in Night, so the footer joins it without a gap. */
[data-page="community"] .site-footer {
  margin-top: 0;
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--margin) 1.5rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem 4rem;
}

.footer-brand {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.footer-tagline {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  font-size: 1.125rem;
}

.footer-tagline span {
  display: block;
}

.footer-logo img {
  width: auto;
  height: 3.25rem;
}

.footer-heart {
  display: inline;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
}

.footer-contact,
.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact a,
.footer-place,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-contact .icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--teal);
}

.footer-contact a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-links {
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  font-size: 0.9375rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Home: How it works ---------- */

.how-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-list li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.how-num {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--night);
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

/* A dotted line joins one step to the next. */
.how-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2rem;
  left: 5rem;
  right: calc(-1 * clamp(1.5rem, 3vw, 3.5rem) + 1rem);
  border-top: 3px dotted var(--night);
}

.how-list h3 {
  margin: 0;
  font-size: clamp(1.85rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.08;
}

.how-list p {
  max-width: 24rem;
  margin: 0;
  font-size: 1.125rem;
}

/* ---------- Forms (booking and chat) ---------- */

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-family: var(--font-meta);
  font-size: 0.9375rem;
  font-weight: 700;
}

.field input,
.field textarea,
.book-form select {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--night);
  border-radius: var(--radius-small);
  background: var(--cream);
  color: var(--night);
  font-family: var(--font-meta);
  font-size: 1rem;
  font-weight: 600;
}

.field textarea {
  resize: vertical;
}

.form-error {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--night);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--pink) 15%, var(--cream));
  font-weight: 700;
}

.calendar-table td.is-past {
  opacity: 0.45;
}

/* ---------- Prices ---------- */

.prices-page {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.price-head h1 {
  margin: 0.15em 0 0.25em;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
}

.price-lead {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
}

.price-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--cream);
}

.price-card.is-featured {
  background: var(--teal);
}

.price-card p {
  margin: 0;
}

.price-badge {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-meta);
  font-size: 0.9375rem;
  font-weight: 800;
}

.price-card .price-ratio {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.price-who {
  font-family: var(--font-meta);
  font-size: 1rem;
}

.price-card .price-big {
  display: grid;
  margin-top: 0.75rem;
}

.price-big strong {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
}

.price-big span {
  font-family: var(--font-meta);
  font-size: 1.0625rem;
  font-weight: 700;
}

.price-plus {
  padding-top: 0.75rem;
  border-top: 2px solid var(--night);
  font-family: var(--font-meta);
  font-size: 1.125rem;
  font-weight: 800;
}

.price-how h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
}

.price-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-steps h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.1;
}

.price-steps p {
  margin: 0;
  font-size: 1.125rem;
}

.price-formula {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--night);
  color: var(--cream);
}

.price-formula p {
  margin: 0;
}

.price-formula-main {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
}

.price-example {
  font-family: var(--font-meta);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.price-notes {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9375rem;
}

.price-notes p {
  margin: 0;
}

/* ---------- Reading pages: Joy Reads, Explore Perth, What’s happening ---------- */

.res-page {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.res-head {
  row-gap: 1rem;
}

.res-head h1 {
  margin: 0.1em 0 0;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.98;
}

.res-intro {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.res-checked {
  margin: 0;
  font-family: var(--font-meta);
  font-size: 0.9375rem;
}

.res-tabs ul,
.res-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.res-tabs a,
.res-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  border: 2px solid var(--night);
  border-radius: 999px;
  font-family: var(--font-meta);
  font-weight: 800;
  text-decoration: none;
}

.res-tabs a:hover,
.res-chips a:hover {
  background: color-mix(in srgb, var(--teal) 55%, var(--cream));
}

.res-tabs a[aria-current="page"] {
  background: var(--night);
  color: var(--cream);
}

.res-chips a {
  border-color: var(--teal);
  font-size: 0.9375rem;
}

.res-section {
  row-gap: 0.25rem;
  scroll-margin-top: calc(var(--header) + 2 * var(--float));
}

.res-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
}

.res-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
}

.res-section-head p {
  margin: 0;
  font-family: var(--font-meta);
}

.res-grid,
.res-list {
  display: grid;
  gap: var(--gap);
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.res-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.res-grid-one {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}

.res-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--night);
  border-radius: var(--radius);
  background: var(--cream);
}

.res-card[hidden] {
  display: none;
}

.res-photo {
  margin: 0;
  background: color-mix(in srgb, var(--night) 6%, var(--cream));
}

.res-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.res-photo.is-logo img {
  padding: 1.5rem;
  object-fit: contain;
}

.res-photo figcaption {
  padding: 0.4rem 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--night) 20%, var(--cream));
  font-family: var(--font-meta);
  font-size: 0.8125rem;
}

.res-body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 0.5rem;
  padding: 1rem 1.15rem 1.25rem;
}

.res-body p {
  margin: 0;
}

.res-body h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.res-tag {
  width: fit-content;
  padding: 0.2rem 0.7rem;
  border: 2px solid var(--night);
  border-radius: 999px;
  font-family: var(--font-meta);
  font-size: 0.8125rem;
  font-weight: 800;
}

.res-source,
.res-meta {
  font-family: var(--font-meta);
  font-size: 0.9375rem;
  font-weight: 700;
}

.res-access {
  font-size: 0.9375rem;
}

.res-links {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.25rem;
}

.res-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 800;
}

.res-card.is-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.res-card.is-featured .res-photo img {
  height: 100%;
  min-height: 18rem;
}

.res-card.is-featured .res-body {
  align-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.res-card.is-featured h3 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.res-list {
  grid-template-columns: minmax(0, 1fr);
}

.res-card.happening:not([hidden]) {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 18rem) minmax(0, 1fr);
}

.happening-date {
  display: grid;
  place-content: center;
  justify-items: center;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-meta);
  font-weight: 800;
}

.happening-date strong {
  font-family: var(--font);
  font-size: 2.5rem;
  line-height: 1;
}

.res-card.happening .res-photo img {
  height: 100%;
}

.res-more {
  row-gap: 0.75rem;
}

.res-more h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.res-more p {
  margin: 0;
}

.res-note,
.res-empty {
  max-width: 48rem;
  margin: 0;
  font-size: 0.9375rem;
}

/* ---------- Community Stars ---------- */

.belt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Opening animation and page fade (see js/start.js) ---------- */

.intro {
  display: none;
}

.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--orange);
}

.intro-logo .logo-svg {
  display: block;
  width: min(86vw, 64rem);
  height: auto;
}

.logo-face-fill {
  fill: var(--cream);
}

.intro-skip {
  position: absolute;
  right: var(--margin);
  bottom: var(--margin);
}

main {
  transition: opacity 0.45s ease-out;
}

.is-leaving main {
  opacity: 0;
  transition-duration: 0.35s;
}

.is-entering main {
  opacity: 0;
}

/* ---------- Movement on hover ---------- */

@media (prefers-reduced-motion: no-preference) {
  .card-media img {
    transition: transform 0.6s ease;
  }

  .card-link:hover img,
  .card-link:focus-visible img {
    transform: scale(1.03);
  }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
  .carousel-card {
    flex-basis: calc((100% - var(--gap)) / 2.15);
  }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .logo img {
    height: 2.15rem;
  }

  .logo {
    order: 1;
  }

  .nav-toggle {
    order: 3;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    width: 1.25rem;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
  }

  .nav-toggle-icon {
    position: relative;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-icon::before {
    top: -0.4rem;
  }

  .nav-toggle-icon::after {
    top: 0.4rem;
  }

  .is-open .nav-toggle-icon {
    background: transparent;
  }

  .is-open .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .is-open .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .primary-nav {
    order: 4;
    display: none;
    flex: 1 0 100%;
  }

  .is-open .primary-nav {
    display: flex;
  }

  .primary-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .primary-nav ul {
    flex-direction: column;
    padding-right: 0;
    border-right: 0;
  }

  .primary-nav a.nav-book {
    margin-top: 0.25rem;
    text-align: center;
  }
}

@media (max-width: 1000px) {
  .price-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
  }

  .belt,
  .price-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .res-card.is-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .res-card.is-featured .res-photo img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .frame {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    min-height: 0;
    padding-block: 1.5rem 1rem;
  }.frame > .hero-copy {
    grid-column: 1 / -1;
  }

  .carousel-card {
    flex-basis: calc(100% - 2.75rem);
  }

  .calendar-table {
    --space: 0.2rem;
  }

  .calendar-table th {
    padding-inline: 0;
    text-align: center;
  }

  .calendar-table td {
    height: 3.75rem;
    padding: 0.3rem 0.15rem;
    text-align: center;
  }

  .cal-top {
    flex-direction: column;
    gap: 0.15rem;
  }

  .cal-name {
    display: none; /* The link label and the list below give the name. */
  }

}

/* ---------- Phones: header, booking and reading pages ---------- */

@media (max-width: 720px) {
  .header-inner {
    gap: 0 0.5rem;
    padding-inline: 0.9rem;
  }

  .logo img {
    height: 1.85rem;
  }

  .nav-toggle {
    width: 2.5rem;
  }

  .book-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .res-card.happening {
    grid-template-columns: minmax(0, 1fr);
  }

  .happening-date {
    grid-auto-flow: column;
    justify-content: start;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
  }

  .happening-date strong {
    font-size: 1.75rem;
  }

  .res-card.happening .res-photo img {
    height: auto;
  }
}

@media (max-width: 1000px) {
  .how-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-list li:not(:last-child)::after {
    display: none;
  }
}

/* ---------- General rules kept for the pages that use them ---------- */

.eyebrow,
.lede,
.event-title,
.event-description,
.book-q,
.thanks-lead {
  font-family: var(--font);
}

.eyebrow {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.lede {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.45;
}

.event-frame {
  row-gap: 1.25rem;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.event-frame p {
  margin: 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  display: inline-flex;
  gap: 0.5rem;
}

.crumbs li:not(:last-child)::after {
  content: "/" / "";
}

.event-title {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7.25rem);
  font-weight: 700;
  line-height: 0.92;
}

.event-description {
  max-width: 40rem;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border: 2px solid var(--night);
  border-radius: var(--radius);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
}

.panel-label {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

.price-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
}

.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--night) 25%, var(--cream));
}

.price-list strong {
  font-family: var(--font-meta);
  font-size: 1.25rem;
  font-weight: 800;
}

.date-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.6rem;
  width: 100%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.8rem;
  border: 2px solid var(--night);
  border-radius: 999px;
  font-weight: 700;
}

.thanks-page {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.thanks-page h1 {
  margin: 0.15em 0 0.3em;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
}

.thanks-lead {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.book-form:not([hidden]) {
  display: grid;
  gap: 2rem;
  max-width: 44rem;
}

.book-q {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
}

.book-n {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-meta);
  font-size: 1rem;
  font-weight: 800;
}

.date-chip input {
  position: absolute;
  opacity: 0;
}

.date-chip span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  padding: 0.5rem 0.6rem;
  border: 2px solid var(--night);
  border-radius: var(--radius-small);
  font-family: var(--font-meta);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.date-chip {
  position: relative;
}

.date-chip:hover span {
  background: color-mix(in srgb, var(--night) 7%, var(--cream));
}

.date-chip input:checked + span {
  background: var(--night);
  color: var(--cream);
}

.date-chip input:checked + span::before {
  content: "✓ " / "";
}

.date-chip input:focus-visible + span {
  outline: 3px solid var(--night);
  outline-offset: 3px;
}

.book-fields .full {
  grid-column: 1 / -1;
}

.book-note {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.book-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  font-weight: 700;
}

.book-consent input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--night);
}

.book-step .button-row {
  margin-top: 1.25rem;
}

.confirm-card {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 1rem;
  border: 2px solid var(--night);
  border-radius: var(--radius-small);
  list-style: none;
  font-family: var(--font-meta);
}

.confirm-name {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 800;
}

.confirm-price strong {
  font-family: var(--font-meta);
  font-size: 1.5rem;
}

.thanks-page {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 44rem;
}

.thanks-page p {
  margin: 0;
}

/* ---------- Home: the sun on the cover ---------- */

/* The cover: cream, a big headline with the pink word and a wavy line, the orange sun, and waves along the bottom. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  width: 100%;
  min-height: min(100svh - var(--header) - var(--float), 46rem);
  margin: 0;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(5.5rem, 9vw, 7.5rem);
  color: var(--night);
}

.hero-frame {
  align-items: center;
}

.hero-copy {
  grid-column: 1 / span 8;
}

.hero-copy .eyebrow {
  margin: 0;
}

.hero h1 {
  margin: 0.3em 0 0;
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.96;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  padding-bottom: 0.22em;
  color: var(--pink);
}

/* The wavy orange line under the pink words. */
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.05em;
  bottom: 0;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q17 -2 32 6 T62 6 T92 6 T118 6' fill='none' stroke='%23FF5C12' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero .lede {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.5;
}

.hero .button {
  gap: 0.6rem;
  min-height: 3.75rem;
  padding-inline: 2.1rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--cream);
  font-size: 1.3rem;
}

.hero .button:hover {
  background: color-mix(in srgb, var(--orange) 85%, var(--night));
}

.hero :focus-visible {
  outline-color: var(--night);
}

.hero-sun {
  grid-column: 9 / span 8;
  display: grid;
  place-items: center;
}

.hero-sun svg {
  width: min(100%, 27rem);
  height: auto;
}

.sun-flares,
.sun-feature {
  fill: var(--orange);
}

.sun-face {
  fill: var(--cream);
}

.hero-waves {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(4.5rem, 8vw, 7rem);
}

.hero + .coming {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.wave-orange {
  fill: var(--orange);
}

.wave-pink {
  fill: var(--pink);
}

/* ---------- Home: rhythm between the sections ---------- */

.coming-more {
  margin: 0.5rem 0 0;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Sections come up gently. Without the script, or with reduced motion, they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .reveal {
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  /* Only the content below a title moves, never the title or the section, so a link always lands in the same place. */
  .has-reveal .reveal:not(.is-in) {
    opacity: 0;
  }

  .has-reveal .reveal:not(.is-in) :is(.carousel-track, .coming-more, .how-list, .join-cards) {
    transform: translateY(1.5rem);
  }

  .has-reveal .reveal :is(.carousel-track, .coming-more, .how-list, .join-cards) {
    transition: transform 0.7s ease;
  }
}

.how {
  padding-top: var(--section);
}

.how-list li:nth-child(1) .how-num {
  background: var(--teal);
}

.how-list li:nth-child(2) .how-num {
  background: var(--pink);
}

.how-list li:nth-child(3) .how-num {
  background: var(--night);
  color: var(--cream);
}

/* ---------- Home: Let’s connect ---------- */

.join {
  padding-top: var(--section);
}

.join-head {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  margin-bottom: 1.5rem;
}

.join-head p,
.join-head h2 {
  margin: 0;
}

.join-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.join-lead {
  max-width: 38rem;
  font-size: 1.125rem;
}

.join-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.join-card {
  display: grid;
  grid-template-rows: auto 3rem auto;
  align-content: start;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--night);
  text-align: left;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

/* No frames: a soft shadow rises when the pointer or the keyboard is on a card. */
.join-card:hover,
.join-card:focus-within {
  background: color-mix(in srgb, var(--night) 3%, var(--cream));
  box-shadow: 0 18px 44px -12px rgb(16 16 58 / 0.28), 0 4px 12px -4px rgb(16 16 58 / 0.14);
}

.join-card strong {
  font-family: var(--font);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.05;
}

.join-book {
  font: inherit;
  cursor: pointer;
}

.join-card-icon {
  color: var(--teal);
}

.join-card-icon .icon {
  width: 2.5rem;
  height: 2.5rem;
}

.join-card strong {
  align-self: start;
}

.join-book .join-card-icon {
  display: flex;
  align-items: center;
}

.join-note {
  align-self: start;
  font-size: 1rem;
}

.chat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-row input {
  flex: 1 1 11rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--night);
  border-radius: var(--radius-small);
  background: var(--cream);
  color: var(--night);
  font-family: var(--font-meta);
  font-size: 1rem;
  font-weight: 600;
}

.chat-row .form-error {
  flex-basis: 100%;
  margin: 0;
}

.join-chat .button {
  background: var(--night);
  color: var(--cream);
}

.join-booking {
  margin-top: var(--gap);
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 0;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 18px 44px -12px rgb(16 16 58 / 0.28), 0 4px 12px -4px rgb(16 16 58 / 0.14);
}

.book-review:not([hidden]) {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.book-review h3,
.book-review p {
  margin: 0;
}

.book-review h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.connect-done {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 2px solid var(--night);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--teal) 25%, var(--cream));
  font-weight: 700;
}

.button-small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 1.0625rem;
}

/* ---------- Activity pages ---------- */

/* A slim cover, then three columns, so a computer screen shows it all with no scrolling. */
.act-hero {
  width: min(100% - 2 * var(--float), var(--max));
  display: grid;
  align-items: center;
  min-height: min(100svh - var(--header) - 3 * var(--float), 40rem);
  margin: var(--float) auto 0;
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius);
}

.act-hero :focus-visible {
  outline-color: currentColor;
}

.act-hero-frame {
  align-items: center;
}

.act-intro {
  grid-column: 1 / span 11;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.act-intro p,
.act-intro h1 {
  margin: 0;
}

.act-title {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
}

.act-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  margin: 0.3rem 0 0.4rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-meta);
  font-size: 1rem;
  font-weight: 700;
}

.act-facts li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.act-facts .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.act-body {
  align-items: start;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  padding-top: clamp(2.5rem, 5vw, 4rem);
  row-gap: var(--gap);
}

.act-body > .act-col {
  grid-column: 10 / span 7;
}

.act-body > .act-col:first-child {
  grid-column: 1 / span 8;
}

.act-col {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  font-size: 1.125rem;
}

/* The costs sit in a box. What we do is free on the page. */
.act-body > .act-col + .act-col {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 2px solid var(--night);
  border-radius: var(--radius);
}

.act-col h2,
.act-col p,
.act-col dl,
.act-col dd {
  margin: 0;
}

.act-col h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}

.act-col dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
}

.act-col dl > div:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.act-col dt {
  font-family: var(--font);
  font-weight: 700;
}

.act-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-top: var(--gap);
  font-family: var(--font-meta);
  font-weight: 700;
}

.act-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  text-decoration: none;
}

.act-more a:hover {
  text-decoration: underline;
}

.act-more .icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 1000px) {.act-intro {
    grid-column: 1 / -1;
  }

  .act-body > .act-col,
  .act-body > .act-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {.hero-copy {
    grid-column: 1 / -1;
  }

  .join-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- About us: the bottom of the page ---------- */

/* A text block on the left, a tidy 2 by 2 grid of photos on the right, then the closing panel. */
.show-up {
  width: min(100% - 2 * var(--float), var(--max));
  margin-inline: auto;
}

.show-up-frame {
  align-items: center;
  row-gap: 2rem;
}

.show-up .show-up-text {
  grid-column: 1 / span 7;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  text-align: left;
}

.show-up-text p {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
}

.show-up-text h2 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.9;
}

.show-up-title {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.show-up-heart {
  width: clamp(2.5rem, 6vw, 5rem);
  height: clamp(2.5rem, 6vw, 5rem);
  flex: none;
}

.show-up-photos {
  grid-column: 9 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.snapshot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--night);
  border-radius: var(--radius);
  object-fit: cover;
}

@media (max-width: 1000px) {
  .show-up .show-up-text,
  .show-up-photos {
    grid-column: 1 / -1;
  }
}

/* ---------- Activity pages: a little tighter, so they fit a laptop screen ---------- */

.act-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  margin-top: 0.35rem;
}

.act-meta-row .act-facts {
  margin: 0;
}

/* ---------- Home: the weekly activities ---------- */

/* With room for all four, the weekly activities sit side by side and need no arrows. */
@media (min-width: 1100px) {
  .carousel-track {
    overflow: visible;
  }

  .carousel-card {
    flex: 1 1 0;
  }

  .carousel-controls {
    display: none;
  }
}

.card-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Activity pages: a real photo in the cover ---------- */

.act-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 3px solid currentColor;
  border-radius: var(--radius);
  object-fit: cover;
}

.act-credit {
  margin: 0.5rem 0.25rem 0;
  font-family: var(--font-meta);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: right;
}

/* ---------- The calendar button in the menu ---------- */

.month-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--cream);
  font-family: var(--font-meta);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.month-pill:hover {
  background: color-mix(in srgb, var(--orange) 85%, var(--night));
}

.month-pill[aria-current="page"] {
  box-shadow: inset 0 0 0 2px var(--night);
}

.month-pill .icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 960px) {
  .month-pill {
    order: 2;
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .month-pill {
    gap: 0.35rem;
    min-height: 2.5rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.9375rem;
  }

  .month-pill .icon {
    width: 1.1rem;
    height: 1.1rem;
  }
}

/* ---------- Calendar page: the whole width, as a calendar or a list ---------- */

.month-page {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.month-head {
  display: grid;
  row-gap: 0.75rem;
}

.month-head h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
}

.month-lead {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.month-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.month-switch {
  display: flex;
  gap: 0.5rem;
}

.month-switch .icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.view-switch {
  display: inline-flex;
  overflow: hidden;
  border: 2px solid var(--night);
  border-radius: var(--radius);
}

.view-button {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  background: transparent;
  color: var(--night);
  font-family: var(--font-meta);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.view-button[aria-pressed="true"] {
  background: var(--night);
  color: var(--cream);
}

.month-page .calendar-table td {
  height: clamp(3.4rem, 8.6vh, 5.5rem);
}

.month-page .calendar-table .cal-name {
  font-size: 0.9375rem;
}

.cal-week h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.cal-rows {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cal-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--night);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--night);
}

.cal-date {
  display: grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  border-radius: var(--radius-small);
  background: var(--night);
  color: var(--cream);
  line-height: 1;
}

.cal-date b {
  font-family: var(--font);
  font-size: 1.75rem;
}

.cal-date small {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cal-row-text {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.cal-row-text strong {
  font-family: var(--font);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.cal-row-text span {
  font-family: var(--font-meta);
  font-size: 0.9375rem;
}

.cal-row-price {
  display: grid;
  justify-items: end;
  text-align: right;
}

.cal-row-price strong {
  font-family: var(--font-meta);
  font-size: 1.5rem;
}

.cal-row-price small {
  font-family: var(--font-meta);
  font-size: 0.8125rem;
  font-weight: 700;
}

.cal-row-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cal-empty {
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .cal-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cal-row-price {
    justify-items: start;
    text-align: left;
  }

  .cal-row-price,
  .cal-row-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .view-switch {
    display: none;
  }

  .month-page .calendar-table td {
    height: 3.4rem;
  }
}

@media (max-width: 900px) {
  .hero-copy,
  .hero-sun {
    grid-column: 1 / -1;
  }

  .hero-sun svg {
    width: min(70%, 17rem);
  }
}

/* ---------- Activity cards and pages: tones with a little life ---------- */

/* Cream letters on Pink (3.3 to 1): only for large and bold text. Cream on Turquoise does not reach 3 to 1, so Turquoise keeps Night. */
.card-link[data-tone="pink"],
.act-hero[data-tone="pink"] {
  --tone-text: var(--cream);
  --tone-button-text: var(--night);
}

.card-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -2.2rem;
  right: -2.2rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: var(--deco-a);
}

.card-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 1.1rem;
  bottom: 5.6rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--deco-b);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-10C.8-2.2 2.2-.8 10 0 2.2.8.8 2.2 0 10-.8 2.2-2.2.8-10 0-2.2-.8-.8-2.2 0-10Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-10C.8-2.2 2.2-.8 10 0 2.2.8.8 2.2 0 10-.8 2.2-2.2.8-10 0-2.2-.8-.8-2.2 0-10Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-tone="pink"] { --deco-a: var(--orange); --deco-b: var(--teal); }
[data-tone="teal"] { --deco-a: var(--pink); --deco-b: var(--night); }
[data-tone="night"] { --deco-a: var(--pink); --deco-b: var(--teal); }
[data-tone="cream"] { --deco-a: var(--teal); --deco-b: var(--pink); }

/* The activity page cover: one big view, a bigger photo, two round shapes and a star behind. */
.act-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.act-hero-frame .act-intro {
  grid-column: 1 / span 7;
}

.act-hero-frame .act-figure {
  grid-column: 8 / span 9;
  justify-self: end;
  width: min(100%, calc((100svh - var(--header) - 9rem) * 1.333));
  max-width: 46rem;
  margin: 0;
}

.act-meta-row {
  row-gap: 1rem;
}

.act-hero .button-row {
  margin-top: 0.5rem;
}

@media (max-width: 1000px) {
  .act-hero-frame .act-intro,
  .act-hero-frame .act-figure {
    grid-column: 1 / -1;
  }

  .act-hero-frame .act-figure {
    justify-self: start;
    width: 100%;
  }
}

/* What we do and What it costs: as before, tidy and a little tighter. */
.act-col {
  gap: 0.5rem;
  font-size: 1rem;
}

.act-col h2 {
  font-size: 1.35rem;
}

.act-col .tag-list li {
  padding: 0.15rem 0.65rem;
  font-size: 0.9375rem;
}

.act-col dl {
  gap: 0.6rem 1.25rem;
}

.act-col .price-list li {
  padding-block: 0.3rem;
}

/* ---------- About: one sentence, no boxes ---------- */

.about-story {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  padding-inline: var(--margin);
}

.about-big {
  max-width: 62rem;
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.about-line {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--teal) 55%, transparent) 62%);
  font-weight: 900;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-values li {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
}

.about-values svg {
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 0.4rem;
}

.about-values strong {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.05;
}

.about-values span {
  font-family: var(--font-meta);
  font-size: 1.0625rem;
}

@media (max-width: 720px) {
  .about-values {
    grid-template-columns: minmax(0, 1fr);
  }
}

.about-big,
.about-values {
  font-family: var(--font);
}

/* The sentence on the left, the three values stacked on the right. */
@media (min-width: 901px) {
  .about-story {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(2.5rem, 6vw, 6rem);
  }

  .about-values {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .about-values li {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1.1rem;
    row-gap: 0.1rem;
    align-items: center;
  }

  .about-values svg {
    grid-row: 1 / span 2;
    width: 3.75rem;
    height: 3.75rem;
    margin-bottom: 0;
  }

  .about-values strong {
    align-self: end;
  }

  .about-values span {
    align-self: start;
  }
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.costs-title .per-person,
.act-col h2 .per-person {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--night);
  font-family: var(--font-meta);
  font-size: 0.875rem;
  font-weight: 800;
  vertical-align: middle;
}

.act-col dt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.act-col dt .icon {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--teal);
}

/* ---------- Questions ---------- */

.faq-page {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 1rem;
}

.faq-head .res-intro {
  color: var(--cream);
}

.faq-head .button {
  background: var(--pink);
  color: var(--night);
}

.faq-group {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 10px 28px -18px rgb(16 16 58 / 0.45), 0 0 0 1px color-mix(in srgb, var(--night) 10%, transparent);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-family: var(--font);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--night);
  font-family: var(--font-meta);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item > :not(summary) {
  max-width: 46rem;
  margin: 0 1.35rem 1rem;
}

.faq-item > :last-child {
  margin-bottom: 1.35rem;
}

.faq-steps,
.faq-rates {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.25rem;
}

.faq-rates {
  list-style: none;
  padding-left: 0;
}

.faq-rates li {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--teal) 18%, var(--cream));
}

/* The credit of each photo, small, on the corner of the photo in the cards. */
.card-media {
  position: relative;
}

.card-credit {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  max-width: calc(100% - 1rem);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--night) 72%, transparent);
  color: var(--cream);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}
