:root {
    color-scheme: light;
    --paper: #f9f7ee;
    --surface: #fffef8;
    --ink: #1d2c20;
    --soft-ink: #4e5a4c;
    --green: #284737;
    --line: #dadbd0;
    --lime: #e4ebc8;
    --warm: #ab411f;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.2rem; }
body { margin: 0; min-width: 280px; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #765019; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: 1rem; padding: .55rem 1rem; color: #fff; background: var(--green); transform: translateY(-160%); z-index: 9; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .main-wrap, .site-footer { max-width: 82rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.header-inner { min-height: 4.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { font: 700 2.45rem/.85 var(--serif); display: inline-block; letter-spacing: -.09em; text-decoration: none; text-transform: lowercase; padding-right: .12em; }
.brand span { color: var(--warm); }
.main-nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--soft-ink); padding: .55rem 0; border-block: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current] { border-bottom-color: var(--warm); }
.header-search { border: 1px solid var(--line); border-radius: 100%; height: 2.65rem; flex: 0 0 2.65rem; display: grid; place-items: center; }
.header-search:hover { background: #e7ead7; }
.header-search span { position: relative; width: .87rem; height: .87rem; border: 1.6px solid var(--ink); border-radius: 50%; transform: translate(-.1rem,-.1rem); }
.header-search span::after { content: ""; position: absolute; width: .44rem; height: 1.6px; background: var(--ink); top: .67rem; left: .6rem; transform: rotate(45deg); transform-origin: left; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.45rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
p { margin: 0; }
.tag { font: 700 .76rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #49634b; margin-bottom: .65rem; }
.section-block { margin-block: clamp(2.4rem, 6vw, 5rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.section-block > h2 { margin-bottom: 1.15rem; }
.subtitle { color: var(--soft-ink); }
.hero { margin-top: 1.45rem; min-height: 32rem; display: grid; grid-template-columns: 1fr 1.15fr; background: var(--lime); overflow: hidden; border-radius: 1.25rem; }
.hero-copy { padding: clamp(1.65rem, 4vw, 4.3rem); align-self: center; }
.hero h1 { font-size: clamp(3.5rem, 7vw, 6.55rem); line-height: .94; }
.hero h1 em { color: var(--warm); font-weight: 400; }
.hero-copy > p:not(.tag) { max-width: 28rem; font-size: clamp(1rem, 2vw, 1.15rem); margin-block: 1.4rem; }
.hero-visual { min-height: 23rem; background: #a7aa79 center / cover no-repeat url("/assets/panulio-hero.webp"); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; padding: .55rem 1rem; border: 1px solid transparent; border-radius: .42rem; text-decoration: none; font-weight: 700; font-size: .92rem; line-height: 1.3; }
.primary { background: var(--green); color: var(--surface); border-color: var(--green); }
.primary:hover { background: #3b5d47; border-color: #3b5d47; }
.secondary { color: var(--ink); background: transparent; border-color: #8c9b87; }
.secondary:hover { background: #eceddf; }
.text-link { font-size: .91rem; font-weight: 700; text-underline-offset: .25em; white-space: nowrap; }
.text-link:hover { color: var(--warm); }

.territory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: .75rem; }
.territory-card { min-height: 7.7rem; display: flex; flex-direction: column; justify-content: end; gap: .25rem; background: #e5e8cf; text-decoration: none; border: 1px solid transparent; border-radius: .75rem; padding: .95rem; }
.territory-card[data-country="GB"], .territory-card[data-country="NL"] { background: #dfebdf; }
.territory-card[data-country="ES"], .territory-card[data-country="FR"] { background: #f3e4d3; }
.territory-card:hover { border-color: #849179; }
.territory-card span:last-child { color: var(--soft-ink); font-size: .84rem; }
.territory-name { font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: -.04em; }

.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.recipe-card { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; }
.recipe-card:hover { border-color: #91a287; }
.recipe-link { flex: 1; display: flex; flex-direction: column; text-decoration: none; }
.recipe-link:focus-visible { outline-offset: -3px; }
.card-media { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; background: #e8ead8; }
.card-body { display: grid; grid-template-rows: auto auto 1fr auto; flex: 1; padding: 1.2rem; min-height: 12.5rem; }
.card-body h3 { margin-right: 1.7rem; margin-bottom: .6rem; overflow-wrap: anywhere; }
.card-body .tag { padding-right: 2.15rem; letter-spacing: .075em; font-size: .72rem; }
.card-copy { align-self: start; color: var(--soft-ink); font-size: .93rem; }
.card-time { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.05rem; color: var(--soft-ink); font-size: .83rem; font-weight: 600; }
.card-time span + span::before { content: "·"; margin-right: .55rem; }
.save-icon { display: grid; place-items: center; position: absolute; right: .75rem; top: .75rem; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: var(--surface); font-size: 1.4rem; line-height: 1; }
.save-icon:hover, [data-save][aria-pressed="true"] { color: #903f25; border-color: #a87765; }
.save-icon:focus-visible { outline-offset: 2px; }
.page-heading { margin: clamp(2rem, 5vw, 4.25rem) 0 1.5rem; }
.page-heading h1 { max-width: 14ch; }
.page-heading p:not(.tag) { margin-top: .8rem; color: var(--soft-ink); max-width: 42rem; font-size: 1.12rem; }
.page-heading .button { margin-top: 1rem; }
.menu-title { border-radius: .85rem; background: #eef0de; padding: clamp(1.4rem, 3vw, 2rem); }
.tab-strip { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1.25rem .5rem; }
.tab-strip a { font-size: .92rem; padding: .45rem .8rem; border-radius: .35rem; text-decoration: none; border: 1px solid var(--line); }
.tab-strip a:hover, .tab-strip a[aria-current] { background: var(--green); color: white; border-color: var(--green); }
.region-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: .65rem; }
.region-grid a { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: .45rem; text-decoration: none; }
.region-grid a:hover, .region-grid a[aria-current] { border-color: #789376; background: #edf0db; }
.region-grid small { min-width: 1.3rem; text-align: right; color: var(--soft-ink); font-weight: 600; font-size: .8rem; }
.search-form { max-width: 46rem; display: flex; align-items: stretch; gap: .5rem; }
input[type="search"], input[type="email"] { min-width: 0; width: 100%; padding: .65rem .8rem; border-radius: .4rem; background: white; color: var(--ink); border: 1px solid #8d9c87; }
.empty-state { border: 1px dashed #a6a999; background: var(--surface); border-radius: .55rem; padding: 1.2rem; color: var(--soft-ink); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.25rem; }
.pagination span { color: var(--soft-ink); font-size: .9rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-block: 1.3rem .75rem; font-size: .92rem; font-weight: 600; }
.crumbs a { text-underline-offset: .2em; }
.recipe-head { padding: clamp(1.25rem, 5vw, 3.4rem); border-radius: 1rem; background: var(--lime); }
.recipe-head.with-image { display: grid; gap: 1.65rem; align-items: center; grid-template-columns: 1fr minmax(0, .8fr); }
.recipe-head h1 { max-width: 21ch; font-size: clamp(2.6rem, 6.4vw, 5.5rem); }
.recipe-head p:not(.tag) { margin: 1rem 0; font-size: clamp(1rem, 2vw, 1.18rem); max-width: 44rem; }
.recipe-photo { width: 100%; height: auto; border-radius: .6rem; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-block: 1.25rem; font-size: .94rem; }
.recipe-meta strong { padding-right: .2rem; }
.story-block { max-width: 48rem; margin: clamp(2rem, 5vw, 3.9rem) auto; }
.story-block h2 { margin-bottom: 1rem; }
.story-block p:not(.tag) { margin-top: .8rem; line-height: 1.72; font-size: 1.08rem; }
.cook-grid { display: grid; grid-template-columns: minmax(14rem, .65fr) 1fr; align-items: start; gap: clamp(1rem, 5vw, 4.5rem); margin-block: 2rem; }
.ingredients-panel, .panel { padding: clamp(1.15rem, 2.6vw, 2rem); border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); }
.ingredients { padding: 0; margin: .95rem 0 1rem; list-style: none; }
.ingredients li { border-bottom: 1px solid var(--line); padding: .4rem 0; }
.shopping-link { display: inline-flex; margin: .55rem .25rem .35rem 0; }
.method-steps { padding: 0; list-style: none; counter-reset: step; margin-block: 1rem; }
.method-steps li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .65rem; margin-bottom: .9rem; counter-increment: step; }
.method-steps li::before { content: counter(step); background: var(--lime); border-radius: 50%; display: grid; place-items: center; height: 1.9rem; font-weight: 700; }
.recipe-note { color: var(--soft-ink); display: inline-flex; font-size: .92rem; background: #f0ecd9; padding: .55rem .8rem; border-radius: .4rem; }
.source-disclosure { border-top: 1px solid var(--line); padding: 1rem 0; max-width: 45rem; }
.source-disclosure summary { font-weight: 700; cursor: pointer; }
.source-disclosure ul { padding-left: 1.3rem; }
.source-disclosure a { text-underline-offset: .2em; overflow-wrap: anywhere; }
.saved-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panel > p { margin: .6rem 0 .1rem; }
.local-list { list-style: none; padding: 0; margin: 0; }
.local-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.local-list button { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: .35rem; padding: .22rem .6rem; }
.local-list a { text-underline-offset: .17em; }
.local-list small { display: block; color: var(--soft-ink); }
.local-list label { align-items: baseline; display: flex; gap: .5rem; }
.local-list input, .consent-label input { accent-color: var(--green); }
.local-list input:checked + span { text-decoration: line-through; color: var(--soft-ink); }
#remove-checked { margin-top: .85rem; }
.text-page { max-width: 47rem; margin-block: 1.75rem 3.5rem; overflow-wrap: anywhere; }
.text-page p { margin: .75rem 0 1rem; }
.text-page h2 { font-size: 2.1rem; margin-top: 1.6rem; }

.newsletter { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 2rem; margin: clamp(2.4rem, 6vw, 5rem) 0; padding: clamp(1.35rem, 4vw, 2.75rem); color: var(--surface); background: var(--green); border-radius: .85rem; }
.newsletter .tag { color: #dbebbd; }
.newsletter p:not(.tag) { margin-top: .75rem; }
.newsletter form > label:not(.consent-label) { font-weight: 600; font-size: .9rem; }
.newsletter form [type="submit"] { background: #e1eabd; color: var(--ink); }
.newsletter form [type="submit"]:hover { background: #d1df9f; }
.newsletter-input { display: flex; gap: .35rem; margin: .35rem 0 .45rem; }
.newsletter form .text-link { font-weight: 500; }
.consent-label { display: flex; gap: .45rem; align-items: start; margin-bottom: .25rem; font-size: .9rem; }
.consent-label input { margin-top: .3rem; }
.newsletter .bot-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { margin: 0 0 .65rem !important; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); display: flex; gap: 1rem; align-items: end; justify-content: space-between; padding-block: 1.45rem; margin-top: 3rem; }
.site-footer p { color: var(--soft-ink); margin-top: .5rem; font-size: .88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .85rem; font-size: .84rem; }

.cook-dialog { width: calc(100% - 2rem); max-width: 35rem; color: var(--ink); padding: 0; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.cook-dialog::backdrop { background: rgba(20,35,24,.62); }
.cook-frame { padding: clamp(1.05rem, 4vw, 2rem); }
.cook-frame .actions { margin-top: 1.15rem; }
#step-text { min-height: 4rem; margin-top: 1rem; font-size: 1.1rem; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 5; padding: .65rem .8rem; color: white; background: var(--green); border-radius: .4rem; max-width: min(26rem, calc(100% - 2rem)); }
.toast:empty { display: none; }

@media (max-width: 58rem) {
    .hero { min-height: 0; grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: clamp(3rem, 7.3vw, 4.6rem); }
    .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
    .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; padding-block: .7rem .1rem; }
    .header-search { grid-column: 2; grid-row: 1; width: 2.5rem; height: 2.5rem; }
    .main-nav { grid-column: 1 / -1; justify-content: space-between; gap: .55rem; overflow: auto; }
    .main-nav a { font-size: clamp(.77rem, 3.1vw, .93rem); }
    .hero { grid-template-columns: 1fr; margin-top: 1rem; }
    .hero-copy { padding: 1.45rem 1.25rem; }
    .hero h1 { font-size: clamp(3.2rem, 13vw, 5.4rem); }
    .hero-copy > p:not(.tag) { margin-block: 1rem; }
    .hero-visual { min-height: 11.9rem; background-position: center 45%; }
    .newsletter, .cook-grid, .recipe-head.with-image, .saved-columns { grid-template-columns: 1fr; gap: 1.1rem; }
    .section-heading { align-items: start; flex-wrap: wrap; gap: .55rem 1rem; }
    .site-footer { align-items: flex-start; }
}
@media (max-width: 29rem) {
    .recipe-grid { grid-template-columns: 1fr; }
    .card-body { min-height: 0; }
    .hero .button { width: 100%; }
    .newsletter-input { flex-wrap: wrap; }
}
