:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --paper-deep: #f1eee6;
  --ink: #211e1a;
  --muted: #766f66;
  --line: #ded8cf;
  --accent: #a96443;
  --accent-dark: #874a31;
  --card: #fffdf8;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  padding: 22px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--serif); font-size: clamp(27px, 3.1vw, 42px); font-weight: 600; letter-spacing: -.055em; line-height: 1.12; }
.brand-place { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.icon-button:hover { transform: translateY(-1px); border-color: var(--line); background: var(--card); }
.icon-button svg { width: 22px; height: 22px; }

main { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 54px 0 142px; }
.home-main { width: min(100% - 40px, 1320px); padding-top: clamp(48px, 8vh, 104px); }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 1050px; margin-bottom: 22px; font-size: clamp(49px, 9vw, 124px); line-height: .98; }
h2 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; }
h3 { margin-bottom: 10px; font-size: 25px; }
.lede { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: clamp(16px, 1.65vw, 20px); line-height: 1.7; }
.hero { margin-bottom: 48px; }
.hero-rule { height: 1px; margin: 42px calc((100vw - min(100vw - 40px, 1320px)) / -2) 30px; background: var(--line); }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.quick-card { position: relative; min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; padding: 21px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid transparent; transition: background .2s, color .2s; }
.quick-card:last-child { border-right: 0; }
.quick-card:hover { background: var(--paper-deep); }
.quick-icon { color: var(--accent); }
.quick-icon svg { width: 23px; height: 23px; }
.quick-title { font-size: 15px; font-weight: 600; }
.quick-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.feature-card { position: relative; display: grid; min-height: 360px; grid-template-columns: 1fr 1.1fr; align-items: center; margin-top: 26px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #e8e4da; }
.feature-copy { position: relative; z-index: 1; padding: clamp(28px, 5vw, 66px); }
.feature-copy .eyebrow { margin-bottom: 14px; }
.feature-copy h2 { font-size: clamp(35px, 4vw, 58px); }
.feature-copy p:not(.eyebrow) { max-width: 400px; color: var(--muted); line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }
.room-art { position: relative; align-self: stretch; min-height: 280px; overflow: hidden; background: linear-gradient(135deg, #b8a28c, #716254 49%, #403b34); }
.room-art::before { position: absolute; inset: 13% 10% 0 16%; content: ''; border: 8px solid #51463c; border-bottom: 0; background: linear-gradient(180deg, #d8c8ad 0 44%, #463c34 44% 100%); box-shadow: 0 0 0 1px #e9ddc9; }
.room-art::after { position: absolute; right: 4%; bottom: 0; left: 4%; height: 18%; content: ''; background: linear-gradient(170deg, transparent 0 30%, #382f29 31%); }
.room-window { position: absolute; z-index: 1; top: 18%; left: 24%; width: 42%; height: 34%; border: 5px solid #67584a; background: linear-gradient(160deg, #cad0c0, #78816c 56%, #4c5547); }
.room-sofa { position: absolute; z-index: 2; right: 15%; bottom: 12%; width: 45%; height: 27%; border-radius: 28px 30px 5px 5px; background: #b9a791; box-shadow: 0 14px 0 #776858; }
.room-screen { position: absolute; z-index: 2; top: 14%; right: 11%; width: 22%; height: 19%; border: 7px solid #272522; background: #25282b; box-shadow: 0 12px 24px #25211d55; }
.stay-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.stay-info { padding: 23px 26px; }
.stay-info + .stay-info { border-left: 1px solid var(--line); }
.stay-info span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.stay-info strong { display: block; margin-top: 7px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.home-note { max-width: 760px; margin: 28px auto 0; color: var(--muted); font-size: 14px; line-height: 1.75; text-align: center; }

.page-head { margin-bottom: 38px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 54px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.back-link svg { width: 16px; height: 16px; transition: transform .2s; }
.back-link:hover svg { transform: translateX(-4px); }
.page-head h1 { font-size: clamp(52px, 8vw, 92px); }
.content-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.list-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 21px; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; transition: background .2s; }
.list-card:hover { background: #f2efe8; }
.list-title { display: block; font-size: 16px; font-weight: 600; }
.list-description { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.list-arrow { width: 19px; height: 19px; color: var(--muted); }
.house-main .page-head { margin-bottom: 42px; }
.house-main .list-card > svg { width: 16px; height: 16px; }

.climate-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 370px); gap: 28px; align-items: center; padding: clamp(24px, 4vw, 42px); border: 1px solid #d9cfc2; border-radius: 20px; background: #eee9df; }
.climate-panel > * { min-width: 0; }
.climate-label { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.current-temp { display: flex; align-items: flex-start; gap: 6px; font-family: var(--serif); font-size: clamp(64px, 11vw, 108px); letter-spacing: -.07em; line-height: .95; }
.current-temp .degree { padding-top: 8px; font-family: var(--sans); font-size: .42em; }
.status-line { margin: 15px 0 0; color: var(--muted); font-size: 14px; }
.setpoint-box { min-width: 240px; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 13px; }
.step-button { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #c9bcae; border-radius: 50%; background: var(--card); cursor: pointer; transition: transform .18s, background .18s, color .18s; }
.step-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--ink); color: white; }
.step-button:disabled { cursor: not-allowed; opacity: .44; }
.step-button svg { width: 21px; height: 21px; }
.target-readout { text-align: center; }
.target-readout span { display: block; color: var(--muted); font-size: 12px; }
.target-readout strong { display: block; margin-top: 4px; font-family: var(--serif); font-size: 35px; font-weight: 500; letter-spacing: -.04em; }
.climate-panel .slider-setpoint { display: grid; width: 100%; min-width: 0; max-width: 370px; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.slider-setpoint .target-readout { text-align: left; }
.slider-setpoint .target-readout strong { font-size: 43px; }
.slider-setpoint .target-readout sup { margin-left: 3px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.slider-label { color: var(--muted); font-size: 12px; }
.target-slider { width: 100%; height: 6px; margin: 7px 0 0; border-radius: 99px; accent-color: var(--accent); cursor: pointer; }
.target-slider:disabled { cursor: not-allowed; opacity: .5; }
.slider-markers { display: flex; justify-content: space-between; margin-top: -7px; color: var(--muted); font-size: 11px; }
.slider-actions { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.secondary-button, .apply-button { width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.secondary-button:hover:not(:disabled) { background: var(--paper); }
.secondary-button:disabled, .apply-button:disabled { cursor: not-allowed; opacity: .5; }
.apply-button { border-color: var(--ink); background: var(--ink); color: var(--card); }
.apply-button:hover:not(:disabled) { background: var(--accent-dark); }
.climate-range { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.control-message { grid-column: 1 / -1; min-height: 20px; margin: -10px 0 0; color: var(--accent-dark); font-size: 13px; }
.control-message[data-state="error"] { color: #a1352c; }
.control-message[data-state="success"] { color: #3e6d4e; }
.climate-retry { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; background: transparent; color: var(--accent-dark); font-size: 13px; text-decoration: underline; cursor: pointer; }
.info-cards { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.info-index { color: var(--accent); font-family: var(--serif); font-size: 19px; }
.info-row h2 { margin: 0 0 7px; font-size: 25px; }
.info-row p { max-width: 700px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.disclaimer { margin: 24px 0 0; padding: 17px 19px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 12px; line-height: 1.7; }

.guide-content { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.guide-content p { color: var(--muted); line-height: 1.8; }
.guide-content h2 { margin-top: 28px; font-size: 30px; }
.guide-content h2:first-child { margin-top: 0; }
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.explore-card { display: flex; min-height: 165px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: transform .2s, border-color .2s; }
.explore-card:hover { transform: translateY(-2px); border-color: #c7b9a7; }
.explore-category { margin-bottom: 14px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.explore-card strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.explore-card p { margin: 7px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.explore-card small { margin-top: auto; color: var(--muted); font-size: 12px; }
.help-panel { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-bottom: 24px; padding: 27px; border-radius: 18px; background: var(--paper-deep); }
.help-panel-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--accent); }
.help-panel h2 { margin-bottom: 8px; font-size: 29px; }
.help-panel p { margin-bottom: 12px; color: var(--muted); line-height: 1.7; }

.bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 11px max(12px, calc((100vw - 700px) / 2)) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(18px); }
.nav-item { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 500; transition: color .2s; }
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.7; }
.nav-item:hover, .nav-item[aria-current="page"] { color: var(--ink); }

.gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 50% 15%, #fffdf8 0, var(--paper) 62%); }
.gate-card { width: min(100%, 470px); padding: clamp(30px, 7vw, 54px); border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--card) 88%, transparent); box-shadow: 0 28px 90px #4a3b2812; }
.gate-brand { margin-bottom: 35px; font-family: var(--serif); font-size: 29px; letter-spacing: -.04em; }
.gate-card h1 { margin-bottom: 13px; font-size: clamp(42px, 9vw, 60px); line-height: 1.02; }
.gate-card p:not(.eyebrow):not(.form-error) { color: var(--muted); line-height: 1.7; }
.gate-label { display: block; margin: 24px 0 8px; font-size: 13px; font-weight: 600; }
.gate-input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fffefa; }
.gate-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #a964431c; }
.primary-button { width: 100%; min-height: 52px; margin-top: 13px; border: 0; border-radius: 10px; background: var(--ink); color: #fffdf8; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.primary-button:hover { transform: translateY(-1px); background: var(--accent-dark); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.slider-actions .primary-button { width: 100%; min-height: 48px; margin: 0; padding: 0 8px; font-size: 12px; }
.form-error { min-height: 20px; margin: 10px 0 0; color: #a1352c; font-size: 13px; }
.gate-foot { margin-top: 24px; color: var(--muted); font-size: 12px; text-align: center; }
.search-overlay { position: fixed; z-index: 30; inset: 0; display: grid; place-items: start center; padding: 12vh 20px 24px; background: #201d19a8; backdrop-filter: blur(8px); }
.search-box { width: min(100%, 620px); padding: 23px; border-radius: 18px; background: var(--paper); box-shadow: 0 24px 80px #0003; }
.search-top { display: flex; align-items: center; gap: 12px; }
.search-top input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); outline: none; }
.search-results { display: grid; gap: 5px; margin-top: 16px; }
.search-result { padding: 13px 11px; border-radius: 9px; }
.search-result:hover { background: var(--paper-deep); }
.search-result span { display: block; font-weight: 600; }
.search-result small { color: var(--muted); }

@media (min-width: 1100px) {
  .bottom-nav { right: auto; bottom: 26px; left: 50%; width: 520px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 44px #31271b12; transform: translateX(-50%); }
  main { padding-bottom: 150px; }
}
@media (max-width: 720px) {
  .site-header { min-height: 85px; padding: 16px 20px; }
  .brand-name { font-size: 29px; }
  .brand-place { font-size: 10px; letter-spacing: .2em; }
  main, .home-main { width: min(100% - 34px, 1180px); padding-top: 39px; }
  .home-main { padding-top: 58px; }
  .hero { margin-bottom: 30px; }
  .hero-rule { margin-top: 28px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-card { min-height: 116px; border-bottom: 1px solid var(--line); }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(3), .quick-card:nth-child(4) { border-bottom: 0; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-copy { padding-bottom: 24px; }
  .room-art { min-height: 220px; }
  .stay-info { padding: 18px; }
  .stay-info strong { font-size: 21px; }
  .back-link { margin-bottom: 39px; }
  .house-main .page-head { margin-bottom: 30px; }
  .list-card { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 15px; padding: 20px 0; }
  .climate-panel { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .climate-panel .slider-setpoint { width: 100%; max-width: none; }
  .target-readout strong { font-size: 31px; }
  .explore-grid { grid-template-columns: 1fr; }
  .help-panel { padding: 22px 18px; }
}
@media (max-height: 480px) {
  .site-header { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .brand-name { font-size: 24px; }
  .brand-place { font-size: 9px; }
  .icon-button { width: 40px; height: 40px; }
  main, .home-main { padding-top: 20px; }
  .hero, .page-head { margin-bottom: 20px; }
  .eyebrow { margin-bottom: 10px; }
  .page-head h1, .hero h1 { margin-bottom: 12px; font-size: clamp(38px, 9vw, 48px); }
  .bottom-nav { padding-top: 5px; padding-bottom: calc(5px + env(safe-area-inset-bottom)); }
  .nav-item { min-height: 46px; gap: 2px; font-size: 10px; }
  .nav-item svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Match the guest guide's sharper, editorial card style. */
.icon-button,
.quick-grid,
.feature-card,
.stay-strip,
.list-card,
.climate-panel,
.secondary-button,
.apply-button,
.guide-content,
.explore-card,
.help-panel,
.help-panel-icon,
.gate-card,
.gate-input,
.primary-button,
.search-box,
.search-top input,
.search-result {
  border-radius: 0;
}
@media (min-width: 1100px) {
  .bottom-nav { border-radius: 0; }
}
