/* ===============================================================
   Tile Surrounds — Global tokens + base
   =============================================================== */
:root {
	--bg: #FAF7F2;
	--bg-warm: #F2EDE2;
	--ink: #2A2A2A;
	--ink-soft: #4A4742;
	--muted: #6E6A60;
	--hairline: #E1D9C9;
	--hairline-soft: #ECE5D6;
	--accent: #B5654A;
	--accent-ink: #FAF7F2;
	--accent-deep: #8E4A33;

	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--maxw: 1280px;
	--maxw-narrow: 760px;
	--gutter: 96px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 400;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--ink);
}
h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.06; }
h3 { font-size: clamp(22px, 1.7vw, 28px); line-height: 1.2; }
h4 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 22px; color: var(--ink); }
p  { margin: 0; }
em { font-style: italic; }

.skip-link {
	position: absolute; left: -9999px;
}
.skip-link:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }

.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container-narrow { max-width: var(--maxw-narrow); }

.eyebrow {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}
.eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px; height: 1px;
	background: currentColor;
	vertical-align: middle;
	margin-right: 14px;
	margin-bottom: 3px;
	opacity: 0.7;
}

.muted { color: var(--muted); }

/* ============= NAV ============= */
.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	padding: 22px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background 240ms ease, padding 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
	border-bottom: 1px solid transparent;
}
.nav.is-solid {
	background: rgba(250, 247, 242, 0.94);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--hairline-soft);
	padding-top: 14px;
	padding-bottom: 14px;
}
.nav, .nav a { color: var(--ink); }
.nav.is-over-hero:not(.is-solid),
.nav.is-over-hero:not(.is-solid) a { color: #FAF7F2; }

/* Non-home pages: nav is permanently solid + sits in flow above hero-less templates */
.nav.is-static { position: sticky; top: 0; }

.brand {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--serif);
	font-size: 26px;
	letter-spacing: 0.01em;
}
.brand-mark { font-family: var(--serif); font-style: italic; font-weight: 500; }
.brand-tag {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	opacity: 0.7;
	padding-left: 10px;
	border-left: 1px solid currentColor;
	line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
	content: ""; position: absolute; inset: auto 0 -4px 0; height: 1px; background: currentColor;
}

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.nav-phone svg { width: 14px; height: 14px; }

.nav-hamburger {
	display: none;
	width: 40px; height: 40px;
	align-items: center; justify-content: center;
}
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
.nav-hamburger span::before,
.nav-hamburger span::after {
	content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor;
}
.nav-hamburger span::before { top: -7px; }
.nav-hamburger span::after  { top:  7px; }

.mobile-menu {
	position: fixed; inset: 0; z-index: 49;
	background: var(--bg);
	padding: 96px 32px 32px;
	transform: translateY(-100%);
	transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
	display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
	padding: 20px 0;
	border-bottom: 1px solid var(--hairline);
	font-family: var(--serif);
	font-size: 32px;
}
.mobile-menu .cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ============= BUTTONS ============= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 26px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: transform 160ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
	background: var(--accent);
	color: var(--accent-ink);
	box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -10px rgba(0,0,0,0.35);
}
.btn-primary:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn-ghost {
	background: transparent;
	color: #FAF7F2;
	border: 1px solid rgba(250, 247, 242, 0.55);
}
.btn-ghost:hover { background: rgba(250, 247, 242, 0.1); border-color: rgba(250, 247, 242, 0.85); color: #FAF7F2; }
.btn-line {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn .arrow {
	display: inline-block; width: 16px; height: 1px;
	background: currentColor; position: relative; margin-left: 2px;
}
.btn .arrow::after {
	content: ""; position: absolute; right: 0; top: -3px;
	width: 7px; height: 7px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}

/* ============= FOOTER ============= */
.footer {
	background: var(--bg);
	padding: 80px 0 36px;
	border-top: 1px solid var(--hairline);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 56px;
	border-bottom: 1px solid var(--hairline);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 32ch; }
.footer-brand .brand { font-size: 30px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.footer-fineprint { font-size: 13px !important; }
.footer-fineprint a { color: var(--ink-soft); border-bottom: 1px solid var(--hairline); padding-bottom: 1px; }
.footer-fineprint a:hover { color: var(--accent); border-color: var(--accent); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.footer ul a { color: var(--ink-soft); }
.footer ul a:hover { color: var(--accent); }
.footer-contact { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.footer-contact strong { color: var(--ink); font-weight: 500; }
.footer-contact .muted { color: var(--muted); }
.social { margin-top: 18px; display: flex; gap: 10px; }
.social a {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--hairline); border-radius: 50%;
	color: var(--ink-soft);
	transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.social a:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.social svg { width: 14px; height: 14px; fill: currentColor; }
.footer-base { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }

/* ============= RESPONSIVE ============= */
@media (max-width: 820px) {
	:root { --gutter: 24px; }
	.nav { padding: 16px var(--gutter); }
	.nav-links { display: none; }
	.nav-phone .label { display: none; }
	.nav-phone { gap: 6px; font-size: 13px; }
	.nav-hamburger { display: inline-flex; }
	.nav-right { gap: 14px; }
	.brand { font-size: 20px; }
	.brand-tag { display: none; }

	.footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
	.footer-base { flex-direction: column; gap: 12px; text-align: center; }
}
