/* ============================================================
   richardfabio.com  |  redesign — scroll journey
   sky/clouds → forest → sunlit meadow
   ============================================================ */

:root {
  --ink: #1d2230;
  --ink-soft: #4a5162;
  --paper: #faf9f6;
  --paper-warm: #f1efe9;
  --mist: #dce6ee;
  --accent: #48627c;
  --accent-deep: #32465a;
  --line: rgba(29, 34, 48, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(29, 34, 48, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- journey background ---------- */

.journey { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.j-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}

.j-sky { opacity: 1; }

.j-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

.j-sky .j-img { filter: brightness(0.82) saturate(0.9); }
.j-forest .j-img { filter: brightness(0.9) saturate(0.92); }

.j-forest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(236, 240, 235, 0.35), rgba(236, 240, 235, 0.1) 40%, rgba(247, 236, 205, 0.25) 100%);
}

/* the sunlit meadow — sky glow, sun, grass hills */
.j-meadow {
  background: linear-gradient(
    to bottom,
    #e8edea 0%,
    #f4ecd6 30%,
    #fae3b2 55%,
    #f8d494 78%,
    #f4c982 100%
  );
}

.meadow-sun {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 60%,
    rgba(255, 253, 244, 0.98) 0%,
    rgba(255, 236, 178, 0.85) 12%,
    rgba(255, 219, 133, 0.45) 30%,
    rgba(255, 210, 120, 0.15) 50%,
    transparent 68%
  );
}

.meadow-hills {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(180px, 34vh, 340px);
}

/* warm light spilling over the grass */
.meadow-spill {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 42% at 50% 78%,
    rgba(255, 234, 170, 0.5) 0%,
    rgba(255, 222, 140, 0.22) 45%,
    transparent 75%
  );
  mix-blend-mode: soft-light;
}

.j-mist {
  background: linear-gradient(to bottom, #f4f5f3, #eef0ec 55%, #f3efe4);
}

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

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

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.veil {
  background: rgba(250, 249, 246, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 35px 90px -45px rgba(29, 34, 48, 0.45);
}

.breather { height: clamp(16vh, 24vh, 28vh); }
.breather.tall { height: clamp(26vh, 38vh, 44vh); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header .wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.35s ease;
}

.site-nav { display: flex; align-items: center; gap: 1.9rem; }

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: #fff; }

.site-nav .nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
}

.site-header.scrolled {
  background: rgba(250, 249, 246, 0.96);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.75rem;
}
.site-header.scrolled .wordmark { color: var(--ink); }
.site-header.scrolled .site-nav a { color: var(--ink-soft); }
.site-header.scrolled .site-nav a:hover { color: var(--ink); }
.site-header.scrolled .nav-cta { border-color: var(--line); color: var(--accent); }

.nav-toggle { display: none; }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* scrim that scrolls away with the hero, leaving the sky clean */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(20, 26, 40, 0.34), transparent 72%),
    linear-gradient(to bottom, rgba(20, 26, 40, 0.3), transparent 40%);
}

.hero-inner { position: relative; z-index: 2; padding: 0 1.5rem; }

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.4rem;
  animation: rise 1s ease both;
}

.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3); animation: rise 1s 0.15s ease both; }

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise 1s 0.3s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-light { background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.btn-light:hover { color: var(--ink); }

.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.65); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-dark { background: var(--accent-deep); color: #fff; box-shadow: var(--shadow); }
.btn-dark:hover { background: var(--ink); color: #fff; }

.btn-outline { border: 1.5px solid var(--line); color: var(--accent-deep); background: transparent; }
.btn-outline:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

/* ---------- individual practice ---------- */

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

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}

.subject-list {
  list-style: none;
  margin: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.subject-list li {
  font-family: var(--serif);
  font-size: 1.3rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.subject-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}

.note { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- weekly classes ---------- */

.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.class-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2.2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.class-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.class-day {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--mist);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.2rem;
}

.class-card h3 { font-size: 1.75rem; margin-bottom: 0.4rem; }

.class-time { color: var(--ink-soft); margin-bottom: 1.6rem; font-variant-numeric: tabular-nums; }

.class-footer { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); color: var(--ink-soft); }

.pay-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
  color: var(--ink);
}
.pay-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }

.recordings { margin-top: 1.6rem; font-size: 0.98rem; }

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

.events .veil { max-width: 860px; margin-inline: auto; }

.events-photo { margin-bottom: clamp(2rem, 4vw, 3rem); }
.events-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 21 / 9;
  object-fit: cover;
  width: 100%;
}

.events .section-head { text-align: left; }

.date-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.date-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}
.date-when { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.date-where { color: var(--ink-soft); margin-top: 0.35rem; font-size: 0.98rem; }
.date-where span { display: block; font-size: 0.9rem; opacity: 0.85; }

.prose p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); }

.events-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* ---------- footer (rests in the sunlight) ---------- */

.site-footer { padding: 0 0 clamp(7rem, 22vh, 13rem); }

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.site-footer .wordmark { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.footer-tag { font-family: var(--serif); font-style: italic; margin-top: 0.5rem; color: var(--ink-soft); }

.footer-links p { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-links span { display: inline-block; min-width: 4.2rem; color: var(--ink-soft); opacity: 0.75; }
.footer-links a { color: var(--accent-deep); }
.footer-links a:hover { color: var(--ink); }

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 36, 0.6);
  animation: fadeIn 0.25s ease;
}

.modal-panel {
  position: relative;
  background: var(--paper);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5);
  width: min(680px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  padding: clamp(1.8rem, 5vw, 3rem);
  animation: modalUp 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(26px); } }

.modal-panel h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 1.6rem; padding-right: 2.5rem; }

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-close:hover { background: var(--paper-warm); }

.structure-option { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.structure-option h3 { font-size: 1.25rem; display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.structure-option h3 em { font-family: var(--sans); font-style: normal; font-size: 0.9rem; color: var(--ink-soft); }
.structure-num {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--mist);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.structure-lede { color: var(--ink-soft); font-size: 0.95rem; margin: 0.5rem 0 0.8rem; }
.structure-option ul { margin: 0 0 0.9rem 1.2rem; color: var(--ink-soft); font-size: 0.95rem; }
.structure-option li { margin-bottom: 0.3rem; }
.structure-format { font-size: 0.92rem; color: var(--ink-soft); }
.structure-cta { border-top: 1px solid var(--line); padding-top: 1.4rem; font-size: 0.98rem; }

body.modal-open { overflow: hidden; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .j-layer { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 16 / 10; }
  .class-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .date-cards { grid-template-columns: 1fr; }
  .veil { border-radius: 22px; }
  .events-photo img { aspect-ratio: 16 / 10; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(250, 249, 246, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { color: var(--ink) !important; font-size: 1.3rem; font-family: var(--serif); }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 60;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .nav-toggle span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.3s ease, background 0.3s ease, top 0.3s ease;
  }
  .site-header.scrolled .nav-toggle span, .nav-toggle.open span { background: var(--ink); }
  .nav-toggle span:nth-child(1) { top: 16px; }
  .nav-toggle span:nth-child(2) { top: 24px; }
  .nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }
}
