/* Hallmark · macrostructure: Editorial Split · tone: editorial luxury · anchor hue: forest green */
/* Homepage-only visual system. Content, routes, and shared shell remain upstream. */

html:has(body.page-home), body.page-home {
  --home-paper: var(--ss-bg, #fbfaf8);
  --home-surface: var(--ss-surface, #fff);
  --home-surface-2: var(--ss-surface2, #f4f1ed);
  --home-ink: var(--ss-ink, #362b24);
  --home-muted: var(--ss-muted, #4f433c);
  --home-accent: var(--ss-green, #116a42);
  --home-teal: var(--ss-teal, #289fa1);
  --home-rule: rgba(54, 43, 36, .14);
  --home-radius: 1.5rem;
  --home-ease: cubic-bezier(.32, .72, 0, 1);
  /* Homepage roles intentionally inherit the shared Catskills Studio faces. */
  --home-serif: var(--font-display);
  --home-sans: var(--font-body);
  overflow-x: clip;
  background: var(--home-paper);
  color: var(--home-ink);
}

.page-home .ss-main { overflow-x: clip; }
.page-home img.img-fluid { max-width: 100%; height: auto; }
.page-home .ss-home-section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.page-home .container { width: min(100% - 2rem, 74rem); }
.page-home h1, .page-home h2, .page-home h3 { font-family: var(--home-serif); font-style: normal; font-weight: 400; color: var(--home-ink); }
.page-home p { color: var(--home-muted); }
.page-home a { text-underline-offset: .2em; }
.page-home a:focus-visible, .page-home button:focus-visible { outline: 3px solid var(--home-teal); outline-offset: 4px; }

/* Editorial split hero: one quiet image, with the copy carrying the first decision. */
.page-home .home-hero { min-height: auto; padding-block: clamp(3rem, 8vw, 7rem); background: var(--home-paper); }
.home-hero__grid { display: grid; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.home-hero__content { min-width: 0; max-width: 40rem; }
.home-hero__eyebrow, .page-home .ss-home-kicker { margin: 0 0 1rem; color: var(--home-accent); font: 600 .72rem/1.2 var(--home-sans); letter-spacing: .16em; text-transform: uppercase; }
.page-home .home-hero h1 { margin: 0 0 1.5rem; font-size: min(var(--text-display), clamp(3.1rem, 8vw, 6rem)); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
.home-hero h1 span { display: block; }
.home-hero__desc { max-width: 35rem; margin: 0 0 2rem; font: 400 clamp(var(--text-md), 1.7vw, var(--text-lg))/var(--leading-body) var(--home-sans); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
.page-home .ss-btn { min-height: 3.25rem; white-space: nowrap; border-radius: var(--radius-pill); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.page-home .ss-btn--primary { gap: var(--space-xs); padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-lg); }
.page-home .ss-btn__icon-box { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cta-icon-surface); color: var(--color-accent-ink); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.page-home .ss-btn:active { transform: scale(.98); }
.page-home .ss-btn[aria-disabled="true"], .page-home .ss-btn:disabled { cursor: not-allowed; opacity: .4; pointer-events: none; transform: none; }
.page-home .ss-btn[data-state="loading"] .ss-btn__label { opacity: .55; }
.page-home .ss-btn[aria-invalid="true"] { border-color: var(--color-error); }
.page-home .ss-btn[data-state="success"] { border-color: var(--color-success); }
.home-hero__note { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; font: .78rem/1.5 var(--home-sans); }
.home-hero__note a { color: var(--home-ink); }
.home-hero__media { position: relative; min-width: 0; }
.home-hero__figure { margin: 0; padding: var(--space-2xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-outer); background: var(--color-paper-2); box-shadow: var(--shadow-card); }
.home-hero__figure img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: var(--rule-hair) solid var(--bezel-inner-border); border-radius: var(--radius-inner); box-shadow: var(--bezel-inner-highlight); }
.home-hero__figure figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem .5rem .2rem; color: var(--home-muted); font: .7rem/1.3 var(--home-sans); letter-spacing: .05em; text-transform: uppercase; }
.home-hero__detail { position: absolute; right: -1rem; bottom: 1.5rem; display: grid; gap: .2rem; max-width: 13rem; padding: 1rem 1.1rem; border: 1px solid var(--home-rule); border-radius: 1rem; background: var(--home-surface); box-shadow: 0 .75rem 2rem rgba(54,43,36,.1); font: .72rem/1.4 var(--home-sans); }
.home-hero__detail strong { color: var(--home-accent); font-weight: 650; }

/* Trust strip and the class lanes use varied proportions rather than a repeated row. */
.page-home .ss-home-section[aria-label="Trust and Affiliations"] { padding-block: 1rem; background: var(--home-surface-2) !important; border-color: var(--home-rule) !important; }
.page-home .ss-home-section[aria-label="Trust and Affiliations"] .container > div { color: var(--home-muted) !important; font: .75rem/1.4 var(--home-sans) !important; }
.page-home .ss-home-lanes-panel, .page-home .ss-home-flow-card, .page-home .ss-home-links-card { padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--home-rule); border-radius: var(--home-radius); background: var(--home-surface); box-shadow: 0 1.5rem 4rem rgba(54,43,36,.06); }
.page-home .ss-home-section-head { display: grid; gap: 1rem; align-items: end; margin-bottom: 2.5rem; }
.page-home .ss-home-section-head h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
.page-home .ss-home-section-head p { max-width: 32rem; margin: 0; font: .95rem/1.7 var(--home-sans); }
.ss-home-lane-grid { display: grid; gap: 1rem; }
.page-home .ss-home-lane-bento-card { display: flex; min-height: 15rem; color: inherit; text-decoration: none; }
.page-home .ss-home-lane-bento-card .ss-double-bezel { width: 100%; }
.page-home .ss-home-lane-bento-card--kids .ss-double-bezel-inner { background: #f1e5d6; }
.page-home .ss-home-lane-bento-card--teens .ss-double-bezel-inner { background: #e0eeee; }
.page-home .ss-home-lane-bento-card--adults .ss-double-bezel-inner { background: #e5eadf; }
.page-home .ss-double-bezel { padding: var(--space-2xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-outer); background: var(--color-paper-2); box-shadow: var(--shadow-card); transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.page-home .ss-double-bezel-inner { height: 100%; padding: var(--space-lg); border: var(--rule-hair) solid var(--bezel-inner-border); border-radius: var(--radius-inner); box-shadow: var(--bezel-inner-highlight); }
.ss-lane-bento-header, .ss-lane-bento-footer { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.ss-lane-bento-badge { font: 600 .7rem/1 var(--home-sans); letter-spacing: .12em; text-transform: uppercase; }
.ss-lane-bento-body { padding-block: 3rem; }
.ss-lane-bento-body h3 { margin: 0 0 .5rem; font-size: 2.5rem; }
.ss-lane-bento-body p, .ss-lane-bento-footer { margin: 0; font: .8rem/1.5 var(--home-sans); }

/* Schedule remains a table on wide screens and becomes readable day cards on phones. */
.page-home .ss-home-section--schedule { background: var(--home-surface-2) !important; }
.page-home .ss-home-section--schedule table { margin-inline: auto; overflow: hidden; border-color: var(--home-rule); border-radius: 1rem; font: .82rem/1.4 var(--home-sans); }
.page-home .ss-home-section--schedule th { color: var(--home-accent); font-weight: 650; }
.page-home .ss-home-section--schedule td, .page-home .ss-home-section--schedule th { padding: 1rem; border-color: var(--home-rule); }
.page-home .ss-home-section--schedule .d-flex { flex-wrap: wrap; }

.page-home .ss-home-steps { display: grid; gap: 1rem; }
.page-home .ss-home-step { padding: 1.25rem; border-top: 1px solid var(--home-rule); }
.page-home .ss-home-step__top { display: flex; justify-content: space-between; color: var(--home-accent); }
.page-home .ss-home-step__index { font: .8rem/1 var(--home-sans); letter-spacing: .12em; }
.page-home .ss-home-step h3 { margin: 2rem 0 .5rem; font-size: 1.8rem; }
.page-home .ss-home-step p { margin: 0; font: .85rem/1.65 var(--home-sans); }
.page-home .ss-home-flow-card .bg-light, .page-home .ss-home-flow-card .bg-white { border-color: var(--home-rule) !important; box-shadow: none !important; }

/* Shared downstream homepage sections: give existing content the same quiet system. */
.page-home .ss-home-section:not(.ss-home-section--schedule) .border, .page-home .drop-in-banner, .page-home .ss-culture-explanation > div { border-color: var(--home-rule) !important; }
.page-home .ss-home-section .bg-white, .page-home .ss-home-section .rounded-4 { border-radius: var(--home-radius); }
.page-home .ss-home-section .row { --bs-gutter-y: 1.25rem; }
.page-home .ss-home-section img { max-width: 100%; }
.page-home .ss-home-section--links { background: var(--home-surface-2); }

@media (min-width: 48rem) {
  .home-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(20rem, .8fr); }
  .page-home .ss-home-section-head { grid-template-columns: minmax(0, 1fr) minmax(16rem, .65fr); }
  .ss-home-lane-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .page-home .ss-home-lane-bento-card--adults { grid-column: 1 / -1; }
  .page-home .ss-home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (hover: hover) and (pointer: fine) {
  .page-home .ss-btn:hover { transform: translateY(-1px); }
  .page-home .ss-btn--primary:hover .ss-btn__icon-box { transform: translate(1px, -1px) scale(1.05); background-color: var(--cta-icon-surface-hover); }
  .page-home .ss-home-lane-bento-card:hover .ss-double-bezel { transform: translateY(-2px); border-color: var(--color-rule-2); }
}

@media (max-width: 47.99rem) {
  .home-hero__detail { right: .5rem; }
  .page-home .ss-home-section--schedule table thead { display: none; }
  .page-home .ss-home-section--schedule table, .page-home .ss-home-section--schedule tbody, .page-home .ss-home-section--schedule tr, .page-home .ss-home-section--schedule td { display: block; width: 100%; }
  .page-home .ss-home-section--schedule tr { padding: .8rem 0; border-bottom: 1px solid var(--home-rule); }
  .page-home .ss-home-section--schedule td { display: flex; justify-content: space-between; padding: .35rem 1rem; border: 0; }
  .page-home .ss-home-section--schedule td:first-child { color: var(--home-accent); font-weight: 650; }
  .page-home .ss-home-section--schedule td:nth-child(2)::before { content: "Youth / Teens"; color: var(--home-muted); }
  .page-home .ss-home-section--schedule td:nth-child(3)::before { content: "Adults"; color: var(--home-muted); }
  .page-home .home-hero__actions .ss-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *, .page-home *::before, .page-home *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
