:root {
    color-scheme: light;
    --ink: #2b1d19;
    --muted: #68564d;
    --paper: #faf6ef;
    --cream: #fffaf2;
    --line: #e4d9ca;
    --red: #782f30;
    --gold: #f0d4a3;
    --dark: #211411;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--red); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ad6a39; outline-offset: 4px; }
:target { scroll-margin-top: 1rem; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .25em; line-height: .99; font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.15rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2.4rem, 4.4vw, 4.05rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 em { font-weight: 400; color: var(--red); }
.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.narrow { max-width: 640px; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 5; padding: .5rem 1rem; background: var(--cream); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }

.masthead { background: #201411; color: #ffefd9; border-bottom: 1px solid #51362c; }
.navigation { min-height: 67px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; }
.navigation a { color: inherit; text-decoration: none; }
.brand { display: grid; font: 1.45rem/.9 var(--serif); padding-block: .65rem; }
.brand small { margin-top: .45rem; font: .73rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.navigation nav { display: flex; flex-wrap: wrap; gap: .4rem clamp(1rem, 3vw, 2.5rem); font-size: .925rem; }
.navigation a:hover { text-decoration: underline; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(530px, 49vw, 690px); overflow: hidden; background: #210e0a; color: #fff5e7; }
.hero picture, .hero picture img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture { z-index: -2; left: auto; width: 69%; }
.hero picture img { object-fit: cover; object-position: 50% 57%; }
.hero::after { z-index: -1; content: ""; background: linear-gradient(90deg, #210e0a 0%, #210e0a 30%, #210e0acc 39%, #210e0a35 57%, transparent 72%); }
.hero-content { padding-block: 3.25rem; }
.eyebrow { font: 700 .84rem/1.4 var(--sans); letter-spacing: .15em; color: var(--red); margin-bottom: 1rem; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(5rem, 8.45vw, 8.5rem); line-height: .8; letter-spacing: -.025em; margin-bottom: .29em; }
.hero-content > p:not(.eyebrow) { font-size: clamp(1rem, 1.8vw, 1.28rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .62rem 1.2rem; border: 1px solid transparent; border-radius: 4px; background: var(--red); color: #fff; font: 700 .94rem/1.3 var(--sans); cursor: pointer; text-align: center; text-decoration: none; }
.button:hover { background: #622223; }
.button-gold { color: var(--dark); background: var(--gold); }
.button-gold:hover { background: #ffe2b6; }
.button.outline { color: var(--red); border-color: #a26056; background: transparent; }
.button.outline:hover { background: #f2e6dc; }

.intro { padding-block: clamp(3.3rem, 7vw, 6rem) clamp(1.7rem, 4vw, 3.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; }
.intro p { max-width: 55ch; }
.preview h2 { margin-bottom: .6em; font-size: clamp(1.9rem, 3.05vw, 2.8rem); }
.gallery { display: grid; grid-template-columns: 1fr 1fr 1fr 1.35fr; gap: .7rem; }
.gallery a { display: block; border-radius: 5px; overflow: hidden; background: #38231b; }
.gallery img { width: 100%; height: clamp(170px, 21vw, 300px); object-fit: cover; transition: transform .24s; }
.gallery a:hover img { transform: scale(1.04); }
.photo-70 { object-position: 50% 66%; }
.photo-53 { object-position: 66% 53%; }
.photo-39 { object-position: 50% 61%; }
.photo-17 { object-position: 50% 75%; }
.schedule { margin-top: clamp(3.2rem, 7vw, 6.25rem); padding-top: clamp(2.1rem, 4vw, 3.4rem); border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; column-gap: 1rem; margin-bottom: 1rem; }
.section-head > p { color: var(--muted); }
.slot-day { margin-block: 1.7rem; }
.slot-day h3 { margin-bottom: .6em; }
.slot-list { border: 1px solid var(--line); border-radius: 6px; background: var(--cream); }
.slot { min-height: 64px; display: grid; grid-template-columns: 1fr 1fr max-content; align-items: center; gap: .4rem 1rem; padding: .7rem 1rem; }
.slot + .slot { border-top: 1px solid var(--line); }
.availability { color: var(--muted); font-size: .95rem; }
.available { color: #315543; }
.empty, .panel { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.15rem, 3vw, 2rem); }
.empty p, .photos-callout p, .notice:last-child { margin-bottom: 0; }
.booking { margin-block: 1rem 2rem; }
.booking form { max-width: 30rem; }
.photos-callout { margin-block: clamp(3rem, 7vw, 5rem); padding: clamp(1.25rem, 3vw, 2.4rem); background: #f3e7da; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.photos-callout h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.footer { background: var(--dark); color: #ffedd7; padding-block: 1.1rem; }

.subpage { min-height: calc(100svh - 170px); padding-block: clamp(2.7rem, 6vw, 5.2rem); }
.subpage > p { max-width: 60ch; }
.subpage .panel { margin-block: 1.2rem; }
.subpage .panel h2 { font-size: clamp(1.95rem, 3.3vw, 3rem); }
label { display: block; font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
input:not([type="checkbox"], [type="hidden"]) { width: 100%; min-height: 46px; display: block; margin-top: .24rem; padding: .59rem .7rem; border-radius: 4px; border: 1px solid #aa9481; font: 1rem var(--sans); color: var(--ink); background: #fff; }
input[readonly] { background: #f4eadd; }
.form-note { font-size: .9rem; color: var(--muted); }
.notice { background: #e8eee4; color: #294c39; border-left: 4px solid #587560; padding: .65rem .85rem; }
.notice.error { background: #f7e4dd; color: #742627; border-color: #9e413d; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.1rem; }
.code { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.slot-editor { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(80px, .55fr) 1fr max-content; gap: .75rem 1rem; align-items: end; }
.slot-editor label { margin-bottom: 0; }
.slot-delete { margin: .85rem 0 0; font-size: .95rem; }
.checkbox { min-height: 46px; display: flex; align-items: center; gap: .35rem; }
.checkbox input { accent-color: var(--red); width: 17px; height: 17px; }
details { padding-block: .65rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: .85rem; }

@media (max-width: 880px) {
    .intro { gap: .85rem 2rem; }
    .slot-editor { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .wrap { width: calc(100% - 2rem); }
    .hero { min-height: 660px; align-items: end; }
    .hero picture { width: 100%; }
    .hero picture img { object-position: 50% 50%; }
    .hero::after { background: linear-gradient(0deg, #1c0c08 1%, #1c0c08ec 23%, #1c0c0866 53%, transparent 78%); }
    .hero-content { padding-bottom: 2.2rem; }
    .hero h1 { font-size: clamp(4.2rem, 12vw, 6.25rem); }
    .intro { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; gap: .55rem; }
    .gallery img { height: auto; aspect-ratio: 1 / 1; }
    .slot { gap: .35rem .75rem; grid-template-columns: 1fr auto; }
    .slot .button { grid-column: 2; grid-row: 1 / span 2; }
    .slot .availability { grid-column: 1; grid-row: 2; }
    .footer .navigation { padding-block: .4rem; }
}
@media (max-width: 385px) {
    .masthead .navigation { padding-bottom: .6rem; }
    .slot-editor { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; }
}
