/*
Theme Name: Dinner Win
Description: Fast single-column recipe theme for dinnerwin.lol. Recipe schema comes from WP Recipe Maker.
Version: 1.0.0
Text Domain: dinnerwin
*/

:root {
	--bg: #fbf6ec;
	--card: #f3e9d6;
	--line: #e4d6be;
	--text: #2a1d14;
	--mute: #6e5b4d;
	--accent: #b8431f;
	--accent-dark: #8f3216;
	--butter: #f6e3a8;
	--olive: #3f4a2b;
	--radius: 10px;
	--serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
.wrap { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 740px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .9rem; }
.brand { font: 900 1.6rem/1 var(--serif); color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--accent); font-style: italic; }
.nav { display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); }

/* hero */
.hero { padding: 3rem 0 2rem; }
.hero h1 { max-width: 15ch; }
.hero h1 em { color: var(--accent); }
.hero p { max-width: 52ch; color: var(--mute); font-size: 1.15rem; }
.search { display: flex; max-width: 460px; margin-top: 1.25rem; }
.search input { flex: 1; font: inherit; padding: .75rem 1rem; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff; }
.search button { font: inherit; font-weight: 700; padding: .75rem 1.2rem; border: 0; background: var(--accent); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.search button:hover { background: var(--accent-dark); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1rem 0 2rem; }
.chips a { display: block; padding: .45rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chips a:hover { background: var(--butter); }

/* grid and cards */
.section-title { margin: 2rem 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; padding: 0; list-style: none; margin: 0 0 3rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card .thumb { aspect-ratio: 2 / 3; background: var(--card); object-fit: cover; width: 100%; }
.card .thumb.empty { display: grid; place-items: center; color: var(--mute); font: italic 1.1rem var(--serif); }
.card h3 { font-size: 1.1rem; margin: 0; padding: .9rem 1rem .2rem; }
.card .cat { padding: 0 1rem 1rem; font-size: .8rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.card:hover { border-color: var(--accent); }

/* article */
.entry-header { padding: 2.5rem 0 1rem; }
.byline { color: var(--mute); font-size: .92rem; }
.byline a { color: inherit; }
.featured { margin: 1.25rem auto; max-width: 400px; border-radius: var(--radius); overflow: hidden; }
.entry-content { padding-bottom: 2rem; }
.entry-content img { border-radius: var(--radius); margin-block: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .35rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .97rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.entry-content th { background: var(--card); }
.entry-content blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.save-pin { display: inline-block; background: var(--accent); color: #fff !important; padding: .6rem 1.1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.save-pin:hover { background: var(--accent-dark); }
.related { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }
.note { background: var(--butter); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .95rem; }

/* footer */
.site-footer { margin-top: 3rem; background: var(--olive); color: #f7f3e3; padding: 2.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #e8c56b; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.site-footer small { display: block; width: 100%; opacity: .8; }

/* cookie banner (from pin-analytics) */
.consent { position: fixed; z-index: 50; left: 1rem; right: 1rem; bottom: 1rem; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 8px 28px rgba(42, 29, 20, .18); font-size: .9rem; }
.consent p { margin: 0 0 .7rem; }
.consent-actions { display: flex; gap: .6rem; }
.consent button { font: inherit; font-weight: 700; padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.consent button[data-consent="no"] { background: transparent; color: var(--accent); }

.pagination { display: flex; gap: 1rem; justify-content: center; margin: 0 0 3rem; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .card h3 { font-size: 1rem; padding: .7rem .75rem .2rem; } .card .cat { padding: 0 .75rem .8rem; } }
@media print { .site-header, .site-footer, .consent, .related, .save-pin { display: none; } body { background: #fff; } }
