/*
Theme Name: Recepten
Theme URI: https://recepten.tomtieman.nl
Author: Tom Tieman
Description: Snel, schoon receptenthema voor persoonlijke recepten.
Version: 2.0.0
Text Domain: recepten
*/

:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --text: #20231f;
    --muted: #6b705f;
    --line: #e7e2d8;
    --sage: #7f9a73;
    --tomato: #cf5d45;
    --lemon: #f2cb57;
    --shadow: 0 24px 80px rgba(32, 35, 31, 0.09);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(231, 226, 216, 0.8);
    background: rgba(251, 250, 247, 0.88);
    backdrop-filter: blur(18px);
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 24px;
}

.brand {
    font-size: 19px;
    font-weight: 760;
    letter-spacing: 0;
}

.menu,
.menu-list {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 15px;
}

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

.menu li {
    position: relative;
}

.menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
}

.menu .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    display: grid;
    min-width: 210px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(32, 35, 31, 0.12);
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu .sub-menu a {
    min-height: 0;
    border-radius: 6px;
    padding: 8px 10px;
    white-space: nowrap;
}

.menu .sub-menu a:hover {
    background: #fff2e8;
}

.menu a:hover, .brand:hover { color: var(--tomato); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: 56px;
    padding: 76px 0 52px;
}

.eyebrow {
    color: var(--tomato);
    font-size: 13px;
    font-weight: 740;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1, h2, h3 {
    line-height: 1.05;
    margin: 0;
}

h1 {
    max-width: 720px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 520;
}

.hero p {
    max-width: 570px;
    color: var(--muted);
    font-size: 19px;
    margin: 22px 0 0;
}

.editable-hero > :first-child { margin-top: 0; }
.editable-hero > :last-child { margin-bottom: 0; }
.editable-hero .wp-block-heading,
.editable-hero h1 {
    max-width: 720px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 520;
    line-height: 1.05;
}

.editable-hero p {
    max-width: 570px;
    color: var(--muted);
    font-size: 19px;
    margin: 22px 0 0;
}

.editable-hero .wp-block-buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.wp-block-button__link {
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-weight: 750;
    padding: 12px 18px;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
}

.hero-media {
    min-height: 430px;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 25% 20%, rgba(242, 203, 87, 0.34), transparent 28%),
        linear-gradient(135deg, #eef0df 0%, #f9efe5 52%, #dfebdc 100%);
    box-shadow: var(--shadow);
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.hero-placeholder {
    display: grid;
    min-height: 430px;
    place-items: center;
    padding: 40px;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    text-align: center;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 34px 0 22px;
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 520;
}

.link {
    color: var(--tomato);
    font-weight: 700;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 72px;
}

.recipe-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(32, 35, 31, 0.1);
}

.recipe-thumb {
    aspect-ratio: 4 / 3;
    background: #ece7dd;
}

.recipe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-body { padding: 20px; }
.recipe-body h3 { font-size: 23px; }
.recipe-body p { color: var(--muted); margin: 10px 0 0; }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffaf1;
    color: #65604f;
    font-size: 13px;
    font-weight: 650;
    padding: 6px 10px;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.category-filter a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
}

.category-filter a:hover,
.category-filter a.is-active {
    border-color: rgba(207, 93, 69, 0.34);
    background: #fff2e8;
    color: var(--tomato);
}

.category-filter span {
    color: inherit;
    opacity: 0.72;
}

.archive-title {
    padding: 64px 0 22px;
}

.archive-title h1,
.single-title h1,
.page-title h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.single-title {
    max-width: 840px;
    padding: 58px 0 26px;
}

.single-title .meta {
    margin-top: 20px;
}

.single-image {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 42px;
    max-height: 620px;
}

.single-image img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.recipe-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: -22px 0 42px;
}

.recipe-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #ece7dd;
    aspect-ratio: 1 / 1;
}

.recipe-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 56px;
    padding-bottom: 80px;
}

.ingredients {
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
}

.ingredients-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ingredients h2, .method h2 {
    font-size: 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 520;
}

.copy-ingredients {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffaf1;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    padding: 8px 12px;
    white-space: nowrap;
}

.copy-ingredients:hover {
    border-color: rgba(207, 93, 69, 0.34);
    color: var(--tomato);
}

.ingredients ul, .method ol {
    margin: 18px 0 0;
    padding-left: 22px;
}

.ingredients li, .method li { margin: 10px 0; }

.ingredient-checklist {
    list-style: none;
    padding-left: 0 !important;
}

.ingredient-checklist label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    cursor: pointer;
}

.ingredient-checklist input {
    width: 17px;
    height: 17px;
    margin-top: 4px;
    accent-color: var(--tomato);
}

.ingredient-checklist input:checked + .ingredient-text {
    color: var(--muted);
    text-decoration: line-through;
}

.intro { color: var(--muted); font-size: 18px; }

.page-title {
    padding: 64px 0 24px;
}

.page-content {
    padding-bottom: 80px;
}

.entry-content {
    max-width: 820px;
    color: var(--text);
    font-size: 18px;
}

.entry-content > * {
    margin-top: 0;
    margin-bottom: 22px;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 42px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 520;
}

.latest-recipes {
    margin-top: 12px;
}

.empty {
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 32px;
    background: rgba(255, 255, 255, 0.58);
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 30px 0;
}

@media (max-width: 820px) {
    .wrap { width: min(100% - 28px, 1120px); }
    .nav { align-items: center; flex-direction: row; justify-content: space-between; padding: 12px 0; }
    .brand { flex: 1 1 auto; }
    .menu { margin-left: auto; }
    .menu,
    .menu-list { align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
    .menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        width: 100%;
        margin-top: 4px;
    }
    .menu li:hover > .sub-menu,
    .menu li:focus-within > .sub-menu {
        display: grid;
    }
    .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
    .editable-hero .wp-block-buttons { align-items: flex-start; flex-direction: column; }
    .hero-media, .hero-media img, .hero-placeholder { min-height: 280px; }
    .recipe-grid { grid-template-columns: 1fr; }
    .recipe-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-head { align-items: flex-start; flex-direction: column; }
    .recipe-layout { grid-template-columns: 1fr; gap: 30px; }
}
