:root {
  color-scheme: light;
  --bg: #e7ebef;
  --surface: #f4f6f8;
  --surface-strong: #d9dfe5;
  --text: #151a20;
  --muted: #59636e;
  --line: #c5ccd4;
  --accent: #315fae;
  --accent-contrast: #f5f8fb;
  --shadow: 0 24px 80px rgb(60 76 92 / .16);
  --radius: 18px;
  --pill: 999px;
  --font-ui: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1116;
  --surface: #151b22;
  --surface-strong: #202832;
  --text: #eef2f5;
  --muted: #a0aab4;
  --line: #313b46;
  --accent: #7ea2e5;
  --accent-contrast: #101722;
  --shadow: 0 28px 90px rgb(0 0 0 / .35);
}

:root[data-theme="light"] {
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 2%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 32rem),
    var(--bg);
  font-family: var(--font-ui);
  transition: color .3s ease, background-color .3s ease;
}

button,
input { font: inherit; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; }

.shell {
  width: min(1400px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px max(28px, calc((100vw - 1400px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: .08em;
}

.brand-mark {
  width: 22px;
  aspect-ratio: 1;
  border: 6px solid var(--text);
  border-right-color: var(--accent);
  border-radius: 50%;
  transform: rotate(-28deg);
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}

nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color .2s ease;
}

nav a:hover,
.site-footer a:hover { color: var(--text); }

.theme-toggle {
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.theme-toggle:hover { background: var(--surface-strong); }
.theme-toggle:active { transform: translateY(1px) scale(.98); }

.hero {
  min-height: calc(100dvh - 70px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  padding-block: clamp(36px, 6vw, 80px);
}

.hero-copy { padding-left: clamp(0px, 4vw, 64px); }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -.052em;
}

h1 {
  max-width: 10ch;
  margin-bottom: 24px;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: .96;
  font-weight: 740;
}

.hero-copy > p {
  max-width: 18ch;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 760;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), background .22s ease, color .22s ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(.98); }

.button-primary {
  color: var(--accent-contrast);
  background: var(--accent);
}

.button-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }

.button-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover { background: var(--surface); }

.hero-media {
  min-height: min(74dvh, 820px);
  box-shadow: var(--shadow);
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.media img {
  transition: opacity .4s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}

.media:hover img { transform: scale(1.025); }

.media.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, var(--surface-strong) 20%, var(--surface) 45%, var(--surface-strong) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.media.is-loading img { opacity: 0; }

.media.is-error::after {
  content: attr(data-error);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  background: var(--surface-strong);
  text-align: center;
}

@keyframes shimmer { to { background-position: -220% 0; } }

.section { padding-block: clamp(96px, 12vw, 168px); content-visibility: auto; contain-intrinsic-size: auto 900px; }

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(42px, 6vw, 82px);
}

.section-heading h2,
.booking h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .98;
  font-weight: 720;
}

.section-heading p,
.booking-copy p {
  max-width: 56ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.landscape-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(240px, 3fr);
  grid-template-rows: minmax(280px, 1fr) auto;
  gap: 18px;
}

.media-wide { min-height: 660px; grid-row: 1 / 3; }
.media-tall { min-height: 410px; }

.field-note {
  align-self: end;
  padding: 28px 4px 4px;
}

.field-note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.field-note p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}

.ritual-copy,
.ritual-image {
  border-radius: var(--radius);
}

.ritual-copy {
  grid-column: span 5;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.ritual-copy-large {
  grid-column: span 7;
  min-height: 520px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.ritual-image { grid-column: span 5; min-height: 520px; }
.ritual-image-tall { grid-column: span 7; min-height: 600px; }

.ritual-index {
  width: fit-content;
  margin-bottom: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
}

.ritual-copy h3 {
  max-width: 9ch;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.ritual-copy p {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.manifesto {
  min-height: 78dvh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.manifesto-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 0;
}

.manifesto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(8 12 16 / .58);
}

.manifesto p {
  width: min(880px, calc(100% - 48px));
  margin: 0;
  color: #eef2f5;
  font-size: clamp(44px, 7vw, 96px);
  line-height: .98;
  letter-spacing: -.055em;
  text-align: center;
  text-wrap: balance;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(46px, 9vw, 140px);
}

.date-form {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.date-fields label {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--bg);
}

input:focus-visible,
.button:focus-visible,
.theme-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 3px;
}

.form-help,
.form-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-help { margin-top: 14px; }
.form-status { min-height: 24px; margin-top: 8px; }
.form-status.is-error { color: #c45252; }
.form-status.is-success { color: color-mix(in srgb, var(--accent) 75%, var(--text)); }
.submit-button { margin-top: 18px; border: 0; }
.submit-button[disabled] { cursor: wait; opacity: .7; transform: none; }

.site-footer {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.site-footer strong { font-size: 15px; letter-spacing: .08em; }
.site-footer p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.has-js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

.has-js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 52px; }
  .hero-copy { padding-left: 0; }
  .hero-media { min-height: 64dvh; }
  .landscape-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .media-wide { grid-column: 1 / 3; grid-row: auto; min-height: 520px; }
  .media-tall { min-height: 380px; }
  .ritual-copy-large,
  .ritual-image,
  .ritual-copy,
  .ritual-image-tall { grid-column: span 6; }
  .booking { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .shell { width: min(100% - 32px, 680px); }
  .site-header { min-height: 64px; padding: 10px 16px; }
  .brand { font-size: 12px; }
  .theme-toggle { padding-inline: 13px; }
  .hero { min-height: calc(100dvh - 64px); gap: 34px; padding-block: 34px; }
  h1 { max-width: 9ch; font-size: clamp(44px, 14vw, 64px); }
  .hero-media { min-height: 52dvh; }
  .section { padding-block: 92px; }
  .section-heading h2,
  .booking h2 { font-size: clamp(38px, 11vw, 54px); }
  .landscape-grid { grid-template-columns: 1fr; }
  .media-wide { grid-column: auto; min-height: 420px; }
  .media-tall { min-height: 520px; }
  .ritual-grid { grid-template-columns: 1fr; }
  .ritual-copy-large,
  .ritual-image,
  .ritual-copy,
  .ritual-image-tall { grid-column: auto; min-height: 420px; }
  .ritual-image-tall { min-height: 540px; }
  .manifesto { min-height: 68dvh; }
  .manifesto p { text-align: left; }
  .date-fields { grid-template-columns: 1fr; }
  input { font-size: 16px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-js .reveal { opacity: 1; transform: none; }
  .media:hover img { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; }
}

/* Morrow House: alpine editorial cover */
.hero {
  min-height: calc(100dvh - 92px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: 1fr;
  align-items: end;
  margin-top: 22px;
  padding: clamp(32px, 5vw, 72px);
  border-radius: 30px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(8 15 22 / .68), transparent 64%), linear-gradient(0deg, rgb(8 15 22 / .58), transparent 55%);
  pointer-events: none;
}
.hero-media img { object-position: center 58%; }
.hero-copy {
  width: min(620px, 58%);
  margin: 0;
  padding: clamp(28px, 4vw, 52px);
  color: #f5f6f2;
  background: rgb(12 21 28 / .62);
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(115%);
  box-shadow: 0 30px 90px rgb(5 12 17 / .25);
}
.hero h1,
.section-heading h2,
.booking h2,
.ritual-copy h3 {
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: -.055em;
}
.hero h1 { max-width: 9ch; margin-bottom: 22px; font-size: clamp(58px, 6.8vw, 104px); line-height: .9; }
.hero-copy > p { max-width: 22ch; margin-bottom: 28px; color: #e5e8e5; }
.hero .button-primary { color: #10171c; background: #f0f3ef; }
.hero .button-secondary { color: #f0f3ef; border-color: rgb(255 255 255 / .48); }
.hero .button-secondary:hover { background: rgb(255 255 255 / .12); }

@media (max-width: 767px) {
  .hero {
    min-height: calc(100dvh - 82px);
    gap: 0;
    margin-top: 14px;
    padding: 18px;
    border-radius: 22px;
  }
  .hero-media img { object-position: 60% center; }
  .hero-copy { width: 100%; padding: 24px; border-radius: 15px; }
  .hero h1 { max-width: 8ch; font-size: clamp(44px, 12vw, 54px); }
  .hero-copy > p { max-width: 20ch; font-size: 18px; }
}

@media (prefers-reduced-transparency: reduce) {
  .hero-copy { background: #15212a; backdrop-filter: none; }
}
