/* Ospitalità template. Type and colour from Display Serif Crop (design-styles card) in every section:
   Fraunces wordmark, Instrument Serif headings, Inter Tight text, cipria ground and brown ink (black and white in dark mode). */
:root {
  --bg: #edccbe;
  --ink: #331917;
  --muted: #6e4a40;
  --rule: color-mix(in srgb, var(--ink) 22%, transparent);
  --mark: #fc72c4; /* the dot after the mark; render() sets it to brand.field when the logo colour is known */
  --wordmark: 'Fraunces', Georgia, serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --text: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --body: 17px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --sec-pad: clamp(72px, 9vw, 140px);
  --radius: 16px;
  --row-h: 68svh;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #000; --ink: #fff; --muted: #999; } }
:root[data-theme="dark"] { --bg: #000; --ink: #fff; --muted: #999; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 var(--body)/1.35 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: color-mix(in srgb, var(--ink) 10%, var(--bg)); }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3, p, dl, dd { margin: 0; font-weight: inherit; font-size: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.price, dd { font-variant-numeric: tabular-nums; }
.price { white-space: nowrap; }

/* shared pieces */
.h { font: 400 clamp(56px, 9.7vw, 140px)/0.8 var(--serif); letter-spacing: -0.03em; margin-bottom: clamp(32px, 4vw, 56px); }
.wm { font-family: var(--wordmark); font-weight: 900; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; line-height: 0.8; letter-spacing: -0.04em; white-space: nowrap;
  font-size: min(100cqw / var(--em), 46svh / (0.8 * var(--lines))); }
.wm .ln { display: block; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.pill:hover { opacity: 0.85; }
.pill:active { transform: translateY(1px); }
.card { position: relative; aspect-ratio: 4 / 3; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; padding: 4px 0; }
.hours dt { color: var(--muted); }
.hours dd { text-align: right; }

/* hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding: 16px var(--gutter) var(--gutter); container-type: inline-size; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; }
.mark { font: 900 26px/1 var(--wordmark); font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.mark span { color: var(--mark); }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover, .nav a.nav-call { text-decoration: underline; }
.nav a:active { opacity: 0.6; }
.hero .wm { margin-top: clamp(24px, 5svh, 56px); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 32px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.12; }
.lede { max-width: 28ch; }
.facts { justify-self: end; text-align: right; color: var(--muted); }
.card.hero-card { flex: 1 1 auto; aspect-ratio: auto; min-height: clamp(240px, 42svh, 640px); }
.hero-card img { position: absolute; inset: 0; }
.pill.on-card { position: absolute; left: 16px; bottom: 16px; background: var(--bg); color: var(--ink); }
.hero-act { margin-top: auto; }

/* about: photograph left, text right */
.about { padding: var(--sec-pad) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; }
.about .lit { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.about .text { grid-column: 7 / 13; max-width: 40ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; color: var(--muted); }
.about.no-pic .text { grid-column: 1 / -1; }
.about .text p + p { margin-top: 1em; }
.about strong { color: var(--ink); font-weight: 600; }
.about .sig { color: var(--ink); font-size: 16px; }

/* rooms: sticky photograph on the left, list on the right; the services band below is inverted (ink ground, cipria text) */
.rooms { padding: var(--sec-pad) var(--gutter) 0; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
.stage { grid-column: 1 / 6; position: sticky; top: 12vh; aspect-ratio: 4 / 5; background: none; }
.stage figure { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.stage figure:first-child { opacity: 1; }
.stage figure.empty { background: none; }
.rooms:has(.list li:is(:hover, :focus-within)) .stage figure { opacity: 0; }
.list-wrap { grid-column: 7 / 13; }
.rooms.no-pic .list-wrap { grid-column: 1 / -1; }
.list li { padding: 18px 0; border-top: 1px solid var(--rule); cursor: default; outline-offset: 6px; }
.list .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.list h3 { font-size: 24px; line-height: 1.1; color: var(--muted); transition: color .2s; overflow-wrap: anywhere; }
.list li:first-child h3, .list li:is(:hover, :focus-within) h3 { color: var(--ink); }
.list:has(li:is(:hover, :focus-within)) li:first-child:not(:hover, :focus-within) h3 { color: var(--muted); }
.list .price { color: var(--muted); font-size: 16px; }
.list p { color: var(--muted); font-size: 16px; margin-top: 4px; max-width: 46ch; }
.services { background: var(--ink); color: var(--bg); margin: var(--sec-pad) calc(-1 * var(--gutter)) 0; padding: clamp(80px, 14vh, 160px) var(--gutter); }
.services h3 { font: 400 clamp(40px, 3.6vw, 52px)/0.9 var(--serif); letter-spacing: -0.02em; margin-bottom: 40px; }
.services ul { columns: 3 240px; column-gap: 24px; }
.services li { break-inside: avoid; border-top: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); padding: 12px 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; }

/* gallery: one row running off the right edge */
.gallery { padding: var(--sec-pad) 0; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 var(--gutter) 0 6vw; }
.g-head span { color: var(--muted); font-size: 16px; }
.row { display: flex; gap: 12px; height: var(--row-h); overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--gutter) 0 6vw; scroll-padding-left: 6vw; scrollbar-width: none; cursor: grab; }
.row::-webkit-scrollbar { display: none; }
.row.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.mod { flex: none; height: 100%; scroll-snap-align: start; }
.mod > figure { height: 100%; }
.mod.tall { aspect-ratio: 3 / 4; }
.mod.wide { aspect-ratio: 16 / 10; }
.mod.pair { aspect-ratio: 2 / 3; display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }

/* contact: a card in the corner of a full-bleed photograph */
.contact { position: relative; min-height: 100svh; padding: 60px; display: flex; justify-content: flex-end; align-items: flex-start; }
.contact .bg { position: absolute; inset: 0; border-radius: 0; }
.visit { position: sticky; top: 60px; z-index: 1; width: 400px; max-width: 100%; background: var(--bg); color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 12px; overflow-wrap: anywhere; }
.visit h2 { font: 400 clamp(40px, 3.6vw, 52px)/0.9 var(--serif); letter-spacing: -0.02em; margin-bottom: 8px; }
.visit .hours { margin: 4px 0; }
.pill.wide { width: 100%; margin-top: 12px; min-height: 52px; }
.contact.no-pic { min-height: 0; justify-content: flex-start; padding: var(--sec-pad) var(--gutter); }
.contact.no-pic .visit { padding: 0; }

/* footer: wordmark cropped by the bottom edge */
.footer { padding: 48px var(--gutter) 0; overflow: hidden; container-type: inline-size; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: var(--muted); }
.foot-links span, .foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; color: var(--ink); }
.footer .wm { margin-top: 40px; margin-bottom: -0.16em; font-size: min(100cqw / var(--em), 40svh / (0.8 * var(--lines))); }

.demo-note { background: #111; color: #fff; font: 400 13px/1.4 var(--text); padding: 14px var(--gutter); margin: 0; }

@media (max-width: 760px) {
  .nav { gap: 0 16px; }
  .nav a.nav-call { display: none; }
  .meta { grid-template-columns: 1fr; margin: 20px 0 24px; }
  .facts { justify-self: start; text-align: left; }
  .about { display: block; }
  .about .lit { width: 84%; margin-bottom: 40px; }
  .split { display: block; }
  .stage { position: sticky; top: 0; z-index: 1; aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--gutter)) 24px; border-radius: 0; }
  .stage figure { border-radius: 0; }
  .g-head, .row { padding-left: 20px; scroll-padding-left: 20px; }
  .row { height: min(62svh, 96vw); gap: 8px; }
  .mod.pair { gap: 8px; }
  .contact { display: block; min-height: 0; padding: 0 0 var(--gutter); }
  .contact .bg { position: relative; height: 70svh; }
  .visit { position: relative; top: auto; width: auto; margin: -80px 16px 0; padding: 24px; }
  .pill.wide { min-height: 56px; white-space: normal; }
}
@media (max-width: 480px) {
  .hours div { flex-direction: column; }
  .hours dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .stage figure, .list h3 { transition: none; }
}
