/* ============================================================
   Grandela Surf Club — design system
   Born from fishing. Shaped by surfing.

   One palette, one type family, one rhythm.
   Colors come from the logo and the place: sand, olive,
   ink with a green undertone, deep Atlantic for night sections.
   ============================================================ */

:root {
  /* color */
  --paper:        #f7f2e6;  /* warm reading ground, lighter than logo sand */
  --sand:         #f0e3c6;  /* logo primary — bands, tints */
  --sand-deep:    #e6d5ae;
  --ink:          #22271e;  /* near-black with olive undertone */
  --ink-soft:     #4c5244;
  --olive:        #696944;  /* logo secondary — actions, labels */
  --olive-deep:   #4e4e33;
  --atlantic:     #16232b;  /* night sections */
  --atlantic-mist:#9fb4bd;  /* muted text on atlantic */
  --foam:         #f4efe2;  /* text on dark */

  /* type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: clamp(4.5rem, 10vh, 7rem);
  --space-6: clamp(7rem, 16vh, 11rem);

  --wrap: 76rem;
  --wrap-pad: clamp(1.25rem, 5vw, 3rem);
  --measure: 36rem;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- fonts ---------- */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

/* ---------- reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

a { color: inherit; }

::selection { background: var(--sand-deep); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 1px;
}

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

.display {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.subtitle {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  font-weight: 500;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.55;
  font-weight: 400;
}

.label {
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}

.on-dark .label { color: var(--atlantic-mist); }

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }

.quiet { color: var(--ink-soft); }

em { font-style: italic; }

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

.section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }

.band-sand { background: var(--sand); }
.band-dark {
  background: var(--atlantic);
  color: var(--foam);
}

/* editorial split: text one side, image the other */
.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 7vw, 6rem); }
  .split > .split-text { order: 0; }
  .split > .split-media { order: 1; }
  .split-flip > .split-text { order: 1; }
  .split-flip > .split-media { order: 0; }
}

/* full-bleed photograph */
.bleed { width: 100%; }
.bleed img {
  width: 100%;
  height: clamp(20rem, 72vh, 46rem);
  object-fit: cover;
}

figure figcaption {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  padding-top: 0.6rem;
  max-width: var(--measure);
}
.on-dark figcaption, .band-dark figcaption { color: var(--atlantic-mist); }

/* ---------- navigation ---------- */

.site-nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(1.1rem, 3vw, 1.8rem) var(--wrap-pad);
}

.site-nav.nav-static { position: static; }

.nav-mark { display: inline-flex; align-items: center; }
.nav-mark img { width: clamp(2.4rem, 5vw, 3rem); height: auto; }

.nav-links {
  display: flex;
  gap: clamp(1.1rem, 3.5vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.3rem;
  background: linear-gradient(currentColor, currentColor) bottom left / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}

@media (max-width: 30rem) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.12em; }
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { background-size: 100% 1px; }

/* ---------- links & buttons ---------- */

.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) bottom left / 100% 1px no-repeat;
  transition: opacity 0.3s var(--ease);
}
.link:hover { opacity: 0.65; }

.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0.9rem 1.9rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-solid {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--paper);
}
.btn-solid:hover { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--paper); }

.on-dark .btn, .band-dark .btn { color: var(--foam); }
.on-dark .btn:hover, .band-dark .btn:hover { background: var(--foam); color: var(--atlantic); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

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

/* the home page is a single full-screen cover — nothing to scroll to */
.cover { height: 100svh; overflow: hidden; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--foam);
  isolation: isolate;
  overflow: hidden;
}

.hero-photos { position: absolute; inset: 0; z-index: -2; }
.hero-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photos img:nth-child(2) {
  opacity: 0;
  animation: hero-fade 24s ease-in-out infinite;
}
@keyframes hero-fade {
  0%, 38%  { opacity: 0; }
  50%, 88% { opacity: 1; }
  100%     { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photos img:nth-child(2) { animation: none; }
}

.hero::after {
  /* quiet veil so the type always reads */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(15, 22, 26, 0.38), rgba(15, 22, 26, 0.16) 40%, rgba(15, 22, 26, 0.45));
}

.hero-inner {
  padding: var(--space-5) var(--wrap-pad);
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}

.hero-lockup { width: clamp(15rem, 38vw, 24rem); height: auto; }

.hero-statement {
  font-size: clamp(1.55rem, 3.6vw, 2.4rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* pinned at the bottom of the cover, like a signature */
.hero-foot {
  position: absolute;
  bottom: clamp(1.2rem, 3.5vh, 2.4rem);
  left: 50%;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: calc(100vw - 2 * var(--wrap-pad));
  text-align: center;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-style: italic;
  opacity: 0.92;
}

.hero-legal {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.6;
}
.hero-legal a { color: inherit; text-decoration: none; }
.hero-legal a:hover { text-decoration: underline; }

.hero-doors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--space-2);
}
.hero-doors .btn {
  min-width: 13rem;
  text-align: center;
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}
.hero-doors .btn:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* ---------- chapter cards (explore) ---------- */

.chapters {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 44rem) {
  .chapters { grid-template-columns: 1fr 1fr; }
}

.chapter-card {
  text-decoration: none;
  display: block;
}
.chapter-card figure { overflow: hidden; }
.chapter-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.chapter-card:hover img { transform: scale(1.03); }
.chapter-card .chapter-kicker { padding-top: 1.1rem; }
.chapter-card h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 500;
  padding-top: 0.35rem;
}
.chapter-card p { color: var(--ink-soft); padding-top: 0.4rem; max-width: 30rem; }
.chapter-card .chapter-more {
  display: inline-block;
  margin-top: 0.7rem;
  font-style: italic;
  background: linear-gradient(currentColor, currentColor) bottom left / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.chapter-card:hover .chapter-more { background-size: 100% 1px; }

/* ---------- lesson cards ---------- */

.lessons {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 56rem) {
  .lessons { grid-template-columns: repeat(2, 1fr); }
}

.lesson {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, #ffffff 45%, var(--paper));
  padding: var(--space-3);
  display: grid;
  align-content: start;
  gap: 0.8rem;
  /* opacity kept in the list so .reveal can still fade the card in */
  transition: opacity 0.9s var(--ease), transform 0.55s var(--ease),
              box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
}
.lesson::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--olive);
  border-radius: 0 0 4px 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.lesson:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(34, 39, 30, 0.10);
  border-color: color-mix(in srgb, var(--olive) 55%, transparent);
}
.lesson:hover::after { transform: scaleX(1); }

.lesson-head { display: flex; align-items: center; gap: 0.8rem; }
.lesson-icon {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--olive);
  transition: transform 0.55s var(--ease);
}
.lesson-icon svg { width: 100%; height: 100%; display: block; }
.lesson:hover .lesson-icon { transform: translateY(-3px) rotate(-6deg); }

.lesson h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 500; }
.lesson .lesson-for { font-style: italic; color: var(--ink-soft); }
.lesson .lesson-facts {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.lesson .lesson-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dotted color-mix(in srgb, var(--ink) 25%, transparent);
  padding-bottom: 0.35rem;
  font-size: 0.95rem;
}
.lesson .lesson-facts .v { font-weight: 500; white-space: nowrap; }
.lesson .lesson-facts .v-price { font-weight: 600; color: var(--olive-deep); }
.lesson .btn { justify-self: start; margin-top: 0.6rem; }

/* "not sure which one fits" callout */
.which-callout {
  margin-top: var(--space-4);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 4px;
  background: var(--sand);
  padding: clamp(1.8rem, 4.5vw, 3rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.which-callout .which-line {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-style: italic;
  font-weight: 500;
}
.which-callout .which-sub { color: var(--ink-soft); max-width: 34rem; }

/* ---------- level finder (surf lessons) ---------- */

.levels { margin-top: var(--space-4); }

.levels-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.levels-tabs [role="tab"] {
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.levels-tabs [role="tab"]:hover { border-color: var(--olive); transform: translateY(-1px); }
.levels-tabs [role="tab"][aria-selected="true"] {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--paper);
}

.levels-viewport { margin-top: var(--space-3); }

.level-panel { display: none; }
.level-panel.is-active {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  animation: level-in 0.55s var(--ease);
}
@media (min-width: 56rem) {
  .level-panel.is-active { grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 6vw, 5rem); }
}
@keyframes level-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.level-art img {
  width: 100%;
  max-width: 19rem;
  height: auto;
  display: block;
  margin-inline: auto;
}
/* the illustration surfaces when its level is chosen */
.level-panel.is-active .level-art img {
  animation: level-pop 0.6s var(--ease);
}
@keyframes level-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.level-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 500; }
.level-text .level-tagline { font-style: italic; color: var(--ink-soft); margin-top: 0.3rem; font-size: 1.1rem; }
.level-text .prose { margin-top: 0.9rem; }
.level-text .prose p {
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .level-panel.is-active { animation: none; }
  .level-panel.is-active .level-art img { animation: none; }
}

/* sunrise / sunset table (faq) */
.sun-table {
  width: 100%;
  max-width: 26rem;
  border-collapse: collapse;
  margin-top: 0.9rem;
  font-size: 0.95rem;
}
.sun-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  padding: 0.45rem 0;
}
.sun-table td {
  padding: 0.45rem 0;
  border-top: 1px dotted color-mix(in srgb, var(--ink) 25%, transparent);
}
.sun-table th + th, .sun-table td + td { text-align: right; }

.faq details ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.35rem;
  max-width: 34rem;
}

/* the whole FAQ folds away so the page stays short */
.faq-toggle { margin-top: var(--space-3); }
.faq-clip {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.faq-clip-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.6s;
}
.faq-clip.is-open { grid-template-rows: 1fr; }
.faq-clip.is-open .faq-clip-inner { visibility: visible; transition: visibility 0s; }
.faq-clip .faq { padding-top: var(--space-3); }

/* ---------- fact list / faq ---------- */

.faq { max-width: var(--measure); }
/* long FAQs flow into two columns on wide screens */
@media (min-width: 56rem) {
  .faq {
    max-width: none;
    columns: 2;
    column-gap: clamp(2.5rem, 6vw, 5rem);
  }
  .faq details { break-inside: avoid; }
}
.faq details {
  border-top: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  padding: 1.1rem 0;
}
.faq details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.faq summary {
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-top: 0.7rem; color: var(--ink-soft); max-width: 34rem; }

/* ---------- pull quote ---------- */

.pull-quote {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.35;
  font-style: italic;
  font-weight: 400;
  max-width: 46rem;
  text-wrap: balance;
}
.pull-quote footer {
  font-size: 1rem;
  font-style: normal;
  margin-top: 1rem;
  color: var(--ink-soft);
}
.band-dark .pull-quote footer { color: var(--atlantic-mist); }

/* ---------- timeline ---------- */

.timeline {
  display: grid;
  gap: var(--space-5);
  position: relative;
}
.timeline-era {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 56rem) {
  .timeline-era { grid-template-columns: minmax(9rem, 12rem) 1fr; gap: var(--space-4); }
}
.timeline-era .era-mark {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--olive);
}
.band-dark .timeline-era .era-mark { color: var(--atlantic-mist); }
.timeline-era h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 500; }
.timeline-era .prose { padding-top: 0.6rem; }
.timeline-era img {
  margin-top: var(--space-2);
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- spot guide ---------- */

.spot {
  border-top: 1px solid var(--ink);
  padding-top: var(--space-3);
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 56rem) {
  .spot { grid-template-columns: 7fr 5fr; gap: clamp(3rem, 6vw, 5rem); }
}
.spot + .spot { margin-top: var(--space-5); }
.spot h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; }
.spot .spot-tagline { font-style: italic; color: var(--ink-soft); padding-top: 0.3rem; }
.spot .prose { padding-top: 1rem; }
.spot-side img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.spot-meta {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}
.spot-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dotted color-mix(in srgb, var(--ink) 25%, transparent);
  padding-bottom: 0.4rem;
}
.spot-meta .k { color: var(--ink-soft); }
.spot-meta .v { font-weight: 500; text-align: right; }

/* difficulty dots — never color alone; label sits beside them */
.dots { display: inline-flex; gap: 4px; margin-right: 0.5rem; vertical-align: baseline; }
.dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: inline-block;
}
.dots i.f { background: var(--ink); }

/* ---------- gallery rows ---------- */

.duo {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 44rem) {
  .duo { grid-template-columns: 1fr 1fr; align-items: start; }
  .duo-offset > :nth-child(2) { margin-top: var(--space-5); }
}
.duo img { width: 100%; object-fit: cover; }

/* ---------- season blocks ---------- */

.seasons { display: grid; gap: var(--space-5); }
.season { display: grid; gap: var(--space-3); }
@media (min-width: 56rem) {
  .season { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
  .season:nth-child(even) > .season-text { order: 1; }
}
.season img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.season h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 500; }
.season .season-sub { font-style: italic; color: var(--ink-soft); }
.band-dark .season .season-sub { color: var(--atlantic-mist); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--atlantic);
  color: var(--foam);
  padding-block: var(--space-5) var(--space-4);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 44rem) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
}
.footer-mark img { width: 3.4rem; }
.footer-statement {
  font-size: 1.25rem;
  font-style: italic;
  margin-top: 1rem;
  max-width: 22rem;
  color: var(--foam);
}
.footer-nav {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}
@media (min-width: 44rem) { .footer-nav { justify-items: end; text-align: right; } }
.footer-nav a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) bottom left / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.footer-nav a:hover { background-size: 100% 1px; }
.footer-fine {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid color-mix(in srgb, var(--foam) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.875rem;
  color: var(--atlantic-mist);
}
.footer-fine a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) bottom left / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.footer-fine a:hover { background-size: 100% 1px; }

/* ---------- whatsapp pill ---------- */

.wa-pill {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  box-shadow: 0 6px 24px rgba(20, 25, 18, 0.12);
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease);
}
.wa-pill.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.wa-pill:hover { background: var(--ink); color: var(--paper); }
.wa-pill svg { width: 1.05rem; height: 1.05rem; }

/* ---------- page hero (subpages) ---------- */

.page-hero {
  position: relative;
  min-height: clamp(24rem, 68vh, 40rem);
  display: grid;
  align-items: end;
  color: var(--foam);
  isolation: isolate;
  overflow: hidden;
}
.page-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- lessons cover (surf lessons hero) ----------
   Not a photo banner: an editorial cover on paper. Big type,
   a wave line that draws itself and keeps flowing, snapshots
   like prints on a table, and a slow ticker underneath. */

.lessons-cover {
  position: relative;
  overflow: hidden;
}

.cover-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-4) var(--space-5);
}
@media (min-width: 56rem) {
  .cover-grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-block: var(--space-5);
  }
  .cover-snaps { gap: var(--space-3); }
}

.cover-text .lede { max-width: 34rem; margin-top: 1.4rem; }
.cover-text .btn-row { margin-top: var(--space-3); }
.cover-text .btn-row .btn { min-width: 13rem; text-align: center; }

/* three layers of swell: the front line draws itself in,
   then all three keep travelling like an incoming set */
.cover-wave {
  display: block;
  width: min(30rem, 92%);
  margin-top: 1.3rem;
  color: var(--olive);
}
.cover-wave path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}
.cover-wave .wave-l1 {
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: wave-draw 2.2s var(--ease) 0.2s forwards,
             wave-drift 11s linear 2.4s infinite;
}
.cover-wave .wave-l2 {
  stroke-width: 2;
  opacity: 0;
  animation: wave-rise 0.9s var(--ease) 1.1s forwards,
             wave-drift 17s linear infinite;
}
.cover-wave .wave-l3 {
  stroke-width: 1.6;
  opacity: 0;
  animation: wave-rise-far 1.1s var(--ease) 1.5s forwards,
             wave-drift 25s linear infinite;
}
@keyframes wave-draw { to { stroke-dashoffset: 0; } }
@keyframes wave-drift { to { transform: translateX(-112px); } }
@keyframes wave-rise { to { opacity: 0.4; } }
@keyframes wave-rise-far { to { opacity: 0.2; } }

/* snapshots — prints on a table, breathing with the tide */
.cover-snaps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  align-items: start;
  padding-block: var(--space-2);
}
.snap {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding: 0.55rem 0.55rem 1.7rem;
  box-shadow: 0 16px 36px rgba(34, 39, 30, 0.14);
  animation: snap-bob 7s ease-in-out infinite;
}
.snap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snap-1 { rotate: -3deg; }
.snap-2 { rotate: 2.5deg; margin-top: var(--space-4); animation-delay: -2.3s; }
.snap-3 { rotate: -1.5deg; margin-top: calc(-1 * var(--space-1)); animation-delay: -4.6s; }
.snap-4 { rotate: 1.8deg; margin-top: var(--space-2); animation-delay: -6.2s; }
@keyframes snap-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}

/* the quiet surf-report ticker */
.cover-ticker {
  border-block: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: var(--sand);
  overflow: hidden;
  padding-block: 0.6rem;
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-group { display: flex; gap: 2.4rem; padding-right: 2.4rem; }
.ticker-group span {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-deep);
  white-space: nowrap;
}
@keyframes ticker { to { translate: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
  .snap { animation: none; }
  .ticker-track { animation: none; }
  .cover-wave .wave-l1 { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .cover-wave .wave-l2 { animation: none; opacity: 0.4; }
  .cover-wave .wave-l3 { animation: none; opacity: 0.2; }
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(15, 22, 26, 0.42), rgba(15, 22, 26, 0.05) 45%, rgba(15, 22, 26, 0.55));
}
.page-hero-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--space-5) var(--wrap-pad) var(--space-4);
  display: grid;
  gap: 0.9rem;
}

/* ---------- next-chapter link ---------- */

.next-chapter {
  display: block;
  text-decoration: none;
  border-top: 1px solid var(--ink);
  padding-top: var(--space-3);
}
.band-dark .next-chapter { border-top-color: color-mix(in srgb, var(--foam) 30%, transparent); }
.next-chapter .label { display: block; }
.next-chapter .next-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500;
  padding-top: 0.5rem;
  background: linear-gradient(currentColor, currentColor) bottom left / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
  display: inline;
}
.next-chapter:hover .next-title { background-size: 100% 1px; }

/* ---------- misc ---------- */

.hr-quiet {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; }

.center { text-align: center; }
.center .prose { margin-inline: auto; }
