/* ============================================================
   KayQuin Garden — design system
   ============================================================ */

:root {
    --forest: #14342B;
    --forest-deep: #0B2019;
    --forest-soft: #1F4739;
    --forest-rgb: 20, 52, 43;
    --brass-rgb: 184, 137, 74;
    --ivory: #F7F3EC;
    --ivory-2: #F0E9DC;
    --sand: #E3D7C0;
    --brass: #B8894A;
    --brass-light: #D9B98A;
    --brass-deep: #8F652C;
    --ink: #1B1D1A;
    --muted: #6C6D62;
    --line: rgba(var(--forest-rgb), .14);
    --line-light: rgba(247, 243, 236, .22);

    --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
    --sans: 'Jost', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --gutter: clamp(20px, 5vw, 72px);
    --max: 1340px;
    --section: clamp(72px, 10vw, 148px);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --radius: 2px;

    /* Semantic surfaces. Dark mode remaps these, so the brand hues stay intact
       and no component needs a theme-specific rule of its own. */
    --bg: var(--ivory);
    --surface: #FFFFFF;
    --surface-2: var(--ivory-2);
    --fg: var(--ink);
    --header-bg: rgba(247, 243, 236, .94);
    --shadow: 0 30px 70px -40px rgba(11, 32, 25, .55);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.005em;
    margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brass); color: #fff; }

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 200;
    background: var(--forest);
    color: var(--ivory);
    padding: 12px 20px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------ typography */

.eyebrow {
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--brass-deep);
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: .55;
}
.eyebrow--plain::before { display: none; }

.on-dark .eyebrow, .eyebrow--light { color: var(--brass-light); }

.display {
    font-size: clamp(2.9rem, 7vw, 5.6rem);
    line-height: 1.1;
    letter-spacing: -.012em;
}
.display em {
    font-style: italic;
    color: var(--brass);
}

.h2 {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.02;
}
.h2 em { font-style: italic; color: var(--brass); }

.h3 {
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
}

.lede {
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    line-height: 1.72;
    color: var(--muted);
    max-width: 56ch;
}
.on-dark .lede, .lede--light { color: rgba(247, 243, 236, .74); }

.micro {
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---------------------------------------------------------------- layout */

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section--ivory2 { background: var(--surface-2); }
.section--flush-top { padding-top: 0; }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: end;
    margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head__aside { justify-self: end; text-align: left; max-width: 44ch; }
.section-head--center {
    display: block;
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head--center .eyebrow { justify-content: center; }

@media (max-width: 860px) {
    .section-head { grid-template-columns: 1fr; align-items: start; }
    .section-head__aside { justify-self: start; }
}

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7em;
    padding: 1.05em 1.9em;
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
    background: none;
}
.btn:hover { transform: translateY(-1px); }

.btn--brass { background: var(--brass); color: #17110A; }
.btn--brass:hover { background: var(--brass-deep); }

.btn--forest { background: var(--forest); color: var(--ivory); }
.btn--forest:hover { background: var(--forest-deep); }

.btn--outline { border-color: rgba(var(--forest-rgb), .35); color: var(--forest); }
.btn--outline:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); }

.btn--outline-light { border-color: rgba(247, 243, 236, .4); color: var(--ivory); }
.btn--outline-light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }

.btn--wide { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow::after { content: "→"; font-size: 13px; letter-spacing: 0; }
.link-arrow:hover { gap: 18px; color: var(--brass); }

/* ---------------------------------------------------------------- header */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    padding-block: 18px;
    transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
    color: var(--ivory);
}
.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: rgba(247, 243, 236, .14);
    transition: opacity .3s var(--ease);
}
.site-header.is-stuck {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    color: var(--fg);
    padding-block: 12px;
    box-shadow: 0 1px 24px rgba(11, 32, 25, .07);
}
.site-header.is-stuck::after { opacity: 0; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: inline-flex; align-items: baseline; gap: 10px; line-height: 1; }
.brand__name {
    font-family: var(--serif);
    font-size: 26px;
    letter-spacing: -.01em;
}
.brand__sub {
    font-family: var(--sans);
    font-size: 8.5px;
    letter-spacing: .34em;
    text-transform: uppercase;
    opacity: .7;
    transform: translateY(-2px);
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 30px); }
.nav a {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .82;
    padding-block: 6px;
    position: relative;
    transition: opacity .25s var(--ease);
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width .3s var(--ease);
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: .95em 1.5em; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid currentColor;
    background: none;
    color: inherit;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.nav-toggle span { display: block; width: 16px; height: 1px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: currentColor;
    transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

@media (max-width: 1080px) {
    .nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions .btn { display: none; }
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--forest);
    color: var(--ivory);
    padding: clamp(24px, 6vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    padding-block: 6px;
    border-bottom: 1px solid rgba(247, 243, 236, .1);
}
.mobile-nav__close {
    position: absolute;
    top: 22px; right: 22px;
    width: 46px; height: 46px;
    border: 1px solid rgba(247, 243, 236, .35);
    border-radius: 50%;
    background: none;
    color: var(--ivory);
    font-size: 20px;
    cursor: pointer;
}
.mobile-nav__foot { margin-top: 32px; font-size: 12px; letter-spacing: .12em; opacity: .7; }

/* ------------------------------------------------------------------ hero */

.hero {
    position: relative;
    background: var(--forest);
    color: var(--ivory);
    padding-top: clamp(120px, 16vh, 190px);
    padding-bottom: clamp(40px, 6vh, 64px);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 78% 12%, rgba(var(--brass-rgb), .18), transparent 58%),
        radial-gradient(90% 70% at 8% 92%, rgba(31, 71, 57, .9), transparent 62%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .86fr);
    gap: clamp(32px, 5vw, 84px);
    align-items: center;
}
.hero__copy { max-width: 620px; }
.hero__title {
    font-size: clamp(2.9rem, 6.4vw, 5.5rem);
    line-height: 1.08;
    letter-spacing: -.012em;
    margin-bottom: 26px;
}
.hero__title em { font-style: italic; color: var(--brass-light); }
.hero__lede {
    font-size: clamp(1.04rem, 1.25vw, 1.14rem);
    line-height: 1.75;
    color: rgba(247, 243, 236, .86);
    max-width: 46ch;
    margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; }
.hero__frame {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 5;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
}
.hero__frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    will-change: transform;
}
.hero__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(247, 243, 236, .18);
    pointer-events: none;
}
.hero__stamp {
    position: absolute;
    left: -28px;
    bottom: 38px;
    background: var(--surface);
    color: var(--fg);
    padding: 18px 22px;
    max-width: 190px;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55);
}
.hero__stamp .micro { color: var(--brass-deep); display: block; margin-bottom: 6px; }
.hero__stamp p { font-family: var(--serif); font-size: 20px; line-height: 1.25; margin: 0; }

@media (max-width: 940px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__media { max-width: 460px; }
    .hero__stamp { left: auto; right: 14px; bottom: -22px; }
}

.hero__foot {
    position: relative;
    margin-top: clamp(48px, 7vw, 84px);
    padding-top: 26px;
    border-top: 1px solid rgba(247, 243, 236, .16);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.hero__fact .micro { color: rgba(247, 243, 236, .55); display: block; margin-bottom: 6px; }
.hero__fact strong {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
}
@media (max-width: 760px) {
    .hero__foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
}

/* -------------------------------------------------------------- intro */

.intro {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}
.intro__media { position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.intro__media::after {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid var(--brass);
    z-index: -1;
}
.intro__body p { color: var(--muted); }
.intro__signature {
    margin-top: 30px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--fg);
}
@media (max-width: 900px) {
    .intro { grid-template-columns: 1fr; }
    .intro__media { max-width: 520px; }
    .intro__media::after { inset: 12px -12px -12px 12px; }
}

/* -------------------------------------------------------------- rooms */

.rooms-editorial { display: grid; gap: clamp(40px, 6vw, 84px); }

.room-row {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
}
.room-row:nth-child(even) .room-row__media { order: 2; }
.room-row__media {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--sand);
}
.room-row__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.room-row__media:hover img { transform: scale(1.045); }
.room-row__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(11, 32, 25, .32));
    opacity: 0;
    transition: opacity .5s var(--ease);
}
.room-row__media:hover::after { opacity: 1; }

.room-row__body { max-width: 480px; }
.room-row__index {
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: .1em;
    color: var(--brass-deep);
    display: block;
    margin-bottom: 14px;
}
.room-row__body h3 { margin-bottom: 12px; }
.room-row__body h3 a { transition: color .3s var(--ease); }
.room-row__body h3 a:hover { color: var(--brass-deep); }
.room-row__tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.18rem;
    color: var(--brass-deep);
    margin-bottom: 14px;
}
.room-row__body p { color: var(--muted); font-size: .96rem; }

.room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 22px 0 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.room-meta li {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.room-meta li::before {
    content: "";
    width: 4px; height: 4px;
    background: var(--brass);
    border-radius: 50%;
}

.room-row__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.price {
    font-family: var(--serif);
    font-size: 1.55rem;
    color: var(--fg);
    line-height: 1.1;
}
.price span {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-top: 6px;
}

@media (max-width: 860px) {
    .room-row { grid-template-columns: 1fr; gap: 22px; }
    .room-row:nth-child(even) .room-row__media { order: 0; }
    .room-row__media { aspect-ratio: 4 / 3; }
    .room-row__body { max-width: none; }
}

/* ---------------------------------------------------------- facilities */

.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 28px);
}
.facility-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--forest-deep);
    aspect-ratio: 16 / 11;
}
.facility-card--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.facility-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .92;
    transition: transform 1.3s var(--ease), opacity .6s var(--ease);
}
.facility-card:hover img { transform: scale(1.05); opacity: 1; }
.facility-card__body {
    position: absolute;
    inset: auto 0 0 0;
    padding: clamp(20px, 3vw, 34px);
    background: linear-gradient(180deg, transparent, rgba(9, 26, 21, .86) 62%);
    color: var(--ivory);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.facility-card__body h3 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); margin-bottom: 4px; }
.facility-card__body p { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; margin: 0; }
.facility-card__arrow {
    font-size: 18px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.facility-card:hover .facility-card__arrow { opacity: 1; transform: none; }

@media (max-width: 720px) {
    .facility-grid { grid-template-columns: 1fr; }
    .facility-card--wide { grid-column: span 1; aspect-ratio: 16 / 11; }
}

/* ------------------------------------------------------------- feature */

.feature-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 6vw, 92px);
    align-items: center;
}
.feature-split--reverse .feature-split__media { order: 2; }
.feature-split__media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sand); }
.feature-split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-split__body { max-width: 520px; }
.feature-list { margin: 28px 0 32px; display: grid; gap: 0; }
.feature-list li {
    padding: 14px 0;
    border-top: 1px solid var(--line-light);
    display: flex;
    gap: 16px;
    align-items: baseline;
    font-size: .95rem;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line-light); }
.feature-list li span {
    font-family: var(--serif);
    color: var(--brass-light);
    font-size: 13px;
    letter-spacing: .08em;
    min-width: 26px;
}
@media (max-width: 880px) {
    .feature-split { grid-template-columns: 1fr; }
    .feature-split--reverse .feature-split__media { order: 0; }
    .feature-split__media { aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------- gallery */

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.gallery-strip a {
    overflow: hidden;
    position: relative;
    background: var(--sand);
    display: block;
    aspect-ratio: 4 / 3;
}
.gallery-strip img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease), filter .5s var(--ease);
}
.gallery-strip a:hover img { transform: scale(1.05); }
.gallery-strip a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 32, 25, .18);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.gallery-strip a:hover::after { opacity: 1; }

@media (max-width: 860px) {
    .gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------- offers */

.offer-band {
    border: 1px solid var(--brass);
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: stretch;
    background: var(--surface);
}
.offer-band__media { overflow: hidden; min-height: 320px; }
.offer-band__media img { width: 100%; height: 100%; object-fit: cover; }
.offer-band__body { padding: clamp(28px, 4.4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.offer-badge {
    display: inline-block;
    font-size: 9.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brass-deep);
    border: 1px solid var(--brass);
    padding: 6px 12px;
    margin-bottom: 18px;
    align-self: flex-start;
}
@media (max-width: 820px) {
    .offer-band { grid-template-columns: 1fr; }
    .offer-band__media { min-height: 220px; }
}

/* ------------------------------------------------------------- journal */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.post-card { display: flex; flex-direction: column; }
.post-card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); margin-bottom: 22px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card__meta {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brass-deep);
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.post-card h3 { font-size: 1.42rem; margin-bottom: 10px; line-height: 1.18; }
.post-card h3 a:hover { color: var(--brass-deep); }
.post-card p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }

@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- cards */

.room-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); }
.room-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.room-card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.room-card:hover .room-card__media img { transform: scale(1.045); }
.room-card__body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.room-card__body h3 { font-size: 1.5rem; margin-bottom: 6px; }
.room-card__tagline { font-family: var(--serif); font-style: italic; color: var(--brass-deep); margin-bottom: 16px; font-size: 1.02rem; }
.room-card__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.room-card__price { font-family: var(--serif); font-size: 1.28rem; }
.room-card__price span { font-family: var(--sans); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; }

@media (max-width: 960px) { .room-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .room-card-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- page */

.page-hero {
    padding-top: clamp(120px, 16vh, 180px);
    padding-bottom: clamp(36px, 5vw, 64px);
    background: var(--forest);
    color: var(--ivory);
}
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; }
.page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.18; }
.page-hero__sub { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--brass-light); margin-top: 14px; }
.page-hero__meta { justify-self: end; text-align: right; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 243, 236, .78); }
.page-hero__meta a { border-bottom: 1px solid var(--line-light); }
.page-hero__meta a:hover { color: var(--brass-light); }
@media (max-width: 800px) { .page-hero__inner { grid-template-columns: 1fr; } .page-hero__meta { justify-self: start; text-align: left; } }

.breadcrumbs { display: flex; gap: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }

.prose { max-width: 68ch; font-size: 1.06rem; line-height: 1.85; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 44px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 32px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 1.2em; }
.prose ul { margin: 0 0 1.4em; padding-left: 0; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--muted); }
.prose li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 1px; background: var(--brass); }
.prose strong { color: var(--ink); font-weight: 500; }

/* ----------------------------------------------------------- room detail */

.room-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.room-detail__gallery { display: grid; gap: 10px; }
.room-detail__main { overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.room-detail__main img { width: 100%; height: 100%; object-fit: cover; }
.room-detail__missing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--fg);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.room-detail__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.room-detail__thumbs button { padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; aspect-ratio: 1; opacity: .72; transition: opacity .3s var(--ease); }
.room-detail__thumbs button:hover, .room-detail__thumbs button.is-active { opacity: 1; }
.room-detail__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.booking-panel {
    position: sticky;
    top: 100px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: clamp(24px, 3vw, 34px);
}
.booking-panel__price { font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; color: var(--fg); }
.booking-panel__price span { font-family: var(--sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 8px; }
.booking-panel__rows { margin: 22px 0; border-top: 1px solid var(--line); }
.booking-panel__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.booking-panel__row dt { color: var(--muted); }
.booking-panel__row dd { margin: 0; font-weight: 500; }
.booking-panel__note { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 16px 0 20px; }
.booking-panel__actions { display: grid; gap: 10px; }

.amenity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 24px 0 0; }
.amenity-grid li { display: flex; gap: 10px; align-items: center; font-size: .93rem; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.amenity-grid svg { width: 16px; height: 16px; stroke: var(--brass); fill: none; stroke-width: 1.4; flex-shrink: 0; }

@media (max-width: 900px) {
    .room-detail { grid-template-columns: 1fr; }
    .booking-panel { position: static; }
}

/* ------------------------------------------------------------- notices */

.notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.6;
    border-left: 2px solid var(--brass);
    background: rgba(var(--brass-rgb), .09);
    color: #5b4a2c;
    margin-bottom: 24px;
}
.notice--success { border-color: #3f7a5a; background: rgba(63, 122, 90, .1); color: #2c5641; }
.notice--error { border-color: #a8433a; background: rgba(168, 67, 58, .08); color: #7c2f28; }
.notice ul { margin: 0; }

/* ---------------------------------------------------------------- forms */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--fg);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    width: 100%;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(var(--brass-rgb), .14);
}
.field .error { font-size: 12.5px; color: #a8433a; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #a8433a; }
.form-foot { margin-top: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); max-width: 46ch; }

@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- footer */

.site-footer { background: var(--forest-deep); color: rgba(247, 243, 236, .8); padding-block: clamp(56px, 7vw, 90px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); }
.footer-brand .brand { color: var(--ivory); margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 34ch; color: rgba(247, 243, 236, .74); }
.footer-col h4 { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }
.footer-col a:hover { color: var(--ivory); }
.footer-col address { font-style: normal; font-size: 14.5px; line-height: 1.9; color: rgba(247, 243, 236, .82); }

.footer-news { display: flex; gap: 8px; margin-top: 14px; }
.footer-news input {
    flex: 1;
    background: rgba(247, 243, 236, .06);
    border: 1px solid rgba(247, 243, 236, .18);
    color: var(--ivory);
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 13px;
    border-radius: var(--radius);
    min-width: 0;
}
.footer-news input::placeholder { color: rgba(247, 243, 236, .4); }
.footer-news button { white-space: nowrap; }

.footer-bottom {
    margin-top: clamp(36px, 5vw, 64px);
    padding-top: 22px;
    border-top: 1px solid rgba(247, 243, 236, .12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: rgba(247, 243, 236, .45);
}
.footer-bottom a:hover { color: var(--ivory); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ utilities */

.stack-40 > * + * { margin-top: 40px; }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.on-dark { color: var(--ivory); }
.on-dark p { color: rgba(247, 243, 236, .72); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--light { background: var(--line-light); }

/* --------------------------------------------------------- scroll reveal */

.reveal { will-change: opacity, transform; }
.reveal.is-armed { opacity: 0; transform: translateY(26px); }
.reveal.is-armed.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .95s var(--ease), transform .95s var(--ease);
}
.reveal.is-armed.delay-1.is-visible { transition-delay: .1s; }
.reveal.is-armed.delay-2.is-visible { transition-delay: .2s; }
.reveal.is-armed.delay-3.is-visible { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    .reveal.is-armed { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(8, 22, 18, .94);
    display: grid;
    place-items: center;
    padding: 5vh 5vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox__close {
    position: absolute;
    top: 24px; right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(247, 243, 236, .4);
    background: none;
    color: var(--ivory);
    font-size: 20px;
    cursor: pointer;
}
.lightbox__caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(247, 243, 236, .7); font-size: 12px; letter-spacing: .1em; }

/* ------------------------------------------------------------- filters */

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-bar button {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 9px 16px;
    border: 1px solid var(--line);
    background: none;
    color: var(--muted);
    cursor: pointer;
    border-radius: 100px;
    transition: all .3s var(--ease);
}
.filter-bar button:hover { border-color: var(--brass); color: var(--fg); }
.filter-bar button.is-active { background: var(--forest); border-color: var(--forest); color: var(--ivory); }

/* ---------------------------------------------------------- pagination */

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 52px; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    font-size: 12px;
    padding-inline: 10px;
}
.pagination .is-current { background: var(--forest); border-color: var(--forest); color: var(--ivory); }

/* -------------------------------------------------------------- misc */

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: clamp(120px, 18vh, 200px) var(--gutter) 80px; }
.error-page__code { font-family: var(--serif); font-size: clamp(5rem, 16vw, 11rem); line-height: .8; color: var(--brass); opacity: .35; }
.error-page h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 14px; }

.faq-list { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer;
    padding: 22px 0;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
    align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brass); font-family: var(--sans); font-size: 18px; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__answer { padding-bottom: 24px; color: var(--muted); font-size: .96rem; max-width: 68ch; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }

.contact-cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 820px) { .contact-cta { grid-template-columns: 1fr; gap: 38px; } }

.prose-layout { display: grid; grid-template-columns: minmax(0, .28fr) minmax(0, .72fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.prose-layout aside { position: sticky; top: 110px; }
@media (max-width: 820px) { .prose-layout { grid-template-columns: 1fr; } .prose-layout aside { position: static; } }

.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); }
@media (max-width: 700px) { .fact-grid { grid-template-columns: 1fr; } }

/* Long addresses and emails must never force a horizontal scrollbar. */
.contact-block a, .footer-col a, .site-footer address, .prose a { overflow-wrap: anywhere; }
.contact-block { margin-bottom: 32px; }
.contact-block h3 { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 10px; }
.contact-block p, .contact-block a { font-size: 15px; line-height: 1.8; }
.contact-block a:hover { color: var(--brass-deep); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.event-venue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 48px; }
.event-venue__card { border: 1px solid var(--line-light); padding: 26px; }
.event-venue__card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.event-venue__price { font-family: var(--serif); font-size: 1.5rem; color: var(--brass-light); }
@media (max-width: 700px) { .event-venue { grid-template-columns: 1fr; } }

/* What's on — the dated events on the calendar */
.whats-on { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.whats-on--single { grid-template-columns: minmax(0, 1fr); }
.whats-on__list { display: grid; gap: 14px; }

.event-feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); padding: clamp(24px, 3.4vw, 38px); background: var(--surface); border: 1px solid var(--line); }
.event-feature__date { display: flex; flex-direction: column; justify-content: center; text-align: center; padding-right: clamp(18px, 3vw, 34px); border-right: 1px solid var(--line); }
.event-feature__day { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .9; color: var(--forest); }
.event-feature__month { font-family: var(--sans); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); margin-top: 10px; }
.event-feature__weekday { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.event-feature__body h3 { margin: 12px 0 10px; }
.event-feature__body h3 a:hover { color: var(--brass-deep); }
.event-feature__body .lede { margin-bottom: 14px; }

.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.event-card { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.event-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.event-card--past { opacity: .8; }
.event-date { flex: none; width: 58px; text-align: center; border-right: 1px solid var(--line); padding-right: 14px; }
.event-date__day { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--forest); }
.event-date__month { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); margin-top: 6px; }
.event-date__year { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .1em; color: var(--muted); margin-top: 2px; }
.event-card__body { min-width: 0; }
.event-card__meta { font-family: var(--sans); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.event-card__body h3 { font-size: 1.14rem; line-height: 1.25; margin: 6px 0; transition: color .3s var(--ease); }
.event-card:hover .event-card__body h3 { color: var(--brass-deep); }
.event-card__summary { font-size: .88rem; color: var(--muted); }
.event-card__venue { font-size: .82rem; color: var(--brass-deep); margin-top: 8px; }
@media (max-width: 820px) { .whats-on { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
    .event-feature { grid-template-columns: 1fr; }
    .event-feature__date { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; text-align: left; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
    .event-feature__month, .event-feature__weekday { margin-top: 0; }
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 11px; color: var(--muted); }
.pill--light { border-color: var(--line-light); color: rgba(247, 243, 236, .7); }

/* ============================================================
   Brand lockup
   ============================================================ */

.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.brand__logo {
    height: 46px;
    width: auto;
    flex: none;
    transition: height .4s var(--ease);
}
.brand__text { display: flex; flex-direction: column; gap: 3px; }

/* The header sits on the forest hero, so the mark starts light. Once the header
   turns solid it swaps to the full-colour version — except in dark mode. */
.brand__logo--colour { display: none; }
.site-header.is-stuck .brand__logo--light { display: none; }
.site-header.is-stuck .brand__logo--colour { display: inline-block; }
[data-theme="dark"] .site-header.is-stuck .brand__logo--light { display: inline-block; }
[data-theme="dark"] .site-header.is-stuck .brand__logo--colour { display: none; }
.site-header.is-stuck .brand__logo { height: 38px; }
.footer-brand .brand__logo { height: 60px; margin-bottom: 4px; }

@media (max-width: 480px) {
    .brand__logo { height: 44px; }
    .brand__text { display: none; }
}

/* ============================================================
   Theme toggle
   ============================================================ */

.theme-toggle {
    width: 42px;
    height: 42px;
    flex: none;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid currentColor;
    background: none;
    color: inherit;
    opacity: .72;
    cursor: pointer;
    transition: opacity .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover { opacity: 1; transform: rotate(-12deg); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Header account link. Lives here, not in account.css: the header is shared
   by every layout, and a rule only the account pages load left the icon
   unsized and the label wrapping on the public pages. */
.account-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: .85;
    transition: opacity .3s var(--ease);
}
.account-link svg {
    width: 17px;
    height: 17px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.account-link:hover { opacity: 1; }

@media (max-width: 980px) { .account-link span { display: none; } }

/* ============================================================
   Dark theme — the brand palette remapped, not replaced
   ============================================================ */

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0B1512;
    --surface: #11201A;
    --surface-2: #152720;
    --fg: #EDE8DE;
    --ink: #EDE8DE;
    --muted: #9AA79E;
    --line: rgba(237, 232, 222, .15);
    --line-light: rgba(237, 232, 222, .2);
    --sand: #1D3028;
    --brass-deep: #D9B484;
    --forest: #10251E;
    --forest-deep: #08110E;
    --header-bg: rgba(11, 21, 18, .92);
    --shadow: 0 30px 70px -40px rgba(0, 0, 0, .85);
}

[data-theme="dark"] .site-header.is-stuck { box-shadow: 0 1px 30px rgba(0, 0, 0, .55); }
[data-theme="dark"] .site-header::after { background: rgba(237, 232, 222, .1); }

[data-theme="dark"] .btn--outline { border-color: rgba(237, 232, 222, .32); color: var(--fg); }
[data-theme="dark"] .btn--outline:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
[data-theme="dark"] .btn--forest { background: var(--surface-2); color: var(--fg); }
[data-theme="dark"] .btn--forest:hover { background: var(--forest); }

[data-theme="dark"] .notice { background: var(--surface); color: var(--fg); }
[data-theme="dark"] .notice--success { border-color: #4f9a72; background: rgba(79, 154, 114, .12); color: #A7D9BE; }
[data-theme="dark"] .notice--error { border-color: #c4645a; background: rgba(196, 100, 90, .12); color: #E8B4AE; }
[data-theme="dark"] .field .error { color: #E8B4AE; }
[data-theme="dark"] .field--invalid input,
[data-theme="dark"] .field--invalid select,
[data-theme="dark"] .field--invalid textarea { border-color: #c4645a; }

[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background: var(--surface-2); color: var(--fg); border-color: var(--line); }
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: rgba(237, 232, 222, .34); }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200, 154, 90, .18); }

[data-theme="dark"] .site-footer { background: var(--forest-deep); }
[data-theme="dark"] .post-card__media { background: var(--sand); }
[data-theme="dark"] .event-feature__day,
[data-theme="dark"] .event-date__day { color: var(--brass-light); }
[data-theme="dark"] .page-hero { background: var(--forest); }
[data-theme="dark"] .lightbox { background: rgba(4, 10, 8, .96); }
[data-theme="dark"] .gallery-item__frame { background: var(--surface-2); }

/* ============================================================
   Gallery — filterable masonry with a real viewer
   ============================================================ */

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: clamp(24px, 3vw, 38px);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.gallery-count {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.chip:hover { color: var(--fg); border-color: var(--brass); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
[data-theme="dark"] .chip.is-active { background: var(--brass); border-color: var(--brass); color: #17110A; }

/* A masonry gallery: each photograph keeps its own proportions, so
   landscape and portrait frames are both shown whole instead of being
   forced into one tile shape. Three columns on desktop, two on tablet,
   one on a phone; filters simply hide tiles and the columns reflow. */
.gallery-grid {
    columns: 3;
    column-gap: clamp(10px, 1.2vw, 18px);
}
.gallery-item {
    display: block;
    width: 100%;
    margin: 0 0 clamp(10px, 1.2vw, 18px);
    break-inside: avoid;
    position: relative;
    border: 0;
    padding: 0;
    background: none;
    cursor: zoom-in;
}
.gallery-item__frame {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--sand);
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s var(--ease), opacity .5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item__veil {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(to top, rgba(8, 20, 16, .78) 0%, rgba(8, 20, 16, .18) 45%, transparent 78%);
    color: #F7F3EC;
    opacity: 0;
    transition: opacity .45s var(--ease);
}
.gallery-item:hover .gallery-item__veil,
.gallery-item:focus-visible .gallery-item__veil { opacity: 1; }
.gallery-item__caption {
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.25;
    text-align: left;
    max-width: 30ch;
}
.gallery-item__plus {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(247, 243, 236, .5);
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
}
.gallery-item.is-hidden { display: none; }

@media (max-width: 1000px) { .gallery-grid { columns: 2; } }
@media (max-width: 620px) { .gallery-grid { columns: 1; } }
/* ============================================================
   Forms — a proper panel, iconography and clear states
   ============================================================ */

.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--brass);
    padding: clamp(24px, 4vw, 44px);
    box-shadow: var(--shadow);
}
.form-panel__head { margin-bottom: clamp(20px, 3vw, 30px); }
.form-panel__head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 6px; }
.form-panel__head p { font-size: 13.5px; color: var(--muted); max-width: 46ch; }

.form-grid { gap: 20px 22px; }

.field--icon { position: relative; }
.field--icon input,
.field--icon select { padding-left: 42px; }
.field--icon textarea { padding-left: 42px; padding-top: 14px; }
.field--icon svg {
    position: absolute;
    left: 14px;
    top: 38px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--muted);
    pointer-events: none;
}
.field__control { position: relative; display: block; }
.field--icon .field__control svg { top: 15px; }
.field--icon--area textarea { padding-top: 42px; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.form-panel .field label { color: var(--fg); opacity: .72; }
.form-panel .form-foot { margin-top: 26px; }
.form-panel .btn { padding: 1.05em 2.1em; }

.notice--icon { display: flex; align-items: flex-start; gap: 12px; }
.notice--icon svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ============================================================
   Viewer — counter, arrows, keyboard and swipe
   ============================================================ */

.lightbox { grid-template-rows: 1fr auto; }
.lightbox__stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.lightbox img.is-loaded { opacity: 1; }
.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding-top: 14px;
    color: rgba(247, 243, 236, .72);
}
.lightbox__counter {
    font-size: 12px;
    letter-spacing: .2em;
    font-variant-numeric: tabular-nums;
    min-width: 74px;
    text-align: center;
}
.lightbox__nav {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(247, 243, 236, .3);
    background: none;
    color: var(--ivory);
    cursor: pointer;
    transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__nav:hover { background: rgba(247, 243, 236, .12); border-color: rgba(247, 243, 236, .6); }
.lightbox__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__caption { position: static; text-align: center; }

@media (max-width: 640px) {
    .lightbox__nav { width: 40px; height: 40px; }
}

/* ============================================================
   Journal — search field and pagination
   ============================================================ */

.journal-search { display: flex; gap: 8px; align-items: stretch; }
.journal-search input {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ivory);
    background: rgba(247, 243, 236, .06);
    border: 1px solid rgba(247, 243, 236, .28);
    padding: 10px 14px;
    width: 190px;
    max-width: 46vw;
}
.journal-search input::placeholder { color: rgba(247, 243, 236, .45); }
.journal-search input:focus { outline: none; border-color: var(--brass-light); }

/* ============================================================
   Inline icons in prose and contact blocks
   ============================================================ */

.contact-block h3 { display: flex; align-items: center; gap: 10px; }
.contact-block h3 svg {
    width: 15px;
    height: 15px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--brass-deep);
}
/* ============================================================
   Readability pass — a floor of 11px for labels, 13px for notes
   ============================================================ */

.eyebrow { font-size: 11.5px; letter-spacing: .22em; }
.brand__sub { font-size: 10px; }
.post-card__meta { font-size: 11px; letter-spacing: .16em; }
.room-card__price span { font-size: 10.5px; }
.room-card__tagline { font-size: 14px; }
.contact-block h3 { font-size: 11px; }
.form-panel__head p { font-size: 15px; }
.facility-card__body p { font-size: 12.5px; }
.footer-bottom { font-size: 12.5px; }
.booking-panel__note { font-size: 13px; }
.booking-panel__row { font-size: 14px; }
.pagination a, .pagination span { font-size: 13px; }
.hero__stamp .micro { font-size: 11px; letter-spacing: .2em; }
.notice { font-size: 15px; line-height: 1.65; }
.pill { font-size: 10.5px; }
.chip { font-size: 10.5px; }
.mobile-nav__foot { font-size: 13px; }

/* Large display type needs a little more room on a narrow screen. */
@media (max-width: 560px) {
    .hero__title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
    .page-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .display { font-size: clamp(2.4rem, 10vw, 3.2rem); }
}

/* ============================================================
   Page banners and article images — framed, never runaway
   ============================================================ */

.page-banner {
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: var(--sand);
}
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .page-banner { aspect-ratio: 4 / 3; } }

.article-media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--sand);
    margin-bottom: clamp(30px, 4vw, 50px);
}
.article-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .article-media { aspect-ratio: 4 / 3; } }

/* ============================================================
   Dark mode — body copy sits on dark surfaces, so lift it
   ============================================================ */

[data-theme="dark"] .prose p,
[data-theme="dark"] .prose li,
[data-theme="dark"] .lede { color: #BCC5BD; }
[data-theme="dark"] .section--ivory2 { background: var(--surface-2); }
[data-theme="dark"] .post-card__meta,
[data-theme="dark"] .room-card__tagline,
[data-theme="dark"] .booking-panel__note { color: #BCC5BD; }
[data-theme="dark"] .footer-col a,
[data-theme="dark"] .footer-brand p { color: rgba(247, 243, 236, .78); }

/* Headings should break evenly, never leave a single orphaned word. */
h1, h2, h3, .display, .hero__title, .page-hero h1 { text-wrap: balance; }
.prose p, .lede, .hero__lede { text-wrap: pretty; }

/* Placeholders need to stay legible in both themes. */
::placeholder { color: rgba(27, 29, 26, .45); opacity: 1; }
[data-theme="dark"] ::placeholder { color: rgba(247, 243, 236, .62); }

/* Long-form article: full-width image above, a comfortable text measure below. */
.prose--article { max-width: 620px; }

/* A page hero already supplies its own breathing room; don't stack a full
   section gap on top of it. */
.page-hero + .section { padding-top: clamp(48px, 5.5vw, 84px); }

/* ------------------------------------------------- gallery viewer */
/* Two stacked frames crossfade, so a slide never flashes black
   between photographs. Autoplay is opt-in and shows its progress. */
.lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.lightbox__img {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity .45s var(--ease), transform .85s var(--ease);
}
.lightbox__img.is-active { opacity: 1; }
.lightbox__bar { flex-wrap: wrap; row-gap: 10px; }
.lightbox__play {
    border: 1px solid rgba(247, 243, 236, .42);
    background: none;
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__play:hover,
.lightbox__play.is-playing {
    background: var(--brass);
    border-color: var(--brass);
    color: #17110A;
}
.lightbox__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(247, 243, 236, .12);
    pointer-events: none;
}
.lightbox__progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--brass);
}

/* ------------------------------------------------- password reveal */
/* A small control inside the field: show what was typed, without
   moving the label or the leading icon. */
.field__wrap { position: relative; display: block; }
.field__wrap input { padding-right: 46px; }
.field__reveal {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: color .25s var(--ease), background .25s var(--ease);
}
.field__reveal:hover { color: var(--fg); background: rgba(var(--forest-rgb), .07); }
[data-theme="dark"] .field__reveal:hover { background: rgba(247, 243, 236, .09); }
/* .field--icon positions its icons absolutely; the reveal button's icons
   must stay in the flow inside the button. */
.field__reveal svg { position: static; left: auto; top: auto; width: 18px; height: 18px; }
.field__reveal-hide { display: none; }
.field__reveal.is-revealed .field__reveal-show { display: none; }
.field__reveal.is-revealed .field__reveal-hide { display: block; }

/* ------------------------------------------- stacked form rhythm */
/* Panels that stack fields directly in a <form> had no space between the
   blocks, so labels crowded the field above and the submit button sat flush
   against the last input. Grids bring their own gap; these rules only cover
   the blocks stacked at form level. */
.form-panel form > .field + .field,
.form-panel form > .field + .field-grid,
.form-panel form > .field-grid + .field,
.form-panel form > .field-grid + .field-grid { margin-top: 20px; }

.form-panel form > .form-note,
.form-panel form > .btn { margin-top: 24px; }
