/* Generated from assets/styles/site.tailwind.css */
@view-transition {
	navigation: auto;
}

*, ::before, ::after {
	--tw-border-spacing-x: 0;
	--tw-border-spacing-y: 0;
	--tw-translate-x: 0;
	--tw-translate-y: 0;
	--tw-rotate: 0;
	--tw-skew-x: 0;
	--tw-skew-y: 0;
	--tw-scale-x: 1;
	--tw-scale-y: 1;
	--tw-pan-x:  ;
	--tw-pan-y:  ;
	--tw-pinch-zoom:  ;
	--tw-scroll-snap-strictness: proximity;
	--tw-gradient-from-position:  ;
	--tw-gradient-via-position:  ;
	--tw-gradient-to-position:  ;
	--tw-ordinal:  ;
	--tw-slashed-zero:  ;
	--tw-numeric-figure:  ;
	--tw-numeric-spacing:  ;
	--tw-numeric-fraction:  ;
	--tw-ring-inset:  ;
	--tw-ring-offset-width: 0px;
	--tw-ring-offset-color: #fff;
	--tw-ring-color: rgb(59 130 246 / 0.5);
	--tw-ring-offset-shadow: 0 0 #0000;
	--tw-ring-shadow: 0 0 #0000;
	--tw-shadow: 0 0 #0000;
	--tw-shadow-colored: 0 0 #0000;
	--tw-blur:  ;
	--tw-brightness:  ;
	--tw-contrast:  ;
	--tw-grayscale:  ;
	--tw-hue-rotate:  ;
	--tw-invert:  ;
	--tw-saturate:  ;
	--tw-sepia:  ;
	--tw-drop-shadow:  ;
	--tw-backdrop-blur:  ;
	--tw-backdrop-brightness:  ;
	--tw-backdrop-contrast:  ;
	--tw-backdrop-grayscale:  ;
	--tw-backdrop-hue-rotate:  ;
	--tw-backdrop-invert:  ;
	--tw-backdrop-opacity:  ;
	--tw-backdrop-saturate:  ;
	--tw-backdrop-sepia:  ;
	--tw-contain-size:  ;
	--tw-contain-layout:  ;
	--tw-contain-paint:  ;
	--tw-contain-style:  ;
}

::backdrop {
	--tw-border-spacing-x: 0;
	--tw-border-spacing-y: 0;
	--tw-translate-x: 0;
	--tw-translate-y: 0;
	--tw-rotate: 0;
	--tw-skew-x: 0;
	--tw-skew-y: 0;
	--tw-scale-x: 1;
	--tw-scale-y: 1;
	--tw-pan-x:  ;
	--tw-pan-y:  ;
	--tw-pinch-zoom:  ;
	--tw-scroll-snap-strictness: proximity;
	--tw-gradient-from-position:  ;
	--tw-gradient-via-position:  ;
	--tw-gradient-to-position:  ;
	--tw-ordinal:  ;
	--tw-slashed-zero:  ;
	--tw-numeric-figure:  ;
	--tw-numeric-spacing:  ;
	--tw-numeric-fraction:  ;
	--tw-ring-inset:  ;
	--tw-ring-offset-width: 0px;
	--tw-ring-offset-color: #fff;
	--tw-ring-color: rgb(59 130 246 / 0.5);
	--tw-ring-offset-shadow: 0 0 #0000;
	--tw-ring-shadow: 0 0 #0000;
	--tw-shadow: 0 0 #0000;
	--tw-shadow-colored: 0 0 #0000;
	--tw-blur:  ;
	--tw-brightness:  ;
	--tw-contrast:  ;
	--tw-grayscale:  ;
	--tw-hue-rotate:  ;
	--tw-invert:  ;
	--tw-saturate:  ;
	--tw-sepia:  ;
	--tw-drop-shadow:  ;
	--tw-backdrop-blur:  ;
	--tw-backdrop-brightness:  ;
	--tw-backdrop-contrast:  ;
	--tw-backdrop-grayscale:  ;
	--tw-backdrop-hue-rotate:  ;
	--tw-backdrop-invert:  ;
	--tw-backdrop-opacity:  ;
	--tw-backdrop-saturate:  ;
	--tw-backdrop-sepia:  ;
	--tw-contain-size:  ;
	--tw-contain-layout:  ;
	--tw-contain-paint:  ;
	--tw-contain-style:  ;
}

/* ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

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

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
	width: 100%;
}
@media (min-width: 640px) {
	.container {
		max-width: 640px;
	}
}
@media (min-width: 768px) {
	.container {
		max-width: 768px;
	}
}
@media (min-width: 1024px) {
	.container {
		max-width: 1024px;
	}
}
@media (min-width: 1280px) {
	.container {
		max-width: 1280px;
	}
}
@media (min-width: 1536px) {
	.container {
		max-width: 1536px;
	}
}
.visible {
	visibility: visible;
}
.static {
	position: static;
}
.absolute {
	position: absolute;
}
.block {
	display: block;
}
.inline {
	display: inline;
}
.table {
	display: table;
}
.hidden {
	display: none;
}
.filter {
	filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.\[start\:end\] {
	start: end;
}
.\[start\:next\] {
	start: next;
}

@font-face {
	font-family: 'Editorial Display';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/editorial-display-latin-regular.woff2') format('woff2');
	size-adjust: 104%;
}

@font-face {
	font-family: 'Editorial Display';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/assets/fonts/editorial-display-latin-semibold.woff2') format('woff2');
	size-adjust: 104%;
}

@font-face {
	font-family: 'Body Serif';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/body-serif-latin-regular.woff2') format('woff2');
	size-adjust: 101%;
}

@font-face {
	font-family: 'Body Serif';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/assets/fonts/body-serif-latin-semibold.woff2') format('woff2');
	size-adjust: 101%;
}

:root {
	--css-pipeline-source: "Generated from assets/styles/site.tailwind.css";
	/* Primitive palette */
	--ink: #1a1614;
	--warm-900: #2b2725;
	--warm-700: #4a4542;
	--warm-500: #6b6560;
	--warm-400: #8a8480;
	--warm-300: #b5aea8;
	--warm-200: #d4cfca;
	--warm-100: #e8e4df;
	--warm-50: #f5f3f0;
	--paper: #fffcf7;
	--status-success: #2f6a3f;
	--status-warning: #93501a;
	--status-danger: #9c2b2b;

	/* Semantic color roles */
	--color-canvas: var(--warm-100);
	--color-surface: var(--paper);
	--color-surface-muted: var(--warm-50);
	--color-text: var(--ink);
	--color-text-muted: var(--warm-500);
	--color-border: var(--warm-300);
	--color-border-subtle: var(--warm-200);
	--color-border-strong: var(--warm-400);
	--color-accent: var(--ink);
	--color-focus: #b34700;
	--color-status-success: var(--status-success);
	--color-status-warning: var(--status-warning);
	--color-status-danger: var(--status-danger);

	/* Semantic spacing, radius, and elevation scales */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.5rem;
	--space-7: 1.75rem;
	--space-8: 2rem;
	--radius-sm: 0.25rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--elevation-1: 0 1px 8px rgba(26, 22, 20, 0.07);
	--elevation-2: 0 8px 20px rgba(26, 22, 20, 0.14);

	/* Compatibility aliases */
	--color-bg: var(--color-canvas);
	--color-link: var(--color-accent);
	--font-display: 'Editorial Display', 'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Georgia', serif;
	--font-body: 'Body Serif', 'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Georgia', serif;
	--font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
	--font-serif: var(--font-body);
	--font-sans: var(--font-ui);

	/* Fluid typography scale */
	--step--1: clamp(0.79rem, 0.77rem + 0.1vw, 0.86rem);
	--step-0: clamp(0.95rem, 0.91rem + 0.2vw, 1.08rem);
	--step-1: clamp(1.08rem, 1.01rem + 0.34vw, 1.29rem);
	--step-2: clamp(1.22rem, 1.12rem + 0.5vw, 1.54rem);
	--step-3: clamp(1.38rem, 1.22rem + 0.78vw, 1.86rem);
}

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

html {
	color-scheme: light dark;
	background: var(--color-canvas);
	color: var(--color-text);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	background: var(--color-canvas);
	color: var(--color-text);
	font-size: var(--step-0);
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--color-text);
	letter-spacing: 0.01em;
}

h1 {
	font-size: var(--step-3);
	font-weight: 600;
	line-height: 1.2;
}

h2 {
	font-size: var(--step-2);
	font-weight: 600;
	line-height: 1.3;
	margin-top: 2rem;
}

h3 {
	font-size: var(--step-1);
	font-weight: 600;
	line-height: 1.35;
	margin-top: 1.25rem;
}

h4 {
	font-size: var(--step-0);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--warm-500);
	font-family: var(--font-ui);
	margin-top: 1rem;
}

a {
	color: var(--color-accent);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	text-decoration-color: var(--color-border);
	transition: text-decoration-color 0.15s;
}

a:hover {
	text-decoration-color: var(--color-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: -9999px;
	left: 1rem;
	z-index: 1000;
	padding: 0.5rem 0.75rem;
	background: var(--color-surface);
	color: var(--color-text);
	border: 1px solid var(--color-border);
	font-family: var(--font-ui);
	font-size: 13px;
}

.skip-link:focus-visible,
.skip-link:focus {
	top: 0.75rem;
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding: 0 1.5rem;
	height: 3rem;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border-subtle);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	height: 100%;
	text-decoration: none;
}

.site-brand-logo {
	display: block;
	width: auto;
	height: 1.85rem;
}

.site-brand-text {
	font-family: var(--font-display);
	font-size: var(--step-0);
	line-height: 1;
	font-weight: 600;
	color: var(--color-text);
	letter-spacing: 0.02em;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	height: 100%;
}

.site-nav a {
	display: flex;
	align-items: center;
	height: 100%;
	text-decoration: none;
	font-size: 14px;
	font-family: var(--font-ui);
	font-weight: 400;
	color: var(--color-text-muted);
	border-bottom: 2px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover {
	color: var(--color-text);
	border-bottom-color: var(--color-text);
}

.site-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-left: auto;
	font-family: var(--font-ui);
}

.site-search label {
	font-size: 12px;
	color: var(--color-border-strong);
	letter-spacing: 0.02em;
}

.site-search input[type="search"] {
	min-width: 14rem;
	padding: 0.3rem 0.5rem;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	background: var(--color-surface);
	font-family: var(--font-ui);
	font-size: 13px;
	color: var(--color-text);
}

.site-search input[type="search"]:focus {
	outline: none;
	border-color: var(--color-border-strong);
	background: var(--color-surface-muted);
}

.site-search input[type="search"]:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.site-search button {
	font-size: 13px;
	padding: 0.3rem 0.65rem;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	background: var(--color-surface);
	color: var(--color-text);
	font-family: var(--font-ui);
	cursor: pointer;
	transition: background 0.15s ease,
	            border-color 0.15s ease,
	            transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-search button:hover {
	background: var(--color-surface-muted);
	border-color: var(--color-border-strong);
	transform: translateY(-1px);
}

.site-search button:active {
	transform: scale(0.97);
	transition-duration: 0.08s;
}

main {
	width: min(100% - 2rem, 78rem);
	margin: 1.5rem auto 0;
}

.home-title,
.browse-title,
.search-title,
.recipe-title {
	font-size: var(--step-3);
	line-height: 1.2;
	letter-spacing: 0.015em;
	margin: 0 0 var(--space-3);
}

.home-intro {
	font-size: var(--step-1);
	line-height: 1.55;
	max-width: 38ch;
	margin: 0;
}

.home-hero {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

@media (min-width: 720px) {
	.home-hero {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: var(--space-8);
		align-items: end;
	}
}

.home-main,
.browse-main,
.browse-page,
.search-main,
.search-page,
.recipe-main,
.recipe-detail {
	background: var(--color-surface);
	box-shadow: var(--elevation-1);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-lg);
	padding: var(--space-6) var(--space-7);
}

.home-main,
.browse-page,
.recipe-detail {
	position: relative;
	overflow: hidden;
}

.home-main::before,
.browse-page::before,
.recipe-detail::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 200px;
	opacity: 0.06;
	pointer-events: none;
	z-index: 0;
	border-radius: inherit;
}

@media (prefers-color-scheme: dark) {
	.home-main::before,
	.browse-page::before,
	.recipe-detail::before {
		opacity: 0.03;
	}
}

.home-hero,
.browse-page > header,
.browse-page > section,
.browse-page > nav,
.recipe-header,
.recipe-section {
	position: relative;
}

.discovery-card-list {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.discovery-card {
	border: none;
	border-top: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-sm);
	padding: var(--space-4) 0;
	display: flex;
	gap: var(--space-4);
	align-items: flex-start;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.discovery-card:hover {
	transform: translateY(-1px);
	box-shadow: var(--elevation-2);
}

.discovery-card-image {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	-o-object-fit: cover;
	   object-fit: cover;
	display: block;
	opacity: 0.88;
}

.discovery-card-body {
	flex: 1;
	min-width: 0;
}

.discovery-card:last-child {
	border-bottom: 1px solid var(--color-border-subtle);
}

.discovery-card h3,
.discovery-card h4 {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ink);
}

.discovery-card h3 a,
.discovery-card h4 a {
	text-decoration-color: transparent;
}

.discovery-card h3 a:hover,
.discovery-card h4 a:hover {
	text-decoration-color: var(--ink);
}

.discovery-card-summary {
	margin: 0.35rem 0 0;
	color: var(--color-text-muted);
	font-size: var(--step-0);
	line-height: 1.5;
}

.discovery-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1.25rem;
	margin: 0.45rem 0 0;
	padding: 0;
	font-family: var(--font-ui);
	font-size: var(--step--1);
	color: var(--color-text-muted);
}

.discovery-card-meta strong {
	font-weight: 500;
	color: var(--warm-700);
}

.recipe-main {
	padding: 0 0 var(--space-8);
}

.recipe-detail {
	max-width: 72ch;
	margin: 0 auto;
}

.recipe-header {
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--color-border-subtle);
	margin-bottom: 0.25rem;
}

.recipe-header h1 {
	margin: 0 0 0.5rem;
}

.recipe-header p {
	font-family: var(--font-ui);
	font-size: var(--step--1);
	color: var(--color-text-muted);
	margin: 0;
}

.recipe-hero-image {
	float: right;
	margin: 0 0 0.75rem 1.25rem;
	width: 120px;
	height: 120px;
	-o-object-fit: cover;
	   object-fit: cover;
	display: block;
	opacity: 0.88;
}

.recipe-section {
	margin-top: var(--space-8);
	padding-top: var(--space-6);
	border-top: 1px solid var(--color-border-subtle);
}

@media (min-width: 900px) {
	.recipe-modern-section {
		display: grid;
		grid-template-columns: 1fr 18rem;
		grid-template-areas:
			"title title"
			"summary meta"
			"instructions ingredients";
		gap: var(--space-6) var(--space-8);
		align-items: start;
	}

	.recipe-modern-section > h2,
	.recipe-modern-section > h3 { grid-area: title; }
	.recipe-modern-section > .recipe-modern-summary { grid-area: summary; }
	.recipe-modern-section > dl[aria-label] { grid-area: meta; }
	.recipe-modern-section > ol { grid-area: instructions; }
	.recipe-modern-section > ul.ingredient-list { grid-area: ingredients; }
}

.recipe-narrative {
	max-width: 64ch;
	line-height: 1.78;
	margin: 0.65rem 0 0;
	font-size: var(--step-0);
}

.recipe-modern-summary {
	font-style: italic;
	color: var(--warm-700);
}

dl[aria-label] {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.5rem;
	margin: 0.75rem 0 0;
	font-family: var(--font-ui);
	font-size: var(--step--1);
}

dl[aria-label] div {
	display: flex;
	gap: 0.4rem;
}

dl[aria-label] dt {
	font-weight: 500;
	color: var(--warm-700);
}

dl[aria-label] dt::after {
	content: ':';
}

dl[aria-label] dd {
	margin: 0;
	color: var(--ink);
}

.recipe-editorial-decisions {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
	list-style: disc;
}

.recipe-editorial-decisions li {
	list-style: disc;
}

.recipe-editorial-decisions .recipe-narrative {
	margin-top: 0.35rem;
}

.recipe-history-blockquote {
	margin: 0.75rem 0 0;
	padding-left: 1rem;
	border-left: 2px solid var(--color-border);
}

.recipe-history-original-title {
	font-size: 13px;
	color: var(--warm-500);
	font-family: var(--font-ui);
	margin-bottom: 0.5rem;
}

.recipe-glossary-inline {
	display: inline-block;
	margin: 0 0.15rem;
	vertical-align: baseline;
}

.recipe-glossary-summary {
	display: inline;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-color: var(--warm-400);
	text-underline-offset: 0.16em;
	color: var(--warm-700);
}

.recipe-glossary-summary:hover {
	text-decoration-color: var(--ink);
	color: var(--ink);
}

.recipe-glossary-definition {
	display: inline;
	margin-left: 0.25rem;
	color: var(--warm-500);
	font-family: var(--font-ui);
	font-size: 13px;
}

.ingredient-list {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ingredient-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--warm-100);
}

.ingredient-item:last-child {
	border-bottom: none;
}

.ingredient-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: block;
}

.ingredient-text {
	font-size: var(--step-0);
	line-height: 1.4;
}

.ingredient-quantity {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

ol {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

ol li {
	list-style: decimal;
	margin-bottom: 0.5rem;
	line-height: 1.65;
}

.search-main form,
.search-page form,
.browse-main form,
.browse-page form {
	margin: 1rem 0;
	font-family: var(--font-ui);
}

.search-main form label,
.search-page form label,
.browse-main form label,
.browse-page form label {
	font-size: var(--step--1);
	color: var(--color-text-muted);
	display: block;
	margin-bottom: 0.3rem;
}

.search-main form input[type="search"],
.search-page form input[type="search"],
.browse-main form input[type="search"],
.browse-page form input[type="search"] {
	padding: 0.35rem 0.5rem;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	background: var(--color-surface);
	font-family: var(--font-ui);
	font-size: var(--step-0);
	color: var(--color-text);
	min-width: 18rem;
}

.search-main form button,
.search-page form button,
.browse-main form button,
.browse-page form button {
	font-size: var(--step--1);
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	background: var(--color-surface);
	color: var(--color-text);
	font-family: var(--font-ui);
	cursor: pointer;
	transition: background 0.15s ease,
	            border-color 0.15s ease,
	            transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-main form button:hover,
.search-page form button:hover,
.browse-main form button:hover,
.browse-page form button:hover {
	background: var(--color-surface-muted);
	border-color: var(--color-border-strong);
	transform: translateY(-1px);
}

.search-main form button:active,
.search-page form button:active,
.browse-main form button:active,
.browse-page form button:active {
	transform: scale(0.97);
	transition-duration: 0.08s;
}

@media (min-width: 800px) {
	.browse-page {
		display: grid;
		grid-template-columns: 14rem 1fr;
		grid-template-areas:
			"header header"
			"filters results"
			"pagination pagination";
		gap: 0 var(--space-8);
		align-items: start;
	}

	.browse-page > header { grid-area: header; }
	.browse-page > section[aria-labelledby="browse-filters"] { grid-area: filters; }
	.browse-page > section[aria-labelledby="browse-results"],
	.browse-page > section[aria-labelledby="browse-empty"] { grid-area: results; }
	.browse-page > nav[aria-label] { grid-area: pagination; }
	.browse-page > section[aria-labelledby="browse-sparse"] { grid-area: pagination; }
}

nav[aria-label] {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border-subtle);
	font-family: var(--font-ui);
	font-size: var(--step--1);
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-canvas: #1e1a18;
		--color-surface: #2b2725;
		--color-surface-muted: #35302d;
		--color-text: #f5f3f0;
		--color-text-muted: #d4cfca;
		--color-border: #5a534d;
		--color-border-subtle: #4a4542;
		--color-border-strong: #7a736d;
		--color-accent: #f5f3f0;
		--color-focus: #f0b15b;
		--elevation-1: 0 2px 12px rgba(0, 0, 0, 0.4);
		--elevation-2: 0 10px 26px rgba(0, 0, 0, 0.5);
	}
}

@media (max-width: 640px) {
	.site-header {
		padding: 0 0.75rem;
		height: auto;
		min-height: 3rem;
		gap: 0.5rem 1rem;
	}

	.site-brand-logo {
		height: 1.55rem;
	}

	.site-brand-text {
		display: none;
	}

	.site-nav {
		gap: 1.25rem;
	}

	.site-search {
		margin-left: 0;
		width: 100%;
		padding-bottom: 0.5rem;
	}

	.site-search label {
		display: none;
	}

	.site-search input[type="search"] {
		min-width: 10rem;
		flex: 1;
	}

	main {
		width: min(100% - 0.75rem, 80rem);
	}

	.home-main,
	.browse-main,
	.browse-page,
	.search-main,
	.search-page,
	.recipe-main,
	.recipe-detail {
		padding: 1rem;
	}

	.recipe-main {
		padding: 0 0 1rem;
	}

	.recipe-narrative {
		line-height: 1.65;
	}

	.ingredient-icon {
		width: 28px;
		height: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}
}

@media print {
	body {
		background: white !important;
		font-family: var(--font-body) !important;
	}

	.site-header,
	.skip-link {
		display: none !important;
	}

	.home-main,
	.browse-main,
	.browse-page,
	.search-main,
	.search-page,
	.recipe-main,
	.recipe-detail {
		box-shadow: none !important;
		background: white !important;
		padding: 0 !important;
	}

	* {
		color: black !important;
	}
}
