/*
Theme Name:   Daily Puzzle Drop Sunshine
Theme URI:    https://dailypuzzledrop.com
Description:  Lightweight Blocksy child theme with the logo's yellow ring as the star: a bold yellow header, pale-yellow page, white cards with navy outlines and hard shadows, a navy footer and the Daily Puzzle Drop logo. System fonts only; no scripts.
Author:       Daily Puzzle Drop
Template:     blocksy
Version:      2.0.0
Requires at least: 6.0
Requires PHP: 7.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  dpd-sunshine
*/

/* Colours use Blocksy's 8 palette slots: 1 accent/links/buttons, 2 hover, 3 text,
   4 headings, 5 borders, 6 footer, 7 page, 8 cards + header.
   They are set here, so Customizer > Colors will not change them while this theme is active. */
:root,
body {
	--theme-palette-color-1: #14122b;
	--theme-palette-color-2: #3b2fb0;
	--theme-palette-color-3: #26243f;
	--theme-palette-color-4: #14122b;
	--theme-palette-color-5: #14122b;
	--theme-palette-color-6: #14122b;
	--theme-palette-color-7: #fff6d1;
	--theme-palette-color-8: #ffffff;
	--theme-selection-background-color: #14122b;
	--theme-selection-text-color: #ffd23f;
	--theme-border-radius: 18px;
	--theme-button-border-radius: 999px;
	--theme-button-min-height: 46px;
	--theme-button-padding: 8px 28px;
	--theme-button-font-size: 14px;
	--theme-button-font-weight: 800;
	--theme-button-letter-spacing: 0.06em;
	--theme-button-text-transform: uppercase;
	--theme-button-text-initial-color: #ffd23f;
	--theme-button-background-hover-color: #3b2fb0;
	--theme-button-text-hover-color: #ffffff;
	--theme-form-field-border-radius: 12px;
	--theme-form-field-border-width: 2px;
	--theme-form-field-border-initial-color: #14122b;
	--theme-form-field-border-focus-color: #3b2fb0;
	--theme-form-field-background-initial-color: #ffffff;
	--theme-form-field-background-focus-color: #ffffff;
}

/* Type: system Arial-family sans, nothing is downloaded */
body {
	--theme-font-family: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
	--theme-line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	--theme-font-weight: 800;
	--theme-line-height: 1.1;
	--theme-letter-spacing: -0.025em;
}

/* Header: solid yellow bar with a navy underline */
#header {
	border-bottom: 3px solid #14122b;
}

#header [data-row] {
	background-color: #ffd23f;
}

#header [data-id="menu"] > ul > li > a {
	--theme-font-size: 13px;
	--theme-font-weight: 800;
	--theme-letter-spacing: 0.08em;
	--theme-link-hover-color: #3b2fb0;
	--theme-link-active-color: #14122b;
}

#header [data-id="menu"] > ul > li.current-menu-item > a {
	text-decoration: underline 3px #14122b;
	text-underline-offset: 10px;
}

/* Archive cards: navy outline and a hard shadow that grows on hover */
.entries .entry-card {
	--card-border: 2px solid #14122b;
	--theme-box-shadow: 4px 4px 0 #14122b;
	background-color: var(--theme-palette-color-8);
}

.entries .entry-card:hover {
	--theme-box-shadow: 7px 7px 0 #14122b;
	transform: translate(-2px, -2px);
}

.entries .entry-card .meta-categories a {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #14122b;
	color: #ffd23f;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Footer: navy with a yellow edge */
#footer {
	color: #e9ecfb;
	--theme-text-color: #e9ecfb;
	border-top: 4px solid #ffd23f;
}

#footer a {
	--theme-link-initial-color: #ffd23f;
	--theme-link-hover-color: #ffffff;
}

#footer :focus-visible {
	outline-color: #ffd23f;
}

@media (prefers-reduced-motion: no-preference) {
	.entries .entry-card {
		transition: transform 0.12s ease, box-shadow 0.12s ease;
	}
}

/* Logo: the Daily Puzzle Drop channel logo (assets/logo.webp) beside the site title.
   To use another image, replace that file. If you set a logo in Customizer > Header > Logo,
   this one steps aside. */
#header [data-id="logo"]:not(:has(.site-logo-container)) .site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
}

#header [data-id="logo"]:not(:has(.site-logo-container)) .site-title a::before {
	content: "";
	flex: none;
	width: 1.7em;
	height: 1.7em;
	border-radius: 12px;
	background: url(assets/logo.webp) center / cover no-repeat;
	box-shadow: 3px 3px 0 #ffffff;
}
