/* ── Gaia Yoga — warm, natural palette drawn from the Upper North Shore
   bushland (sandstone, eucalyptus, dappled light) — deliberately distinct
   from williampickup.org's dark editorial look. ───────────────────────── */

:root {
  --sand:      #f4efe4;
  --sand-pale: #faf7f0;
  --bark:      #2b2419;
  --bark-mid:  #5a5040;
  --bark-light: #8a8070;
  --sage:      #6f8570;
  --sage-pale: #e4e9e0;
  --clay:      #a8703f;
  --clay-pale: #f0e0cd;
  --border:    color-mix(in srgb, var(--bark) 12%, transparent);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Karla', system-ui, sans-serif;

  --max-w: 1080px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }
@media (max-width: 560px) { html { font-size: 17px; } }

body {
  background: var(--sand);
  color: var(--bark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--clay); }
a:hover { color: var(--sage); }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--sand-pale);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bark);
  text-decoration: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}
.main-nav a {
  color: var(--bark-mid);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--clay);
  border-color: var(--clay);
}

/* ── Hero (home page) ───────────────────────────────── */
.hero {
  position: relative;
}
.hero__image {
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  object-fit: cover;
  filter: saturate(0.92);
}
.hero__caption {
  background: var(--sage-pale);
  padding: 2.5rem var(--gutter);
  text-align: center;
}
.hero__caption p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--bark);
  max-width: 40ch;
  margin-inline: auto;
}

/* ── Page content ───────────────────────────────────── */
.page-body {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--bark);
}
.content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--bark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sage-pale);
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.content p { margin-bottom: 1rem; max-width: 65ch; }
.content p:last-child { margin-bottom: 0; }
.content p.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--bark);
  max-width: 42ch;
}
.content strong { color: var(--bark); }
.content em { color: var(--bark-mid); font-style: italic; }
.content img {
  border-radius: 4px;
  margin-block: 1.5rem;
  max-width: 420px;
}
/* Small inline icons (location markers, gym logo) should stay small even
   without explicit HTML width/height — cap distinctly lower than real
   content photos, and drop the block-level spacing/radius that suits a
   photo but not an inline badge next to text. */
.content img.icon {
  display: inline;
  max-width: 28px;
  margin: 0 0.3em 0 0;
  border-radius: 0;
  vertical-align: middle;
}
.content ul, .content ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Responsive video embeds. Migrated content carries the classic
   padding-top-hack markup (`.fluid-width-video-wrapper` with an inline
   `padding-top` percentage) straight from the old RapidWeaver site, but
   that trick only works with this matching CSS — without it, browsers
   fall back to an unstyled 300×150px default iframe size. */
.content .fluid-width-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-block: 1.5rem;
}
.content .fluid-width-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}
/* Click-to-play facade (video-facade.js) — shows a thumbnail instead of
   loading a live YouTube player until the visitor actually wants to watch,
   so a page with many embeds doesn't load dozens of players at once. */
.content .fluid-width-video-wrapper .video-facade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  background-color: var(--bark);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content .fluid-width-video-wrapper .video-facade__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.content .fluid-width-video-wrapper .video-facade__play::after {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.content .fluid-width-video-wrapper .video-facade:hover .video-facade__play {
  background: var(--clay);
  transform: scale(1.08);
}

/* ── Timetable-specific styling ─────────────────────── */
.page-timetable .content h2 {
  font-size: 1.5rem;
  background: var(--clay-pale);
  padding: 0.5rem 1rem;
  border-bottom: none;
  border-radius: 4px;
  margin-top: 2rem;
}
.page-timetable .content h2:first-of-type { margin-top: 0; }
.page-timetable .content h3 {
  display: inline-block;
  min-width: 6rem;
}
.page-timetable .content > .content-block {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--border);
}

/* Two-column class/location layout. Content is one flat, alternating
   sequence — a class entry immediately followed by its location entry,
   then the next class, and so on — in exactly the order Astrid edits it.
   CSS Grid pairs every two items into a row automatically, so there's no
   manual line-counting to keep the columns aligned (a flexbox version of
   this required matching blank-line counts across two separate blocks,
   which was both hard to edit and easy to accidentally misalign). */
.timetable-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 140px);
  column-gap: 1.5rem;
  row-gap: 0.85rem;
  align-items: start;
  margin-block: 1.5rem 2rem;
}
.timetable-grid img.location-logo {
  /* A shared height alone isn't enough here: the Millennium logo is a wide
     horizontal wordmark, the Gaia Yoga mark is a compact near-square icon —
     matching height alone leaves the icon reading much smaller since it
     never uses the width the wordmark does. Constrain by a shared box
     instead, so the compact icon is free to grow taller to fill it. */
  height: auto;
  width: auto;
  max-height: 34px;
  max-width: 100px;
  /* Block, not inline — an inline image taller than the surrounding text
     reserves extra baseline/descender space below it, showing as a gap
     before the next line. Content should follow directly with no <br>
     between the image and its label, since the image's own box already
     forces a line break. */
  display: block;
  margin: 0 0 0.2rem;
  border-radius: 0;
}
/* A rule between each class, spanning both columns, so entries don't run
   together — explicit grid-column placement so it doesn't disrupt the
   schedule/location auto-pairing of the surrounding entries. */
.timetable-grid hr {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── News listing ────────────────────────────────────── */
.news-list { list-style: none; }
.news-item {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.news-item:first-child { padding-top: 0; }
.news-item__date {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.35rem;
}
.news-item__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.news-item__title a { color: var(--bark); text-decoration: none; }
.news-item__title a:hover { color: var(--clay); }
.news-item__excerpt { color: var(--bark-mid); margin-top: 0.5rem; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--sand-pale);
  border-top: 1px solid var(--border);
  padding: 2.5rem var(--gutter);
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--bark-light);
}
.footer-inner a { color: var(--bark-mid); }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 1rem 1.25rem; }
}
