@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #faf8f3;
  --ink: #27392b;
  --body: #393e32;
  --muted: #535c4d;
  --line: #bbc0ae;
  --field-line: #788178;
  --wash: #e6e9dc;
  --hosting-wash: #edf0e7;
  --heading: "Source Serif 4", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font: 16px/1.55 system-ui, sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--heading); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(2.55rem, 4.65vw, 4.65rem); letter-spacing: -.045em; line-height: 1; }
h2 { font-size: clamp(2.25rem, 3.8vw, 3.7rem); letter-spacing: -.045em; }
a { color: var(--ink); text-underline-offset: .22em; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 5; inset: 12px auto auto 12px; background: var(--paper); padding: 8px 12px; }

.shell { width: min(calc(100% - 2 * clamp(16px, 5vw, 72px)), 1200px); margin-inline: auto; }
.section { padding-block: clamp(42px, 6vw, 84px); }
.header { background: var(--wash); border-bottom: 1px solid var(--line); }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { color: var(--ink); font: 400 clamp(1.24rem, 2.1vw, 1.63rem)/1.05 var(--heading); text-decoration: none; }
.navigation nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); }
.navigation nav a { display: flex; align-items: center; min-height: 44px; font-size: .91rem; text-decoration: none; }
.navigation nav a:hover, .brand:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); font-size: .9rem; font-weight: 650; text-align: center; text-decoration: none; }
.button:hover { background: var(--wash); }
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { background: #384d3f; }
.button.primary:focus-visible { outline-color: var(--ink); }
.menu-toggle { display: none; }

.house {
  --rail: #29372c;
  --rail-ink: #f4f0e7;
  --rail-rule: #667365;
  display: grid;
  grid-template-columns: minmax(265px, .7fr) minmax(0, 1.65fr);
  align-items: start;
  padding-block: clamp(18px, 3vw, 42px) clamp(34px, 5vw, 72px);
}
.house-rail { padding: clamp(21px, 3.3vw, 47px); background: var(--rail); color: var(--rail-ink); }
.house-title h1 { color: inherit; margin-top: 13px; }
.location { color: var(--muted); font-size: .82rem; font-weight: 600; }
.house-title .location { color: #d7ddcf; }
.door-picker { margin-top: clamp(22px, 4vw, 50px); }
.door-prompt { margin-bottom: 9px; color: #d7ddcf; font-size: .82rem; }
.door-tabs { border-block: 1px solid var(--rail-rule); }
.door-tabs button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 9px 29px 9px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.door-tabs button + button { border-top: 1px solid var(--rail-rule); }
.door-tabs button span { display: block; font-family: var(--heading); font-size: 1.13rem; line-height: 1.15; }
.door-tabs button small { display: block; color: #d7ddcf; margin-top: 4px; font-size: .73rem; }
.door-tabs button:hover { background: #344636; }
.door-tabs button[aria-selected=true] { background: #415343; box-shadow: inset 3px 0 #c5b58a; }
.door-tabs button[aria-selected=true]::after { content: "→" / ""; position: absolute; inset: 50% 10px auto auto; transform: translateY(-50%); }
.door-tabs button:focus-visible { outline-offset: -4px; }
.door-views { min-width: 0; }
.door-view figure { overflow: clip; }
.door-view + .door-view { margin-top: 26px; }
.door-view[role=tabpanel] { margin-top: 0; }
.gallery-image { display: block; background: var(--wash); }
.gallery-image img { width: 100%; aspect-ratio: 1.48; object-fit: cover; }
.gallery-image:hover { outline: 2px solid var(--ink); outline-offset: -3px; }
#view-courtyard img { object-position: center 57%; }
.view-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 15px 0 13px clamp(0px, 2vw, 27px);
  border-bottom: 1px solid var(--line);
}
.view-caption h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
.view-caption p { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: .88rem; font-weight: 650; }

dialog { max-width: min(91vw, 950px); max-height: 92svh; padding: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #18221dda; }
dialog img { max-height: 73svh; object-fit: contain; }
.dialog-actions { display: flex; justify-content: flex-end; margin-bottom: 6px; }
dialog button { min-width: 44px; min-height: 44px; border: 1px solid var(--field-line); background: transparent; font-size: 1.3rem; }
dialog p { margin-top: 6px; font-size: .88rem; }

.about, .hosting, .stay-notes {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  gap: 24px clamp(24px, 7vw, 96px);
  align-items: start;
}
.about { border-top: 1px solid var(--line); }
.about h2, .hosting h2, .stay-notes h2 { margin-top: 8px; }
.about-lead { color: var(--ink); font: 1.35rem/1.4 var(--heading); }
.about-copy { max-width: 55ch; }
.about-copy p + p { margin-top: 13px; }
.house-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 0 0;
  border-block: 1px solid var(--line);
}
.house-details > div { padding: 13px clamp(8px, 2vw, 24px); }
.house-details > div + div { border-left: 1px solid var(--line); }
.house-details dt, .role-stage { color: var(--muted); font-size: .8rem; font-weight: 600; }
.house-details dd { margin: 2px 0 0; color: var(--ink); font: 1.1rem/1.3 var(--heading); }
.hosting-band { background: var(--hosting-wash); border-block: 1px solid var(--line); }
.hosting-intro > p:last-child { margin-top: 11px; color: var(--muted); }
.hosting-roles { border-top: 1px solid var(--line); }
.hosting-roles article {
  display: grid;
  grid-template-columns: minmax(80px, .33fr) minmax(0, 1fr);
  gap: 10px 20px;
  align-items: baseline;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.hosting-roles h3 { font-size: 1.5rem; }
.hosting-roles h3 + p, .note-list details p { margin-top: 5px; color: var(--muted); font-size: .92rem; }
.note-list { border-top: 1px solid var(--line); }
.note-list details { border-bottom: 1px solid var(--line); }
.note-list summary { padding: 13px 4px; color: var(--ink); font-weight: 600; cursor: pointer; }
.note-list details p { margin: 0 0 14px; padding-inline: 4px; }

.enquiry-band { border-block: 1px solid var(--line); background: var(--wash); }
.enquiry { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(24px, 7vw, 96px); }
.enquiry-intro { max-width: 34ch; }
.enquiry-intro h2 { margin-top: 8px; }
.enquiry-intro p + p, .enquiry-intro h2 + p { margin-top: 10px; }
.concept-note { color: var(--muted); font-size: .87rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
#stay-form label { display: block; min-width: 0; font-size: .9rem; font-weight: 650; }
#stay-form input, #stay-form select, #stay-form textarea { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; margin-top: 4px; padding: 7px 10px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--paper); font-weight: 400; }
#stay-form > .button { margin-top: 16px; }
.draft { margin-top: 16px; }
.draft textarea { resize: vertical; }
.draft .button { margin-top: 8px; }
#form-status:not(:empty) { margin-top: 8px; font-size: .88rem; }
.footer .shell { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding-block: 22px; }
.footer p { font-size: .85rem; color: var(--muted); }

@media (max-width: 860px) {
  .house { grid-template-columns: minmax(0, 1fr); }
  .house-title h1 { max-width: 15ch; }
  .door-picker { margin-top: 19px; }
  .door-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .door-tabs button { min-height: 44px; padding: 6px 4px; text-align: center; }
  .door-tabs button + button { border-top: 0; border-left: 1px solid var(--rail-rule); }
  .door-tabs button span { font-size: clamp(.88rem, 3.9vw, 1.1rem); }
  .door-tabs button small, .door-tabs button[aria-selected=true]::after { display: none; }
  .door-tabs button[aria-selected=true] { box-shadow: inset 0 -3px #c5b58a; }
  .view-caption { padding-inline: 0; }
}
@media (max-width: 760px) {
  .navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; min-height: 62px; padding-block: 8px; }
  .navigation .menu-toggle { display: inline-flex; gap: 8px; }
  .navigation nav { grid-column: 1 / -1; display: grid; gap: 0; padding-top: 5px; }
  .menu-toggle:not([hidden])[aria-expanded=false] + nav { display: none; }
  .navigation nav a { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .about, .hosting, .stay-notes, .enquiry { grid-template-columns: minmax(0, 1fr); }
  .house-details { grid-template-columns: minmax(0, 1fr); }
  .house-details > div { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 9px; align-items: baseline; }
  .house-details > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 380px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { --reveal-x: 0px; --reveal-y: 10px; }
  [data-reveal="from-left"] { --reveal-x: -14px; --reveal-y: 0px; }
  [data-reveal="from-right"] { --reveal-x: 14px; --reveal-y: 0px; }
  [data-reveal].reveal-in-view { animation: reveal-in 450ms ease-out; }
  .door-view.reveal-in-view { animation: none; }
  .door-view.reveal-in-view img { animation: reveal-in 540ms cubic-bezier(.22,.61,.36,1); }
  .door-view[data-reveal="from-left"] img { --reveal-x: -30px; }
  .door-view[data-reveal="from-right"] img { --reveal-x: 30px; }
  .door-view.reveal-in-view .view-caption {
    --reveal-x: 0px;
    --reveal-y: 8px;
    animation: reveal-in 390ms 60ms ease-out backwards;
  }
  .hosting-roles article.reveal-in-view { animation-fill-mode: backwards; }
  .hosting-roles article:nth-child(2).reveal-in-view { animation-delay: 55ms; }
  .hosting-roles article:nth-child(3).reveal-in-view { animation-delay: 110ms; }
  .note-list details[open] p { --reveal-x: 0px; --reveal-y: 5px; animation: reveal-in 220ms ease-out; }

  @keyframes reveal-in {
    from { opacity: .72; transform: translate(var(--reveal-x), var(--reveal-y)); }
    to { opacity: 1; transform: translate(0); }
  }
}
