:root {
    color-scheme: light;
    --ink: #321b16;
    --muted: #674a41;
    --cream: #fcf7ef;
    --paper: #fffdf9;
    --line: #e8d8ca;
    --cocoa: #3d211b;
    --accent: #803b29;
    --gold: #f3c08b;
    font: 100%/1.65 system-ui, sans-serif;
    color: var(--ink);
    background: #efe3d8;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .17em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #aa570e; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
h1 { margin: .3em 0 .5em; font-size: clamp(1.85rem, 3.5vw, 2.85rem); letter-spacing: -.025em; }
.editorial--home h1 { font-size: clamp(1.8rem, 3.1vw, 2.55rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin: 1.2em 0 .65em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0 1.5rem; }
.shell { width: min(74rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header { color: #fff7eb; background: var(--cocoa); }
.header-inner { min-height: 4.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.55rem; padding-block: .6rem; }
.brand { font: bold 1.5rem Georgia, serif; color: white; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; }
.site-header nav a { color: inherit; text-decoration: none; font-weight: 650; font-size: .92rem; }
.site-header nav a:hover, .site-header nav [aria-current] { text-decoration: underline; text-decoration-color: var(--gold); }
.header-search { display: flex; margin-inline-start: auto; }
.header-search input { width: 10rem; min-width: 0; }
input, button, textarea { font: inherit; }
input, textarea { padding: .36rem .6rem; color: var(--ink); background: white; border: 1px solid #a68b7c; border-radius: .35rem; max-width: 100%; }
button, .editorial a.btn { color: white; background: var(--accent); border: 1px solid var(--accent); border-radius: .35rem; padding: .4rem .8rem; cursor: pointer; }
.header-search button { margin-inline-start: .25rem; background: var(--gold); border-color: var(--gold); color: var(--ink); }
main.shell {
    margin-block: clamp(.55rem, 2vw, 1.4rem);
    padding: clamp(1rem, 3vw, 2.4rem);
    min-height: 57vh;
    background: var(--paper);
    border-radius: .75rem;
}
.review-banner { padding-block: .45rem; color: var(--ink); background: #f5dfb8; font-size: .875rem; }
.review-banner .frame { width: min(74rem, calc(100% - 2rem)); margin-inline: auto; }
.review-banner summary { font-weight: 650; cursor: pointer; }
.review-banner .review-identity { font-weight: 400; overflow-wrap: anywhere; }
.review-banner dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .15rem .8rem; }
.review-banner dt { font-weight: 650; }
.review-banner dd { margin: 0; overflow-wrap: anywhere; }
.home-banner { width: 100%; height: auto; border-radius: .65rem; }
.skip-link { position: absolute; z-index: 3; left: 1rem; top: .5rem; background: white; padding: .4rem .65rem; }
.skip-link:not(:focus) { clip-path: inset(50%); }
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.editorial a.btn { align-self: end; display: inline-block; font-weight: 650; text-decoration: none; }
.editorial--home .container:nth-of-type(2) > .row:first-of-type {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
    gap: 1.1rem;
}
.recipe-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: .75rem;
}
.editorial--home .recipe-card {
    display: grid; grid-row: span 4; grid-template-rows: subgrid; padding: .9rem;
    gap: .65rem;
}
.editorial--home .col-sm-3 h2 { font-size: 1.32rem; margin: 0; }
.editorial--home .col-sm-3 p { margin: 0; }
.editorial--home .col-sm-3 img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .4rem; }
.editorial--home .container:nth-of-type(2) > .row:last-of-type {
    display: grid; gap: 1em;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.list-group { display: grid; gap: .24rem; }
.list-group-item { display: block; padding: .44rem .75rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.editorial :is(h1, h2, h3) a, .editorial--home .list-group-item, .recipe-card-link { text-decoration: none; }
.editorial :is(h1, h2, h3) a:is(:hover, :focus-visible),
.editorial--home .list-group-item:is(:hover, :focus-visible),
.recipe-card-link:is(:hover, :focus-visible) h2 { text-decoration: underline; }
.recipe-card-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.25rem; }
.recipe-card-link { display: block; color: var(--ink); }
.recipe-card-link img, .recipe-card-image-placeholder {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: .75rem .75rem 0 0; background: #f0dfce;
}
.recipe-card-link h2 { margin: 0; padding: .75rem .9rem .9rem; font-size: clamp(1.1rem, 2vw, 1.4rem); }
@media (min-width: 34rem) {
    .recipe-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
    .recipe-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.editorial--article, .editorial--privacy { max-width: 53rem; }
.recipe-spread { display: grid; align-items: start; gap: clamp(1rem, 3vw, 2rem); }
.recipe-media, .recipe-ingredients-panel { min-width: 0; }
.recipe-ingredients-panel {
    padding: clamp(.85rem, 2vw, 1.4rem); border: 1px solid var(--line); border-radius: .65rem;
    background: #f6e8d9;
}
.recipe-ingredients-panel > h2:first-child { margin-top: 0; }
.recipe-ingredients-panel > ul { margin-block: .6rem 1rem; }
.recipe-method { max-width: 43rem; margin-block-start: 1.35rem; }
@media (min-width: 59rem) {
    .recipe-spread { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.editorial--recipe .row:has(.recipe-gallery, .recipe-image), .editorial--article .row:has(.recipe-gallery, .recipe-image) { margin: 1.25rem 0; }
.editorial--recipe h2, .editorial--article h2 { margin-top: 1rem; }
.editorial--recipe .col-sm-6:has(> h2), .editorial--article .col-sm-6:has(> h2) { max-width: 43rem; }
.editorial--recipe h2 + ul { background: #f6e8d9; border-radius: .55rem; padding: .85rem 1rem .85rem 2.4rem; }
.editorial--recipe p, .editorial--article p, .editorial--privacy p { max-width: 68ch; }
.recipe-image img, .recipe-gallery img { border-radius: .6rem; max-height: 33rem; object-fit: contain; width: auto; }
.recipe-gallery:not(.gallery-ready) { display: grid; gap: 1rem; }
.recipe-gallery figcaption { color: var(--muted); padding-block: .45rem; }
.recipe-gallery figcaption h3, .recipe-gallery figcaption p { margin: .2rem 0; }
.gallery-controls { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; margin-block: .6rem; }
.related, .category-ad { margin-block: 1.6rem; }
.related { background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; padding: .75rem; }
.related summary { font-weight: 700; cursor: pointer; }
.comments {
    max-width: 48rem; min-width: 0; margin-block: 2rem;
    padding: clamp(.8rem, 2.5vw, 1.45rem);
    background: var(--cream); border: 1px solid var(--line); border-radius: .75rem;
}
.comments > h2 { margin-top: 0; }
.comment-form { margin-block: .85rem; }
.comment-form fieldset {
    display: grid; min-width: 0; gap: .7rem; margin: 0; padding: clamp(.6rem, 2vw, 1rem);
    border: 1px solid var(--line); border-radius: .6rem; background: var(--paper);
}
.comment-form legend, .comment-form label { font-weight: 650; }
.comment-form label, .comment-form :is(input:not([type="hidden"]), textarea) { display: block; }
.comment-form :is(input:not([type="hidden"]), textarea) { width: 100%; margin-top: .2rem; font-weight: 400; }
.comment-form textarea { min-height: 7rem; resize: vertical; }
.comment-form button { justify-self: start; font-weight: 650; }
.comments .thread { list-style: none; margin: .75rem 0 0; padding: 0; }
.comments .thread .thread {
    margin: .5rem 0 0 clamp(.2rem, 1.6vw, .9rem);
    padding-inline-start: clamp(.35rem, 1.6vw, .9rem); border-inline-start: 2px solid #d5b9a2;
}
.comments .thread .thread .thread .thread { margin-inline-start: 0; padding-inline-start: .25rem; }
.comments .thread > li + li { margin-block-start: .55rem; }
.comments article {
    min-width: 0; overflow-wrap: anywhere; padding: .7rem .85rem;
    border: 1px solid var(--line); border-radius: .55rem; background: #f8ecdf;
}
.comment-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .65rem; }
.comment-byline h3 { margin: 0; font: 650 1rem/1.35 system-ui, sans-serif; }
.comments time { display: block; margin-block: .2rem .45rem; color: var(--muted); font-size: .875rem; }
.comments article p { margin-block: .32rem; }
.comments details { margin-top: .45rem; }
.comments summary { cursor: pointer; width: fit-content; color: var(--accent); font-weight: 650; }
.comment-pending, .comments .comment-status:not(:empty) {
    color: #62351f; background: #f5dfb8; border-radius: .35rem; padding: .25rem .55rem;
}
.comment-pending { font-size: .85rem; }
.comment-pages { margin-top: .75rem; }
.recipe-print-source { display: none; }
#ingredienser { scroll-margin-block-start: 1rem; }
#ingredienser + .recipe-actions + ul { background: #f6e8d9; border-radius: .55rem; padding: .85rem 1rem; }
.recipe-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .85rem; margin-block: .6rem; }
.recipe-actions a, .recipe-actions button { min-height: 2rem; }
.recipe-actions button {
    padding: .15rem 0; border: 0; border-radius: 0; background: transparent;
    color: var(--accent); text-decoration: underline; text-underline-offset: .17em;
}
.recipe-status { width: 100%; color: var(--muted); font-size: .9rem; }
.recipe-status:empty { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.editorial--recipe .recipe-ingredient-list { list-style: none; padding-inline-start: .85rem; }
.recipe-ingredient-list label { display: flex; align-items: baseline; gap: .6rem; min-height: 2rem; cursor: pointer; }
.recipe-ingredient-list input { accent-color: var(--accent); }
.recipe-ingredient-list input:checked + span { text-decoration: line-through; }

@page recipe { size: A4; margin: 15mm; }
@media print {
    .recipe-page { page: recipe; background: #fff; color: #000; font-size: 11pt; }
    .recipe-page :is(.site-header, .site-footer, .skip-link, .review-banner, .crumbs, .category-ad,
        .comments, .related, .recipe-actions, .gallery-controls, .recipe-image, .recipe-gallery img,
        .recipe-ingredient-list input) { display: none !important; }
    .recipe-page main.shell, .recipe-page .editorial--recipe {
        width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; border-radius: 0; background: transparent;
    }
    .recipe-page .recipe-spread { display: block; }
    .recipe-page .recipe-ingredients-panel { border: 0; padding: 0; background: transparent; }
    .recipe-page .recipe-method { max-width: none; }
    .recipe-page .recipe-print-source { display: block; font-size: 9pt; overflow-wrap: anywhere; }
    .recipe-page :is(h1, h2, h3) { break-after: avoid; }
    .recipe-page h1 { font-size: 20pt; }
    .recipe-page h2 { font-size: 14pt; }
    .recipe-page .editorial p { max-width: none; orphans: 3; widows: 3; }
    .recipe-page .editorial ul { list-style: disc; padding: 0 0 0 1.3em; background: transparent !important; }
    .recipe-page .editorial li { break-inside: avoid; }
    .recipe-page .recipe-ingredient-list label { display: inline; }
    .recipe-page .recipe-ingredient-list span { text-decoration: none !important; }
    .recipe-page .recipe-gallery figure { display: none; }
    .recipe-page .recipe-gallery figure:has(figcaption) { display: block !important; }
}
.error-search { max-width: 30rem; }
.error-search label { display: block; }
.site-footer { padding-block: 1.5rem; background: #efdfd0; color: var(--muted); }
.site-footer nav a { font-size: .95rem; }
@media (max-width: 40rem) {
    main.shell { width: calc(100% - 1rem); }
    .header-inner { gap: .35rem .85rem; }
    .header-inner nav { order: 2; width: 100%; padding-block: .35rem; }
    .header-search input { width: min(27vw, 9.5rem); }
    .site-header nav { gap: .35rem .8rem; }
}
