:root {
	--bg: #f4f0e7;
	--paper: #fbf8f1;
	--ink: #1f2a25;
	--muted: #6d746e;
	--line: #d8d2c5;
	--accent: #8d3f2d;
	--accent-2: #52664d;
	--max: 1180px;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.container {
	width: min(calc(100% - 40px), var(--max));
	margin-inline: auto;
}

.eyebrow {
	margin: 0 0 .75rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
}

h1, h2, h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	line-height: 1.05;
}

h1 {
	max-width: 900px;
	margin: 0;
	font-size: clamp(3.4rem, 8vw, 7.5rem);
	letter-spacing: -.055em;
}

h2 {
	margin: 0 0 1rem;
	font-size: clamp(2.3rem, 5vw, 4.8rem);
	letter-spacing: -.04em;
}

h3 {
	margin: 0;
	font-size: clamp(1.55rem, 2.6vw, 2.4rem);
	letter-spacing: -.025em;
}

p {
	max-width: 760px;
}

/* =========================================================
   SECTION: HEADER / HERO
   ========================================================= */
.hero {
	position: relative;
	isolation: isolate;
	min-height: 82vh;
	display: flex;
	align-items: end;
	padding: 8rem 0 4rem;
	color: #fff;
	background-color: #435449;
	background-image:
		linear-gradient(180deg, rgba(18, 25, 21, 0), rgba(18, 25, 21, .76)),
		url('./header.jpg');
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.hero > .container {
	position: relative;
	z-index: 3;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem 1.25rem;
	margin-top: 2rem;
	font-size: .9rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.hero__lede {
	max-width: 720px;
	margin: 1.5rem 0 0;
	font-size: clamp(1.1rem, 2vw, 1.35rem);
}

/* =========================================================
   SECTION: NAV
   ========================================================= */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	backdrop-filter: blur(14px);
}

.site-nav__inner {
	display: flex;
	gap: 1.4rem;
	overflow-x: auto;
	padding: .95rem 0;
	white-space: nowrap;
	scrollbar-width: none;
}

.site-nav__inner::-webkit-scrollbar {
	display: none;
}

.site-nav a {
	text-decoration: none;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* =========================================================
   GLOBAL SECTION STYLES
   ========================================================= */
.section {
	padding: 6rem 0;
	border-bottom: 1px solid var(--line);
}

.section--paper {
	background: var(--paper);
}

.section-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
	gap: 3rem;
	align-items: start;
	margin-bottom: 3rem;
}

.section-intro__note {
	padding-top: .4rem;
	color: var(--muted);
}

/* =========================================================
   SECTION: INTRO / RHYTHM
   ========================================================= */
.rhythm {
	display: grid;
	grid-template-columns: repeat(7, minmax(100px, 1fr));
	gap: 1px;
	margin-top: 3rem;
	border: 1px solid var(--line);
	background: var(--line);
}

.rhythm__item--sat { grid-column: 6; }
.rhythm__item--sun { grid-column: 7; }
.rhythm__item--mon { grid-column: 1; }
.rhythm__item--tue { grid-column: 2; }

.rhythm__item {
	min-height: 145px;
	padding: 1rem;
	border: 0;
	width: 100%;
	color: inherit;
	text-align: left;
	font: inherit;
	background: var(--paper);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.rhythm__item:hover {
	background: #fffdf8;
	transform: translateY(-2px);
}

.rhythm__item:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: -3px;
}

.rhythm__day {
	display: block;
	margin-bottom: 1rem;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}

.rhythm__label {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2rem;
	line-height: 1.15;
}

/* =========================================================
   SECTION: PHOTO GALLERY
   ========================================================= */
.gallery-modal {
	width: min(1120px, calc(100% - 2rem));
	max-width: none;
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border: 0;
	border-radius: .35rem;
	color: var(--ink);
	background: var(--paper);
	box-shadow: 0 1.5rem 6rem rgba(0, 0, 0, .35);
}

.gallery-modal::backdrop {
	background: rgba(18, 25, 21, .78);
	backdrop-filter: blur(5px);
}

.gallery-modal__header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .5rem 1rem;
	align-items: start;
	margin-bottom: 1.25rem;
}

.gallery-modal__header .eyebrow {
	grid-column: 1;
	margin-bottom: 0;
}

.gallery-modal__header h2 {
	grid-column: 1;
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.25rem);
}

.gallery-modal__close {
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	background: transparent;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.gallery-modal__status {
	margin: 0;
	color: var(--muted);
}

#trip-gallery {
	--swiper-navigation-color: #fff;
	--swiper-pagination-color: #fff;
	border-radius: .2rem;
	background: #17211d;
}

#trip-gallery .swiper-slide {
	width: min(86vw, 940px);
	display: grid;
	place-items: center;
	min-height: min(68dvh, 760px);
}

#trip-gallery .swiper-slide img,
#trip-gallery .swiper-slide video {
	max-width: 100%;
	max-height: min(68dvh, 760px);
	object-fit: contain;
}

.gallery-thumbs {
	margin-top: .75rem;
}

.gallery-thumbs .swiper-slide {
	position: relative;
	width: 96px;
	height: 75px;
	min-height: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: .15rem;
	opacity: .48;
	cursor: pointer;
	transition: opacity .2s ease, border-color .2s ease;
}

.gallery-thumbs .swiper-slide-thumb-active {
	border-color: var(--accent);
	opacity: 1;
}

.gallery-thumbs img,
.gallery-thumbs video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================================================
   SECTION: SCHEDULE
   Each .day is intentionally self-contained.
   Update one day without touching another.
   ========================================================= */
.schedule {
	display: grid;
	gap: 1px;
	border: 1px solid var(--line);
	background: var(--line);
}

.day {
	display: grid;
	grid-template-columns: 165px minmax(0, 1fr);
	background: var(--paper);
}

.day__date,
.day__body {
	padding: 2rem;
}

.day__date {
	background: rgba(255,255,255,.3);
}

.day__date {
	border-right: 1px solid var(--line);
}

.day__gallery {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 2px;
	margin: 1.5rem 0 0;
	padding: 2px;
	border-top: 1px solid var(--line);
	background: var(--line);
}

.day__number {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3.2rem;
	line-height: .9;
	color: var(--accent);
}

.day__weekday {
	display: block;
	margin-top: .8rem;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.route {
	margin: .7rem 0 1.3rem;
	font-size: .86rem;
	font-weight: 700;
	color: var(--accent-2);
}

.day__gallery-tile {
	position: relative;
	display: block;
	flex: 0 0 auto;
	height: 75px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #28342e;
	cursor: pointer;
	overflow: hidden;
}

.day__gallery-tile img,
.day__gallery-tile video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .25s ease;
}

.day__gallery-tile:hover img,
.day__gallery-tile:hover video,
.day__gallery-tile:focus-visible img,
.day__gallery-tile:focus-visible video {
	opacity: .82;
}

.day__gallery-tile:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: -3px;
}

.is-video-thumbnail::after {
	content: "▶";
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	color: #fff;
	background: rgba(18, 25, 21, .72);
	font-size: .8rem;
	line-height: 1;
	pointer-events: none;
}

.tag {
	display: inline-block;
	margin: .15rem .2rem .15rem 0;
	padding: .2rem .5rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* =========================================================
   SECTION: FOOD / SHOPPING
   ========================================================= */
.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	border: 1px solid var(--line);
	background: var(--line);
}

.card {
	min-height: 250px;
	padding: 1.6rem;
	background: var(--paper);
}

.card__type {
	margin-bottom: 1rem;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent);
}

.card p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   SECTION: CAVEATS
   ========================================================= */
.caveats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	border: 1px solid var(--line);
	background: var(--line);
}

.caveat {
	padding: 1.6rem;
	background: var(--paper);
}

/* =========================================================
   SECTION: LINKS
   ========================================================= */
.link-groups {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.link-groups h3 {
	margin-bottom: 1rem;
	font-size: 1.3rem;
}

.link-groups ul {
	margin: 0;
	padding-left: 1.1rem;
}

.link-groups li + li {
	margin-top: .5rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
	padding: 2.5rem 0;
	font-size: .82rem;
	color: var(--muted);
}

@media (max-width: 900px) {
	.section-intro,
	.day {
		grid-template-columns: 1fr;
	}

	.rhythm__item--sat,
	.rhythm__item--sun,
	.rhythm__item--mon,
	.rhythm__item--tue {
		grid-column: auto;
	}

	.day__date {
		border-bottom: 1px solid var(--line);
	}

	.day__gallery {
		margin: 1.5rem 0 0;
	}

	.rhythm,
	.cards,
	.caveats,
	.link-groups {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.container {
		width: min(calc(100% - 28px), var(--max));
	}

	.section {
		padding: 4rem 0;
	}

	.rhythm,
	.cards,
	.caveats,
	.link-groups {
		grid-template-columns: 1fr;
	}

	.day__date,
	.day__body {
		padding: 1.35rem;
	}

	.day__gallery {
		margin: 1.35rem 0 0;
	}
}
