/* Project Serve Beach home page, 2026-12-04.
   The home page's own components. Needs tokens.css, base.css and components.css first.
   Colors and faces come from the tokens; the few new roles the home needs are declared here. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/design-system/fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/design-system/fonts/poppins-600-latin.woff2") format("woff2"); }

:root {
  --color-sand: #f4ede0;         /* decided: the sand in the client's own photographs, as paper */
  --color-sand-deep: #e7dac3;
  --color-night: #0d0d12;        /* decided: the dusk sky over the courts */
  --color-night-2: #1a1a22;
  --color-mute-light: #575247;   /* small text on sand, 7.1:1 */
  --color-mute-dark: #c2beb4;    /* small text on night, 10:1 */
  --weight-medium: 500;
  --weight-semi: 600;
  --measure: 1200px;
  --gutter: 40px;
  --size-label: 13px;
  --size-lead: 19px;
  --size-h2: 56px;
  --size-h3: 30px;
}
@media (max-width: 767px) {
  :root { --gutter: 20px; --size-lead: 17px; --size-h2: 38px; --size-h3: 26px; }
  html { font-size: 100%; } /* phone body text stays 16px */
}

body { line-height: 1.6; }
.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Header, the home's setting: larger logo, medium-weight links, a real button ---- */
.site-header { height: 128px; padding: 0 var(--gutter); }
.site-header__logo { width: 100px; }
.site-nav a { font-weight: var(--weight-medium); line-height: 44px; padding: 0 14px; }
.btn { font-weight: var(--weight-semi); letter-spacing: 0.04em; min-height: 48px; }
.site-nav a, .site-header__join { white-space: nowrap; }
.site-header__join { padding: 0 22px; }
@media (min-width: 922px) and (max-width: 1180px) {
  .site-header__logo { width: 80px; }
  .site-nav a { padding: 0 9px; font-size: 15px; }
  .site-header__join { margin-left: 10px; padding: 0 14px; font-size: 13px; }
}
.on-light .site-nav a { color: var(--color-ink); }
.menu-toggle { width: 48px; height: 48px; background-color: var(--color-ink); color: var(--color-gold); }
.on-dark .menu-toggle { background-color: var(--color-gold); color: var(--color-ink); }
@media (max-width: 921px) {
  .site-header { height: 84px; padding: 0 var(--gutter); flex-wrap: nowrap; }
  .site-header__logo { width: 62px; }
  .site-header__right { display: flex; margin-left: auto; }
  .site-nav { display: none; }
  .site-header__join { margin: 0 10px 0 0; padding: 0 14px; font-size: 13px; }
  .phone-menu { top: 84px; background-color: var(--color-ink); padding: 8px 0 20px; }
  .phone-menu a { color: var(--color-paper-soft); border-bottom: 1px solid var(--color-night-2); font-family: var(--font-display); font-size: 26px; letter-spacing: var(--tracking-display); text-transform: uppercase; line-height: 56px; padding: 0 var(--gutter); }
}

/* ---- Small pieces ---- */
.label { font-family: var(--font-text); font-weight: var(--weight-semi); font-size: var(--size-label); letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; }
.lead { font-size: var(--size-lead); line-height: 1.55; }
.d { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98; }
.h2 { font-size: var(--size-h2); }
.h3 { font-size: var(--size-h3); line-height: 1.05; }
.btn--big { font-size: 16px; padding: 0 30px; min-height: 58px; }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--line:hover { background: var(--color-gold); color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-gold); }
.go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: var(--weight-semi); background: linear-gradient(var(--color-gold), var(--color-gold)) 0 calc(100% - 7px) / 100% 2px no-repeat; }
.go::after { content: "\2192"; transition: transform var(--motion-base); }
.go:hover::after { transform: translateX(6px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* A photograph in a frame: cropped by the frame, never wider than the file. */
.ph { position: relative; overflow: hidden; background: var(--color-night-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.cap { font-size: 13px; line-height: 1.45; }

/* ---- Footer ---- */
.foot { background: var(--color-ink); color: var(--color-paper); padding: 72px 0 28px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.foot__logo { width: 120px; margin-bottom: 24px; }
.foot h2 { font-family: var(--font-text); font-weight: var(--weight-semi); font-size: var(--size-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 14px; }
.foot li a, .foot address a { display: inline-block; padding: 9px 0; line-height: 1.5; }
.foot a:hover { color: var(--color-gold); text-decoration: underline; text-underline-offset: 4px; }
.foot address { font-style: normal; line-height: 1.7; }
.foot__base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--color-night-2); font-size: 13px; color: var(--color-mute-dark); }
@media (max-width: 767px) {
  .foot { padding-top: 56px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}

/* ---- Motion: things settle as they arrive. Nothing is hidden before it moves. ---- */
@keyframes m-rise { from { transform: translateY(44px); } to { transform: none; } }
@keyframes m-zoom { from { transform: scale(1.16); } to { transform: scale(1); } }
@keyframes m-slide { from { transform: translateX(var(--from, 60px)); } to { transform: none; } }
@keyframes m-in { from { transform: translateY(105%); } to { transform: none; } }
@keyframes m-marquee { to { transform: translateX(-50%); } }
.line { display: block; overflow: hidden; padding: 0 0.08em 0.24em; margin: 0 -0.08em -0.24em; }
.line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .line > span { animation: m-in 0.7s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .line:nth-child(2) > span { animation-delay: 0.08s; }
  .line:nth-child(3) > span { animation-delay: 0.16s; }
  @supports (animation-timeline: view()) {
    .m-rise { animation: m-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .m-zoom img { animation: m-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    .m-slide { animation: m-slide linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}

/* ================= Experience-led home ================= */
:root { --size-e-hero: 150px; --size-e-big: 88px; --print-h: 250px; }
@media (max-width: 1280px) { :root { --size-e-hero: 11.6vw; --size-e-big: 60px; } }
@media (max-width: 767px) { :root { --size-e-hero: 76px; --size-e-big: 48px; --print-h: 180px; } }

body.exp { background: var(--color-night); color: var(--color-paper); }

.e-hero { position: relative; display: flex; flex-direction: column; min-height: clamp(760px, 100svh, 1000px); }
.e-hero__bg { position: absolute; inset: 0 0 60px; background: var(--color-night); }
.e-hero__bg img { object-position: 50% 78%; animation: e-settle 2.4s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
@keyframes e-settle { from { transform: scale(1.08); } to { transform: none; } }
.e-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 18, 0.9) 0%, rgba(13, 13, 18, 0.7) 30%, rgba(13, 13, 18, 0.12) 56%, rgba(13, 13, 18, 0) 76%, var(--color-night) 100%); }
.e-hero__in { position: relative; padding-top: 148px; }
.e-hero__eyebrow { color: var(--color-gold); margin-bottom: 14px; }
.e-h1 { font-size: var(--size-e-hero); line-height: 0.96; white-space: nowrap; margin-left: -0.03em; }
.e-h1 .line { display: inline-block; vertical-align: top; }
.e-hero__row { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 22px; }
.e-hero__row .lead { max-width: 30em; }
.e-hero__row .actions { flex: none; }

.e-reel { position: relative; margin-top: auto; padding: 40px 0 0; overflow: hidden; }
.e-reel__track { display: flex; width: max-content; animation: m-marquee 80s linear infinite; padding-bottom: 24px; }
.e-reel:hover .e-reel__track { animation-play-state: paused; }
.e-print { flex: none; margin-right: 26px; border: 7px solid var(--color-paper-soft); background: var(--color-paper-soft); box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.8); transform: rotate(-1.4deg); }
.e-print:nth-child(even) { transform: rotate(1.6deg) translateY(10px); }
.e-print:nth-child(3n) { transform: rotate(0.6deg) translateY(-6px); }
.e-print img { height: var(--print-h); width: auto; max-width: none; }

.e-week { padding: 120px 0 128px; }
.e-week__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; margin-bottom: 56px; }
.e-week__head .lead { color: var(--color-mute-dark); max-width: 26em; }
.e-week__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--color-paper); }
.e-day { position: relative; padding: 22px 16px 28px 16px; border-left: 1px solid var(--color-night-2); min-height: 300px; transition: background-color var(--motion-base); }
.e-day:first-child { border-left: 0; padding-left: 0; }
.e-day:hover { background: var(--color-night-2); }
.e-day__name { font-size: 40px; margin-bottom: 26px; }
.e-day__name abbr { text-decoration: none; }
.e-ev { padding: 14px 0 16px; border-top: 1px solid var(--color-night-2); }
.e-ev .label { color: var(--color-gold); font-size: 12px; letter-spacing: 0.1em; }
.e-ev__n { font-weight: var(--weight-semi); font-size: 17px; line-height: 1.25; margin: 6px 0 4px; }
.e-ev__w { font-size: 13px; line-height: 1.4; color: var(--color-mute-dark); }
.e-day.is-today { background: var(--color-gold); color: var(--color-ink); border-left-color: var(--color-gold); padding-left: 16px; margin-top: -2px; }
.e-day.is-today::before { content: "Today"; position: absolute; top: 28px; right: 14px; font-weight: var(--weight-semi); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.e-day.is-today .label, .e-day.is-today .e-ev__w { color: var(--color-ink); }
.e-day.is-today .e-ev { border-top-color: rgba(0, 0, 0, 0.25); }
.e-week__note { margin-top: 22px; color: var(--color-mute-dark); }

.e-taco { background: var(--color-gold); color: var(--color-ink); overflow: clip; }
.e-taco__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; max-width: 1920px; margin-inline: auto; }
.e-taco__pic { aspect-ratio: 4 / 3; max-height: 760px; width: 100%; }
.e-taco__pic img { object-position: 50% 45%; }
.e-taco__in { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter) 64px 64px; }
.e-taco__in .label { margin-bottom: 18px; }
.e-taco__title { font-size: 76px; margin-bottom: 22px; --from: 70px; }
.e-taco .lead { max-width: 22em; }

.e-ways { padding: 128px 0 120px; background: var(--color-sand); color: var(--color-ink); }
.e-ways__title { margin-bottom: 48px; }
.e-ways__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.e-way { display: flex; flex-direction: column; }
.e-way .ph { aspect-ratio: 3 / 4; margin-bottom: 20px; }
.e-way .ph img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1); }
.e-way:hover .ph img { transform: scale(1.06); }
.e-way h3 { margin-bottom: 10px; }
.e-way p { font-size: 15px; line-height: 1.55; color: var(--color-mute-light); margin-bottom: 10px; }
.e-way .go { margin-top: auto; align-self: flex-start; font-size: 15px; }

.e-join { padding: 128px 0; }
.e-join__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.e-join__pics { position: relative; padding: 0 0 70px 0; }
.e-join__a { width: 78%; max-width: 380px; aspect-ratio: 1; border: 8px solid var(--color-paper-soft); transform: rotate(-3deg); }
.e-join__b { position: absolute; right: 0; bottom: 0; width: 46%; max-width: 230px; aspect-ratio: 3 / 4; border: 8px solid var(--color-paper-soft); transform: rotate(4deg); box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.8); }
.e-join__title { font-size: var(--size-e-big); }
.e-join .lead { margin: 24px 0 34px; max-width: 31em; color: var(--color-mute-dark); }

@media (max-width: 1100px) {
  .e-hero__row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .e-week__grid { grid-template-columns: 1fr; }
  .e-day, .e-day:first-child { display: grid; grid-template-columns: 96px 1fr 1fr; gap: 0 20px; min-height: 0; padding: 18px 12px; border-left: 0; border-bottom: 1px solid var(--color-night-2); }
  .e-day__name { margin: 0; align-self: center; }
  .e-ev { border-top: 0; padding: 0; }
  .e-day.is-today { margin-top: 0; }
  .e-day.is-today::before { top: 6px; right: 10px; }
  .e-ways__grid { grid-template-columns: 1fr 1fr; gap: 44px 24px; }
  .e-way .ph { aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .e-hero { min-height: clamp(700px, 100svh, 900px); }
  .e-hero__in { padding-top: 112px; }
  .e-h1 { white-space: normal; }
  .e-h1 .line { display: block; }
  .e-hero__bg img { object-position: 46% 70%; }
  .e-hero__bg::after { background: linear-gradient(180deg, rgba(13, 13, 18, 0.9) 0%, rgba(13, 13, 18, 0.78) 46%, rgba(13, 13, 18, 0.25) 68%, rgba(13, 13, 18, 0.1) 80%, var(--color-night) 100%); }
  .e-reel { padding-top: 28px; }
  .e-print { margin-right: 16px; border-width: 5px; }
  .e-week { padding: 72px 0 80px; }
  .e-week__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .e-day, .e-day:first-child { grid-template-columns: 64px 1fr; padding: 16px 10px; }
  .e-day__name { font-size: 30px; grid-row: 1 / span 2; align-self: start; padding-top: 4px; }
  .e-ev + .e-ev { margin-top: 14px; }
  .e-ev { grid-column: 2; }
  .e-taco__grid { grid-template-columns: 1fr; }
  .e-taco__in { padding: 44px var(--gutter) 52px; }
  .e-taco__title { font-size: 48px; }
  .e-ways { padding: 72px 0; }
  .e-ways__title { margin-bottom: 28px; }
  .e-ways__grid { grid-template-columns: 1fr; gap: 40px; }
  .e-way .ph { aspect-ratio: 3 / 2; }
  .e-join { padding: 72px 0; }
  .e-join__in { grid-template-columns: 1fr; gap: 40px; }
  .e-join__pics { max-width: 330px; }
}

/* Schedule: each class and league name links to where to sign up */
.e-ev__n a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--color-gold); }
.e-ev__n a:hover, .e-ev__n a:focus-visible { color: var(--color-gold); }
.e-day.is-today .e-ev__n a { text-decoration-color: currentColor; }
.e-day.is-today .e-ev__n a:hover { color: inherit; text-decoration-thickness: 2px; }
