/* KEPT · direction: the private island collection
   palette: shell, sand, lagoon, ink, brass · type: Cormorant Garamond + Manrope (wordmark: Bricolage Grotesque) */
:root {
  --shell: #f4ebdd;
  --shell-2: #ece0cc;
  --sand: #d5bf92;
  --lagoon: #0c4749;
  --lagoon-2: #135a5c;
  --ink: #172526;
  --muted: #55625f;
  --brass: #a67c42;
  --sea-glass: #42b8b4;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mark: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --step-h3: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  --step-head: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --step-hero: clamp(3.25rem, 1.8rem + 5.6vw, 7rem);

  --gutter: clamp(20px, 4.5vw, 80px);
  --space: clamp(88px, 10vw, 160px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--shell); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--shell);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
::selection { background: var(--sand); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
h2 { font-size: var(--step-head); }
h1 em, h2 em { font-style: italic; color: var(--lagoon); }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--shell);
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .16s var(--ease);
}
.btn:hover { background: var(--lagoon); }
.btn:active { transform: scale(.97); }
.btn.small-btn { min-height: 44px; padding: 0 20px; }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--mark);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

/* ---------- Top bar: sits on the sky of the hero photo ---------- */
.bar {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px max(var(--gutter), calc((100% - var(--max)) / 2));
}
.bar nav {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); margin-left: auto;
  min-height: 44px; padding: 0 22px; border-radius: 2px;
  background: rgba(244, 235, 221, .9);
  font-size: 0.9375rem; font-weight: 500;
}
.bar nav a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color .25s ease; }
.bar nav a:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 94svh; min-height: 620px; max-height: 1100px; overflow: hidden; background: #b9cbd3; }
.hero-pic img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
}
.js .hero-pic img { animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
.hero-copy {
  position: absolute; z-index: 2;
  left: max(var(--gutter), calc((100% - var(--max)) / 2)); top: clamp(120px, 20vh, 220px);
  max-width: min(46vw, 640px);
}
.hero h1 { font-size: var(--step-hero); margin-bottom: 22px; }
.hero h1 em { color: var(--ink); }
.hero-copy p { font-size: var(--step-lead); line-height: 1.45; max-width: 30ch; margin-bottom: 30px; font-weight: 500; }
.js .hero-copy > * { animation: lift 1.1s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .12s; }
.js .hero-copy > :nth-child(3) { animation-delay: .24s; }
@keyframes lift { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- The islands ---------- */
.islands-ch { background: var(--lagoon); color: var(--shell); padding: var(--space) 0; }
.islands-ch h2 em { color: var(--sand); }
.isl-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(56px, 7vw, 104px); }
.isl-intro p { font-size: var(--step-lead); line-height: 1.5; max-width: 38ch; color: #d9e3df; }

.isl-stage { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.isl-list { list-style: none; display: grid; gap: 2px; }
.isl-list button {
  display: flex; align-items: baseline; gap: 18px; width: 100%;
  min-height: 52px; padding: 8px 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.1;
  color: rgba(244, 235, 221, .5);
  transition: color .3s ease, transform .3s var(--ease);
}
.isl-list .num { font-family: var(--body); font-size: 0.8125rem; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--sand); opacity: .7; }
.isl-list button:hover { color: rgba(244, 235, 221, .85); transform: translateX(4px); }
.isl-list button[aria-pressed="true"] { color: var(--shell); }
.isl-list button[aria-pressed="true"] .num { opacity: 1; }

.specimen {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--shell);
  overflow: hidden;
}
.specimen img {
  position: absolute; inset: 7% 9%;
  width: 82%; height: 86%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0; transform: translateY(10px);
  transition: opacity 1s ease, transform 1.2s var(--ease);
}
.specimen img.on { opacity: 1; transform: none; }

.isl-facts .coord { font-size: var(--step-small); font-weight: 600; letter-spacing: .04em; color: var(--sand); margin-bottom: 14px; }
.isl-facts h3 { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); margin-bottom: 10px; }
.isl-facts .grown { font-family: var(--display); font-style: italic; font-size: var(--step-lead); color: var(--sand); margin-bottom: 22px; }
.isl-facts .fact { max-width: 34ch; color: #d9e3df; }
.isl-facts.swap > * { animation: lift .7s var(--ease) both; }
.isl-facts.swap > :nth-child(2) { animation-delay: .05s; }
.isl-facts.swap > :nth-child(3) { animation-delay: .1s; }
.isl-facts.swap > :nth-child(4) { animation-delay: .15s; }

/* ---------- What arrives ---------- */
.arrives { padding-top: var(--space); }
.arrives h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.still { margin: 0; }
.still img { width: 100%; height: clamp(420px, 62vw, 900px); object-fit: cover; object-position: 62% 50%; }
.contents {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 36px);
}
.contents .n { display: block; font-size: var(--step-small); font-weight: 600; letter-spacing: .04em; color: var(--brass); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.contents h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.15; margin-bottom: 8px; }
.contents p { max-width: 36ch; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.route { margin-top: clamp(32px, 4vw, 48px); font-size: 1rem; font-weight: 500; color: var(--muted); }

/* ---------- Membership ---------- */
.membership { padding: var(--space) 0; }
.m-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.m-head p { font-size: var(--step-lead); line-height: 1.5; max-width: 38ch; color: var(--muted); }

.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.edition {
  display: flex; flex-direction: column;
  background: var(--shell-2);
  padding: clamp(28px, 3vw, 44px);
  transition: background-color .3s ease, transform .3s var(--ease);
}
.edition:hover { background: #e6d8c0; }
.edition .btn:focus-visible, .annual button:focus-visible, .faq summary:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }
.edition .no { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: #6f5126; margin-bottom: 18px; }
.edition h3 { font-size: clamp(1.75rem, 1.5rem + 0.6vw, 2rem); margin-bottom: 14px; }
.edition .price { font-size: var(--step-small); color: var(--muted); margin-bottom: 20px; }
.edition .price strong { font-family: var(--display); font-weight: 500; font-size: clamp(2.625rem, 2.2rem + 1vw, 3rem); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: lining-nums; margin-right: 4px; }
.edition .lede { margin-bottom: 24px; }
.edition ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; font-size: 0.9375rem; line-height: 1.45; }
.edition li { display: flex; justify-content: space-between; gap: 16px; }
.edition li span:first-child { color: var(--muted); }
.edition li span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.edition .places { margin-top: auto; font-size: 0.9375rem; color: var(--muted); margin-bottom: 14px; }
.edition .btn { width: 100%; }

.m-foot { margin-top: 28px; }
.annual { font-size: 1rem; max-width: 70ch; margin-bottom: 12px; }
.annual button {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-weight: 600; color: var(--lagoon);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.annual button:hover { text-decoration-thickness: 2px; }
.renew { font-size: 0.9375rem; color: var(--muted); max-width: 70ch; }

/* Phone tier picker (hidden on wider screens) */
.tier-pick { display: none; }

/* ---------- Questions ---------- */
.faq { background: var(--shell-2); padding: var(--space) 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq h2 { position: sticky; top: 40px; }
.faq-list { display: grid; gap: 6px; }
.faq details { background: var(--shell); border-radius: 2px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 72px; padding: 18px 26px;
  font-family: var(--display); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--lagoon); }
.faq details[open] summary { color: var(--lagoon); }
.plus { position: relative; width: 14px; height: 14px; flex: none; }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--brass);
  transition: transform .3s var(--ease);
}
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq details p { padding: 0 26px 26px; max-width: 56ch; color: var(--muted); }

/* ---------- Invitation ---------- */
.invite { position: relative; min-height: 88svh; display: flex; align-items: flex-end; padding: var(--gutter) max(var(--gutter), calc((100% - var(--max)) / 2)); overflow: hidden; }
.invite > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.invite-card {
  position: relative; z-index: 1;
  background: var(--shell);
  padding: clamp(32px, 4vw, 56px);
  max-width: 680px;
}
.invite-card h2 { margin-bottom: 18px; font-size: clamp(2.375rem, 1.6rem + 2.4vw, 3.75rem); }
.invite-card p { margin-bottom: 28px; color: var(--muted); max-width: 40ch; }

/* ---------- Footer ---------- */
footer { background: var(--lagoon); color: var(--shell); padding: clamp(64px, 7vw, 104px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; align-items: start; }
.wordmark.big { font-size: clamp(4rem, 3rem + 5vw, 8rem); letter-spacing: -0.06em; }
footer ul { list-style: none; display: grid; gap: 8px; font-size: 0.9375rem; }
footer ul a { text-decoration: none; }
footer ul a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-contact { color: #c9d6d2; }
.foot-last { margin-top: 64px; font-size: var(--step-small); color: #9fb5b0; }

/* ---------- Bridge and welcome pages ---------- */
.ceremony { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.ceremony-copy { padding: clamp(40px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ceremony-copy h1 { font-size: var(--step-head); max-width: 12ch; margin-bottom: 24px; }
.ceremony-copy p { max-width: 40ch; margin-bottom: 28px; color: var(--muted); }
.ceremony-pic { position: relative; overflow: hidden; background: var(--sand); }
.ceremony-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.08) translateX(-2%); } }
@media (max-width: 760px) {
  .ceremony { grid-template-columns: 1fr; grid-template-rows: auto 40svh; }
}

/* ---------- Entrances ---------- */
.js .rise { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .js .hero-pic img, .js .hero-copy > *, .isl-facts.swap > *, .ceremony-pic img { animation: none; }
  .specimen img { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .bar nav { display: none; }
  .hero-copy { max-width: 60vw; }
  .isl-stage { grid-template-columns: 1fr 1fr; }
  .isl-list { grid-column: 1 / 3; grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
  .editions { grid-template-columns: 1fr; max-width: 640px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --space: 88px; }
  .bar { padding: 16px var(--gutter); }

  .hero { height: auto; min-height: 0; max-height: none; background: var(--shell); }
  .hero-pic img { position: static; height: auto; aspect-ratio: 4 / 5; object-position: 50% 50%; }
  .hero-copy { position: static; max-width: none; padding: 32px var(--gutter) 8px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 3.75rem); line-height: 1; margin-bottom: 16px; }
  .hero h1 em { color: var(--lagoon); }
  .hero-copy p { font-size: 1.0625rem; margin-bottom: 24px; }
  .hero-copy .btn { width: 100%; }

  h2 { font-size: clamp(2.375rem, 10.5vw, 2.875rem); line-height: 1.02; }
  .isl-intro, .m-head { grid-template-columns: 1fr; gap: 18px; }
  .isl-stage { grid-template-columns: 1fr; gap: 22px; }
  .isl-list { grid-column: auto; order: 2; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0; padding: 0 0 6px; scrollbar-width: none; }
  .isl-list::-webkit-scrollbar { display: none; }
  .isl-list li { flex: none; scroll-snap-align: start; }
  .isl-list button { font-size: 1.125rem; min-height: 44px; gap: 6px; width: auto; padding: 8px 16px; border: 1px solid rgba(244, 235, 221, .3); border-radius: 999px; white-space: nowrap; }
  .isl-list button[aria-pressed="true"] { border-color: var(--sand); background: rgba(244, 235, 221, .1); }
  .isl-list .num { display: none; }
  .isl-list button:hover { transform: none; }
  .specimen { order: 1; aspect-ratio: 5 / 4; }
  .specimen img { inset: 6% 0; width: 100%; height: 88%; }
  .isl-facts { order: 3; }
  .isl-facts h3 { font-size: 2.5rem; }

  .still img { height: auto; aspect-ratio: 4 / 3; object-position: 70% 50%; }
  .contents { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .contents li { padding: 18px 0; border-top: 1px solid var(--shell-2); }
  .contents li:first-child { border-top: 0; }
  .contents .n { margin-bottom: 4px; }

  .editions { max-width: none; }
  .tier-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
  .tier-pick button {
    display: grid; gap: 2px; justify-items: start; text-align: left;
    min-height: 64px; padding: 10px 12px; border: 1px solid var(--shell-2); border-radius: 2px;
    background: var(--shell); cursor: pointer; font-size: 0.875rem; color: var(--muted);
    transition: background-color .2s ease, border-color .2s ease;
  }
  .tier-pick button strong { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--ink); }
  .tier-pick button[aria-pressed="true"] { background: var(--shell-2); border-color: var(--brass); color: var(--ink); }
  .edition:not(.sel) { display: none; }
  .edition .price strong { font-size: 2.625rem; }
  .edition ul { font-size: 0.875rem; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .faq summary { min-height: 56px; padding: 14px 20px; font-size: 1.25rem; }
  .faq details p { padding: 0 20px 22px; }

  .invite { min-height: 0; display: block; padding: 0; }
  .invite > img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 65% 50%; }
  .invite-card { max-width: none; padding: 36px var(--gutter) 48px; }
  .invite-card h2 { font-size: 2rem; }
  .invite-card .btn { width: 100%; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .wordmark.big { grid-column: 1 / 3; font-size: 5rem; }
}
