/*
Theme Name: Yum
Template: twentytwentyfive
Description: The YumBB family recipe book's look: slate-blue page, light panel, crimson links, recipes beside a sidebar, big grey dates. After the TypeBased theme the site used from 2009 to 2015, rebuilt as a child of Twenty Twenty-Five so it stays current and works on phones.
Version: 1.0.2
Requires at least: 6.7
Text Domain: yum
*/

/* Colors and type live in theme.json; this file is only what theme.json can't express. */

/* Header: the old logo was white bold "yumbb.com" with a soft shadow on the slate bar. */
.yum-header { max-width: 1000px; margin: 0 auto; padding: 28px 20px 18px; }
.yum-logo { margin: 0; font-family: "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif; font-weight: 700;
	font-size: 44px; line-height: 1; letter-spacing: 0.5px; }
.yum-logo a { color: #fff; text-decoration: none; text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.55); }
.yum-logo a:hover { color: #fff; text-decoration: none; }
/* !important: the navigation block sets its own link color, which came out dark on slate. */
.yum-header .wp-block-navigation .wp-block-navigation-item a,
.yum-header .wp-block-navigation .wp-block-pages-list__item__link { color: var(--wp--preset--color--mist) !important; }
.yum-header .wp-block-navigation .wp-block-navigation-item a:hover,
.yum-header .wp-block-navigation .current-menu-item > a { color: #fff !important; text-decoration: none; }
.yum-header .wp-block-navigation__responsive-container-open,
.yum-header .wp-block-navigation__responsive-container-close { color: #fff !important; }
.yum-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { color: #fff !important; }

/* The light panel the content sits on, like the old #F5F5F5 .background box. */
.yum-panel { max-width: 1000px; margin: 0 auto !important; padding: 28px 24px 32px; background: var(--wp--preset--color--panel);
	border-radius: 4px 4px 0 0; box-sizing: border-box; }
.yum-cols { gap: 36px; }

/* Each recipe in a list: the old big grey date to the left, then title, details and excerpt. */
.yum-entry { gap: 18px !important; padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid #e2e2e2; }
.yum-date { flex: 0 0 58px; text-align: center; line-height: 1.1; padding-top: 4px; }
.yum-date .yum-day { font-size: 34px; color: var(--wp--preset--color--muted); font-weight: 700; margin: 0; }
.yum-date .yum-month { font-size: 15px; color: #666; text-transform: uppercase; margin: 2px 0 0; }
.yum-date .yum-year { font-size: 13px; color: #666; margin: 0; }
.yum-entry-body { flex: 1 1 auto; min-width: 0; }
.yum-entry-body .wp-block-post-title { margin: 0 0 6px; }
.yum-meta { gap: 6px 14px !important; color: var(--wp--preset--color--steel); font-size: 13px; margin: 0 0 10px !important; }
.yum-meta a { color: var(--wp--preset--color--steel); }
.yum-meta .wp-block-post-author-name::before { content: "by "; }
.yum-entry-body .wp-block-post-featured-image { float: right; margin: 0 0 10px 16px; }
.yum-entry-body .wp-block-post-featured-image img { border-radius: 3px; }
.yum-entry-body::after { content: ""; display: block; clear: both; }
.wp-block-post-excerpt__more-link { font-size: 14px; }

/* A single recipe. */
.yum-single .wp-block-post-title { font-size: 32px; margin-bottom: 4px; }
.yum-single .wp-block-post-content img { max-width: 100%; height: auto; border-radius: 3px; }
/* Old (pre-block) recipe text uses alignleft/alignright on images: let text wrap around them, as it did. */
.wp-block-post-content .alignleft { float: left; margin: 4px 18px 10px 0; }
.wp-block-post-content .alignright { float: right; margin: 4px 0 10px 18px; }
.wp-block-post-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-post-content::after { content: ""; display: block; clear: both; }
.yum-tags { font-size: 13px; color: var(--wp--preset--color--steel); margin-top: 28px; }
.yum-archive-title { margin: 0 0 24px; padding-bottom: 10px; border-bottom: 2px solid var(--wp--preset--color--teal); }

/* Sidebar: white blocks with teal headings, like the old widget column. */
.yum-sidebar > * + * { margin-top: 22px; }
.yum-box { background: #fff; padding: 16px 18px; border-top: 3px solid var(--wp--preset--color--teal); border-radius: 0 0 3px 3px; }
.yum-box h2 { font-size: 13px; color: var(--wp--preset--color--teal); text-transform: uppercase; letter-spacing: 1px;
	margin: 0 0 10px; }
.yum-box a { color: #3F6069; }
.yum-box a:hover { color: #131A1C; }
.yum-box ul { margin: 0; padding-left: 18px; }
.yum-box li { margin: 3px 0; }
.yum-box .wp-block-tag-cloud { line-height: 1.7; }
.yum-box .wp-block-latest-comments__comment { font-size: 14px; margin-bottom: 8px; }
.yum-box .wp-block-search__inside-wrapper { gap: 8px; }
.yum-box .wp-block-search__input { flex: 1 1 auto; min-width: 0; border: 1px solid #ccc; border-radius: 3px;
	padding: 7px 9px; font-size: 14px; }
/* The parent theme makes buttons big pills; the old site's were small and square-ish. */
.yum-box .wp-block-search__button { flex: 0 0 auto; margin: 0; border-radius: 3px; padding: 7px 14px; font-size: 14px;
	background: var(--wp--preset--color--slate); color: #fff; border: 0; }
.yum-box .wp-block-search__button:hover { background: var(--wp--preset--color--navy); }

/* Footer: the old navy bar. */
.yum-footer { max-width: 1000px; margin: 0 auto; padding: 18px 24px; background: var(--wp--preset--color--navy);
	color: #677881; font-size: 13px; box-sizing: border-box; }
.yum-footer a { color: var(--wp--preset--color--sky); }
.yum-footer a:hover { color: #318DE1; }

/* Phones: columns stack (core does that under 782px); tighten the panel and shrink the date. */
@media (max-width: 781px) {
	.yum-header { padding: 18px 16px 12px; }
	.yum-logo { font-size: 34px; }
	.yum-panel { padding: 18px 16px 24px; border-radius: 0; }
	.yum-date { flex-basis: 44px; }
	.yum-date .yum-day { font-size: 26px; }
	.yum-entry-body .wp-block-post-featured-image { float: none; margin: 0 0 10px; }
	.yum-footer { padding: 16px; }
}
