/* =====================================================================
   AURELIA HOUSE v2 | "A day measured by the sun"
   Brand idea: the stay is told as one day on the coast, first light to
   last table. Motif: the horizon (one line + a rising sun) as logo,
   dividers and the day clock. The page itself moves from stone morning
   to night sea as you scroll the day.
   Palette: stone #f1ebe1 / sea ink #12333d / terracotta #a44e2d
            night #0e1e24 + dusk #e8a27f (evening only)
   Type: Cormorant Garamond (display) + Manrope (text)
   ===================================================================== */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; }

:root {
  --stone: #f1ebe1;
  --sand: #e4d9c8;
  --sea: #12333d;
  --muted: #5d6a6c;
  --terra: #a44e2d;
  --night: #0e1e24;
  --dusk: #e8a27f;
  --line: rgb(18 51 61 / 0.16);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(18px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--stone); color: var(--sea); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
::selection { background: var(--sea); color: var(--stone); }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--sea); color: var(--stone); }
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.display { font-family: var(--serif); font-weight: 500; line-height: 0.95; letter-spacing: -0.02em; font-size: clamp(2.8rem, 7vw, 6.6rem); }
.display em { font-style: italic; color: var(--terra); }
.display.small { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.meta-row { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 16px; padding-bottom: 12px; margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.meta-row span:first-child { color: var(--terra); }
.meta-row span:last-child { text-align: right; }
.meta-row.light { color: rgb(241 235 225 / 0.86); border-color: rgb(241 235 225 / 0.35); }
.meta-row.light span:first-child { color: var(--stone); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; }
.link-light { color: var(--stone); display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--sea); color: var(--stone); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color 0.3s, transform 0.3s var(--ease); }
.btn:hover { background: var(--terra); }
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-light { background: var(--stone); color: var(--sea); }
.btn-light:hover { background: #fff; }
.btn-ink { background: var(--night); color: var(--stone); }
.btn-ink:hover { background: var(--sea); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 12px var(--gutter) auto; z-index: 50; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 10px 0 18px; border-radius: 999px; background: rgb(241 235 225 / 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgb(18 51 61 / 0.1); transition: transform 0.5s var(--ease); }
.nav.hide { transform: translateY(-140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--serif); font-size: 22px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 34px; height: 12px; color: var(--terra); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 0.25s; }
.nav-links a:hover { background: rgb(18 51 61 / 0.07); }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: none; font: inherit; font-weight: 600; color: var(--sea); cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding: 110px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--stone); }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.15; text-decoration: none; }
.menu .btn { align-self: flex-start; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--stone); overflow: hidden; }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img img { transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 30 36 / 0.42) 0%, rgb(14 30 36 / 0.05) 35%, rgb(14 30 36 / 0.25) 60%, rgb(14 30 36 / 0.78) 100%); }
.hero-horizon { position: absolute; left: 0; right: 0; top: 46%; height: 1px; background: rgb(241 235 225 / 0.5); }
.hero-horizon .sun { position: absolute; right: 18%; bottom: 0; width: 46px; height: 23px; border: 1.5px solid rgb(241 235 225 / 0.9); border-bottom: 0; border-radius: 46px 46px 0 0; animation: rise 2.6s var(--ease) both; }
.hero-inner { position: relative; padding-top: 110px; padding-bottom: clamp(28px, 5vw, 56px); }
.hero h1 { font-size: clamp(3.4rem, 11vw, 10.5rem); max-width: 11ch; margin-bottom: clamp(20px, 3vw, 36px); }
.hero h1 em { color: var(--dusk); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 22px; border-top: 1px solid rgb(241 235 225 / 0.35); }
.hero-foot p { max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgb(241 235 225 / 0.92); }
.hero-actions { display: flex; align-items: center; gap: 20px; flex: none; }
@keyframes settle { to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ---------- intro ---------- */
.intro { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(70px, 9vw, 120px); }
.statement { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 24ch; margin-bottom: 28px; }
.statement em { font-style: italic; color: var(--terra); }
.pill-img { display: inline-block; vertical-align: middle; width: 2.1em; height: 1em; margin: -0.12em 0.1em 0; border-radius: 999px; overflow: hidden; }
.pill-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- a day (background follows the sun) ---------- */
.day { --bg: var(--stone); --fg: var(--sea); background: var(--bg); color: var(--fg); padding: clamp(70px, 9vw, 130px) 0; transition: background-color 0.9s ease, color 0.9s ease; }
.day[data-phase="2"] { --bg: var(--sand); }
.day[data-phase="3"] { --bg: #e9c7ad; }
.day[data-phase="4"] { --bg: var(--night); --fg: var(--stone); }
.day .meta-row { border-color: currentColor; opacity: 0.85; }
.day[data-phase="4"] .meta-row span:first-child,
.day[data-phase="4"] .display em,
.day[data-phase="4"] .t { color: var(--dusk); }
.day[data-phase="4"] .link { color: var(--stone); }
.day-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 100px); }
.day-clock { position: sticky; top: 110px; align-self: start; }
.day-title { font-size: clamp(2.6rem, 5.4vw, 5rem); margin-bottom: clamp(28px, 4vw, 56px); }
.clock { max-width: 360px; }
.arc { width: 100%; height: auto; display: block; }
.arc-sun { fill: var(--terra); transition: cx 0.9s var(--ease), cy 0.9s var(--ease); }
.day[data-phase="4"] .arc-sun { fill: var(--dusk); }
.clock-time { font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.moments { display: grid; gap: clamp(60px, 9vw, 140px); }
.moment { display: grid; gap: 20px; }
.moment figure { overflow: hidden; border-radius: 4px; }
.moment img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.92) contrast(1.02); transition: transform 1.2s var(--ease); }
.moment:nth-child(even) img { aspect-ratio: 16 / 10; }
.moment.in img { transform: scale(1.03); }
.moment .t { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--terra); margin-bottom: 6px; }
.moment h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: 8px; }
.moment p { max-width: 46ch; opacity: 0.86; }

/* ---------- rooms ---------- */
.rooms { position: relative; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 10vw, 140px); }
.rooms-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(30px, 5vw, 60px); }
.rooms-head p { max-width: 38ch; color: var(--muted); }
.room-list { border-top: 1px solid var(--sea); }
.room-list a { display: grid; grid-template-columns: 50px minmax(0, 1fr) minmax(0, 0.9fr) 30px; align-items: center; gap: 20px; padding: clamp(16px, 2vw, 26px) 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 0.5s var(--ease), color 0.3s; }
.r-num { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--terra); }
.r-name { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1; }
.r-note { color: var(--muted); font-size: 15px; }
.r-go { font-size: 22px; justify-self: end; transition: transform 0.4s var(--ease); }
.r-thumb { display: none; }
.room-preview { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(200px, 18vw, 280px); aspect-ratio: 4 / 5; border-radius: 140px 140px 4px 4px; overflow: hidden; pointer-events: none; opacity: 0; scale: 0.7; transition: opacity 0.3s, scale 0.5s var(--ease); box-shadow: 0 30px 60px -20px rgb(14 30 36 / 0.45); }
.room-preview.on { opacity: 1; scale: 1; }
.room-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .room-list:hover a { color: rgb(18 51 61 / 0.35); }
  .room-list a:hover { color: var(--sea); padding-left: 14px; }
  .room-list a:hover .r-go { transform: translateX(6px); color: var(--terra); }
}
@media (hover: none), (pointer: coarse) { .room-preview { display: none; } }

/* ---------- hours ---------- */
.hours { background: var(--sea); color: var(--stone); padding: clamp(70px, 9vw, 120px) 0; }
.hours .meta-row { color: rgb(241 235 225 / 0.8); border-color: rgb(241 235 225 / 0.25); }
.hours .meta-row span:first-child, .hours .display em { color: var(--dusk); }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.hours-table div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgb(241 235 225 / 0.22); }
.hours-table dt { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.hours-table dd { text-align: right; font-variant-numeric: tabular-nums; color: rgb(241 235 225 / 0.86); }

/* ---------- strip ---------- */
.strip { padding: clamp(80px, 10vw, 140px) 0; }
.strip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.strip-rail { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 12px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: thin; }
.strip-rail figure { flex: none; width: clamp(280px, 34vw, 520px); scroll-snap-align: start; }
.strip-rail figure.tall { width: clamp(220px, 22vw, 340px); }
.strip-rail img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.strip-rail .tall img { aspect-ratio: 3 / 4; }
.strip-rail figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- stay (the one terracotta band) ---------- */
.stay { background: var(--terra); color: var(--stone); padding: clamp(90px, 12vw, 170px) 0; text-align: center; }
.stay-inner { display: grid; justify-items: center; gap: 22px; }
.stay-mark { width: 120px; height: 40px; color: var(--stone); }
.stay h2 { font-size: clamp(3rem, 8vw, 7.4rem); }
.stay h2 em { color: var(--stone); }
.stay p { max-width: 40ch; font-size: 1.1rem; }
.stay-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin-top: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: rgb(241 235 225 / 0.86); padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(36px, 5vw, 56px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgb(241 235 225 / 0.15); }
.footer-title { font-family: var(--serif); font-size: 26px; color: var(--stone); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer nav a:hover, .footer-note a:hover { color: var(--dusk); }
.footer-note { font-size: 14px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; }
  .nav .btn-small { display: none; }
}
@media (max-width: 900px) {
  .day-grid, .hours-grid { grid-template-columns: 1fr; }
  .day-clock { position: relative; top: 0; }
  .clock { display: none; }
  .moment:nth-child(even) img, .moment img { aspect-ratio: 4 / 3; }
  .rooms-head { flex-direction: column; align-items: flex-start; }
  .room-list a { grid-template-columns: 70px minmax(0, 1fr) 24px; gap: 16px; }
  .r-num { display: none; }
  .r-thumb { display: block; width: 70px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 40px 40px 3px 3px; }
  .r-note { grid-column: 2; grid-row: 2; margin-top: -10px; font-size: 13px; }
  .r-name { font-size: clamp(1.7rem, 7.5vw, 2.6rem); grid-column: 2; }
  .r-go { grid-column: 3; grid-row: 1 / span 2; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .meta-row { grid-template-columns: auto 1fr auto; }
  .hide-sm { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-horizon .sun { right: 12%; }
  .nav { inset: 10px 10px auto; height: 58px; }
  .strip-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
