/*
 * A shop's website (Site\ShopSite). One layout, four themes:
 *   classic  warm and light, serif headings
 *   bold     dark, a big photo, heavy type
 *   fresh    bright white, rounded, airy
 *   street   loud: the shop's colour in blocks, chunky capitals, hard edges
 *   coastal  cool seaside blues, airy, a framed photo
 *   elegant  ivory, hairlines, serif capitals, square edges, centred
 * --brand is the shop's colour; --brand-ink a darker one white text sits on.
 */

@font-face { font-family: "Source Serif 4"; font-weight: 500; font-display: swap; src: url(fonts/serif-500.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(fonts/sans-400.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(fonts/sans-600.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url(fonts/lato-700.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-display: swap; src: url(fonts/lato-900.woff2) format("woff2"); }
@font-face { font-family: "Sulphur Point"; font-weight: 700; font-display: swap; src: url(fonts/sulphur-700.woff2) format("woff2"); }

/* ---------- Theme tokens ---------- */

.shop {
	--bg: #faf7f3;
	--surface: #fff;
	--text: #1f1d1b;
	--muted: #615c57;
	--line: #e6dfd8;
	--radius: 12px;
	--radius-btn: 999px;
	--head: "Source Serif 4", Georgia, serif;
	--body: "Source Sans 3", system-ui, sans-serif;
	--head-weight: 500;
	--head-case: none;
	--head-track: -0.01em;
	--card-border: 1px solid var(--line);
	--card-shadow: none;
	--band-bg: var(--brand-ink);
	--band-text: #fff;
	--open: #1f6b3a;
	--open-bg: #e8f3ec;
}

.theme-bold {
	--bg: #141210;
	--surface: #1f1c1a;
	--text: #f6f2ee;
	--muted: #b9b0a8;
	--line: #34302d;
	--radius: 14px;
	--head: "Lato", system-ui, sans-serif;
	--body: "Lato", system-ui, sans-serif;
	--head-weight: 900;
	--head-track: -0.02em;
	--band-bg: var(--brand-ink);
	--open: #9be0b2;
	--open-bg: rgba(155, 224, 178, 0.12);
}

.theme-fresh {
	--bg: #fff;
	--surface: #f6f6f3;
	--text: #222220;
	--muted: #66645f;
	--line: #ecebe6;
	--radius: 22px;
	--head: "Sulphur Point", system-ui, sans-serif;
	--body: "Lato", system-ui, sans-serif;
	--head-weight: 700;
	--head-track: 0;
	--card-border: 1px solid transparent;
	--band-bg: var(--surface);
	--band-text: var(--text);
}

.theme-street {
	--bg: #fffdf7;
	--surface: #fff;
	--text: #111;
	--muted: #4e4a46;
	--line: #111;
	--radius: 4px;
	--radius-btn: 4px;
	--head: "Lato", system-ui, sans-serif;
	--body: "Lato", system-ui, sans-serif;
	--head-weight: 900;
	--head-case: uppercase;
	--head-track: 0.02em;
	--card-border: 2px solid #111;
	--card-shadow: 5px 5px 0 #111;
	--band-bg: var(--brand);
	--band-text: var(--brand-on);
}

.theme-coastal {
	--bg: #f3f7f9;
	--surface: #fff;
	--text: #0f2233;
	--muted: #4f6272;
	--line: #d9e4ea;
	--radius: 14px;
	--head: "Lato", system-ui, sans-serif;
	--body: "Lato", system-ui, sans-serif;
	--head-weight: 900;
	--head-track: -0.015em;
	--card-border: 1px solid #e3ecf1;
	--card-shadow: 0 6px 20px rgba(15, 34, 51, 0.07);
	--band-bg: #0f2233;
	--band-text: #fff;
}

.theme-elegant {
	--bg: #fbf8f2;
	--surface: #fffdf8;
	--text: #24201b;
	--muted: #6b6359;
	--line: #e4dccf;
	--radius: 0;
	--radius-btn: 0;
	--head: "Source Serif 4", Georgia, serif;
	--body: "Source Sans 3", system-ui, sans-serif;
	--head-weight: 500;
	--head-case: uppercase;
	--head-track: 0.06em;
	--card-border: 1px solid var(--line);
	--card-shadow: none;
	--band-bg: #24201b;
	--band-text: #fbf8f2;
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body.shop {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 var(--body);
}

.shop h1,
.shop h2,
.shop h3 {
	margin: 0 0 0.4em;
	font-family: var(--head);
	font-weight: var(--head-weight);
	letter-spacing: var(--head-track);
	line-height: 1.15;
	text-transform: var(--head-case);
	text-wrap: balance;
}

.shop h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.shop h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.shop h3 { margin-top: 1.2em; font-size: 1.05rem; }

.shop p {
	margin: 0 0 1em;
}

.shop a {
	color: inherit;
}

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

.wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

.narrow {
	max-width: 760px;
}

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

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

.skip {
	position: absolute;
	top: -60px;
	left: 12px;
	z-index: 50;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--text);
	color: var(--bg);
}

.skip:focus {
	top: 12px;
}

.shop a:focus-visible,
.shop button:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 3px;
}

/* ---------- Buttons and pills ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 2px solid var(--brand-ink);
	border-radius: var(--radius-btn);
	background: var(--brand-ink);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	transition: transform 120ms ease-out, background-color 120ms ease-out;
}

.btn:hover {
	filter: brightness(1.08);
}

.btn:active {
	transform: scale(0.97);
}

.btn--big {
	min-height: 56px;
	padding: 0 30px;
	font-size: 1.08rem;
}

.btn--small {
	min-height: 40px;
	padding: 0 18px;
	font-size: 0.95rem;
}

.btn--ghost {
	background: transparent;
	color: var(--text) !important;
	border-color: currentColor;
}

.btn--light {
	border-color: #fff;
	background: #fff;
	color: var(--brand-ink) !important;
}

.theme-street .btn {
	box-shadow: 3px 3px 0 #111;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.theme-street .btn--ghost,
.theme-street .btn--light {
	border-color: #111;
}

.pill {
	display: inline-block;
	margin: 0 0 16px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 700;
}

.pill.is-open {
	background: var(--open-bg);
	color: var(--open);
}

.pill.is-open::before {
	content: "● ";
}

.more {
	color: var(--brand-ink) !important;
	font-weight: 700;
	text-underline-offset: 3px;
}

.theme-bold .more {
	color: var(--brand) !important;
	filter: brightness(1.4);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0 0;
}

/* ---------- Top bar ---------- */

.bar {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
}

.theme-street .bar {
	border-bottom: 2px solid #111;
	background: var(--bg);
}

.bar__in {
	display: flex;
	gap: 16px;
	align-items: center;
	min-height: 68px;
}

.brand {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-right: auto;
	text-decoration: none;
}

.brand__logo {
	width: auto;
	max-width: 160px;
	height: 44px;
	object-fit: contain;
}

.brand__name {
	font-family: var(--head);
	font-size: 1.3rem;
	font-weight: var(--head-weight);
	text-transform: var(--head-case);
}

.nav {
	display: flex;
	gap: 22px;
	align-items: center;
}

.nav a:not(.btn) {
	padding: 8px 0;
	font-weight: 600;
	text-decoration: none;
}

.nav a[aria-current="page"]:not(.btn) {
	box-shadow: inset 0 -3px 0 var(--brand);
}

.bar__toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.bar__burger,
.bar__burger::before,
.bar__burger::after {
	display: block;
	width: 20px;
	height: 2px;
	margin: auto;
	border-radius: 2px;
	background: currentColor;
	transition: transform 160ms ease-out;
}

.bar__burger {
	position: relative;
}

.bar__burger::before,
.bar__burger::after {
	position: absolute;
	content: "";
}

.bar__burger::before { top: -6px; }
.bar__burger::after { top: 6px; }

.bar.is-open .bar__burger { background: transparent; }
.bar.is-open .bar__burger::before { transform: translateY(6px) rotate(45deg); }
.bar.is-open .bar__burger::after { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
	position: relative;
	padding: 80px 0 72px;
	overflow: hidden;
}

.hero__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}

.hero__tagline {
	max-width: 34ch;
	color: var(--muted);
	font-size: clamp(1.15rem, 2.2vw, 1.45rem);
	line-height: 1.4;
}

.hero__services {
	margin: 18px 0 0;
	color: var(--muted);
	font-weight: 600;
}

.hero__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
}

/* Classic: text and photo side by side. */
.theme-classic .hero.has-photo .hero__in,
.theme-fresh .hero.has-photo .hero__in {
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* Bold: the photo fills the hero, text over a dark wash. */
.theme-bold .hero {
	min-height: min(78vh, 720px);
	display: flex;
	align-items: flex-end;
	padding: 140px 0 64px;
	background: var(--brand-ink);
}

.theme-bold .hero.has-photo {
	background: linear-gradient(180deg, rgba(20, 18, 16, 0.15) 0%, rgba(20, 18, 16, 0.92) 100%), var(--hero) center / cover no-repeat;
}

.theme-bold .hero__photo {
	display: none;
}

.theme-bold .hero h1 {
	font-size: clamp(3rem, 9vw, 6.5rem);
	line-height: 0.95;
}

.theme-bold .hero__tagline,
.theme-bold .hero__services {
	color: #e9e3dd;
}

.theme-bold .hero .btn--ghost {
	color: #fff !important;
}

.theme-bold .hero .pill {
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	backdrop-filter: blur(6px);
}

.theme-bold .hero .pill.is-open {
	color: #9be0b2;
}

/* Fresh: a soft wash of the shop's colour, a rounded photo. */
.theme-fresh .hero {
	background: color-mix(in srgb, var(--brand) 9%, var(--bg));
}

.theme-fresh .hero__photo img {
	border-radius: 40px;
	transform: rotate(1.5deg);
}

/* Street: the shop's colour, loud, with a framed photo. */
.theme-street .hero {
	border-bottom: 2px solid #111;
	background: var(--brand);
	color: var(--brand-on);
}

.theme-street .hero.has-photo .hero__in {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.theme-street .hero__tagline,
.theme-street .hero__services {
	color: var(--brand-on);
}

.theme-street .hero .btn--ghost {
	color: var(--brand-on) !important;
	border-color: var(--brand-on);
}

.theme-street .hero h1 {
	display: inline;
	padding: 0 0.15em;
	background: #fff;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	line-height: 1.3;
}

.theme-street .hero__photo img {
	border: 3px solid #111;
	box-shadow: 10px 10px 0 #111;
	transform: rotate(-2deg);
}

.theme-street .hero .pill {
	border: 2px solid #111;
	background: #fff;
	color: #111;
}

/* Coastal: a soft sky wash, the photo framed in white. */
.theme-coastal .hero,
.theme-coastal .page-head {
	background: linear-gradient(180deg, #e3eef4 0%, var(--bg) 100%);
}

.theme-coastal .hero.has-photo .hero__in {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.theme-coastal .hero__photo img {
	border: 8px solid #fff;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(15, 34, 51, 0.18);
}

/* Elegant: centred words, the photo as a wide picture below. */
.theme-elegant .hero {
	padding-bottom: 0;
	text-align: center;
}

.theme-elegant .hero__tagline {
	margin-right: auto;
	margin-left: auto;
	font-family: var(--head);
	font-style: italic;
}

.theme-elegant .hero h1 {
	font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}

.theme-elegant .hero .actions {
	justify-content: center;
}

.theme-elegant .hero__photo img {
	aspect-ratio: 21 / 9;
}

.theme-elegant .page-head {
	border-bottom: 1px solid var(--line);
	text-align: center;
}

.theme-elegant .page-head .lead {
	font-family: var(--head);
	font-style: italic;
}

.theme-elegant .sec h2,
.theme-elegant .section__head h2 {
	font-size: 1.35rem;
}

/* ---------- Sections ---------- */

.section {
	padding: 56px 0;
}

.section + .section {
	padding-top: 0;
}

.section__head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
}

.welcome {
	font-size: 1.2rem;
	line-height: 1.65;
	text-align: center;
}

.card {
	padding: 26px;
	border: var(--card-border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--card-shadow);
}

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.fact h2 {
	font-size: 1.3rem;
}

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

/* Favourites */
.faves {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.fave {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	text-decoration: none;
	transition: transform 160ms ease-out;
}

.fave:hover {
	transform: translateY(-3px);
}

.fave img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.fave__name {
	padding: 14px 18px 2px;
	font-weight: 700;
}

.fave__price {
	padding: 0 18px 16px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* Hours and find us */
.visit {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 18px;
	align-items: start;
}

.big {
	font-size: 1.15rem;
	font-weight: 600;
}

.hours table {
	width: 100%;
	border-collapse: collapse;
}

.hours th,
.hours td {
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	font-variant-numeric: tabular-nums;
	text-align: left;
	vertical-align: top;
}

.theme-street .hours th,
.theme-street .hours td {
	border-bottom-width: 1px;
}

.hours th {
	width: 42%;
	font-weight: 600;
}

.hours tr:last-child th,
.hours tr:last-child td {
	border-bottom: 0;
}

.coming {
	margin: 0;
	padding-left: 18px;
}

/* About teaser */
.about-teaser {
	display: grid;
	gap: 32px;
	align-items: center;
}

.about-teaser.has-photo {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.about-teaser img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius);
}

/* A page's own heading */
.page-head {
	padding: 64px 0 24px;
}

.theme-bold .page-head,
.theme-street .page-head {
	border-bottom: var(--card-border);
	background: var(--brand-ink);
	color: #fff;
	padding-bottom: 48px;
}

.theme-street .page-head {
	background: var(--brand);
	color: var(--brand-on);
}

.theme-bold .page-head .lead,
.theme-street .page-head .lead {
	color: inherit;
	opacity: 0.85;
}

.theme-bold .page-head + .section,
.theme-street .page-head + .section {
	padding-top: 48px;
}

.lead {
	color: var(--muted);
	font-size: 1.2rem;
}

.prose {
	font-size: 1.1rem;
	line-height: 1.75;
}

.prose__photo {
	width: 100%;
	margin: 0 0 28px;
	border-radius: var(--radius);
}

/* Delivery areas */
.table-card {
	padding: 6px 22px;
	overflow-x: auto;
}

.areas {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.areas th,
.areas td {
	padding: 12px 10px 12px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.areas thead th {
	color: var(--muted);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.areas tbody tr:last-child th,
.areas tbody tr:last-child td {
	border-bottom: 0;
}

.towns {
	margin-top: 20px;
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.social a {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text);
	transition: background-color 120ms ease-out, color 120ms ease-out;
}

.social a:hover {
	filter: brightness(1.12);
}

.social .social__facebook { border-color: #1877f2; background: #1877f2; color: #fff; }
.social .social__instagram { border-color: transparent; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }
.social .social__tiktok { border-color: #010101; background: #010101; color: #fff; }

.social svg {
	width: 20px;
	height: 20px;
}

.theme-street .social a {
	border: 2px solid #111;
	border-radius: 4px;
}

/* The order band */
.band {
	padding: 56px 0;
	background: var(--band-bg);
	color: var(--band-text);
}

.theme-street .band {
	border-top: 2px solid #111;
	border-bottom: 2px solid #111;
}

.theme-fresh .band .btn--light {
	border-color: var(--brand-ink);
	background: var(--brand-ink);
	color: #fff !important;
}

.band__in {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	align-items: center;
	justify-content: space-between;
}

.band h2 {
	margin: 0;
}

/* A photo's credit (Unsplash and Pexels ask for one) */
.credit {
	margin: 10px auto 0;
	color: var(--muted);
	font-size: 0.78rem;
	text-align: right;
}

.credit a {
	color: inherit;
}

.theme-bold .hero .credit,
.theme-street .hero .credit {
	position: absolute;
	right: 0;
	bottom: 10px;
	left: 0;
	margin: 0 auto;
	color: inherit;
	opacity: 0.75;
}

.prose__figure {
	margin: 0 0 28px;
}

.prose__figure .prose__photo {
	margin: 0;
}

/* Allergens */
.allergy-note {
	border-left: 4px solid var(--brand-ink);
}

.allergy-filter {
	margin: 0 0 28px;
}

.allergy-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
}

.chip {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-btn);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}

.chip[aria-pressed="true"] {
	border-color: var(--brand-ink);
	background: var(--brand-ink);
	color: #fff;
	text-decoration: line-through;
}

.allergy-cat + .allergy-cat {
	margin-top: 32px;
}

.allergy-list {
	margin: 0;
	padding: 0;
	border: var(--card-border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--card-shadow);
	list-style: none;
}

.allergy-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 6px 16px;
	padding: 12px 18px;
	border-bottom: 1px solid var(--line);
}

.theme-street .allergy-list li {
	border-bottom-width: 1px;
}

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

.allergy-list li[hidden] {
	display: none;
}

.allergy-list__name {
	font-weight: 600;
}

.allergy-list__what {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag {
	padding: 2px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--brand) 14%, var(--surface));
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 600;
}

.may {
	font-size: 0.9rem;
}

@media (max-width: 640px) {
	.allergy-list li {
		grid-template-columns: 1fr;
	}
}

/* Food hygiene rating (the FSA's own badge, on white as they design it) */
.hygiene {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.hygiene__badge {
	display: block;
	width: 100%;
	max-width: 320px; /* The FSA's image is 481px wide: scale it to fit the card, on any screen. */
	padding: 4px;
	border-radius: 8px;
	background: #fff;
	line-height: 0;
}

.hygiene__badge a {
	display: block !important;
	width: 100% !important;
}

.hygiene__badge img,
.hygiene__badge svg {
	display: block;
	width: 100% !important;
	min-width: 0 !important; /* The FSA script sets min-width: 481px. */
	max-width: 100% !important;
	height: auto !important;
	border-radius: 5px;
}

.hygiene__badge:empty {
	display: none;
}

.hygiene__text {
	margin: 8px 0 0;
	font-size: 0.9rem;
}

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

.foot {
	padding: 48px 0 110px;
	border-top: 1px solid var(--line);
}

.foot__in {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
}

.foot__name {
	font-family: var(--head);
	font-size: 1.3rem;
	font-weight: var(--head-weight);
	text-transform: var(--head-case);
}

.foot__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.foot__links a {
	text-decoration: none;
}

.foot__links a:hover {
	text-decoration: underline;
}

.foot__small {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 32px;
	color: var(--muted);
	font-size: 0.85rem;
}

.foot__small a {
	color: inherit;
}

/* ---------- The order dock (phones) ---------- */

.dock {
	position: fixed;
	right: 12px;
	bottom: 12px;
	left: 12px;
	z-index: 30;
	display: none;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 10px 10px 10px 16px;
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	border: var(--card-border);
	border-color: var(--line);
	border-radius: calc(var(--radius) + 4px);
	background: var(--surface);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.dock__status {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
}

.dock__status.is-open {
	color: var(--open);
}

/* ---------- Motion: things rise in as they're reached ---------- */

.js [data-rise] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 500ms ease-out, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-rise].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js [data-rise] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.btn,
	.fave,
	.bar__burger,
	.bar__burger::before,
	.bar__burger::after {
		transition: none;
	}
}

/* ---------- Phones ---------- */

@media (max-width: 820px) {
	body.shop {
		font-size: 16px;
	}

	.bar__toggle {
		display: grid;
		place-items: center;
	}

	.nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		gap: 0;
		align-items: stretch;
		padding: 8px 20px 20px;
		border-bottom: var(--card-border);
		border-color: var(--line);
		background: var(--bg);
	}

	.bar.is-open .nav {
		display: flex;
	}

	.nav a:not(.btn) {
		padding: 14px 0;
		border-bottom: 1px solid var(--line);
	}

	.nav a[aria-current="page"]:not(.btn) {
		box-shadow: none;
		color: var(--brand-ink);
	}

	.theme-bold .nav a[aria-current="page"]:not(.btn) {
		color: var(--brand);
		filter: brightness(1.4);
	}

	.nav .btn {
		margin-top: 16px;
	}

	.hero {
		padding: 48px 0 52px;
	}

	.theme-classic .hero.has-photo .hero__in,
	.theme-fresh .hero.has-photo .hero__in,
	.theme-street .hero.has-photo .hero__in,
	.about-teaser.has-photo {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__photo {
		order: -1;
	}

	.theme-bold .hero {
		min-height: 70vh;
		padding: 120px 0 48px;
	}

	.section,
	.band {
		padding: 40px 0;
	}

	.card {
		padding: 20px;
	}

	.dock {
		display: flex;
	}
}

/* ---------- Page sections (About and the owner's own pages) ---------- */

.sec h2 {
	margin-bottom: 20px;
}

.side-by-side {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.side-by-side.is-photo-right .side-by-side__photo {
	order: 2;
}

.side-by-side__photo,
.gallery__photo,
.person__photo {
	margin: 0;
}

.side-by-side__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
}

.side-by-side .prose p:last-child {
	margin-bottom: 0;
}

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

.person {
	padding: 22px;
}

.person__photo img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: calc(var(--radius) - 4px);
}

.person__photo .credit {
	text-align: left;
}

.person h3 {
	margin: 16px 0 2px;
	font-size: 1.2rem;
}

.person__role {
	color: var(--muted);
	font-size: 0.95rem;
}

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

.timeline {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--line);
}

.timeline li {
	position: relative;
	padding: 0 0 26px 28px;
}

.timeline li::before {
	position: absolute;
	top: 6px;
	left: -8px;
	width: 14px;
	height: 14px;
	border: 3px solid var(--bg);
	border-radius: 50%;
	background: var(--brand-ink);
	content: "";
}

.theme-bold .timeline li::before,
.theme-street .timeline li::before {
	background: var(--brand);
}

.timeline__when {
	display: block;
	font-family: var(--head);
	font-size: 1.35rem;
	font-weight: var(--head-weight);
	line-height: 1.3;
}

.timeline__text p {
	margin: 4px 0 0;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.gallery__photo img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius);
}

.gallery__photo .credit {
	margin-top: 6px;
	text-align: left;
}

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

.quote {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.6;
}

.quote p:first-child::before {
	content: "\201C";
}

.quote p:last-of-type::after {
	content: "\201D";
}

.quote footer {
	margin-top: 12px;
	color: var(--muted);
	font-size: 0.95rem;
	font-weight: 600;
}

.quote footer::before {
	content: "\2014\00a0";
}

@media (max-width: 760px) {
	.side-by-side {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.side-by-side.is-photo-right .side-by-side__photo {
		order: 0;
	}

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

/* Vegetarian and vegan */
.diet-chips {
	margin-bottom: 16px;
}

.chip--diet[aria-pressed="true"] {
	border-color: #22543d;
	background: #22543d;
	color: #fff;
}

.diet-mark {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border: 1px solid #22543d;
	border-radius: 4px;
	color: #22543d;
	font-size: 0.75em;
	font-weight: 700;
	line-height: 1.4;
	vertical-align: 1px;
}

/* ---------- Light or dark: follows the device, or the toggle ---------- */
.bar__scheme {
	display: inline-grid;
	place-items: center;
	order: 3;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.bar__scheme svg { width: 20px; height: 20px; }
.bar__moon { display: none; }
html[data-scheme="dark"] .bar__sun { display: none; }
html[data-scheme="dark"] .bar__moon { display: block; }

/* The logo: a dark-mode version if the shop has one, otherwise the usual one on a light patch. */
.brand__logo--dark { display: none; }
html[data-scheme="dark"] .brand__logo--light { display: none; }
html[data-scheme="dark"] .brand__logo--dark { display: block; }
html[data-scheme="dark"] .brand__logo--plate {
	box-sizing: content-box;
	height: 36px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #fff;
}

@media (max-width: 820px) {
	.bar__scheme { order: 0; }
}

html[data-scheme="dark"] .shop {
	color-scheme: dark;
	--bg: #161412;
	--surface: #211e1b;
	--text: #f4efe9;
	--muted: #b9b0a8;
	--line: #3a352f;
	--card-border: 1px solid var(--line);
	--card-shadow: none;
	--open: #9be0b2;
	--open-bg: rgba(155, 224, 178, 0.12);
	--band-bg: var(--brand-ink);
	--band-text: #fff;
}

html[data-scheme="dark"] .shop .pill { background: rgba(255, 255, 255, 0.1); }
html[data-scheme="dark"] .shop .more,
html[data-scheme="dark"] .shop .nav a[aria-current="page"]:not(.btn) {
	color: color-mix(in srgb, var(--brand) 55%, #fff) !important;
	filter: none;
}

html[data-scheme="dark"] .theme-street .hero h1 { background: #fff; color: #111; }
html[data-scheme="dark"] .theme-street .bar,
html[data-scheme="dark"] .theme-street .btn--ghost { border-color: var(--line); }
html[data-scheme="dark"] .theme-street .btn { box-shadow: none; }
html[data-scheme="dark"] .theme-coastal .hero { background: var(--bg); }
html[data-scheme="dark"] .shop .diet-mark { border-color: #9be0b2; color: #9be0b2; }

html[data-scheme="light"] .theme-bold {
	--bg: #faf7f3;
	--surface: #fff;
	--text: #1f1d1b;
	--muted: #615c57;
	--line: #e6dfd8;
	--open: #1f6b3a;
	--open-bg: #e8f3ec;
}

html[data-scheme="light"] .theme-bold .hero,
html[data-scheme="light"] .theme-bold .page-head {
	color: #f6f2ee;
	--text: #f6f2ee;
	--muted: #d6cec6;
}

html[data-scheme="light"] .theme-bold .more,
html[data-scheme="light"] .theme-bold .nav a[aria-current="page"]:not(.btn) {
	color: var(--brand-ink) !important;
	filter: none;
}

/* ---------- Home page cards ---------- */
.picks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.pick {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 220px;
	color: inherit;
	text-decoration: none;
	transition: transform 160ms ease-out;
}

a.pick:hover { transform: translateY(-3px); }
.pick__title { font-family: var(--head); font-size: 1.35rem; font-weight: var(--head-weight); line-height: 1.2; }
.pick__text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--muted);
}

.pick__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
}

.pick__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
}

.pick__go svg { width: 16px; height: 16px; transition: transform 160ms ease-out; }
a.pick:hover .pick__go svg { transform: translateX(3px); }
.pick__price { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

.pick.has-photo {
	border-color: transparent;
	background: linear-gradient(180deg, rgba(20, 18, 16, 0.82) 0%, rgba(20, 18, 16, 0.45) 55%, rgba(20, 18, 16, 0.82) 100%), var(--pick) center / cover no-repeat;
	color: #fff;
}

.pick.has-photo .pick__text { color: #ece6df; }

.pick.has-colour {
	border-color: transparent;
	background: var(--pick-bg);
	color: var(--pick-text);
}

.pick.has-colour .pick__text { color: inherit; }

/* ---------- Map and questions ---------- */
.shop-map {
	overflow: hidden;
	margin-top: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.shop-map iframe {
	display: block;
	width: 100%;
	height: 260px;
	border: 0;
}

.allergy-list__name a { color: inherit; text-underline-offset: 3px; }

.faq { border-bottom: 1px solid var(--line); }
.faq summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Allergen symbols ---------- */
.allergen-icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-right: 6px;
	vertical-align: -4px;
}

.allergen-icon.is-may { opacity: 0.7; }
.tag, .chip { display: inline-flex; align-items: center; }
.may__one { display: inline-flex; align-items: center; margin-left: 8px; }

/* The plain menu page */
.menu-list h2 { margin: 0 0 8px; }
.menu-list ul { margin: 0; padding: 0; list-style: none; }
.menu-list__dish { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-list__dish h3 { margin: 0; font-size: 1.05rem; }
.menu-list__dish h3 a { color: inherit; text-decoration: none; }
.menu-list__dish h3 a:hover { text-decoration: underline; }
.menu-list__dish p { margin: 4px 0 0; color: var(--muted); }
.menu-list__allergens { font-size: 0.875rem; }
.menu-list__dish .menu-list__price { flex: 0 1 40%; margin: 0; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }

/* Delivery areas and town pages */
.town-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.town-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.town-hours { margin: 0; padding: 0; list-style: none; }
.town-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.town-others { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* News (Marketer's posts) */
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-list a { color: var(--text); font-family: var(--head); font-size: 1.25rem; font-weight: var(--head-weight); text-decoration: none; }
.news-list a:hover { text-decoration: underline; }
.news-list time { display: block; margin-top: 4px; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.news-list p { margin: 8px 0 0; color: var(--muted); }
.crumbs { margin: 0 0 8px; font-size: 0.875rem; }
.crumbs a { color: var(--muted); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
