/* 17 Hills — shared site styles.
   Tokens come from .superdesign/design-system.md; the palette is sampled from
   the logo (ink, cream, tricolour) and the storefront (brick, pothos green). */

:root {
	--cream: #FFFAE4;
	--cream-deep: #F3EAC9;
	--ink: #3A2E14;
	--ink-soft: #6E5C33;
	--olive: #8A7534;
	--forest: #1B6B3A;
	--forest-deep: #12331F;
	--brick: #A6442E;
	--flag-green: #159A49;
	--flag-white: #FFFFFF;
	--flag-red: #C8322A;

	--font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--shadow-panel: 0 1.5rem 3rem rgba(18, 51, 31, 0.15);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--max: 1200px;
	--gutter: clamp(16px, 4vw, 24px);
	--nav-h: 88px;
}

/* Reset ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { top: 16px; }

/* Layout ----------------------------------------------------------------- */

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section--deep { background: var(--cream-deep); }
.section--dark { background: var(--forest-deep); color: var(--cream); overflow: hidden; }
.section--rule { border-top: 1px solid rgba(138, 117, 52, 0.2); }

/* Typography ------------------------------------------------------------- */

.display { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.lead { font-size: 1.125rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.label {
	font-family: var(--font-body); font-weight: 500; font-size: 0.8rem;
	letter-spacing: 0.12em; text-transform: uppercase;
}

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--olive); }
.eyebrow::before {
	content: ""; width: 24px; height: 3px; border-radius: 2px;
	background: linear-gradient(to right, var(--flag-green) 0 33.3%, var(--flag-white) 33.3% 66.6%, var(--flag-red) 66.6%);
	box-shadow: 0 0 0 0.5px rgba(58, 46, 20, 0.15);
}
.section--dark .eyebrow { color: rgba(255, 250, 228, 0.7); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

/* Buttons ---------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; padding: 0 30px; border-radius: 999px; border: 1.5px solid transparent;
	font-family: var(--font-body); font-weight: 500; font-size: 0.8rem;
	letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--forest); color: var(--cream); box-shadow: 0 8px 20px rgba(18, 51, 31, 0.2); }
.btn--primary:hover { background: var(--brick); }
.btn--cream { background: var(--cream); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.btn--cream:hover { background: var(--brick); color: var(--cream); }
.btn--glass { border-color: var(--cream); color: var(--cream); background: rgba(18, 51, 31, 0.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--glass:hover { background: var(--cream); color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--small { height: 44px; padding: 0 22px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
	color: var(--forest); transition: background-color .2s ease, color .2s ease;
}
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover { color: var(--brick); background: rgba(27, 107, 58, 0.06); }
.link-arrow:hover svg { transform: translateX(4px); }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Navigation ------------------------------------------------------------- */

.site-nav {
	position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
	display: flex; align-items: center; justify-content: center;
	padding-inline: clamp(16px, 4vw, 48px);
	transition: height .4s var(--ease-out), background-color .4s ease, box-shadow .4s ease;
}
.site-nav.is-scrolled {
	height: 72px; background: rgba(255, 250, 228, 0.92);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 rgba(138, 117, 52, 0.2), 0 10px 30px rgba(18, 51, 31, 0.08);
}

.nav-links {
	display: none; align-items: center; gap: 34px;
	padding: 14px 34px; border-radius: 999px;
	background: rgba(255, 250, 228, 0.9); border: 1px solid rgba(138, 117, 52, 0.2);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	box-shadow: 0 4px 14px rgba(18, 51, 31, 0.08);
}
.site-nav.is-scrolled .nav-links { background: transparent; border-color: transparent; box-shadow: none; }
.nav-links a { position: relative; color: var(--ink); transition: color .2s ease; }
.nav-links a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
	background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brick); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-book { position: absolute; right: clamp(16px, 4vw, 48px); display: none; }

.nav-toggle {
	position: absolute; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: var(--cream); color: var(--ink);
	box-shadow: 0 4px 14px rgba(18, 51, 31, 0.18);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.mobile-menu {
	position: fixed; inset: 0; z-index: 45; background: var(--forest-deep); color: var(--cream);
	display: flex; flex-direction: column; justify-content: center; gap: 8px;
	padding: 96px 32px 120px;
	clip-path: circle(0 at calc(100% - 40px) 44px); visibility: hidden;
	transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
}
.nav-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 44px); visibility: visible; transition: clip-path .7s var(--ease-out); }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-size: 2.6rem; line-height: 1.3; }
.mobile-menu a[aria-current="page"] { color: var(--cream-deep); font-style: italic; }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
.mobile-menu__meta { margin-top: 32px; color: rgba(255, 250, 228, 0.6); font-size: 0.95rem; }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
	.nav-links, .nav-book { display: flex; }
	.nav-toggle, .mobile-menu { display: none; }
}

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

.hero {
	position: relative; min-height: max(640px, 100svh);
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	color: var(--cream); text-align: center;
}
.hero__media { position: absolute; inset: -6% 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to top, var(--forest-deep) 0%, rgba(18, 51, 31, 0) 45%),
		rgba(18, 51, 31, 0.68);
}
.hero__content {
	position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
	padding: calc(var(--nav-h) + 24px) var(--gutter) 72px; max-width: 900px;
}
.hero__logo {
	width: clamp(110px, 14vw, 150px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
	box-shadow: 0 0 0 2px var(--cream), 0 10px 30px rgba(18, 51, 31, 0.35);
	margin-bottom: 32px;
}
.hero__title { font-size: clamp(3rem, 9vw, 6.5rem); color: var(--cream); }
.hero__title .word { display: inline-block; }
.hero__title em { font-style: italic; font-weight: 400; }
.hero__stroke { width: min(260px, 60vw); height: 22px; margin: 18px auto 26px; overflow: visible; }
.hero__stroke path { fill: none; stroke-linecap: round; stroke-width: 5; }
.hero__sub { text-wrap: balance; max-width: 36rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 250, 228, 0.9); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__hint { margin-top: 44px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255, 250, 228, 0.75); letter-spacing: 0.02em; }
.hero__hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flag-green); box-shadow: 0 0 0 4px rgba(21, 154, 73, 0.25); }
.hero__hint.is-closed .dot { background: var(--flag-red); box-shadow: 0 0 0 4px rgba(200, 50, 42, 0.25); }

.hero__vine { position: absolute; top: 0; z-index: 1; width: 110px; color: rgba(255, 250, 228, 0.35); pointer-events: none; display: none; }
.hero__vine--left { left: 4%; }
.hero__vine--right { right: 6%; width: 90px; }
@media (min-width: 1024px) { .hero__vine { display: block; } }

.scroll-cue {
	position: absolute; bottom: 28px; left: 50%; z-index: 2; translate: -50% 0;
	width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(255, 250, 228, 0), rgba(255, 250, 228, 0.7));
}

/* Inner page hero -------------------------------------------------------- */

.page-hero {
	position: relative; overflow: hidden; color: var(--cream); text-align: center;
	padding: calc(var(--nav-h) + clamp(48px, 8vw, 88px)) var(--gutter) clamp(56px, 8vw, 96px);
}
.page-hero__media { position: absolute; inset: -10% 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(18, 51, 31, 0.78); }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.page-hero__logo {
	display: block; width: 84px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 24px;
	box-shadow: 0 0 0 2px var(--cream), 0 8px 24px rgba(18, 51, 31, 0.35);
}
.page-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .eyebrow { color: rgba(255, 250, 228, 0.75); }
.page-hero__title { font-size: clamp(2.75rem, 7vw, 5rem); }
.page-hero__title em { font-style: italic; font-weight: 400; }
.page-hero__sub { text-wrap: balance; margin-top: 18px; color: rgba(255, 250, 228, 0.85); font-size: 1.125rem; }

/* Botanical line art ----------------------------------------------------- */

.vine {
	position: absolute; top: 0; width: 80px; height: 240px; color: var(--forest); opacity: 0.2;
	pointer-events: none; display: none; transform-origin: top center;
}
.vine--left { left: 16px; }
.vine--right { right: 16px; }
.vine--flip svg { transform: scaleX(-1); }
.vine svg { width: 100%; height: 100%; overflow: visible; }
@media (min-width: 1400px) { .vine { display: block; } }

.pattern { position: absolute; inset: 0; pointer-events: none; opacity: 0.045;
	background-image:
		radial-gradient(circle at 50% 50%, var(--olive) 1.2px, transparent 1.6px),
		linear-gradient(45deg, transparent 46%, var(--olive) 47% 53%, transparent 54%),
		linear-gradient(-45deg, transparent 46%, var(--olive) 47% 53%, transparent 54%);
	background-size: 28px 28px, 56px 56px, 56px 56px;
}
.section--dark .pattern { opacity: 0.06; filter: brightness(2.2); }

/* Concept ---------------------------------------------------------------- */

.concept { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .concept { grid-template-columns: 5fr 7fr; gap: 96px; } }
.concept__text .h2 { margin-bottom: 24px; }
.concept__text .lead { margin-bottom: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 16px; padding-top: 24px; border-top: 1px solid rgba(138, 117, 52, 0.2); }
.facts dt { color: var(--olive); margin-bottom: 4px; }
.facts dd { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }

.framed { position: relative; max-width: 460px; margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) {
	.framed { margin-right: 0; }
	.framed::before { top: -22px; left: -22px; }
	.framed::after { bottom: -22px; right: -22px; }
}
.framed::before, .framed::after { content: ""; position: absolute; width: 120px; height: 120px; border: 1px solid rgba(138, 117, 52, 0.35); pointer-events: none; }
.framed::before { top: -12px; left: -12px; border-right: 0; border-bottom: 0; border-top-left-radius: 28px; }
.framed::after { bottom: -12px; right: -12px; border-left: 0; border-top: 0; border-bottom-right-radius: 28px; }

.zoom { overflow: hidden; border-radius: 24px; box-shadow: var(--shadow-panel); }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.zoom:hover img { transform: scale(1.04); }
.framed .zoom { aspect-ratio: 4 / 5; }

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

.cards { display: grid; gap: 28px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
	display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
	background: var(--cream); border: 1px solid rgba(138, 117, 52, 0.35); box-shadow: var(--shadow-panel);
	transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 2rem 3.5rem rgba(18, 51, 31, 0.2); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.card__body .h3 { margin-bottom: 8px; }
.card__body p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 20px; }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--forest); }
.card__foot svg { color: var(--olive); opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s ease, transform .4s var(--ease-out); }
.card:hover .card__foot svg { opacity: 1; transform: none; }

/* Marquee ---------------------------------------------------------------- */

.quote-big { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.1; text-align: center; max-width: 900px; margin: 0 auto 56px; padding-inline: var(--gutter); }

.marquee {
	display: flex; gap: 24px; overflow: hidden; user-select: none;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; flex-shrink: 0; gap: 24px; min-width: 100%; justify-content: space-around; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: clamp(220px, 28vw, 320px); aspect-ratio: 4 / 3; width: auto; object-fit: cover; border-radius: 28px; }
@keyframes marquee { to { transform: translateX(calc(-100% - 24px)); } }

/* Reviews ---------------------------------------------------------------- */

.reviews { display: grid; gap: 48px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { text-align: center; }
.stars { display: flex; justify-content: center; gap: 4px; color: var(--olive); margin-bottom: 16px; }
.stars svg { width: 16px; height: 16px; }
.review blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.5; margin-bottom: 18px; }
.review cite { font-style: normal; color: var(--ink-soft); }

/* Visit / info ----------------------------------------------------------- */

.visit { display: grid; gap: 56px; }
@media (min-width: 1024px) { .visit { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.info-list { display: grid; gap: 32px; margin-top: 32px; }
.info-list dt { color: var(--olive); margin-bottom: 6px; }
.info-list dd { font-size: 1.125rem; }
.info-list a:hover { color: var(--brick); }

.hours { width: 100%; max-width: 380px; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px solid rgba(138, 117, 52, 0.15); }
.hours tr:last-child td { border-bottom: 0; }
.hours td { vertical-align: top; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--forest); font-weight: 500; }
.hours-note { margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }

.map-card { background: var(--cream); border: 1px solid rgba(138, 117, 52, 0.3); border-radius: 24px; padding: 8px; box-shadow: var(--shadow-panel); }
.map-card iframe { width: 100%; height: clamp(320px, 45vw, 440px); border: 0; border-radius: 18px; }
/* CTA band --------------------------------------------------------------- */

.cta-band { background: var(--brick); color: var(--cream); padding-block: clamp(56px, 8vw, 80px); position: relative; overflow: hidden; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band .h2 { color: var(--cream); }
.cta-band p { color: rgba(255, 250, 228, 0.85); margin-top: 8px; }
.cta-band .btn--cream:hover { background: var(--forest-deep); }

/* Footer ----------------------------------------------------------------- */

.site-footer { background: var(--forest-deep); color: rgba(255, 250, 228, 0.8); padding: 80px 0 40px; }
.footer-grid { display: grid; gap: 48px; margin-bottom: 56px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { display: inline-block; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin-bottom: 20px; box-shadow: 0 0 0 2px rgba(255, 250, 228, 0.3); }
.footer-logo img { width: 100%; height: 100%; object-fit: cover; }
.site-footer h2 { color: var(--cream); margin-bottom: 18px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: var(--cream); }
.site-footer .social { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(255, 250, 228, 0.12); font-size: 0.875rem; }
.footer-bottom span:last-child { opacity: 0.6; }

/* Sticky mobile booking bar ---------------------------------------------- */

.book-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: rgba(255, 250, 228, 0.95); border-top: 1px solid rgba(138, 117, 52, 0.2);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.book-bar.is-visible { transform: none; }
.book-bar .btn { width: 100%; }
@media (min-width: 900px) { .book-bar { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 120px; } }

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

.menu-bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
	margin-bottom: 40px; padding: 22px 26px; border-radius: 24px;
	background: var(--cream); border: 1px solid rgba(138, 117, 52, 0.25); box-shadow: var(--shadow-panel);
}
.menu-bar .lead { flex: 1 1 360px; font-size: 1.05rem; }
.menu-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.menu-viewer { display: grid; gap: 28px; max-width: 1100px; margin-inline: auto; }
.menu-viewer__page {
	display: grid; gap: 16px; width: 100%;
	border-radius: 16px; overflow: hidden; background: rgba(255, 250, 228, 0.6);
	box-shadow: var(--shadow-panel);
}
.menu-viewer__page canvas { display: block; width: 100%; height: auto; }
.menu-viewer__status { padding: 64px 16px; text-align: center; color: var(--ink-soft); }
.menu-viewer__status a { color: var(--forest); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 759px) {
	/* Split spreads: each half is its own card. */
	.menu-viewer__page { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
	.menu-viewer__page canvas { border-radius: 14px; box-shadow: var(--shadow-panel); }
}

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

.masonry { columns: 1; column-gap: 20px; }
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry__item { break-inside: avoid; margin-bottom: 20px; }
.masonry__item button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 20px; overflow: hidden; position: relative; box-shadow: var(--shadow-panel); }
.masonry__item img { width: 100%; height: auto; transition: transform .9s var(--ease-out); }
.masonry__item button::after { content: ""; position: absolute; inset: 0; background: rgba(18, 51, 31, 0); transition: background-color .4s ease; }
.masonry__item button:hover img { transform: scale(1.04); }
.masonry__item button:hover::after { background: rgba(18, 51, 31, 0.15); }
.masonry__item figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 0.9rem; }

.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(18, 51, 31, 0.92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 16px; }
.lightbox p { margin-top: 12px; text-align: center; color: var(--cream); }
.lightbox__btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 250, 228, 0.5); background: rgba(18, 51, 31, 0.5); color: var(--cream); display: grid; place-items: center; transition: background-color .2s ease; }
.lightbox__btn:hover { background: var(--brick); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }

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

.book-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .book-layout { grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; } }
.book-frame { background: var(--cream); border: 1px solid rgba(138, 117, 52, 0.3); border-radius: 24px; padding: 10px; box-shadow: var(--shadow-panel); }
.book-frame iframe { width: 100%; height: 1100px; border: 0; border-radius: 16px; background: var(--cream); }
.book-aside { display: grid; gap: 20px; }
@media (min-width: 1024px) { .book-aside { position: sticky; top: 104px; } }
.info-card { background: var(--cream-deep); border-radius: 20px; padding: 26px; border: 1px solid rgba(138, 117, 52, 0.2); }
.info-card .h3 { margin-bottom: 10px; }
.info-card p, .info-card li { color: var(--ink-soft); font-size: 0.975rem; }
.info-card a { color: var(--forest); font-weight: 500; }
.info-card a:hover { color: var(--brick); }
.info-card--dark { background: var(--forest-deep); color: var(--cream); border-color: transparent; }
.info-card--dark p { color: rgba(255, 250, 228, 0.8); }
.info-card--dark a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

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

.contact-cards { display: grid; gap: 20px; margin-bottom: 56px; }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: var(--cream); border: 1px solid rgba(138, 117, 52, 0.3); box-shadow: var(--shadow-panel); transition: transform .5s var(--ease-out); }
a.contact-card:hover { transform: translateY(-4px); }
.contact-card .icon-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(27, 107, 58, 0.1); color: var(--forest); margin-bottom: 6px; }
.contact-card .icon-badge svg { width: 20px; height: 20px; }
.contact-card .label { color: var(--olive); }
.contact-card .value { font-size: 1.1rem; }

/* Motion: initial states --------------------------------------------------
   Only applied when motion.js has loaded (html.motion). Without JS, or with
   reduced motion, everything renders in its final state. */

html.motion [data-reveal],
html.motion [data-hero] { opacity: 0; }
html.motion [data-stagger] > * { opacity: 0; }
html.motion .hero__stroke,
html.motion .hero__vine { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.marquee__track { animation: none; }
	.marquee { overflow-x: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}
