/*
 * Savory Spoonfuls — design system layer.
 * Palette, typography, header/footer, and shared components used by the
 * ACF blocks. Loaded after the Underscores base stylesheet.
 */

/* ─── Fonts ─────────────────────────────────────────────────────────────── */

@font-face {
	font-family: "Bree Serif";
	src: url("../fonts/BreeSerif-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Public Sans";
	src: url("../fonts/PublicSans-VariableFont_wght.ttf") format("truetype-variations");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ─── Palette ───────────────────────────────────────────────────────────── */

:root {
	--ss-navy: #26225c;
	--ss-orange: #e47125;
	--ss-orange-light: #f47b2f;
	--ss-ink: #1e1819;
	--ss-body: #030404;
	--ss-red: #ee3537;
	--ss-line: #d9d8e2;
	--ss-bg-soft: #fbfaf8;
	/* Brand fonts per design (Adobe Fonts kit gys6mzk):
	   Picholine Antique = display serif (headings, eyebrows, nav, search);
	   JAF Domus = sans (body, cards, display caps). Local Bree Serif stays
	   for buttons, Public Sans for footer menu + form fields, both per design.
	   INTERIM: the design's sans is a Light (~300) cut, but the kit only
	   publishes jaf-domus 400/700, which renders far too heavy. Public Sans
	   (local variable font, 100-900) leads the sans stack so light weights
	   actually render. Once the client adds JAF Domus Light to kit gys6mzk,
	   put "jaf-domus" back in front. */
	--ss-font-serif: "picholine-antique-variable", "Bree Serif", Georgia, serif;
	--ss-font-sans: "Public Sans", "jaf-domus", "Helvetica Neue", Arial, sans-serif;
	--ss-font-btn: "Bree Serif", Georgia, serif;
	--ss-font-alt: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ─── Base typography ───────────────────────────────────────────────────── */

body {
	font-family: var(--ss-font-sans);
	/* Design paragraphs are a Light cut — see the font-stack note above. */
	font-weight: 300;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ss-body);
	background: #fff;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ss-font-sans);
	color: var(--ss-navy);
	line-height: 1.2;
	clear: both;
}

a {
	color: var(--ss-orange);
	text-decoration: none;
}

a:hover,
a:focus,
a:active {
	color: var(--ss-navy);
}

/* Hide the automatic page title/footer chrome — page layouts come from blocks. */
.page .entry-header,
.page .entry-footer {
	display: none;
}

/* Underscores gives articles a 1.5em bottom margin, which opens a gap between
   .site-main and the footer — block layouts own their own spacing. */
.post,
.page {
	margin: 0;
}

.page .site-main,
.home .site-main {
	margin: 0;
}

.page .entry-content {
	margin-top: 0;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.ss-btn,
.entry-content .ss-btn {
	display: inline-block;
	background: var(--ss-navy);
	color: #fcfdfe;
	font-family: var(--ss-font-btn);
	font-size: 18px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 16px 42px;
	border: 0;
	border-radius: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ss-btn:hover,
.ss-btn:focus {
	background: var(--ss-orange);
	color: #fff;
}

/* ─── Shared heading pattern: navy eyebrow + orange display line ────────── */

.ss-eyebrow {
	font-family: var(--ss-font-serif);
	font-weight: 400;
	font-size: 22px;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--ss-navy);
	margin: 0 0 4px;
}

.ss-display {
	font-family: var(--ss-font-sans);
	font-weight: 300;
	font-size: 42px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ss-orange-light);
	margin: 0 0 24px;
}

/* ─── Header ────────────────────────────────────────────────────────────── */

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--ss-line);
	position: relative;
	z-index: 20;
}

.site-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px 0;
	text-align: center;
}

.site-branding {
	display: block;
}

.site-logo {
	display: inline-block;
}

.site-logo img {
	width: 240px;
	height: auto;
	display: block;
}

.main-navigation {
	display: block;
	float: none;
	width: 100%;
}

.main-navigation ul {
	display: flex;
	justify-content: center;
	gap: 72px;
	list-style: none;
	margin: 0;
	padding: 22px 0 18px;
}

.main-navigation ul ul {
	display: none; /* flat menu per design */
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	font-family: var(--ss-font-serif);
	font-weight: 500;
	font-size: 19px;
	color: var(--ss-navy);
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--ss-orange);
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 10px;
	margin: 6px auto 12px;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 26px;
	height: 3px;
	margin: 5px 0;
	background: var(--ss-navy);
	border-radius: 2px;
}

@media (max-width: 768px) {
	.site-logo img {
		width: 170px;
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation ul {
		display: none;
	}

	.main-navigation.toggled ul {
		display: block;
		padding: 0 0 16px;
	}

	.main-navigation.toggled li {
		padding: 8px 0;
	}
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
	border-top: 2px solid var(--ss-navy);
	background: #fff;
	margin-top: 0;
}

.site-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px 56px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
}

.footer-logo img {
	width: 260px;
	height: auto;
	display: block;
}

.footer-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
	line-height: 1.4;
}

.footer-navigation li {
	margin: 0;
}

.footer-navigation a {
	font-family: var(--ss-font-alt);
	font-weight: 400;
	font-size: 17px;
	color: var(--ss-navy);
	text-decoration: none;
}

.footer-navigation a:hover {
	color: var(--ss-orange);
}

@media (max-width: 640px) {
	.site-footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-logo img {
		width: 200px;
	}
}
