/* ===========================================================================
   Fonts — self-hosted.
   Not loaded from Google: privacy browsers (DuckDuckGo, Brave, uBlock) block
   requests to fonts.googleapis.com, and serving them from Google also sends
   every visitor's IP address to a third party. Latin subsets only.
   Manjari and Modak are by Ek Type, SIL Open Font License 1.1 — see
   fonts/OFL.txt.
   =========================================================================== */

@font-face {
	font-family: 'Manjari';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/manjari-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Manjari';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/manjari-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Manjari';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/fonts/manjari-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Manjari';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/fonts/manjari-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Modak';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/modak-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Modak';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/modak-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===========================================================================
   The Bagel Hole
   Colours sampled from logo.svg. Change them here and the whole site follows.
   =========================================================================== */

:root {
	--plum: #6e4685; /* the wordmark purple — primary */
	--plum-deep: #563570;
	--lilac: #aa88be; /* the cat */
	--blush: #f090b5; /* the nose */
	--mist: #f4edf9; /* pale lilac wash */
	--cream: #fffdff;
	--ink: #2f2436;
	--char: #2a1f33;
	--rule: #e7dcef;

	--brand: 'Modak', 'Comic Sans MS', cursive;
	--body: 'Manjari', -apple-system, 'Segoe UI', Roboto, sans-serif;

	--wrap: 62rem;
}

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

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	/* Modak ships a single weight — never let the browser fake bold, it smears
	   the heavy strokes. Oblique synthesis stays on: Manjari has no italic
	   file, so without it the italic notes would render upright. */
	font-synthesis: style;
}

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

a {
	color: var(--plum);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--plum-deep);
}

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

h1,
h2,
h3 {
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin: 0;
}

p {
	margin: 0 0 0.75rem;
	max-width: 62ch;
}

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

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

.hero {
	background: var(--mist);
	border-bottom: 1px solid var(--rule);
	padding: 3rem 1.5rem 3.5rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.hero__logo img {
	width: auto;
	max-height: 20rem;
}

.hero__tagline {
	font-size: 1.25rem;
	margin: 0;
	max-width: 32ch;
}

.pill {
	background: var(--plum);
	color: var(--cream);
	font-weight: 700;
	border-radius: 999px;
	padding: 0.7rem 1.5rem;
	margin: 0;
	max-width: none;
}

/* ---------- layout -------------------------------------------------------- */

main {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section {
	padding: 3.5rem 0;
	border-bottom: 1px solid var(--rule);
}

.section:last-child {
	border-bottom: 0;
}

.section > h2 {
	font-size: 2rem;
	margin-bottom: 0.6rem;
}

.lede {
	font-size: 1.15rem;
}

.cols {
	display: grid;
	gap: 2rem;
	margin-top: 2rem;
}

.label {
	color: var(--plum);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 0.4rem;
}

.strong {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 0.15rem;
}

.quiet {
	color: color-mix(in srgb, var(--ink) 68%, transparent);
}

.italic {
	font-style: italic;
}

.small {
	font-size: 0.9rem;
}

.dates {
	list-style: none;
	margin: 0.9rem 0 0;
	padding: 0;
}

.dates li {
	padding: 0.15rem 0;
}

/* ---------- menu ---------------------------------------------------------- */

.menu {
	margin-top: 2.5rem;
}

.menu h3 {
	color: var(--plum);
	font-size: 1.3rem;
	margin-bottom: 0.25rem;
}

.menu ul {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.menu li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--rule);
}

.menu li:last-child {
	border-bottom: 0;
}

.menu li > span:first-child {
	font-weight: 700;
}

.menu em {
	display: block;
	font-weight: 400;
	font-style: normal;
	font-size: 0.95rem;
	color: color-mix(in srgb, var(--ink) 65%, transparent);
}

.price {
	color: var(--plum);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tag {
	display: inline-block;
	background: color-mix(in srgb, var(--blush) 30%, transparent);
	color: var(--plum-deep);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 4px;
	padding: 0.1rem 0.4rem;
	vertical-align: 0.1em;
	margin-left: 0.3rem;
}

/* ---------- gallery ------------------------------------------------------- */

.gallery {
	display: grid;
	gap: 1rem;
	margin-top: 1.75rem;
}

.gallery img {
	width: 100%;
	border-radius: 10px;
	border: 1px solid var(--rule);
	object-fit: cover;
}

/* ---------- wholesale ----------------------------------------------------- */

.panel {
	background: var(--mist);
	border: 1px solid var(--rule);
	border-radius: 16px;
	padding: 2rem;
}

.panel h2 {
	font-size: 2rem;
	margin-bottom: 0.6rem;
}

.button {
	display: inline-block;
	background: var(--plum);
	color: var(--cream);
	font-weight: 700;
	text-decoration: none;
	border-radius: 999px;
	padding: 0.75rem 1.5rem;
	margin-top: 0.5rem;
}

.button:hover {
	background: var(--plum-deep);
	color: var(--cream);
}

/* ---------- footer -------------------------------------------------------- */

footer {
	background: var(--char);
	color: color-mix(in srgb, var(--cream) 80%, transparent);
	margin-top: 1rem;
}

.footer__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 2.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Modak — used only where the words "The Bagel Hole" appear. */
.brand {
	font-family: var(--brand);
	font-weight: 400; /* Modak ships one weight; anything else fakes it */
	font-size: 2rem;
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: var(--cream);
	margin: 0 0 0.2rem;
}

.footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.95rem;
}

footer a {
	color: inherit;
}

footer a:hover {
	color: var(--cream);
}

/* ---------- wider screens ------------------------------------------------- */

@media (min-width: 760px) {
	.hero {
		padding: 4rem 2rem 4.5rem;
	}

	.hero__logo img {
		max-height: 17rem;
	}

	.section {
		padding: 4.5rem 0;
	}

	.section > h2,
	.panel h2 {
		font-size: 2.5rem;
	}

	.cols {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}

	.gallery {
		grid-template-columns: 1fr 1fr;
	}

	.panel {
		padding: 3rem;
	}

	.footer__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.footer__links {
		text-align: right;
	}
}
