/*
Theme Name: Dad's Kosher Table
Theme URI: https://dadskoshertable.com/
Author: Dad's Kosher Table
Description: Landing page and recipe journal for Dad's Kosher Table: kosher meal plans, shopping lists and Shabbos prep for single dads. Built-in email signup with CSV export. Edit everything in Appearance → Customize → Dad's Kosher Table.
Version: 1.0.0
Requires at least: 5.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dads-kosher-table
*/

:root {
	--paper: #FAF7F1;
	--paper-2: #F1ECE2;
	--ink: #1E2422;
	--ink-2: #3A423F;
	--muted: #57605C;
	--line: #E2DBCD;
	--green: #2F5D46;
	--green-dark: #224535;
	--gold: #E0A93B;
	--on-green: #E6EFE9;
	--display: 'Bitter', Georgia, serif;
	--body: 'Work Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; color: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.green .eyebrow { color: var(--gold); }
.section-title { margin: 0 0 16px; font-weight: 700; font-size: clamp(32px, 4.2vw, 44px); line-height: 1.12; }
.lede { margin: 0 0 44px; max-width: 640px; color: var(--muted); font-size: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--body); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #CC952A; color: var(--ink); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
.brand svg { color: var(--green); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; align-items: center; }
.nav a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--green); }

/* Hero */
.hero .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.hero h1 { margin: 0 0 22px; font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; }
.hero .intro { margin: 0 0 32px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 560px; }
.hero-card { flex: 1 1 340px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.hero-card h2 { margin: 0 0 6px; font-size: 22px; }
.hero-card p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 20px; }

/* Signup form */
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-form label { width: 100%; font-size: 14px; font-weight: 600; }
.signup-form input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border: 1.5px solid #B9B1A2; border-radius: 999px; font-size: 16px; font-family: var(--body); background: #fff; color: var(--ink); }
.signup-form input[type="email"]:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.signup-form .hp { position: absolute; left: -9999px; }
.signup-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.signup-msg { width: 100%; margin: 0 0 8px; padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.signup-msg.ok { background: #E3EFE7; color: var(--green-dark); }
.signup-msg.err { background: #F7E4DD; color: #8A2E12; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.step .num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 21px; }
.step p { margin: 0; color: var(--muted); }

/* Inside */
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 28px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }
.feature .icon { color: var(--green); margin-bottom: 12px; }

/* Sample menu */
.menu-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.menu-row { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 18px 28px; border-top: 1px solid var(--line); }
.menu-row:first-child { border-top: 0; }
.menu-row .meal { flex: 0 0 180px; font-weight: 600; }
.menu-row .dishes { flex: 1 1 300px; min-width: 0; color: var(--ink-2); }

/* Guide promo */
.green { background: var(--green); color: var(--on-green); }
.green h2, .green h3 { color: #fff; }
.promo .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.promo-text { flex: 999 1 480px; min-width: 0; }
.promo-text p { color: var(--on-green); font-size: 18px; max-width: 560px; }
.promo-text ul { margin: 0 0 28px; padding-left: 20px; }
.promo-text li { margin-bottom: 6px; }
.promo-price { flex: 1 1 260px; min-width: 0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; padding: 32px; text-align: center; }
.promo-price .price { font-family: var(--display); font-size: 52px; font-weight: 800; color: #fff; line-height: 1; margin: 0 0 8px; }
.promo-price p { margin: 0 0 22px; font-size: 15px; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card .thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.post-card time { font-size: 14px; color: var(--muted); }
.post-card h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--green); }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; min-height: 28px; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Signup band */
.signup-band .wrap { max-width: 720px; text-align: center; }
.signup-band .signup-form { justify-content: center; margin-top: 24px; }
.signup-band .signup-form label { text-align: left; }

/* Footer */
.site-footer { background: var(--ink); color: #C9CFCB; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.socials a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer p { margin: 0; font-size: 14px; }

/* Blog */
.content-area .wrap { padding-top: 64px; padding-bottom: 88px; }
.narrow { max-width: 740px; }
.archive-title { margin: 0 0 40px; font-weight: 800; font-size: clamp(34px, 5vw, 52px); }
.entry-header h1 { margin: 0 0 10px; font-weight: 800; font-size: clamp(34px, 5vw, 50px); line-height: 1.1; }
.entry-meta { margin: 0 0 32px; font-size: 15px; color: var(--muted); }
.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content h2 { font-size: 28px; margin: 44px 0 12px; }
.entry-content h3 { font-size: 22px; margin: 32px 0 8px; }
.entry-content img, .entry-content figure { border-radius: 12px; margin: 28px 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--muted); }
.post-signup { margin-top: 56px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.post-signup h2 { margin: 0 0 6px; font-size: 24px; }
.post-signup p { margin: 0 0 18px; color: var(--muted); }
.pagination { margin-top: 48px; display: flex; gap: 12px; flex-wrap: wrap; }
.pagination a, .pagination span { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.section { padding-top: 64px; padding-bottom: 64px; }
	.hero .wrap { padding-top: 48px; padding-bottom: 56px; }
	.hero-card, .promo-price { padding: 24px; }
	.menu-row { padding: 16px 20px; }
	.menu-row .meal { flex-basis: 100%; }
}
