/* Chestnut Street — theme styles. Values driven by Customizer CSS variables (see functions.php). */

:root {
	--cst-bg: #F1EEE8;
	--cst-alt: #E5E0D7;
	--cst-surface: #FFFFFF;
	--cst-ink: #151614;
	--cst-muted: #6E6C66;
	--cst-dark: #151614;
	--cst-on-dark: #F1EEE8;
	--cst-btn-bg: #151614;
	--cst-btn-fg: #F1EEE8;
	--cst-font-body: "Instrument Sans", system-ui, sans-serif;
	--cst-font-heading: var(--cst-font-body);
	--cst-heading-weight: 500;
	--cst-tracking: -0.05em;
	--cst-heading-scale: 1;
	--cst-body-size: 17px;
	--cst-radius: 6px;
	--cst-img-radius: 0px;
	--cst-max: 1600px;
	--cst-pad: clamp(20px, 4vw, 56px);
	--cst-header-h: 76px;
	--cst-marquee-speed: 38s;
	--cst-hero-overlay: 0.6;
	--cst-hero-height: 100svh;
	--cst-ease: cubic-bezier(.16, 1, .3, 1);
	--cst-line: color-mix(in srgb, var(--cst-ink) 16%, transparent);
	--cst-line-dark: color-mix(in srgb, var(--cst-on-dark) 16%, transparent);
	--cst-text-2: color-mix(in srgb, var(--cst-ink) 80%, var(--cst-bg));
	--cst-on-dark-2: color-mix(in srgb, var(--cst-on-dark) 72%, var(--cst-dark));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cst-header-h) + 16px); }
body {
	margin: 0;
	background: var(--cst-bg);
	color: var(--cst-ink);
	font-family: var(--cst-font-body);
	font-size: var(--cst-body-size);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--cst-ink); color: var(--cst-bg); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.cst-skip { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--cst-ink); color: var(--cst-bg); padding: 12px 18px; border-radius: var(--cst-radius); }
.cst-skip:focus { top: 16px; }

.cst-container { max-width: var(--cst-max); margin-inline: auto; padding-inline: var(--cst-pad); }

/* Type */
.cst-h1, .cst-h2, .cst-h3, .cst-hero__title, .cst-entry h1, .cst-entry h2, .cst-entry h3 {
	font-family: var(--cst-font-heading);
	font-weight: var(--cst-heading-weight);
	letter-spacing: var(--cst-tracking);
	text-wrap: balance;
	margin: 0;
}
.cst-h1 { font-size: calc(clamp(44px, 6.4vw, 104px) * var(--cst-heading-scale)); line-height: 0.98; }
.cst-h2 { font-size: calc(clamp(38px, 4.8vw, 78px) * var(--cst-heading-scale)); line-height: 1; }
.cst-h3 { font-size: calc(clamp(24px, 2vw, 32px) * var(--cst-heading-scale)); line-height: 1.15; letter-spacing: calc(var(--cst-tracking) * 0.5); }
.cst-lead { margin: 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--cst-text-2); max-width: 34em; text-wrap: pretty; }
.cst-meta { display: flex; gap: 16px; margin: 0; font-size: 14px; color: var(--cst-muted); }
.cst-footnote { margin: 32px 0 0; font-size: 14px; color: var(--cst-muted); max-width: 60em; }

/* Buttons */
.cst-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 17px 28px; border-radius: var(--cst-radius);
	font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
	border: 1px solid transparent; cursor: pointer;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--cst-ease);
}
.cst-btn:hover { transform: translateY(-2px); }
.cst-btn:active { transform: none; opacity: .85; }
.cst-btn--sm { padding: 11px 18px; font-size: 14px; }
.cst-btn--solid { background: var(--cst-btn-bg); color: var(--cst-btn-fg); }
.cst-btn--solid:hover { background: color-mix(in srgb, var(--cst-btn-bg) 85%, #fff); color: var(--cst-btn-fg); }
.cst-btn--outline { border-color: currentColor; color: var(--cst-ink); background: transparent; }
.cst-btn--outline:hover { background: var(--cst-ink); color: var(--cst-bg); border-color: var(--cst-ink); transform: none; }
.cst-btn--light { background: var(--cst-on-dark); color: var(--cst-dark); }
.cst-btn--light:hover { background: #fff; color: var(--cst-dark); }
.cst-btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cst-btn--ghost-light:hover { background: #fff; color: var(--cst-dark); transform: none; }
.cst-btn--outline-light { border-color: color-mix(in srgb, var(--cst-on-dark) 45%, transparent); color: var(--cst-on-dark); background: transparent; }
.cst-btn--outline-light:hover { background: var(--cst-on-dark); color: var(--cst-dark); transform: none; }
.cst-btn--header { padding: 12px 22px; background: var(--cst-btn-bg); color: var(--cst-btn-fg); }
.cst-btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cst-btn-row--spaced { margin-top: 56px; }
.cst-round {
	width: 52px; height: 52px; flex: none; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid currentColor; cursor: pointer; opacity: .9;
	transition: background-color .3s ease, color .3s ease;
}
.cst-round:hover { background: var(--cst-on-dark); color: var(--cst-dark); border-color: var(--cst-on-dark); }

/* Header */
.cst-header { position: absolute; inset: 0 0 auto 0; z-index: 60; color: var(--cst-ink); background: color-mix(in srgb, var(--cst-bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cst-line); transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.cst-header-sticky .cst-header { position: fixed; }
.admin-bar .cst-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cst-header { top: 46px; } .admin-bar.cst-header-sticky .cst-header.is-scrolled { top: 0; } }
.cst-header__inner { height: var(--cst-header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .4s ease; }
.cst-header.is-scrolled .cst-header__inner { height: 64px; }
.cst-wordmark { font-family: var(--cst-font-heading); font-size: 20px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.cst-brand .custom-logo { max-height: 44px; width: auto; }
.cst-nav { margin-left: auto; }
.cst-menu { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.cst-menu a { text-decoration: none; transition: opacity .2s ease; }
.cst-menu a:hover, .cst-menu .current-menu-item > a { opacity: .6; }
.cst-menu .menu-item-has-children { position: relative; }
.cst-menu .sub-menu { position: absolute; top: calc(100% + 12px); left: -18px; min-width: 200px; list-style: none; margin: 0; padding: 10px 0; background: var(--cst-surface); color: var(--cst-ink); border-radius: var(--cst-radius); box-shadow: 0 16px 48px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.cst-menu .sub-menu a { display: block; padding: 9px 18px; }
.cst-menu .menu-item-has-children:hover > .sub-menu, .cst-menu .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cst-header__actions { display: flex; align-items: center; gap: 12px; }
.cst-menu-toggle { display: none; background: transparent; border: 1px solid currentColor; border-radius: var(--cst-radius); padding: 10px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.cst-main { padding-top: var(--cst-header-h); }

.cst-header-overlay .cst-main { padding-top: 0; }
.cst-header-overlay .cst-header:not(.is-scrolled):not(.is-open) { background: transparent; color: #fff; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cst-header-overlay .cst-header:not(.is-scrolled):not(.is-open) .cst-btn--header { background: #fff; color: var(--cst-dark); }
.cst-header.is-open { background: var(--cst-dark); color: var(--cst-on-dark); border-color: transparent; }

.cst-mobile { position: fixed; inset: 0; z-index: 55; background: var(--cst-dark); color: var(--cst-on-dark); padding: calc(var(--cst-header-h) + 40px) var(--cst-pad) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.cst-mobile[hidden] { display: none; }
.cst-mobile__menu { list-style: none; margin: 0; padding: 0; }
.cst-mobile__menu a { display: block; padding: 10px 0; border-bottom: 1px solid var(--cst-line-dark); font-size: clamp(32px, 9vw, 48px); letter-spacing: -0.04em; text-decoration: none; }
.cst-mobile__menu .sub-menu { list-style: none; padding: 0 0 0 16px; }
.cst-mobile__menu .sub-menu a { font-size: 22px; }
.cst-mobile__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 40px; }
.cst-mobile__foot p { margin: 0; color: var(--cst-on-dark-2); font-size: 15px; }

@media (max-width: 960px) {
	.cst-nav, .cst-header__actions .cst-btn { display: none; }
	.cst-menu-toggle { display: inline-flex; }
}

/* Sections */
.cst-section { padding-block: clamp(88px, 11vw, 168px); }
.cst-section--tight { padding-block: clamp(48px, 6vw, 96px); }
.cst-alt { background: var(--cst-alt); }
.cst-dark { background: var(--cst-dark); color: var(--cst-on-dark); }
.cst-dark .cst-lead { color: var(--cst-on-dark-2); }
.cst-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.cst-split { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 6vw, 96px); }
.cst-split--end { align-items: flex-end; }
.cst-split > .cst-h2 { flex: 1.4 1 520px; }
.cst-split > .cst-lead { flex: 1 1 320px; }

/* Figures & zoom */
.cst-figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cst-figure figcaption { font-size: 14px; color: var(--cst-muted); }
.cst-dark .cst-figure figcaption { color: var(--cst-on-dark-2); }
.cst-figcap-split { display: flex; justify-content: space-between; gap: 16px; }
.cst-zoom { display: block; width: 100%; padding: 0; border: 0; background: color-mix(in srgb, var(--cst-ink) 10%, var(--cst-bg)); cursor: zoom-in; overflow: hidden; border-radius: var(--cst-img-radius); }
.cst-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--cst-ease); }
body:not(.cst-no-zoom) .cst-zoom:hover img { transform: scale(1.04); }
.cst-ratio-43 { aspect-ratio: 4 / 3; }
.cst-ratio-45 { aspect-ratio: 4 / 5; }
.cst-ratio-1610 { aspect-ratio: 16 / 10; }
.cst-ratio-21 { aspect-ratio: 21 / 9; }

/* Hero */
.cst-hero { position: relative; height: var(--cst-hero-height); min-height: 600px; overflow: hidden; background: #2a2c2a; color: #fff; }
.cst-hero__media { position: absolute; inset: -6% 0; will-change: transform; }
.cst-hero__scale, .cst-hero__scale img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cst-hero__scale img { object-fit: cover; object-position: 50% 40%; }
.cst-hero__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,11,10,calc(var(--cst-hero-overlay) * .6)) 0%, rgba(10,11,10,0) 24%, rgba(10,11,10,0) 45%, rgba(10,11,10,var(--cst-hero-overlay)) 100%); }
.cst-hero__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.cst-hero__title { font-size: calc(clamp(56px, 10.5vw, 176px) * var(--cst-heading-scale)); line-height: .92; letter-spacing: calc(var(--cst-tracking) - .005em); }
.cst-line { display: block; overflow: hidden; padding-bottom: .06em; }
.cst-line > span { display: block; }
.cst-hero__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.3); }
.cst-hero__text { margin: 0; max-width: 28em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: rgba(255,255,255,.92); }

/* Intro */
.cst-intro__media { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.cst-intro__offset { margin-top: clamp(80px, 12vw, 200px); }
.cst-features { list-style: none; padding: 0; margin: clamp(56px, 7vw, 96px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 clamp(16px, 2vw, 24px); }
.cst-features li { border-top: 1px solid var(--cst-line); padding: 22px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 960px) { .cst-intro__media { grid-template-columns: 1fr; } .cst-intro__offset { margin-top: 0; } }

/* Marquee */
.cst-marquee { overflow: hidden; border-block: 1px solid var(--cst-line); padding-block: clamp(18px, 2.4vw, 32px); }
.cst-marquee__track { display: flex; width: max-content; animation: cst-marquee var(--cst-marquee-speed) linear infinite; }
.cst-marquee__group { display: flex; align-items: center; gap: clamp(28px, 3vw, 56px); padding-right: clamp(28px, 3vw, 56px); font-family: var(--cst-font-heading); font-size: clamp(36px, 5.6vw, 92px); font-weight: var(--cst-heading-weight); letter-spacing: var(--cst-tracking); line-height: 1; white-space: nowrap; }
.cst-marquee__group .is-muted { color: var(--cst-muted); }
.cst-marquee__group i { width: .18em; height: .18em; border-radius: 50%; background: currentColor; flex: none; }
.cst-no-marquee .cst-marquee__track { animation: none; }
@keyframes cst-marquee { to { transform: translateX(-50%); } }

/* Residences */
.cst-residences { background: var(--cst-alt); }
.cst-residences__grid { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 104px); align-items: flex-start; }
.cst-residences__aside { flex: 1 1 340px; position: sticky; top: calc(var(--cst-header-h) + 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cst-residences__media { flex: 1.7 1 520px; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.cst-room-stack { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(40px, 5vw, 72px); }
.cst-room-stack > .cst-figure { width: 100%; }
.cst-room-stack[hidden], .cst-room-index[hidden] { display: none; }
.cst-tabs { display: inline-flex; gap: 4px; padding: 4px; background: color-mix(in srgb, var(--cst-ink) 7%, transparent); border-radius: calc(var(--cst-radius) + 2px); }
.cst-tab { border: 0; background: transparent; padding: 10px 20px; border-radius: var(--cst-radius); font-size: 15px; font-weight: 500; color: var(--cst-muted); cursor: pointer; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.cst-tab[aria-selected="true"] { background: var(--cst-surface); color: var(--cst-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cst-room-index { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--cst-line); }
.cst-room-index li { border-bottom: 1px solid var(--cst-line); }
.cst-room-index a { display: block; padding: 14px 0; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; transition: padding .3s var(--cst-ease), color .3s ease; }
.cst-room-index a:hover { padding-left: 8px; color: var(--cst-muted); }
.cst-note-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--cst-line); }
.cst-note-row p { margin: 0; color: var(--cst-text-2); }
@media (max-width: 960px) { .cst-residences__aside { position: static; } }

/* Floor plan */
.cst-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0 clamp(16px, 2vw, 24px); margin: clamp(48px, 6vw, 80px) 0 0; }
.cst-stats div { border-top: 1px solid var(--cst-line); padding: 20px 0 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.cst-stats dt { font-size: 14px; color: var(--cst-muted); }
.cst-stats dd { margin: 0; font-family: var(--cst-font-heading); font-size: clamp(40px, 4.4vw, 68px); font-weight: var(--cst-heading-weight); letter-spacing: var(--cst-tracking); line-height: 1; }
.cst-floorplan__body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.cst-floorplan__plan { margin: 0; background: #fff; border-radius: var(--cst-img-radius); }
.cst-zoom--plan { background: #fff; }
.cst-zoom--plan img { object-fit: contain; padding: clamp(12px, 2vw, 32px); }
body:not(.cst-no-zoom) .cst-zoom--plan:hover img { transform: scale(1.015); }
.cst-schedule { display: flex; flex-direction: column; gap: 32px; }
.cst-schedule__floor { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--cst-muted); }
.cst-schedule dl { margin: 0; }
.cst-schedule dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--cst-line); font-size: 16px; }
.cst-schedule dt { color: var(--cst-ink); }
.cst-schedule dd { margin: 0; color: var(--cst-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 960px) { .cst-floorplan__body { grid-template-columns: 1fr; } }

/* Gallery strip */
.cst-gallery { padding-bottom: 0; }
.cst-gallery__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.cst-gallery__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cst-strip { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: max(var(--cst-pad), calc((100vw - var(--cst-max)) / 2 + var(--cst-pad))); scroll-padding-inline: max(var(--cst-pad), calc((100vw - var(--cst-max)) / 2 + var(--cst-pad))); }
.cst-strip::-webkit-scrollbar { display: none; }
.cst-strip__item { margin: 0; flex: none; display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; }
.cst-strip__item .cst-zoom { height: clamp(300px, 62vh, 640px); width: auto; aspect-ratio: var(--ratio, 3/2); max-width: 86vw; background: #2a2c2a; }
.cst-strip__item figcaption { font-size: 14px; color: var(--cst-on-dark-2); }
.cst-progress { position: relative; height: 1px; background: var(--cst-line-dark); margin: 40px 0 clamp(88px, 10vw, 140px); }
.cst-progress span { position: absolute; left: 0; top: 0; height: 1px; width: 6%; background: var(--cst-on-dark); transition: width .15s linear; }

/* Location */
.cst-location__grid { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 104px); align-items: stretch; }
.cst-location__info { flex: 1 1 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.cst-address { font-style: normal; font-size: clamp(22px, 2vw, 30px); line-height: 1.3; letter-spacing: -0.02em; padding-top: 24px; border-top: 1px solid var(--cst-line); margin-bottom: 24px; }
.cst-map { flex: 1.5 1 480px; min-height: clamp(380px, 44vw, 600px); overflow: hidden; border-radius: var(--cst-img-radius); background: var(--cst-alt); }
.cst-map iframe { width: 100%; height: 100%; min-height: inherit; border: 0; }
.cst-map.is-gray iframe { filter: grayscale(1) contrast(1.05); }
.cst-location__aerial { margin-top: clamp(16px, 2vw, 24px); }
@media (max-width: 700px) { .cst-ratio-21 { aspect-ratio: 4 / 3; } }

/* Cards */
.cst-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 24px); }
.cst-card__link { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.cst-card__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--cst-img-radius); background: color-mix(in srgb, var(--cst-ink) 10%, var(--cst-bg)); }
.cst-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--cst-ease); }
body:not(.cst-no-zoom) .cst-card__link:hover .cst-card__media img { transform: scale(1.04); }
.cst-card__title { margin: 0; font-family: var(--cst-font-heading); font-size: clamp(22px, 1.8vw, 28px); font-weight: var(--cst-heading-weight); letter-spacing: calc(var(--cst-tracking) * .5); line-height: 1.15; text-wrap: balance; }
.cst-card__excerpt { margin: 0; color: var(--cst-text-2); font-size: 16px; }
.cst-pagination { margin-top: 64px; }
.cst-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cst-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; padding: 0 14px; align-items: center; justify-content: center; border: 1px solid var(--cst-line); border-radius: var(--cst-radius); text-decoration: none; }
.cst-pagination .current { background: var(--cst-ink); color: var(--cst-bg); border-color: var(--cst-ink); }
.cst-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cst-empty p { margin: 0; font-size: 20px; }

/* Contact */
.cst-contact__grid { display: flex; flex-wrap: wrap; gap: 56px clamp(40px, 6vw, 104px); }
.cst-contact__intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 28px; }
.cst-contact__details { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 24px; border-top: 1px solid var(--cst-line-dark); }
.cst-admin-hint { font-size: 13px; color: var(--cst-on-dark-2); border: 1px dashed var(--cst-line-dark); padding: 8px 12px; border-radius: 4px; }
.cst-contact__form { flex: 1.3 1 460px; }
.cst-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px 32px; }
.cst-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--cst-on-dark-2); }
.cst-field--full { grid-column: 1 / -1; }
.cst-field input, .cst-field textarea { background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--cst-on-dark) 30%, transparent); border-radius: 0; padding: 10px 0 14px; font-size: 20px; color: var(--cst-on-dark); transition: border-color .3s ease; color-scheme: dark; }
.cst-field textarea { resize: vertical; }
.cst-field input:focus, .cst-field textarea:focus { outline: none; border-bottom-color: var(--cst-on-dark); }
.cst-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cst-notice { margin-bottom: 32px; padding: 14px 16px; border: 1px solid var(--cst-line-dark); border-radius: var(--cst-radius); font-size: 15px; }
.cst-notice--sent { border-color: color-mix(in srgb, var(--cst-on-dark) 50%, transparent); }

/* Inner pages */
.cst-page-header { padding-block: clamp(72px, 10vw, 152px) clamp(40px, 5vw, 72px); }
.cst-page-header__inner { display: flex; flex-direction: column; gap: 24px; }
.cst-article__hero { margin: 0 auto clamp(48px, 6vw, 88px); }
.cst-article__hero img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--cst-img-radius); }
.cst-page-body { padding-bottom: clamp(72px, 9vw, 140px); }
.cst-rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px); margin-top: 48px; }
.cst-masonry { columns: 3 320px; column-gap: clamp(16px, 2vw, 24px); }
.cst-masonry .cst-figure { break-inside: avoid; margin-bottom: clamp(16px, 2vw, 24px); }
.cst-masonry .cst-zoom img { height: auto; }

/* Entry content (pages, posts, blocks) */
.cst-entry { max-width: 760px; font-size: calc(var(--cst-body-size) + 1px); line-height: 1.7; }
.cst-entry > * { margin-block: 0 1.2em; }
.cst-entry h2 { font-size: calc(clamp(30px, 3vw, 44px) * var(--cst-heading-scale)); line-height: 1.08; margin-top: 1.6em; }
.cst-entry h3 { font-size: calc(clamp(22px, 2vw, 30px) * var(--cst-heading-scale)); line-height: 1.2; margin-top: 1.4em; letter-spacing: calc(var(--cst-tracking) * .5); }
.cst-entry img, .cst-entry figure img { border-radius: var(--cst-img-radius); }
.cst-entry figure { margin-inline: 0; }
.cst-entry figcaption, .cst-entry .wp-element-caption { font-size: 14px; color: var(--cst-muted); margin-top: 10px; }
.cst-entry blockquote { margin-inline: 0; padding-left: 24px; border-left: 1px solid var(--cst-ink); font-size: 1.25em; line-height: 1.45; }
.cst-entry a { text-decoration: underline; }
.cst-entry .alignwide { max-width: min(1200px, calc(100vw - 2 * var(--cst-pad))); margin-inline: calc((760px - min(1200px, calc(100vw - 2 * var(--cst-pad)))) / 2); }
.cst-entry .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.cst-entry .wp-block-button__link { border-radius: var(--cst-radius); background: var(--cst-btn-bg); color: var(--cst-btn-fg); padding: 16px 26px; font-size: 15px; text-decoration: none; }
.cst-entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cst-entry th, .cst-entry td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--cst-line); }
.cst-entry--full { max-width: none; }
.cst-entry--full > *:not(.alignfull) { max-width: var(--cst-max); margin-inline: auto; padding-inline: var(--cst-pad); }
@media (max-width: 1240px) { .cst-entry .alignwide { margin-inline: 0; max-width: 100%; } }
.cst-home-content .cst-entry { margin-inline: auto; }
.cst-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }
.cst-tags a { font-size: 14px; padding: 6px 12px; border: 1px solid var(--cst-line); border-radius: 999px; text-decoration: none; }
.cst-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--cst-line); }
.cst-post-nav div:last-child { text-align: right; }
.cst-post-nav a { text-decoration: none; font-size: 18px; letter-spacing: -0.01em; }
.cst-post-nav span { display: block; font-size: 13px; color: var(--cst-muted); margin-bottom: 4px; }
.cst-search { display: flex; gap: 10px; max-width: 560px; }
.cst-search input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--cst-line); border-radius: var(--cst-radius); background: var(--cst-surface); }
.cst-search-again { margin-bottom: 48px; }
.cst-comments { max-width: 760px; margin-top: 72px; display: flex; flex-direction: column; gap: 32px; }
.cst-comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.cst-comment-list .children { list-style: none; padding-left: 24px; margin-top: 24px; }
.comment-body { border-top: 1px solid var(--cst-line); padding-top: 20px; }
.comment-meta { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--cst-muted); }
.comment-meta img { border-radius: 50%; }
.comment-form { display: grid; gap: 16px; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 6px; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--cst-line); border-radius: var(--cst-radius); background: var(--cst-surface); }

/* Footer */
.cst-footer { background: var(--cst-dark); color: var(--cst-on-dark); }
.cst-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding: 40px 0; border-top: 1px solid var(--cst-line-dark); font-size: 15px; }
.cst-footer__address { font-style: normal; color: var(--cst-on-dark-2); line-height: 1.6; }
.cst-footer__menu { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; }
.cst-footer__menu a, .cst-footer__contact a { text-decoration: none; transition: opacity .2s ease; }
.cst-footer__menu a:hover, .cst-footer__contact a:hover { opacity: .6; }
.cst-footer__contact { display: flex; flex-direction: column; gap: 8px; }
.cst-footer__wordmark { margin: 0; font-family: var(--cst-font-heading); font-size: clamp(56px, 14.4vw, 248px); font-weight: var(--cst-heading-weight); letter-spacing: calc(var(--cst-tracking) - .015em); line-height: .8; white-space: nowrap; padding-bottom: .08em; overflow: hidden; }
.cst-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--cst-line-dark); font-size: 13px; color: var(--cst-on-dark-2); }
.cst-footer__bottom a { text-decoration: none; }

/* Lightbox */
.cst-lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: color-mix(in srgb, var(--cst-dark) 97%, transparent); color: var(--cst-on-dark); }
.cst-lightbox[hidden] { display: none; }
.cst-lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 3vw, 40px); font-size: 14px; color: var(--cst-on-dark-2); }
.cst-lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 clamp(8px, 2vw, 32px); }
.cst-lightbox__stage img { flex: 1 1 auto; min-width: 0; max-width: min(100%, 1600px); max-height: 100%; object-fit: contain; }
.cst-lightbox__caption { margin: 0; padding: 18px 24px 28px; text-align: center; font-size: 15px; }
@media (max-width: 700px) { .cst-lightbox__stage .cst-round { position: absolute; bottom: 72px; } .cst-lightbox__stage [data-cst-lb-prev] { left: 20px; } .cst-lightbox__stage [data-cst-lb-next] { right: 20px; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
.cst-no-anim *, .cst-no-anim *::before, .cst-no-anim *::after { transition-duration: .01ms !important; }
