:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --ink: #252924;
  --muted: #575f54;
  --green: #344539;
  --line: #d8dbd0;
  --band: #e9ece3;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5.3vw, 5.25rem);
  --shell: 83rem;
  --header-height: 5.1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
body:has(.viewer[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid #496d51; outline-offset: 5px; }
[id] { scroll-margin-top: calc(var(--header-height) + 1.25rem); }

.shell { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-top { position: sticky; z-index: 2; top: 0; background: var(--paper); }
.site-header { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font: 1.5rem/1 var(--serif); text-decoration: none; }
.house-mark { position: relative; display: block; width: 1.75rem; height: 1.85rem; color: var(--green); }
.house-mark::before { position: absolute; inset: 1px 3px 3px; border: 1px solid currentColor; border-radius: 12px 12px 0 0; content: ""; }
.house-mark::after { position: absolute; height: .65rem; bottom: 3px; left: 50%; border-left: 1px solid currentColor; content: ""; }
.header-link { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 550; text-decoration: none; }
.header-link:hover, .footer-link:hover { text-decoration: underline; text-underline-offset: .27em; }
.grid-icon { display: inline-block; flex: 0 0 .76rem; width: .76rem; height: .76rem; background: repeating-linear-gradient(90deg, currentColor 0 40%, transparent 40% 60%) 0 0 / 100% 40% no-repeat, repeating-linear-gradient(90deg, currentColor 0 40%, transparent 40% 60%) 0 100% / 100% 40% no-repeat; }

.hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(1rem, 4vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 4.45vw, 4.55rem) clamp(2.25rem, 4.5vw, 4.5rem); }
.hero-copy { padding-bottom: 1.75rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; color: var(--muted); font-size: .77rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { flex: 0 0 1.8rem; height: 1px; background: currentColor; content: ""; }
.hero h1 { font: 400 clamp(3.25rem, 7.2vw, 7.45rem)/.98 var(--serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.hero h1 em { display: block; color: var(--green); font-weight: inherit; }
.hero-figure:has(.is-portrait) { justify-self: center; width: min(100%, 31rem); }
.hero-figure img.is-portrait { max-height: 74svh; object-fit: contain; }
.hero-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.7rem; min-height: 3.15rem; margin-top: clamp(1.4rem, 3.4vw, 3rem); padding: .65rem 1rem; border: 1px solid var(--green); background: var(--green); color: var(--paper); font-size: .88rem; font-weight: 560; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.hero-link:hover { background-color: transparent; color: var(--green); }
.hero-figure figcaption { margin-top: .65rem; color: var(--muted); font-size: .78rem; }

.photo { position: relative; display: block; min-width: 0; align-self: start; background: var(--band); cursor: zoom-in; }
.photo img { width: 100%; }
.photo-zoom { position: absolute; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; background: var(--paper); color: var(--green); transition: color .18s ease, background-color .18s ease; }
.photo:hover .photo-zoom, .photo:focus-visible .photo-zoom { background: var(--green); color: var(--paper); }
.expand-icon { position: relative; display: block; width: .8rem; height: .8rem; background:
  linear-gradient(currentColor, currentColor) top left / .35rem 1px,
  linear-gradient(currentColor, currentColor) top left / 1px .35rem,
  linear-gradient(currentColor, currentColor) top right / .35rem 1px,
  linear-gradient(currentColor, currentColor) top right / 1px .35rem,
  linear-gradient(currentColor, currentColor) bottom left / .35rem 1px,
  linear-gradient(currentColor, currentColor) bottom left / 1px .35rem,
  linear-gradient(currentColor, currentColor) bottom right / .35rem 1px,
  linear-gradient(currentColor, currentColor) bottom right / 1px .35rem;
  background-repeat: no-repeat;
}

.index-band { background: var(--band); scroll-margin-top: var(--header-height); }
.index-inner { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 2.9fr); align-items: start; gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: clamp(2.1rem, 4.3vw, 4.25rem); }
.index-heading h2, .room h2 { color: var(--green); font: 400 clamp(2.35rem, 4.2vw, 4.5rem)/1.04 var(--serif); letter-spacing: -.055em; }
.index-heading p { margin-top: .65rem; color: var(--muted); font-size: .84rem; }
.index-heading p span { padding-inline: .15rem; }
.room-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.1rem; list-style: none; margin: 0; padding: 0; }
.room-index a { display: flex; justify-content: space-between; gap: .35rem; align-items: center; min-height: 3rem; border-top: 1px solid #c8cec1; font-size: .88rem; line-height: 1.25; font-weight: 535; text-decoration: none; }
.room-index a::after { flex: 0 0 .32rem; height: .32rem; border: 1px solid var(--green); border-radius: 50%; content: ""; }
.room-index a:hover::after, .room-index a:focus-visible::after { background: var(--green); }
.room-index a:hover { text-decoration: underline; text-underline-offset: .25em; }

.room-list { padding-block: .4rem clamp(1.9rem, 5vw, 4.2rem); }
.room { padding-block: clamp(2.75rem, 5.25vw, 5rem); border-bottom: 1px solid var(--line); }
.room-heading { display: flex; justify-content: space-between; align-items: end; gap: .6rem 1rem; margin-bottom: clamp(1.15rem, 2.75vw, 2rem); }
.room-action { display: inline-flex; flex: none; align-items: center; gap: .6rem; min-height: 2.75rem; padding-inline: .1rem; color: var(--green); font-size: .87rem; font-weight: 550; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.room-action:hover { text-decoration-thickness: 2px; }
.room-grid { --photo-gap: clamp(.55rem, 1.35vw, 1.3rem); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--photo-gap); align-items: start; }
.room-details { display: grid; gap: var(--photo-gap); min-width: 0; }
.room--reverse .room-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.room--reverse .room-lead { grid-column: 2; grid-row: 1; }
.room--reverse .room-details { grid-column: 1; grid-row: 1; }
.room--portrait .room-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.room--portrait .room-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room--mixed .room-details .photo:has(img.is-portrait) { width: min(50%, 12rem); }
.room--single .room-grid { grid-template-columns: minmax(0, 1fr); }
.room--single .room-lead { width: min(100%, 32rem); grid-column: 1; }
.photo-credit { margin-top: .65rem; color: var(--muted); font-size: .8rem; }

.site-footer { background: var(--green); color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 6.8rem; }
.footer-inner .house-mark { color: inherit; }
.footer-link { display: grid; place-items: center; min-height: 2.75rem; font-size: .9rem; text-decoration: none; }
.site-footer :focus-visible { outline-color: var(--paper); }

.viewer { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #161b17; color: #faf9f3; overflow: hidden; }
.viewer::backdrop { background: #161b17; }
.viewer-layout { width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: max(.8rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(.8rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding-bottom: .6rem; }
.viewer-header h2 { font: 400 clamp(1.45rem, 2.8vw, 2.3rem)/1.08 var(--serif); }
.viewer-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.4rem, 1.4vw, 1.5rem); min-height: 0; }
.viewer-media { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.viewer-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; }
.viewer-error { max-width: 20rem; padding: .6rem; color: #e4e7de; text-align: center; }
.viewer-button { display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid #879084; border-radius: 50%; background: #202820; color: inherit; cursor: pointer; transition: background-color .18s ease; }
.viewer-button:hover { background: #3f4c40; }
.viewer-button:focus-visible { outline-color: #f3f1df; outline-offset: 3px; }
.arrow-icon { display: block; width: .65rem; height: .65rem; border-right: 2px solid; border-top: 2px solid; transform: translateX(-2px) rotate(45deg); }
.arrow-previous { transform: translateX(2px) rotate(-135deg); }
.close-icon { position: relative; width: .95rem; height: .95rem; }
.close-icon::before, .close-icon::after { position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: currentColor; transform: rotate(45deg); content: ""; }
.close-icon::after { transform: rotate(-45deg); }
.viewer-footer { display: flex; justify-content: space-between; align-items: center; gap: .45rem 1rem; min-height: 3.05rem; color: #d9dfd4; font-size: .8rem; }
.viewer-count { font-variant-numeric: tabular-nums; }
.swipe-help { display: none; }
@media (any-pointer: coarse) {
  .swipe-help { display: inline; }
  .keyboard-help { display: none; }
}
.viewer[data-single] .viewer-arrow, .viewer[data-single] #viewer-help { visibility: hidden; }

@media (max-width: 63rem) {
  .index-inner { grid-template-columns: minmax(9.5rem, 1fr) minmax(0, 3fr); }
  .room-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  :root { --header-height: 4rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.9rem; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(3.5rem, 11.6vw, 5rem); }
  .eyebrow { margin-bottom: .85rem; }
  .hero-link { margin-top: 1.15rem; min-height: 2.8rem; }
  .hero-figure figcaption { margin-top: .45rem; }
  .index-inner { grid-template-columns: 1fr; gap: 1rem; }
  .room-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-heading { flex-wrap: wrap; align-items: center; }
  .room-grid, .room--reverse .room-grid { grid-template-columns: minmax(0, 1fr); }
  .room--reverse .room-lead, .room--reverse .room-details { grid-column: auto; grid-row: auto; }
  .room-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room--mixed .room-details .photo:has(img.is-portrait) { width: min(65%, 9rem); }
  .room--portrait .room-grid { grid-template-columns: minmax(0, 1fr); }
  .room--portrait .room-lead { width: min(75%, 18rem); }
  .footer-inner { min-height: 5.3rem; }
  .viewer-layout { padding-inline: max(.65rem, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .viewer-stage { position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: .6rem; }
  .viewer-media { grid-area: 1 / 1; }
  .viewer-arrow { grid-area: 2 / 1; justify-self: start; }
  .viewer-arrow[data-next] { justify-self: end; }
  .viewer-footer { min-height: 2.8rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-figure { animation: appear .55s ease-out both; }
  .hero-figure { animation-delay: .08s; }
  @keyframes appear {
    from { opacity: .82; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
