/* ==========================================================================
   Sandy Lane Estate Beach Club — design system
   Ported from the 2026 Claude Design canvas. Token names and roles follow
   "Components — Palette" and "Components — Type" on that canvas.
   ========================================================================== */

:root {
  /* --- Named palette (Components — Palette) ------------------------------ */
  --shell:    #F7F3EC;  /* page ground                */
  --seaglass: #D5E0EB;  /* quiet panels               */
  --marine:   #12242E;  /* ink & primary CTA          */
  --palm:     #4C5D50;  /* sparing accent             */
  --coral:    #C4623F;  /* eyebrows & links           */
  --stone:    #C9BCA8;  /* hairlines only             */

  /* --- Supporting tones, derived from the page designs ------------------- */
  --marine-soft: #20343F;  /* hero / closing panel ground */
  --shell-2:     #EFE9DE;  /* alternate band              */
  --shell-3:     #E8E0D3;  /* cards, wells                */
  --slate:       #52616B;  /* small print, footnotes      */
  --taupe:       #8A7D68;  /* muted meta on shell         */
  --coral-dk:    #A34E31;  /* link / CTA hover            */

  --on-marine:       #F7F3EC;
  --on-marine-muted: rgba(247, 243, 236, 0.78);
  --on-marine-faint: rgba(247, 243, 236, 0.55);
  --on-marine-line:  rgba(247, 243, 236, 0.40);

  /* --- Type -------------------------------------------------------------- */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Cabin', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- Measure & rhythm -------------------------------------------------- */
  --page:      1240px;
  --gutter:    40px;
  --hdr-tall:  112px;
  --hdr-short: 86px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

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

body {
  background: var(--shell);
  color: var(--marine);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dk); }

::selection { background: var(--seaglass); }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

a, button, input { transition: background-color .35s ease, border-color .35s ease, color .35s ease, opacity .35s ease; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--marine); color: var(--on-marine);
  padding: 12px 20px; font-size: 13px;
}
.skip-link:focus { left: 8px; top: 8px; color: var(--on-marine); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }
.wrap--reading { max-width: 680px; }

/* --------------------------------------------------------------------------
   Type scale (Components — Type)
   Sentence case throughout. The serif is never bold.
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 26px;   /* always 26px clear above a serif heading */
}
.eyebrow--on-marine { color: var(--on-marine-faint); }

.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Hero · Cormorant 300 · 60/1.08 */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 9vw, 60px);
  line-height: 1.08;
  text-wrap: pretty;
}

/* Section · Cormorant 400 · 42/1.12 */
.h1, .h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1.12;
  text-wrap: pretty;
}

/* Sub · Cormorant 400 · 28/1.15 */
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}

/* Body · Cabin 400 · 17/1.75 */
.body { font-size: 17px; line-height: 1.75; color: var(--marine); }
.body--muted { color: var(--slate); }

/* Caption · Cormorant italic · 15 */
.caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate);
}

.fine { font-size: 13px; line-height: 1.6; color: var(--slate); }

hr.rule, .rule-h { width: 72px; height: 1px; background: var(--stone); border: 0; }
.hairline { border: 0; border-top: 1px solid var(--stone); margin: 0; }

/* --------------------------------------------------------------------------
   Image frame — shared by the home page, the interior pages and the gallery.
   Lives here rather than in a page stylesheet because every template uses it:
   without it images render at natural size with no object-fit at all.
   -------------------------------------------------------------------------- */

.frame {
  position: relative;
  background: var(--shell-3);
  overflow: hidden;
  margin: 0;
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
a:hover .frame img { transform: scale(1.035); }

.frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-marine);
  background: linear-gradient(to top, rgba(18, 36, 46, .62), rgba(18, 36, 46, 0));
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.frame:hover .frame__caption,
a:hover .frame__caption { opacity: 1; }

/* --------------------------------------------------------------------------
   Buttons & links (Components — Buttons)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 36px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  background: var(--marine);
  color: var(--on-marine);
}
.btn:hover, .btn:focus-visible { background: var(--marine-soft); color: var(--on-marine); }

/* Secondary — hairline outline on shell */
.btn--line {
  background: transparent;
  color: var(--marine);
  border: 1px solid var(--stone);
  padding: 16px 35px;
  border-radius: 0;
}
.btn--line:hover, .btn--line:focus-visible {
  background: transparent; border-color: var(--marine); color: var(--marine);
}

/* On marine or imagery */
.btn--invert { background: var(--shell); color: var(--marine); }
.btn--invert:hover, .btn--invert:focus-visible { background: #fff; color: var(--marine); }

.btn--line-invert {
  background: transparent;
  color: var(--on-marine);
  border: 1px solid var(--on-marine-line);
  padding: 16px 35px;
  border-radius: 0;
}
.btn--line-invert:hover, .btn--line-invert:focus-visible {
  background: rgba(247, 243, 236, .10); border-color: var(--on-marine); color: var(--on-marine);
}

/* Text link with arrow */
.link-arrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral);
  border-bottom: 1px solid rgba(196, 98, 63, .4);
  padding-bottom: 4px;
}
.link-arrow:hover { color: var(--coral-dk); border-bottom-color: var(--coral-dk); }
.link-arrow::after { content: " \2192"; }

/* --------------------------------------------------------------------------
   Form fields (Components — Form field)
   Serif labels, underline inputs, coral on focus.
   -------------------------------------------------------------------------- */

.field { margin-bottom: 34px; }

.field label,
.field > .field__label {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--marine);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stone);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--marine);
  padding: 10px 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--coral);
}
.field textarea { resize: vertical; min-height: 120px; }

.field input[type="checkbox"],
.field input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--stone);
  border-radius: 0;
  background: transparent;
  margin: 3px 0 0 0;
  flex: 0 0 auto;
  cursor: pointer;
}
.field input[type="radio"] { border-radius: 50%; }
.field input[type="checkbox"]:checked,
.field input[type="radio"]:checked { background: var(--coral); border-color: var(--coral); }
.field input[type="checkbox"]:focus-visible,
.field input[type="radio"]:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.field--check { display: flex; align-items: flex-start; gap: 12px; }
.field--check span { font-size: 15px; line-height: 1.6; color: var(--marine); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  will-change: transform;
}
.site-header.is-solid .site-header__inner { animation: hdrDown .5s var(--ease); }
.site-header:not(.is-solid) .site-header__inner { animation: hdrFade .6s ease; }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding-inline: 56px;
  height: var(--hdr-tall);
  white-space: nowrap;
  transition: height .35s var(--ease), background-color .35s ease;
}

.site-header__logo { display: block; }
.site-header__logo img { height: 64px; width: auto; transition: height .35s var(--ease); }
.site-header__logo .logo--dark { display: none; }
.site-header.is-solid .site-header__logo .logo--light { display: none; }
.site-header.is-solid .site-header__logo .logo--dark { display: block; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a,
.site-header__util a:not(.btn) {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-marine);
}
.site-nav a:hover,
.site-header__util a:not(.btn):hover { color: var(--stone); }

.site-header__util { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.site-header__util .btn { padding: 13px 26px; }

/* Solid variant — on scroll, and the default on interior pages */
.site-header.is-solid .site-header__inner {
  background: var(--shell);
  height: var(--hdr-short);
  box-shadow: 0 1px 0 var(--stone);
}
.site-header.is-solid .site-header__logo img { height: 52px; }
.site-header.is-solid .site-nav a,
.site-header.is-solid .site-header__util a:not(.btn) { color: var(--marine); }
.site-header.is-solid .site-nav a:hover,
.site-header.is-solid .site-header__util a:not(.btn):hover { color: var(--coral); }

body.has-solid-header { padding-top: var(--hdr-short); }

.nav-toggle { display: none; }

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

.site-footer { background: var(--marine); color: var(--on-marine); }

.site-footer__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: 104px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1.4fr .9fr .9fr;
  gap: 64px;
  align-items: start;
}
.site-footer__logo { height: 88px; width: auto; margin-bottom: 36px; }
.site-footer address {
  font-style: normal; font-size: 15px; line-height: 1.9;
  color: var(--on-marine-muted); margin-bottom: 32px;
}
.site-footer h2 {
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-marine-faint); margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: var(--on-marine-muted); font-size: 15px; }
.site-footer a:hover { color: var(--on-marine); }
.site-footer__assoc { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .75; }

.site-footer__bar {
  max-width: var(--page);
  margin-inline: auto;
  padding: 34px var(--gutter) 44px;
  margin-top: 80px;
  border-top: 1px solid rgba(247, 243, 236, .16);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--on-marine-faint);
}
.site-footer__bar nav { display: flex; gap: 26px; }
.site-footer__bar a { font-size: 13px; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   Nothing is hidden here: the script pre-hides only what is genuinely below
   the fold, with inline styles it then removes. If the script never runs, or
   throws, every section is simply visible.
   -------------------------------------------------------------------------- */

.is-revealing {
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

/* --------------------------------------------------------------------------
   Intro — first load of a session only
   -------------------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--marine);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .85s ease;
}
html.intro-done .intro { display: none; }

.intro__inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }

.intro__logo {
  height: 112px; width: auto;
  opacity: 0;
  animation: introLogo 1s ease forwards;
}
.intro__line {
  width: 0; height: 1px;
  background: var(--stone);
  opacity: 0;
  animation: introLine 1s ease .7s forwards;
}
.intro__cap {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(247, 243, 236, .7);
  letter-spacing: .5em;
  opacity: 0;
  animation: introCap 1.1s ease 1s forwards;
}

@keyframes introLogo {
  from { opacity: 0; transform: translateY(16px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes introLine {
  from { width: 0; opacity: 0; }
  to   { width: 72px; opacity: 1; }
}
@keyframes introCap {
  from { opacity: 0; letter-spacing: .5em; }
  to   { opacity: 1; letter-spacing: .3em; }
}

/* Header entrances */
@keyframes hdrDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
@keyframes hdrFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .is-revealing { transition: opacity .2s ease; }
  .intro__logo, .intro__line, .intro__cap {
    animation: none;
    opacity: 1;
  }
  .intro__line { width: 72px; }
  .intro__cap { letter-spacing: .3em; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile — the canvas uses a single 920px breakpoint
   -------------------------------------------------------------------------- */

@media (max-width: 920px) {
  :root { --gutter: 22px; --hdr-tall: 70px; --hdr-short: 70px; }

  .site-header__inner { grid-template-columns: auto 1fr; padding-inline: 20px; gap: 16px; }
  .site-header__logo img,
  .site-header.is-solid .site-header__logo img { height: 36px; }

  /*
   * The canvas hides the navigation entirely below 920px with no menu
   * affordance. A live site needs one, so the bar collapses behind this
   * toggle instead.
   */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    background: none;
    border: 0;
    padding: 12px;
    margin-right: -12px;   /* optical alignment with the page edge */
    cursor: pointer;
    color: var(--on-marine);
  }
  .site-header.is-solid .nav-toggle { color: var(--marine); }

  .nav-toggle__bars {
    display: block;
    position: relative;
    width: 22px;
    height: 14px;
  }
  .nav-toggle__bars span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s ease, top .3s var(--ease);
  }
  .nav-toggle__bars span:nth-child(1) { top: 0; }
  .nav-toggle__bars span:nth-child(2) { top: 6px; }
  .nav-toggle__bars span:nth-child(3) { top: 12px; }

  /* Open: the outer bars cross, the middle one goes. */
  .site-header.is-open .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .site-nav, .site-header__util {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 8px 0 18px;
  }
  .site-header.is-open .site-header__inner {
    height: auto; background: var(--marine); align-items: start; padding-block: 14px;
  }
  .site-header.is-open.is-solid .site-header__inner { background: var(--shell); }
  .site-header.is-open .site-nav,
  .site-header.is-open .site-header__util { display: flex; }
  .site-nav a, .site-header__util a:not(.btn) { padding: 11px 0; font-size: 13px; }
  .site-header__util { justify-content: flex-start; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 42px; padding-top: 72px; }
  .site-footer__bar { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Launch checklist — administrators only, home page
   ========================================================================== */

.tick {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 700;
  width: min(420px, calc(100vw - 40px));
  font-family: var(--sans);
}
.tick__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%;
  background: var(--marine); color: var(--on-marine);
  border: 0; border-radius: 2px;
  padding: 14px 18px;
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(18, 36, 46, .28);
}
.tick__count {
  background: var(--coral); color: var(--shell);
  border-radius: 2px; padding: 3px 9px; font-size: 11px; letter-spacing: .08em;
}
.tick__body {
  background: #FDFBF7;
  border: 1px solid var(--stone);
  border-top: 0;
  max-height: min(70vh, 620px);
  overflow-y: auto;
  padding: 22px 22px 26px;
  box-shadow: 0 10px 30px rgba(18, 36, 46, .28);
}
.tick__note { font-size: 12px; line-height: 1.6; color: var(--taupe); margin: 0 0 18px; }
.tick__group {
  font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--taupe);
  margin: 22px 0 10px; padding-top: 14px; border-top: 1px solid var(--stone);
}
.tick__group:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.tick__list { list-style: none; margin: 0; padding: 0; }
.tick__item { padding: 10px 0; border-bottom: 1px solid rgba(201, 188, 168, .45); }
.tick__item:last-child { border-bottom: 0; }
.tick__item label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.tick__item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto;
  border: 1px solid var(--stone); border-radius: 0; background: transparent;
  cursor: pointer; position: relative;
}
.tick__item input:checked { background: var(--marine); border-color: var(--marine); }
.tick__item input:checked::after {
  content: ""; position: absolute; left: 4px; top: 0;
  width: 5px; height: 10px;
  border: solid var(--shell); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tick__label { font-size: 14px; line-height: 1.45; color: var(--marine); }
.tick__why { font-size: 12px; line-height: 1.6; color: var(--slate); margin: 6px 0 0 26px; }
.tick__link {
  display: inline-block; margin: 8px 0 0 26px;
  font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral);
}
.tick__item.is-done .tick__label { text-decoration: line-through; color: var(--taupe); }
.tick__item.is-done .tick__why,
.tick__item.is-done .tick__link { display: none; }

@media (max-width: 560px) {
  .tick { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .tick__body { max-height: 60vh; }
}
