/*
 * Style: Styled by Laura. The seal pressed in indigo: by day the palest dip,
 * by evening the deepest. The price ladder is a fan deck of paint cards, from
 * palest to deepest. Motion character: things lift, fan out and settle.
 */
:root {
  color-scheme: light dark;
  --ground: light-dark(#dde3f1, #0f1630);
  --card: light-dark(#f4f6fb, #18213f);
  --text: light-dark(#141d3a, #e3e8f6);
  --muted: light-dark(#3a4670, #a9b4d6);
  --ink: light-dark(#2c3d86, #9aa8e8);
  --oak: light-dark(#7a5330, #d4a877);
  --line: light-dark(#bcc6e0, #2b3660);
  --focus: light-dark(#24336f, #a9b6eb);
  --seal-line: var(--text);
  --note-bg: var(--card);
  --note-text: var(--text);
  --hover-wash: light-dark(rgb(20 29 58 / .07), rgb(227 232 246 / .08));
  --select-bg: light-dark(#2c3d86, #a9b6eb);
  --select-text: light-dark(#f4f6fb, #0f1630);
  --scroll-thumb: light-dark(#9aa7cc, #2f3b66);
  --button-bg: light-dark(#24336f, #a9b6eb);
  --button-text: light-dark(#f3f5fb, #0f1630);
  --sw1: #cbd4ec; --sw2: #a3b3de; --sw3: #7389c9; --sw4: #3a4e98; --sw5: #1c2754;

  --display: "Gloock", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --body: "Hanken Grotesk", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 86rem;
  --shadow: 0 1px 2px rgb(15 22 48 / .12), 0 18px 36px -22px rgb(15 22 48 / .55);
}

body { background: var(--ground); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3, .card-name, .card-price, .step-no, .board-list dt { font-family: var(--display); font-weight: 400; }
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.75rem); line-height: 1.04; letter-spacing: -.01em; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .7rem var(--gutter); background: var(--ground); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-seal { width: 2.75rem; flex: none; transition: transform .35s var(--ease-press); }
.brand:hover .brand-seal { transform: rotate(-12deg); }
.brand-name { font-family: var(--display); font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.1; }
.top-nav { display: none; gap: 1.5rem; }
.top-nav a { text-decoration: none; font-weight: 500; padding: .5rem 0; background: linear-gradient(currentColor 0 0) 0 100% / 0 1.5px no-repeat; transition: background-size .25s var(--ease-out); }
.top-nav a:hover { background-size: 100% 1.5px; }
.top-actions { display: flex; align-items: center; gap: .25rem; }
.top-home { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 500; font-size: .9375rem; padding: .35rem .55rem .35rem .35rem; border-radius: 999px; transition: background-color .15s ease-out; min-height: 2.75rem; }
.top-home:hover { background: var(--hover-wash); }
.top-home-seal { width: 2rem; flex: none; transition: transform .35s var(--ease-press); }
.top-home:hover .top-home-seal { transform: rotate(-14deg); }
.top-call { display: none; padding: .6rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem; background: var(--button-bg); color: var(--button-text); transition: transform .15s var(--ease-out); }
.top-call:hover { transform: translateY(-1px); }
@media (max-width: 479px) { .top-home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (min-width: 640px) { .top-call { display: inline-block; } }
@media (min-width: 1040px) { .top-nav { display: flex; margin-right: 1rem; } }

/* ---- hero: the room by day, or by lamp light ---- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(1.25rem, 3vw, 3rem) var(--gutter) clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero-words { display: grid; gap: 1.1rem; justify-items: start; }
h1 { font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem); line-height: .95; letter-spacing: -.02em; max-width: 8ch; }
h1 em { font-style: normal; color: var(--ink); }
.lede { max-width: 40ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.from { font-size: 1.125rem; }
.from strong { font-family: var(--display); font-weight: 400; font-size: 1.75rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.button { display: inline-flex; align-items: center; padding: .95rem 1.5rem; border-radius: 999px; background: var(--button-bg); color: var(--button-text); font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s var(--ease-out); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.text-link { display: inline-block; font-weight: 600; padding: .7rem 0; }
.preview-note { margin-top: .5rem; }

.hero-room { position: relative; display: grid; gap: .9rem; margin: 0; }
.room-frame { overflow: hidden; border-radius: .35rem; box-shadow: var(--shadow); }
.room-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-room figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; font-size: .9375rem; color: var(--muted); padding-left: clamp(6.5rem, 16vw, 9rem); }
.light-switch { display: inline-flex; align-items: center; gap: .6rem; border: 0; background: none; cursor: pointer; padding: .5rem .25rem; color: var(--text); font-weight: 600; min-height: 2.75rem; }
.switch-track { width: 2.75rem; height: 1.5rem; border-radius: 999px; background: var(--sw2); box-shadow: inset 0 0 0 1.5px var(--focus); position: relative; transition: background-color .3s ease-out; }
.switch-knob { position: absolute; left: .2rem; top: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #f4f6fb; box-shadow: 0 1px 3px rgb(15 22 48 / .4); transition: transform .3s var(--ease-press); }
.light-switch[aria-pressed="true"] .switch-track { background: var(--sw5); }
.light-switch[aria-pressed="true"] .switch-knob { transform: translateX(1.25rem); background: #f2c879; }

/* the chop: her seal stamped in the corner, as on a print */
.chop { position: absolute; right: clamp(-.75rem, -1vw, 0rem); top: clamp(-1.75rem, -2vw, -1rem); width: clamp(5.5rem, 11vw, 8.5rem); rotate: 8deg; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); }
/* the fan deck: five paint cards, the five prices */
.fan { position: absolute; left: clamp(-.5rem, -1vw, 0rem); bottom: 1.5rem; width: clamp(5.5rem, 14vw, 8rem); height: clamp(8rem, 20vw, 11.5rem); display: block; border-radius: .5rem; }
.chip { position: absolute; left: 30%; bottom: 0; width: 40%; height: 100%; border-radius: .3rem .3rem .2rem .2rem; transform-origin: 50% 92%; box-shadow: 0 1px 2px rgb(15 22 48 / .25), 0 10px 18px -10px rgb(15 22 48 / .6); transition: transform .45s var(--ease-press); }
.chip--1 { background: var(--sw1); transform: rotate(-32deg); }
.chip--2 { background: var(--sw2); transform: rotate(-16deg); }
.chip--3 { background: var(--sw3); transform: rotate(0deg); }
.chip--4 { background: var(--sw4); transform: rotate(16deg); }
.chip--5 { background: var(--sw5); transform: rotate(32deg); }
.fan-pin { position: absolute; left: calc(50% - .3rem); bottom: 4%; width: .6rem; height: .6rem; border-radius: 50%; background: var(--oak); box-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.fan:hover .chip--1 { transform: rotate(-40deg); } .fan:hover .chip--2 { transform: rotate(-20deg); }
.fan:hover .chip--4 { transform: rotate(20deg); } .fan:hover .chip--5 { transform: rotate(40deg); }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }

/* ---- prices: the ladder as paint cards ---- */
.prices { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter); display: grid; gap: 2rem; }
.prices-head { display: grid; gap: .75rem; max-width: 44rem; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; } }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--card); border-radius: .4rem; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease-press); }
.card:hover { transform: translateY(-4px); }
.swatch { padding: 1.1rem 1.1rem 1.25rem; min-height: 9.5rem; display: grid; align-content: space-between; gap: .4rem; }
.card--1 .swatch { background: var(--sw1); color: #141d3a; }
.card--2 .swatch { background: var(--sw2); color: #141d3a; }
.card--3 .swatch { background: var(--sw3); color: #0b1129; }
.card--4 .swatch { background: var(--sw4); color: #f4f6fb; }
.card--5 .swatch { background: var(--sw5); color: #f4f6fb; }
.card-name { font-size: 1.5rem; line-height: 1.1; }
.card-price { font-size: clamp(2.5rem, 2.2rem + 1vw, 3rem); line-height: 1; font-variant-numeric: lining-nums; }
.card-price span { font-family: var(--body); font-size: 1rem; font-weight: 600; }
.card-mode { font-size: .875rem; font-weight: 600; }
.card-body { padding: 1.1rem 1.1rem 1.25rem; display: grid; gap: 1rem; align-content: space-between; }
.card-body ul { display: grid; gap: .55rem; }
.card-body li { position: relative; padding-left: 1rem; font-size: .9688rem; line-height: 1.45; }
.card-body li::before { content: ""; position: absolute; left: 0; top: .6em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--oak); }
.turn { font-size: .875rem; font-weight: 600; color: var(--muted); padding-top: .75rem; border-top: 1px solid var(--line); }
.prices-small { display: grid; gap: .5rem; max-width: 60ch; font-size: .9688rem; }
.suggest { color: var(--muted); }

/* ---- the board ---- */
.board { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter); display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.board-picture { display: grid; gap: .5rem; margin: 0; }
.board-picture img { border-radius: .35rem; box-shadow: var(--shadow); }
.board-picture figcaption { font-size: .875rem; color: var(--muted); }
.board-words { display: grid; gap: 1.25rem; }
.board-list { display: grid; gap: 1.25rem; margin: .5rem 0 0; }
.board-list dt { font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.board-list dd { margin: .25rem 0 0; max-width: 46ch; }
@media (min-width: 960px) { .board { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); } }

/* ---- booking ---- */
.booking { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter); display: grid; gap: 2rem; justify-items: start; }
.steps { display: grid; gap: 2rem; width: 100%; }
.steps li { display: grid; gap: .4rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--ink); }
.step-no { font-size: 3rem; line-height: 1; color: var(--ink); }
.steps h3 { font-size: 1.625rem; line-height: 1.15; }
.steps p { max-width: 34ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* ---- family ---- */
.family { max-width: var(--max); margin: 0 auto clamp(2rem, 5vw, 4rem); width: calc(100% - 2 * var(--gutter)); padding: clamp(1.75rem, 4vw, 3rem); background: var(--card); border-radius: .4rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.family h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.family .dock { margin-top: .75rem; }

/* ---- footer ---- */
.foot { max-width: var(--max); margin: 0 auto; padding: 2rem var(--gutter) 3rem; display: grid; gap: 1.25rem; align-items: center; }
.foot-brand { display: flex; gap: 1rem; align-items: center; }
.foot-seal { width: 3.5rem; flex: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot-links a { display: inline-block; padding: .7rem 0; font-weight: 500; }
.foot-note { font-size: .9375rem; color: var(--muted); }
@media (min-width: 900px) { .foot { grid-template-columns: auto 1fr; } .foot-links { justify-content: flex-end; } .foot-note { grid-column: 1 / -1; } }

/* ---- arrival: the room settles into focus, then the fan deck opens ---- */
@media (prefers-reduced-motion: no-preference) {
  .lt-ready .room-img { animation: settle 1.3s var(--ease-out) both; }
  .lt-ready .chop { animation: chop 0.6s var(--ease-press) both; animation-delay: 1.05s; }
  .lt-ready .hero-words > * { animation: rise .7s var(--ease-out) both; }
  .lt-ready .hero-words > :nth-child(2) { animation-delay: .08s; }
  .lt-ready .hero-words > :nth-child(3) { animation-delay: .14s; }
  .lt-ready .hero-words > :nth-child(4) { animation-delay: .2s; }
  .lt-ready .hero-words > :nth-child(5) { animation-delay: .3s; }
  .lt-ready .chip { animation: fan-open .8s var(--ease-press) backwards; animation-delay: calc(.55s + var(--c) * 70ms); }
  .card.lt-arrived .swatch { animation: lift .6s var(--ease-press) both; }
}
@media (prefers-reduced-motion: reduce) {
  .lt-ready .hero { animation: fade .2s ease-out both; }
  .chip, .switch-knob { transition: none; }
}
.chip--1 { --c: 0; } .chip--2 { --c: 1; } .chip--3 { --c: 2; } .chip--4 { --c: 3; } .chip--5 { --c: 4; }
@keyframes settle { from { transform: scale(1.07); opacity: .4; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fan-open { from { transform: rotate(0deg) translateY(.5rem); opacity: 0; } }
@keyframes chop { 0% { opacity: 0; transform: scale(1.3); } 60% { opacity: 1; transform: scale(.95); } 100% { opacity: 1; transform: none; } }
@keyframes lift { from { transform: translateY(.6rem); } }
@keyframes fade { from { opacity: 0; } }
[data-arrive] { --arrive-distance: 1.25rem; --arrive-duration: 650ms; }
