:root {
    --olive: #4C3D35;
    --sage: #A08B7A;
    --clay: #9C3B3B;
    --peach: #F2E6D8;
    --ivory: #F7F3EC;
    --paper: #EBE4D8;
    --ink: #221E1B;
    --mute: #6E665E;
    --white: #FFFFFF;
    --line: rgba(34, 30, 27, 0.14);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Karla", "Segoe UI", sans-serif;
    --max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--olive);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

a:hover {
    color: var(--ink);
}

h1, h2, h3, .wordmark, .display {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.1rem);
    margin: 0 0 1rem;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin: 0 0 0.8rem;
}

h3 {
    font-size: 1.45rem;
    margin: 0 0 0.5rem;
}

p {
    margin: 0 0 1rem;
}

.visually-hidden,
.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 40;
    background: var(--ink);
    color: var(--white);
    padding: 0.6rem 1rem;
}

.container-wide {
    width: min(var(--max), calc(100% - 2.5rem));
    margin-inline: auto;
}

.container-narrow {
    width: min(760px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--clay);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* Header - thin colophon bar, not a restaurant navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 245, 239, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-inner {
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.wordmark {
    font-size: 1.55rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.wordmark:hover {
    color: var(--olive);
}

.wordmark__small {
    font-style: italic;
    font-weight: 500;
    margin-right: 0.12em;
    color: var(--olive);
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--mute);
    text-decoration: none;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.icon-btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--ink);
}

.search-panel {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.search-panel[hidden] {
    display: none;
}

.search-panel__form {
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.search-panel input {
    flex: 1;
}

form label {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.88rem;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    padding: 0.7rem 0;
    font: inherit;
    color: var(--ink);
    border-radius: 0;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* Buttons: understated, rectangular */
.btn-solid,
.btn-line,
.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.25rem;
    font: 500 0.86rem/1 var(--sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
    background: var(--olive);
    color: var(--white);
    border: 1px solid var(--olive);
}

.btn-solid:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.btn-line {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.btn-line:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-text {
    background: transparent;
    border: 0;
    color: var(--olive);
    padding-inline: 0.4rem;
    letter-spacing: 0.08em;
}

.text-link {
    color: var(--clay);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.text-link:hover {
    color: var(--ink);
}

.hero {
    padding: 4.5rem 0 2.5rem;
    text-align: center;
}

.hero p.lead {
    max-width: 42rem;
    margin: 0 auto 1.8rem;
    color: var(--mute);
}

.hero-actions {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.8rem;
}

.hero-plate {
    width: min(980px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.hero-plate img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
}

.section {
    padding: 4rem 0;
}

.section--paper {
    background: var(--paper);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.rule {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0;
}

/* Recipe cards: photography then type, no floating boxes */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
}

.recipe-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.recipe-card {
    background: transparent;
}

.recipe-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.recipe-card__body {
    padding-top: 1rem;
}

.recipe-card__title {
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
}

.recipe-card__title a {
    color: inherit;
    text-decoration: none;
}

.recipe-card__title a:hover {
    color: var(--olive);
}

.recipe-card__excerpt {
    color: var(--mute);
    font-size: 0.98rem;
    margin-bottom: 0.9rem;
}

.recipe-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    color: var(--mute);
    font-size: 0.88rem;
}

.featured {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.featured img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.featured__content .lead {
    color: var(--mute);
}

.toc-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.toc-cats a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
}

.toc-cats a span:first-child {
    font-family: var(--serif);
    font-size: 1.7rem;
}

.toc-cats a:hover span:first-child {
    color: var(--olive);
}

.tips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tip {
    padding-top: 1rem;
    border-top: 1px solid var(--olive);
}

.tip strong {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--sage);
    margin-bottom: 0.4rem;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 0;
    font-family: var(--serif);
    font-size: 1.35rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    color: var(--mute);
    padding-bottom: 1.1rem;
}

.newsletter-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--mute);
    margin: 0.8rem 0;
}

.form-feedback {
    margin-top: 0.8rem;
    font-size: 0.92rem;
}

.form-feedback.is-ok {
    color: var(--olive);
}

.form-feedback.is-error {
    color: #8a3a2a;
}

/* Recipe page */
.recipe-hero {
    padding: 2.2rem 0 1.5rem;
}

.recipe-kicker {
    margin-bottom: 0.4rem;
}

.recipe-intro {
    max-width: 42rem;
    color: var(--mute);
    font-size: 1.12rem;
}

.recipe-figure {
    margin: 1.8rem 0 0;
}

.recipe-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-row div {
    padding: 1rem 0.8rem;
    text-align: center;
}

.stat-row div + div {
    border-left: 1px solid var(--line);
}

.stat-row span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sage);
}

.stat-row strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
}

.recipe-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    padding: 3rem 0 2rem;
}

.ingredient-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ingredient-list li {
    border-bottom: 1px solid var(--line);
}

.ingredient-list label {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.7rem 0;
    cursor: pointer;
}

.ingredient-list input {
    margin-top: 0.35rem;
    accent-color: var(--olive);
}

.ingredient-list li.is-checked span {
    text-decoration: line-through;
    color: var(--sage);
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--line);
}

.steps li {
    position: relative;
    padding: 0 0 1.6rem 1.4rem;
}

.steps li::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    background: var(--clay);
}

.step-num {
    display: block;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--sage);
    margin-bottom: 0.25rem;
}

.recipe-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.panel {
    background: var(--paper);
    padding: 1.4rem 1.5rem;
}

.recipe-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1.2rem 0 0;
}

.share-menu {
    position: relative;
}

.share-menu__list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 0.5rem 0;
    list-style: none;
    margin: 0.3rem 0 0;
    z-index: 5;
}

.share-menu__list[hidden] {
    display: none;
}

.share-menu__list a,
.share-menu__list button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 0.45rem 0.9rem;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.page-intro {
    padding: 3rem 0 1.5rem;
}

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
}

.filters label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 0.3rem;
}

.empty-state {
    padding: 3rem 0;
    text-align: center;
    color: var(--mute);
}

.legal {
    padding: 2rem 0 4rem;
}

.legal h2 {
    margin-top: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-bottom: 3rem;
}

.about-split img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.page-404 {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 4rem 1rem;
}

.site-footer {
    border-top: 1px solid var(--clay);
    padding: 3rem 0 0;
    background: var(--ivory);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr 1.1fr;
    gap: 2rem;
}

.site-footer h2 {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 0.35rem 0;
}

.site-footer a {
    color: var(--ink);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--olive);
}

.footer-text,
.footer-note {
    color: var(--mute);
    font-size: 0.95rem;
}

.footer-note {
    font-size: 0.82rem;
}

.footer-newsletter input {
    margin-bottom: 0.4rem;
}

.footer-bottom {
    margin-top: 2.2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--mute);
    font-size: 0.85rem;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(37, 37, 37, 0.08);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__inner {
    padding: 1.1rem 1.2rem;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.cookie-panel {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    font-size: 0.88rem;
    color: var(--mute);
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.4rem;
    color: var(--sage);
}

.related {
    padding: 1rem 0 4rem;
}

.alert {
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    background: var(--peach);
}

.alert--error {
    background: #f3e4dc;
}

.live-results {
    margin-top: 1rem;
}
