/* Hvile — concept site for a city hotel. Made by Nexus Digital. */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-var-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-var-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --forest: #1b2620;  /* green velvet: page ground and the column */
  --brass: #c19a5b;   /* brass handrails: the one accent */
  --cream: #f3ece0;   /* linen: text */
  --oak: #cbb89c;     /* quieter text */
  --line: rgb(243 236 224 / 0.16);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --col: min(34rem, 42vw);
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--forest); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--cream); font: 400 1.0625rem/1.6 "Jost", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, dl, dd, table { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.skip { position: fixed; left: -999rem; top: 0.75rem; z-index: 50; background: var(--brass); color: var(--forest); padding: 0.7rem 1rem; }
.skip:focus { left: var(--pad); }

/* ── Film: full screen; a soft green veil on the right where the column sits ── */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--forest) center / cover no-repeat; overflow: hidden; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.shade { position: absolute; inset: 0; z-index: 10; --dim: 0.18;
  background: linear-gradient(to left, rgb(27 38 32 / 0.92) 0%, rgb(27 38 32 / 0.7) calc(var(--col) + 6rem), rgb(27 38 32 / 0) calc(var(--col) + 22rem)),
              linear-gradient(rgb(27 38 32 / var(--dim)), rgb(27 38 32 / var(--dim))); }

/* ── Top bar ── */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 1.2rem; padding: 1rem var(--pad); background: linear-gradient(rgb(27 38 32 / 0.85), rgb(27 38 32 / 0)); }
.mark { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }
.status { display: none; font-size: 0.875rem; color: var(--oak); }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.8rem); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.top-nav a { text-decoration: none; padding: 0.4rem 0; }
.top-nav a:hover { color: var(--brass); }
.top-nav .cta { padding: 0.55rem 1.1rem; border: 1px solid var(--brass); color: var(--brass); }
.top-nav .cta:hover { background: var(--brass); color: var(--forest); }
@media (min-width: 900px) { .status { display: block; } }

/* ── Chapter rail: small brass numerals on the left ── */
.chapters { position: fixed; left: var(--pad); bottom: 2rem; z-index: 20; display: none; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; counter-reset: c; }
.chapters a { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.8125rem; letter-spacing: 0.08em; text-decoration: none; color: rgb(243 236 224 / 0.55); counter-increment: c; }
.chapters a::before { content: counter(c, upper-roman); font-family: var(--serif); width: 1.6rem; color: rgb(193 154 91 / 0.6); }
.chapters a[aria-current="true"] { color: var(--cream); }
.chapters a[aria-current="true"]::before { color: var(--brass); }
@media (min-width: 1000px) { .chapters { display: block; } }

/* ── Chapters: content in one column on the right ── */
main { position: relative; z-index: 15; }
.ch { position: relative; min-height: 210vh; }
.ch--hero { min-height: 190vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; justify-items: end; padding: 6rem var(--pad) 4rem; }
.col { width: var(--col); display: grid; gap: 1.2rem; justify-items: start; }
.kicker { font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.name { font-family: var(--serif); font-weight: 400; font-size: clamp(5rem, 11vw, 10rem); line-height: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }
.name span { display: inline-block; }
.js .name span { opacity: 0; letter-spacing: 0.4em; animation: settle 1.6s var(--ease) forwards; animation-delay: calc(0.3s + var(--i) * 0.08s); }
@keyframes settle { to { opacity: 1; letter-spacing: 0.04em; } }
.say { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1.04; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--oak); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: 0 1.6rem; background: var(--brass); color: var(--forest); border: 1px solid var(--brass); font: inherit; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.3s, color 0.3s; }
.btn:hover { background: var(--cream); border-color: var(--cream); }
.btn--line { background: transparent; color: var(--cream); border-color: rgb(243 236 224 / 0.5); }
.btn--line:hover { color: var(--forest); }

.facts { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--oak); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8125rem; }
.facts dd { font-family: var(--serif); font-size: 1.35rem; }

/* ── Rooms: a card that scrolls past the film ── */
.ch--list { min-height: 0; padding: 70vh var(--pad) 70vh; display: flex; justify-content: flex-end; }
.card { padding: clamp(1.4rem, 3vw, 2.4rem); background: rgb(27 38 32 / 0.94); border: 1px solid rgb(193 154 91 / 0.35); }
.group { margin-top: 1.6rem; width: 100%; }
.group h3 { font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.gnote { font-size: 0.875rem; color: var(--oak); }
.group ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 1.25rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.item-name { font-family: var(--serif); font-size: 1.45rem; }
.item-price { font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 0.3rem; }
.item-desc { grid-column: 1 / -1; color: var(--oak); font-size: 0.9375rem; }
.note { margin-top: 0.6rem; color: var(--oak); font-size: 0.9rem; }

/* ── Stay calculator ── */
.stay { padding: clamp(1.3rem, 3vw, 2.2rem); background: rgb(27 38 32 / 0.9); border: 1px solid rgb(193 154 91 / 0.35); backdrop-filter: blur(8px); }
.label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oak); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line); background: transparent; color: var(--cream); font: inherit; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chip:hover { border-color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--forest); }
.steppers { display: flex; gap: 2rem; flex-wrap: wrap; }
.stepper > div { display: flex; align-items: center; gap: 0.2rem; margin-top: 0.35rem; }
.stepper button { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); background: transparent; color: var(--cream); font: inherit; font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { border-color: var(--brass); color: var(--brass); }
.stepper output { min-width: 2.5rem; text-align: center; font-family: var(--serif); font-size: 1.7rem; }
.check { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--brass); }
.stay-out { margin-top: 0.4rem; font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--brass); font-variant-numeric: lining-nums tabular-nums; }
.stay-detail { color: var(--oak); }

/* ── Hours ── */
.hours { width: 100%; }
.hours h3 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oak); font-weight: 400; }
.hours table { width: 100%; margin-top: 0.4rem; border-collapse: collapse; border-top: 1px solid var(--line); }
.hours td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }

/* ── Booking ── */
.ch--book { min-height: 0; padding: 100vh var(--pad) 0; display: flex; flex-direction: column; align-items: flex-end; }
.book { padding-bottom: 5rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; width: 100%; padding: clamp(1.2rem, 3vw, 1.8rem); background: rgb(27 38 32 / 0.95); border: 1px solid rgb(193 154 91 / 0.35); }
.form label { display: grid; gap: 0.35rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oak); min-width: 0; }
.form input, .form select { width: 100%; min-height: 3rem; padding: 0 0.85rem; border: 1px solid var(--line); border-radius: 0; background: rgb(243 236 224 / 0.06); color: var(--cream); font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.form select option { background: var(--forest); }
.form input:focus, .form select:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.form [aria-invalid="true"] { border-color: #e07a5f; }
.wide { grid-column: 1 / -1; }
.form-note { padding: 0.9rem 1rem; border-left: 2px solid var(--brass); background: rgb(193 154 91 / 0.12); font-size: 0.9375rem; text-transform: none; letter-spacing: 0; color: var(--cream); }
.find { font-style: normal; line-height: 1.8; color: var(--oak); }
.find h3 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; }
.find a { margin-right: 1rem; color: var(--cream); }
.foot { align-self: stretch; margin: auto calc(var(--pad) * -1) 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding: 1.4rem var(--pad); background: var(--forest); border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--oak); }
html[data-ch="5"] .chapters { opacity: 0; pointer-events: none; }
.chapters { transition: opacity 0.3s; }

/* ── Phones and narrow screens: the column takes the full width at the bottom ── */
@media (max-width: 899px) {
  :root { --col: 100%; }
  .shade { background: linear-gradient(to top, rgb(27 38 32 / 0.96) 0%, rgb(27 38 32 / 0.72) 45%, rgb(27 38 32 / 0) 75%), linear-gradient(rgb(27 38 32 / var(--dim)), rgb(27 38 32 / var(--dim))); }
  .pin { align-content: end; padding-bottom: 2.5rem; }
  .ch { min-height: 190vh; }
  .ch--list { padding: 62vh 0.75rem 62vh; }
  .form { grid-template-columns: 1fr; }
  .top-nav a:first-child { display: none; }
  .steppers { gap: 1.2rem; }
}

/* ── No film: reduced motion, or no script. Each chapter shows its own still. ── */
.static .stage, .no-js .stage { display: none; }
.static .ch, .no-js .ch { min-height: 0; background: var(--forest) center / cover no-repeat; }
.static .ch::before, .no-js .ch::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgb(27 38 32 / 0.94) 0%, rgb(27 38 32 / 0.6) 60%, rgb(27 38 32 / 0.3) 100%); }
.static .ch > *, .no-js .ch > * { position: relative; }
.static .pin, .no-js .pin { position: relative; height: auto; min-height: 88vh; }
.static .ch--list, .no-js .ch--list { padding-block: 5rem; }
.static .ch--book, .no-js .ch--book { padding-top: 30vh; }
.static .ch[data-ch="0"], .no-js .ch[data-ch="0"] { background-image: url("films/h1-key-poster.webp"); }
.static .ch[data-ch="1"], .no-js .ch[data-ch="1"] { background-image: url("films/h2-stairs-poster.webp"); }
.static .ch[data-ch="2"], .no-js .ch[data-ch="2"] { background-image: url("films/h3-room-poster.webp"); }
.static .ch[data-ch="3"], .no-js .ch[data-ch="3"] { background-image: url("films/h4-bath-poster.webp"); }
.static .ch[data-ch="4"], .no-js .ch[data-ch="4"] { background-image: url("films/h5-breakfast-poster.webp"); }
.static .ch[data-ch="5"], .no-js .ch[data-ch="5"] { background-image: url("films/h6-night-poster.webp"); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .name span { animation: none !important; opacity: 1; letter-spacing: 0.04em; }
  .btn, .chip { transition: none; }
}
