/* San Clemente Weddings — shared styles
   Palette pulled from the town itself: white stucco, red tile, sage, Pacific mist. */

:root {
	--sand: #f7f2ea;
	--paper: #fffdf9;
	--ink: #2d2a26;
	--muted: #6f675d;
	--line: #e4dccf;
	--tile: #b65a3c;
	--tile-dark: #8f4229;
	--sage: #8a9a7b;
	--mist: #dfe8e6;
	--ocean: #3d6670;
	--serif: 'Cormorant Garamond', Georgia, serif;
	--sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--radius: 6px;
	--gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--sand);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--tile-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tile); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

p { margin: 0.8em 0; }

/* ---------- Header ---------- */

.site-header {
	background: url('/repeat-bg.png') repeat;
	background-size: 520px;
	text-align: center;
	padding: 36px var(--gutter) 0;
	border-bottom: 1px solid var(--line);
}

.logo img { max-width: 560px; width: 100%; margin: 0 auto; }

.site-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 28px;
	padding: 22px 0 18px;
}

.site-nav a {
	color: var(--ink);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 13px;
	font-weight: 500;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--tile); }
.site-nav a.selected { border-bottom-color: var(--tile); }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.page-intro { padding: 56px 0 24px; text-align: center; }
.page-intro h1 { font-size: clamp(36px, 6vw, 56px); }
.page-intro p { color: var(--muted); max-width: 620px; margin: 14px auto 0; font-size: 17px; }

.eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tile);
	font-weight: 600;
	margin-bottom: 10px;
}

section.block { padding: 48px 0; }
section.block > .wrap > h2, .section-head h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 6px; }
section.block > .wrap > .lede { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	min-height: 520px;
	display: grid;
	place-items: end start;
	color: #fff;
	background: var(--ocean) center/cover no-repeat;
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 30, 32, 0) 30%, rgba(20, 30, 32, 0.65) 100%),
		linear-gradient(90deg, rgba(20, 30, 32, 0.45) 0%, rgba(20, 30, 32, 0) 65%);
}

.hero .wrap { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); position: relative; z-index: 1; padding-bottom: 56px; width: 100%; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); max-width: 760px; }
.hero p { font-size: 18px; max-width: 560px; opacity: 0.92; }
.hero .eyebrow { color: #f3d7c8; }
.hero .credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; font-size: 11px; opacity: 0.7; }
.hero .credit a { color: #fff; }

.button {
	display: inline-block;
	background: var(--tile);
	color: #fff;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: var(--radius);
	font-weight: 500;
	margin-top: 12px;
	margin-right: 8px;
}
.button:hover { background: var(--tile-dark); color: #fff; }
.button.ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.hero .button.ghost { color: #fff; }

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

.venue-list { display: grid; gap: 56px; }

.venue-feature {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 36px;
	align-items: start;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
}

.venue-feature:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.venue-feature:nth-child(even) .gallery { order: 2; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery figure { position: relative; overflow: hidden; border-radius: 4px; background: var(--mist); aspect-ratio: 4 / 3; }
.gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery.count-2 figure:not(:first-child) { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.gallery.count-3 figure:not(:first-child) { grid-column: span 2; }
.gallery.count-4 figure:not(:first-child):last-of-type { grid-column: span 2; }
.gallery a { display: block; height: 100%; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .more {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(30, 28, 25, 0.5);
	color: #fff;
	font-weight: 500;
	font-size: 14px;
}
.gallery figcaption {
	position: absolute;
	right: 0; bottom: 0;
	font-size: 10px;
	padding: 2px 6px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border-top-left-radius: 4px;
	opacity: 0;
	transition: opacity .2s;
}
.gallery figure:first-child figcaption, .gallery figure:hover figcaption { opacity: 1; }
.gallery figcaption a { color: #fff; display: inline; cursor: pointer; }

/* ---------- Lightbox ---------- */

.lightbox {
	border: 0;
	padding: 0;
	margin: 0;
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	background: rgba(18, 17, 15, 0.94);
	color: #eee;
}
.lightbox::backdrop { background: rgba(18, 17, 15, 0.94); }
.lightbox figure { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 64px 20px; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 3px; }
.lightbox figcaption { font-size: 13px; text-align: center; max-width: 720px; }
.lightbox figcaption a { color: #f0e6d8; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; padding: 12px 16px; opacity: 0.75; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 4px; right: 8px; font-size: 36px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-count { position: absolute; top: 18px; left: 20px; font-size: 13px; opacity: 0.7; }

@media (max-width: 600px) {
	.lightbox figure { padding: 48px 8px 16px; }
	.lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}

.venue-body { padding: 8px 4px; }
.venue-body h3 { font-size: 34px; }
.venue-body h3 a { color: var(--ink); text-decoration: none; }
.venue-body h3 a:hover { color: var(--tile); }
.venue-body address { font-style: normal; color: var(--muted); font-size: 14px; margin-top: 4px; }

.badge {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 99px;
	background: var(--mist);
	color: var(--ocean);
	margin-bottom: 12px;
}
.badge.showpiece { background: #f4dfd5; color: var(--tile-dark); }
.badge.gem { background: #e4ead9; color: #4f5e41; }

.facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 4px;
	margin: 18px 0;
	overflow: hidden;
}
.facts div { background: var(--paper); padding: 10px 12px; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.facts dd { font-weight: 500; font-size: 14px; }

.why {
	border-left: 3px solid var(--tile);
	padding: 4px 0 4px 14px;
	font-family: var(--serif);
	font-size: 20px;
	font-style: italic;
	color: var(--ink);
}

/* ---------- Compact venue tiles (home + also-consider) ---------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.tile {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
	display: flex;
	flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease;
}
a.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(60, 40, 20, 0.08); color: var(--ink); }
.tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tile .tile-body { padding: 14px 16px 18px; }
.tile h3 { font-size: 24px; }
.tile .town { color: var(--muted); font-size: 13px; }
.tile .badge { margin: 0 0 8px; }

.also { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.also li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.also li a { font-weight: 500; }
.also address { font-style: normal; color: var(--muted); font-size: 13px; }

/* ---------- Vendors ---------- */

.vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.vendor {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 20px 16px;
	display: flex;
	flex-direction: column;
}
.vendor h3 { font-size: 26px; }
.vendor h3 a { color: var(--ink); text-decoration: none; }
.vendor h3 a:hover { color: var(--tile); }
.vendor .who { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.vendor .note { font-size: 15px; flex: 1; }
.vendor .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; margin: 8px 0 0; }
.vendor .price { font-weight: 600; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--mist); color: var(--ocean); }
.tag.place { background: #f1e8dc; color: var(--tile-dark); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filters button {
	font: inherit;
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 99px;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.notice {
	background: var(--mist);
	border-radius: var(--radius);
	padding: 14px 18px;
	font-size: 14px;
	color: var(--ocean);
	margin-top: 28px;
}

/* ---------- Prose (guides) ---------- */

.prose { padding: 48px 0; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.prose h2 { font-size: 28px; margin: 1.6em 0 0.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0.8em 0; }
.prose li { margin: 0.35em 0; }

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

.site-footer {
	margin-top: 64px;
	background: var(--ink);
	color: #cfc7bb;
	text-align: center;
	padding: 48px var(--gutter) 64px;
	font-size: 14px;
}
.footer-logo { max-width: 300px; margin: 0 auto 8px; filter: invert(1) brightness(0.9); }
.site-footer a { color: #f0e6d8; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.footer-nav a { text-decoration: none; }
.site-footer .fine { font-size: 12px; opacity: 0.75; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
	.venue-feature, .venue-feature:nth-child(even) { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
	.venue-feature:nth-child(even) .gallery { order: 0; }
	.hero { min-height: 420px; }
	.site-nav { gap: 2px 18px; }
}

@media (max-width: 480px) {
	.facts { grid-template-columns: 1fr 1fr; }
	.vendors { grid-template-columns: 1fr; }
	.venue-body h3 { font-size: 28px; }
}

/* ---------- Tables ---------- */

.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.also li .tag { float: right; margin-left: 8px; }
.also .setting { margin: 2px 0; font-size: 14px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.toc a { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); text-decoration: none; }
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--sage); padding: 12px 16px; border-radius: 4px; }
.prose h2[id] { scroll-margin-top: 16px; }

/* ---------- Photo spots ---------- */

.toc.center { justify-content: center; margin-top: 24px; }
.spot-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
.spot { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; scroll-margin-top: 16px; }
.spot-body { padding: 8px 6px 4px; }
.spot-body h2 { font-size: 30px; margin-top: 8px; }
.spot .gallery.count-3 figure:not(:first-child) { aspect-ratio: 16 / 10; }
.venue-feature { scroll-margin-top: 16px; }

/* Home: photo-spot strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.strip a:hover img { transform: scale(1.04); }
.strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); font-family: var(--serif); font-size: 22px; line-height: 1.1; }

@media (max-width: 820px) {
	.spot-list { grid-template-columns: 1fr; }
	.strip { grid-template-columns: repeat(2, 1fr); }
}
.photo-note { font-size: 13px; color: var(--muted); font-style: italic; margin: 6px 0 0; }
