/*
Theme Name:   Daily Dinner Table
Theme URI:    https://dailydinnertable.com
Description:  Custom Genesis child theme for Daily Dinner Table. Family dinner recipes, one readable column, a recipe card that is easy to cook from.
Author:       Daily Dinner Table
Template:     genesis
Version:      1.0.0
Text Domain:  dailydinnertable
License:      GPL-2.0-or-later
*/

/* ------------------------------------------------------------------
   Tokens
   Brand: aubergine / cream / marigold (approved 11/25/26).
   Headings in Georgia to match the social images; body in the system
   sans so nothing is downloaded before the first paint.
------------------------------------------------------------------ */
:root {
	--ddt-aubergine: #4a2238;
	--ddt-aubergine-dark: #34172a;
	--ddt-cream: #fbf5ea;
	--ddt-cream-deep: #f3e8d3;
	--ddt-marigold: #e8a33d;
	--ddt-marigold-dark: #b97a1c; /* marigold that passes contrast on cream for small text */
	--ddt-ink: #2b2226;
	--ddt-muted: #6b5d63;
	--ddt-line: #e4d6c0;
	--ddt-white: #ffffff;

	--ddt-serif: Georgia, "Times New Roman", serif;
	--ddt-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--ddt-read: 720px;   /* article column */
	--ddt-wide: 1180px;  /* grids, header, footer */
	--ddt-radius: 14px;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ddt-cream);
	color: var(--ddt-ink);
	font-family: var(--ddt-sans);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ddt-aubergine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ddt-marigold-dark); }
:focus-visible { outline: 3px solid var(--ddt-marigold); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ddt-serif);
	color: var(--ddt-aubergine);
	line-height: 1.2;
	margin: 1.6em 0 0.5em;
	font-weight: 700;
}
h1 { font-size: 2.4rem; margin-top: 0; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p, ul, ol, blockquote, figure { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

blockquote {
	border-left: 4px solid var(--ddt-marigold);
	padding: 0.2em 0 0.2em 1.1em;
	font-family: var(--ddt-serif);
	font-style: italic;
	color: var(--ddt-muted);
}

hr { border: 0; border-top: 1px solid var(--ddt-line); margin: 2.5em 0; }

.screen-reader-text, .screen-reader-shortcut {
	position: absolute !important; clip: rect(0 0 0 0); height: 1px; width: 1px; overflow: hidden;
}
.screen-reader-shortcut:focus {
	clip: auto; height: auto; width: auto; background: var(--ddt-white); padding: 10px 16px; z-index: 1000; top: 8px; left: 8px;
}

/* Genesis skip links: a <ul> whose links are visually hidden until focused. */
.genesis-skip-link { list-style: none; margin: 0; padding: 0; }
.genesis-skip-link li { height: 0; width: 0; margin: 0; list-style: none; }

.wrap { max-width: var(--ddt-wide); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------
   Header: aubergine bar, wordmark left, menu right, marigold rule below
------------------------------------------------------------------ */
.ddt-header {
	background: var(--ddt-aubergine);
	border-bottom: 5px solid var(--ddt-marigold);
}
.ddt-header .wrap {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 72px;
}
.ddt-wordmark {
	font-family: var(--ddt-serif); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.01em;
	color: var(--ddt-cream); text-decoration: none; white-space: nowrap;
}
.ddt-wordmark:hover, .ddt-wordmark:focus { color: var(--ddt-marigold); }

.ddt-menu-toggle {
	display: none; background: none; border: 2px solid var(--ddt-cream); color: var(--ddt-cream);
	border-radius: 8px; padding: 6px 12px; font: 600 0.9rem var(--ddt-sans); cursor: pointer;
}

.ddt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ddt-nav li { margin: 0; }
.ddt-nav a {
	color: var(--ddt-cream); text-decoration: none; font-size: 0.95rem; font-weight: 600;
	padding: 6px 0; border-bottom: 2px solid transparent;
}
.ddt-nav a:hover, .ddt-nav a:focus, .ddt-nav .current-menu-item > a { border-bottom-color: var(--ddt-marigold); color: var(--ddt-white); }

.ddt-search { margin: 0; }
.ddt-search input[type="search"] {
	width: 170px; border: 0; border-radius: 999px; padding: 8px 14px; font: 0.9rem var(--ddt-sans);
	background: var(--ddt-cream); color: var(--ddt-ink);
}

@media (max-width: 860px) {
	.ddt-menu-toggle { display: inline-block; }
	.ddt-header .wrap { flex-wrap: wrap; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
	.ddt-wordmark { font-size: 1.3rem; }
	.ddt-nav, .ddt-search { display: none; width: 100%; }
	.ddt-header.is-open .ddt-nav, .ddt-header.is-open .ddt-search { display: block; padding-bottom: 14px; }
	.ddt-nav ul { flex-direction: column; gap: 0; }
	.ddt-nav a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(251, 245, 234, 0.15); }
	.ddt-search input[type="search"] { width: 100%; }
}

/* ------------------------------------------------------------------
   Layout
------------------------------------------------------------------ */
.site-inner { padding: 36px 0 64px; }
.content-sidebar-wrap, .content { width: 100%; }
.content { max-width: var(--ddt-read); margin: 0 auto; }
.home .content, .archive .content, .search .content, .blog .content { max-width: none; }

/* ------------------------------------------------------------------
   Front page
------------------------------------------------------------------ */
.ddt-hero {
	text-align: center; padding: 44px 20px 36px; margin: -36px 0 40px;
	background: var(--ddt-cream-deep);
	border-bottom: 1px solid var(--ddt-line);
}
.ddt-hero h1 { font-size: 2.6rem; margin-bottom: 0.25em; }
.ddt-hero p { font-family: var(--ddt-serif); font-style: italic; font-size: 1.2rem; color: var(--ddt-muted); margin: 0; }
.ddt-hero .ddt-rule { width: 90px; height: 4px; background: var(--ddt-marigold); margin: 16px auto; border-radius: 2px; }

.ddt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.ddt-chips li { margin: 0; }
.ddt-chips a {
	display: inline-block; padding: 7px 16px; border-radius: 999px; text-decoration: none;
	background: var(--ddt-white); border: 1px solid var(--ddt-line); color: var(--ddt-aubergine);
	font-size: 0.9rem; font-weight: 600;
}
.ddt-chips a:hover, .ddt-chips a:focus { background: var(--ddt-aubergine); color: var(--ddt-cream); border-color: var(--ddt-aubergine); }

.ddt-section-title {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	border-bottom: 2px solid var(--ddt-aubergine); padding-bottom: 6px; margin: 0 0 22px;
}
.ddt-section-title h2 { margin: 0; font-size: 1.6rem; }
.ddt-section-title a { font-size: 0.9rem; font-weight: 600; text-decoration: none; }

.ddt-empty {
	text-align: center; padding: 48px 20px; background: var(--ddt-white); border: 1px dashed var(--ddt-line);
	border-radius: var(--ddt-radius); color: var(--ddt-muted); font-family: var(--ddt-serif); font-size: 1.15rem;
}

/* ------------------------------------------------------------------
   Recipe card grid (front page, archives, search)
------------------------------------------------------------------ */
.ddt-grid {
	display: grid; gap: 26px;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	margin-bottom: 48px;
}
.ddt-tile {
	background: var(--ddt-white); border-radius: var(--ddt-radius); overflow: hidden;
	border: 1px solid var(--ddt-line); display: flex; flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ddt-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(74, 34, 56, 0.12); }
.ddt-tile a { text-decoration: none; color: inherit; }
.ddt-tile-img { aspect-ratio: 4 / 3; background: var(--ddt-cream-deep); }
.ddt-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.ddt-tile-body { padding: 14px 16px 18px; }
.ddt-tile-cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ddt-marigold-dark); }
.ddt-tile-title { font-family: var(--ddt-serif); font-size: 1.2rem; line-height: 1.3; color: var(--ddt-aubergine); margin: 4px 0 0; }

.archive-description, .ddt-archive-head { text-align: center; margin-bottom: 30px; }
.archive-description h1, .ddt-archive-head h1 { margin-bottom: 0.2em; }
.archive-description p { color: var(--ddt-muted); }

.archive-pagination ul { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; }
.archive-pagination a, .archive-pagination .active a {
	display: inline-block; min-width: 40px; text-align: center; padding: 6px 12px; border-radius: 8px;
	background: var(--ddt-white); border: 1px solid var(--ddt-line); text-decoration: none;
}
.archive-pagination .active a { background: var(--ddt-aubergine); color: var(--ddt-cream); border-color: var(--ddt-aubergine); }

/* ------------------------------------------------------------------
   Single post / page
------------------------------------------------------------------ */
.breadcrumb { font-size: 0.85rem; color: var(--ddt-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--ddt-muted); }

.entry-header { margin-bottom: 22px; }
.entry-title { font-size: 2.4rem; }
.entry-title a { text-decoration: none; }
.entry-meta { font-size: 0.9rem; color: var(--ddt-muted); margin: 0; }
.entry-meta a { color: var(--ddt-muted); }

.ddt-jump {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
	background: var(--ddt-marigold); color: var(--ddt-aubergine-dark); font-weight: 700; font-size: 0.95rem;
	padding: 10px 20px; border-radius: 999px; text-decoration: none;
}
.ddt-jump:hover, .ddt-jump:focus { background: var(--ddt-aubergine); color: var(--ddt-cream); }

.entry-content { overflow-wrap: break-word; }
.entry-content img, .entry-content figure img { border-radius: var(--ddt-radius); }
.entry-content figcaption, .wp-element-caption { font-size: 0.85rem; color: var(--ddt-muted); text-align: center; margin-top: 6px; }
.entry-content .alignwide, .entry-content .alignfull { max-width: var(--ddt-read); }

.entry-footer .entry-meta { border-top: 1px solid var(--ddt-line); padding-top: 14px; margin-top: 32px; }

/* Family note callout: <div class="ddt-note"> in the editor. */
.ddt-note {
	background: var(--ddt-white); border: 1px solid var(--ddt-line); border-left: 5px solid var(--ddt-marigold);
	border-radius: var(--ddt-radius); padding: 18px 22px; margin: 0 0 1.4em;
}
.ddt-note > :last-child { margin-bottom: 0; }

/* Tables */
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 0.95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--ddt-line); padding: 8px 12px; text-align: left; }
.entry-content th { background: var(--ddt-cream-deep); }

/* ------------------------------------------------------------------
   WP Recipe Maker card: re-skin the default template in brand colors
------------------------------------------------------------------ */
.wprm-recipe-container { margin: 2.2em 0; }
/* The default "Meadow" template reads three colour variables (olive by default). */
.wprm-recipe.wprm-recipe-template-meadow, .wprm-recipe {
	--meadow-accent-color: var(--ddt-aubergine);
	--meadow-main-background-color: var(--ddt-cream);
	--meadow-list-border-color: var(--ddt-marigold);
}
.wprm-recipe {
	background: var(--ddt-white) !important;
	border: 2px solid var(--ddt-aubergine) !important;
	border-radius: var(--ddt-radius) !important;
	padding: 26px !important;
	font-family: var(--ddt-sans) !important;
}
.wprm-recipe-name, .wprm-recipe .wprm-recipe-header {
	font-family: var(--ddt-serif) !important; color: var(--ddt-aubergine) !important;
}
.wprm-recipe .wprm-recipe-header { border-bottom: 2px solid var(--ddt-marigold); padding-bottom: 4px; }
.wprm-recipe a.wprm-recipe-link, .wprm-recipe .wprm-recipe-print, .wprm-recipe .wprm-recipe-pin, .wprm-recipe .wprm-recipe-jump {
	background: var(--ddt-aubergine) !important; color: var(--ddt-cream) !important; border-color: var(--ddt-aubergine) !important;
	border-radius: 999px !important;
}
.wprm-recipe .wprm-recipe-ingredient, .wprm-recipe .wprm-recipe-instruction { margin-bottom: 0.5em; }
.wprm-recipe .wprm-recipe-instruction::marker { color: var(--ddt-marigold-dark); font-weight: 700; }
.wprm-recipe .wprm-recipe-details-label { color: var(--ddt-muted); }
.wprm-recipe .wprm-recipe-notes-container { background: var(--ddt-cream); border-radius: 10px; padding: 14px 18px; }

/* ------------------------------------------------------------------
   Comments
------------------------------------------------------------------ */
.entry-comments, .comment-respond { max-width: var(--ddt-read); margin: 48px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: var(--ddt-white); border: 1px solid var(--ddt-line); border-radius: var(--ddt-radius); padding: 16px 20px; margin-bottom: 14px; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
	width: 100%; border: 1px solid var(--ddt-line); border-radius: 10px; padding: 10px 12px; font: 1rem var(--ddt-sans); background: var(--ddt-white);
}
input[type="submit"], button.ddt-button, .ddt-button {
	background: var(--ddt-aubergine); color: var(--ddt-cream); border: 0; border-radius: 999px;
	padding: 11px 24px; font: 700 0.95rem var(--ddt-sans); cursor: pointer; text-decoration: none; display: inline-block;
}
input[type="submit"]:hover, .ddt-button:hover { background: var(--ddt-marigold); color: var(--ddt-aubergine-dark); }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer {
	background: var(--ddt-aubergine-dark); color: var(--ddt-cream); border-top: 5px solid var(--ddt-marigold);
	padding: 34px 0 28px; font-size: 0.9rem; text-align: center;
}
.site-footer .ddt-wordmark { font-size: 1.3rem; }
.site-footer p { margin: 8px 0 0; color: rgba(251, 245, 234, 0.8); }
.ddt-footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 0; margin: 16px 0 0; }
.ddt-footer-links li { margin: 0; }
.ddt-footer-links a { color: var(--ddt-cream); }
.ddt-footer-links a:hover, .ddt-footer-links a:focus { color: var(--ddt-marigold); }

/* ------------------------------------------------------------------
   Small screens
------------------------------------------------------------------ */
@media (max-width: 600px) {
	body { font-size: 17px; }
	h1, .entry-title { font-size: 1.9rem; }
	.ddt-hero h1 { font-size: 2rem; }
	.wprm-recipe { padding: 18px !important; }
	.ddt-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.ddt-tile-title { font-size: 1rem; }
	.ddt-tile-body { padding: 10px 12px 14px; }
}
@media (max-width: 330px) {
	.ddt-grid { grid-template-columns: 1fr; }
}

@media print {
	.ddt-header, .site-footer, .ddt-jump, .breadcrumb, .entry-comments, .comment-respond { display: none !important; }
	body { background: #fff; }
}

/* ------------------------------------------------------------------
   Contact form (page-contact.php)
------------------------------------------------------------------ */
.ddt-contact { background: var(--ddt-white); border: 1px solid var(--ddt-line); border-radius: var(--ddt-radius); padding: 26px 28px; margin-top: 10px; }
.ddt-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.ddt-form input[type="text"], .ddt-form input[type="email"], .ddt-form textarea {
	width: 100%; border: 1px solid var(--ddt-line); border-radius: 10px; padding: 10px 12px;
	font: 1rem var(--ddt-sans); background: var(--ddt-cream);
}
.ddt-form input:focus, .ddt-form textarea:focus { border-color: var(--ddt-aubergine); background: var(--ddt-white); }
.ddt-agree label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.ddt-agree input { margin-top: 6px; }
.ddt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ddt-notice { border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.ddt-notice-ok { background: #e8f3e6; color: #24502a; }
.ddt-notice-err { background: #fbe9e7; color: #8a2a1f; }
button.ddt-button { font-family: var(--ddt-sans); }

/* ------------------------------------------------------------------
   Recipes page (page-recipes.php): one long index, no pagination
------------------------------------------------------------------ */
.ddt-recipes-page .content { max-width: none; }
.ddt-recipes-page .entry-header, .ddt-recipes-page .entry-content > p { max-width: var(--ddt-read); margin-left: auto; margin-right: auto; }
.ddt-chips-left { justify-content: center; margin: 0 0 36px; }
.ddt-index-section { scroll-margin-top: 20px; margin-bottom: 20px; }
