/*
Theme Name:   TinyDaysClub
Theme URI:    https://tinydaysclub.com
Description:  GeneratePress child theme for TinyDaysClub. Warm, calm, made for tired eyes.
Author:       DryverMedia LLC
Template:     generatepress
Version:      1.1.1
Requires PHP: 7.4
Text Domain:  tinydaysclub
License:      GNU General Public License v2 or later
*/

/* ------------------------------------------------------------------ fonts (self-hosted, OFL) */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("assets/fonts/figtree-var.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("assets/fonts/figtree-var-italic.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

/* ------------------------------------------------------------------ design tokens */
:root {
	--tdc-ink: #2A2730;
	--tdc-muted: #5E5866;
	--tdc-rose: #B4513A;
	--tdc-rose-dark: #8E3D2B;
	--tdc-sage: #4D6B58;
	--tdc-sunny: #E9B44C;
	--tdc-page: #FFFCF8;
	--tdc-blush: #F7E8E2;
	--tdc-mist: #E3EBE2;
	--tdc-butter: #F6E9C4;
	--tdc-cream: #FBF3E4;
	--tdc-line: #E8DED6;
	--tdc-ad-bg: #FBF5F0;
	--tdc-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--tdc-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tdc-radius: 16px;
	--tdc-radius-lg: 20px;
	--tdc-wrap: 1200px;
	--tdc-gutter: clamp(16px, 3vw, 24px);
}

/* ------------------------------------------------------------------ base */
html { -webkit-text-size-adjust: 100%; }
body {
	background: var(--tdc-page);
	color: var(--tdc-ink);
	font-family: var(--tdc-sans);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: clip;
}
h1, h2, h3, h4, .tdc-serif {
	font-family: var(--tdc-serif);
	font-weight: 600;
	color: var(--tdc-ink);
	letter-spacing: -0.005em;
	font-optical-sizing: auto;
}
h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.07; }
h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; }
h3 { font-size: clamp(21px, 2.4vw, 24px); line-height: 1.2; }
h4 { font-size: 19px; line-height: 1.3; }
a { color: var(--tdc-rose); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--tdc-rose-dark); }
:focus-visible { outline: 3px solid var(--tdc-sunny); outline-offset: 2px; }
img { height: auto; }
::selection { background: var(--tdc-butter); }

.tdc-wrap { max-width: var(--tdc-wrap); margin-inline: auto; padding-inline: var(--tdc-gutter); }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* GeneratePress containers: let our page color through */
.site, .site-content, .inside-article, .separate-containers .inside-article,
.one-container .container, .one-container .site-content, .sidebar .widget,
.separate-containers .comments-area, .separate-containers .page-header,
.separate-containers .paging-navigation, .inside-page-header { background: transparent; }
.separate-containers .inside-article { padding: 0; }
.one-container .site-content { padding: 32px var(--tdc-gutter) 64px; }
.grid-container { max-width: var(--tdc-wrap); }

/* ------------------------------------------------------------------ small parts */
.tdc-kicker {
	display: inline-block;
	font-family: var(--tdc-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tdc-rose);
	text-decoration: none;
}
.tdc-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tdc-muted);
	margin: 0 0 14px;
	font-family: var(--tdc-sans);
}
.tdc-pill {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 7px 12px;
	border-radius: 999px;
	background: #F3EEEA;
	color: var(--tdc-muted);
}
.tdc-pill--age { background: var(--tdc-mist); color: var(--tdc-sage); }
.tdc-pill--printable { background: var(--tdc-butter); color: #6B4E12; }

.tdc-btn,
.wp-block-button__link,
.wp-element-button,
button.tdc-btn,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--tdc-rose);
	color: #fff;
	font-family: var(--tdc-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.tdc-btn:hover, .wp-block-button__link:hover, .wp-element-button:hover, .tdc-btn:focus, .wp-block-button__link:focus { background: var(--tdc-rose-dark); color: #fff; }
.tdc-btn--ghost { background: transparent; color: var(--tdc-ink); box-shadow: inset 0 0 0 1.5px var(--tdc-ink); }
.tdc-btn--ghost:hover, .tdc-btn--ghost:focus { background: var(--tdc-ink); color: #fff; }

/* ------------------------------------------------------------------ announcement bar */
.tdc-announce { background: var(--tdc-ink); color: var(--tdc-page); text-align: center; font-size: 14px; padding: 10px var(--tdc-gutter); }
.tdc-announce a { color: var(--tdc-butter); font-weight: 600; }

/* ------------------------------------------------------------------ header */
.site-header { background: var(--tdc-page); border-bottom: 1px solid #EFE6DE; }
.inside-header { padding-block: 14px; }
.tdc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tdc-logo__img { display: block; height: 44px; width: auto; }
.main-title { margin: 0; }
.main-title a, .main-title a:hover { color: var(--tdc-ink); }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a {
	font-family: var(--tdc-sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--tdc-ink);
	padding-inline: 13px;
	line-height: 56px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--tdc-rose); background: transparent; }
.main-navigation .main-nav ul ul { background: #fff; border: 1px solid var(--tdc-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(42, 39, 48, 0.08); }
.main-navigation .main-nav ul ul li a { line-height: 1.4; padding-block: 10px; }
.menu-toggle, .main-navigation .menu-toggle { color: var(--tdc-ink); background: transparent; }
.tdc-nav-cta { display: flex; align-items: center; margin-left: 10px; }
.tdc-nav-cta .tdc-btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 768px) {
	.tdc-logo__img { height: 36px; }
	.tdc-nav-cta { display: none; }
}

/* ------------------------------------------------------------------ single article */
.single .entry-header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.tdc-breadcrumbs, .rank-math-breadcrumb { font-size: 14px; color: var(--tdc-muted); margin-bottom: 4px; }
.tdc-breadcrumbs a, .rank-math-breadcrumb a { color: var(--tdc-muted); text-decoration: none; }
.tdc-breadcrumbs a:hover, .rank-math-breadcrumb a:hover { color: var(--tdc-rose); }
.single .entry-title { margin: 0; }
.tdc-dek { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--tdc-muted); margin: 0; }
.tdc-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--tdc-muted); }
.tdc-byline img { width: 36px; height: 36px; border-radius: 999px; }
.tdc-byline strong { color: var(--tdc-ink); }
.tdc-byline a { color: var(--tdc-muted); }
.tdc-hero { margin: 0 0 26px; }
.tdc-hero img { width: 100%; border-radius: var(--tdc-radius-lg); display: block; aspect-ratio: 3 / 2; object-fit: cover; background: var(--tdc-blush); }
.entry-content { font-size: 19px; line-height: 1.75; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2 { margin-top: 1.6em; margin-bottom: 0.55em; scroll-margin-top: 24px; }
.entry-content h3 { margin-top: 1.4em; margin-bottom: 0.45em; scroll-margin-top: 24px; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content ul, .entry-content ol { margin-left: 1.25em; }
.entry-content strong { font-weight: 700; }
.entry-content .wp-block-image img { border-radius: var(--tdc-radius); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; border: 0; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--tdc-line); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--tdc-cream); font-weight: 700; }
.entry-content blockquote { border-left: 0; margin-left: 0; padding: 20px 24px; background: var(--tdc-blush); border-radius: var(--tdc-radius); font-family: var(--tdc-serif); font-size: 21px; font-style: normal; }
.entry-content details { border: 1px solid var(--tdc-line); border-radius: 14px; padding: 14px 18px; background: #fff; margin-bottom: 12px; }
.entry-content details summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.entry-content details summary::marker { color: var(--tdc-rose); }
.entry-content details[open] summary { margin-bottom: 8px; }
mark.tdc-task { background: #FFE58F; color: #5A3E00; padding: 1px 4px; border-radius: 4px; font-size: 0.85em; font-family: var(--tdc-sans); }

/* Jump to */
.tdc-toc { background: var(--tdc-cream); border-radius: var(--tdc-radius); padding: 20px 24px; margin-bottom: 28px; }
.tdc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 24px; }
.tdc-toc li { margin: 0; font-size: 16px; line-height: 1.4; }
.tdc-toc a { color: var(--tdc-ink); font-weight: 600; text-decoration: none; }
.tdc-toc a:hover { color: var(--tdc-rose); text-decoration: underline; }

/* Printable card around the download button */
.tdc-printable {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	align-items: center;
	background: var(--tdc-butter);
	border-radius: var(--tdc-radius-lg);
	padding: 24px;
	margin: 8px 0 32px;
}
.tdc-printable__preview { width: 200px; flex: none; }
.tdc-printable__preview img { width: 200px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(107, 78, 18, 0.15); display: block; }
.tdc-printable__body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.tdc-printable__label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6B4E12; }
.tdc-printable__title { font-family: var(--tdc-serif); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 0; }
.tdc-printable__note { font-size: 14px; line-height: 1.5; color: #4A4350; margin: 0; }
.tdc-printable .wp-block-buttons { margin: 6px 0 0; }
.tdc-printable .wp-block-button__link::before {
	content: "";
	width: 16px; height: 16px; flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 520px) {
	.tdc-printable { padding: 20px; }
	.tdc-printable__preview { display: none; }
	.tdc-printable .wp-block-button, .tdc-printable .wp-block-button__link { width: 100%; }
}

/* Reviewed-by and disclosure boxes */
.tdc-review { display: flex; gap: 12px; align-items: flex-start; background: var(--tdc-mist); color: #2F4537; border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.5; }
.tdc-review svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.tdc-disclosure { font-size: 14px; color: var(--tdc-muted); font-style: italic; }

/* Author box + related */
.tdc-author { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--tdc-line); padding-top: 24px; margin-top: 36px; }
.tdc-author img { width: 64px; height: 64px; border-radius: 999px; flex: none; }
.tdc-author__name { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.tdc-author__bio { font-size: 15px; line-height: 1.6; color: var(--tdc-muted); margin: 0; }
.tdc-related { margin-top: 40px; }
.tdc-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }

/* ------------------------------------------------------------------ cards (homepage, archives, related) */
.tdc-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--tdc-ink); }
.tdc-card:hover { color: var(--tdc-ink); }
.tdc-card:hover .tdc-card__title { color: var(--tdc-rose); }
.tdc-card__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--tdc-radius); background: var(--tdc-blush); }
.tdc-card__img--tall { aspect-ratio: 4 / 5; background: #fff; border: 1px solid #EADFC8; }
.tdc-card__title { font-family: var(--tdc-serif); font-weight: 600; font-size: 21px; line-height: 1.22; margin: 0; transition: color .15s; }
.tdc-card__text { display: flex; flex-direction: column; gap: 6px; }
.tdc-card--row { flex-direction: row; align-items: center; gap: 16px; }
.tdc-card--row .tdc-card__img { width: 104px; height: 104px; aspect-ratio: 1; flex: none; border-radius: 14px; }
.tdc-card--row .tdc-card__title { font-size: 19px; }
.tdc-card__ph { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: var(--tdc-radius); background: var(--tdc-blush); }

/* Archives */
.archive .page-header, .search .page-header { margin-bottom: 28px; }
.archive .page-title { font-size: clamp(32px, 4vw, 44px); }
.tdc-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 28px; }

/* ------------------------------------------------------------------ homepage */
.tdc-home section { padding-block: 32px; }
.tdc-band { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
.tdc-band--cream { background: var(--tdc-cream); padding-block: 48px; }
.tdc-home__hero { display: flex; flex-wrap: wrap; gap: 32px; }
.tdc-home__feature { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--tdc-ink); }
.tdc-home__feature img, .tdc-home__feature .tdc-card__ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--tdc-radius-lg); background: var(--tdc-blush); }
.tdc-home__feature h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; margin: 0; }
.tdc-home__feature p { margin: 0; font-size: 18px; color: var(--tdc-muted); max-width: 620px; }
.tdc-home__feature:hover h2 { color: var(--tdc-rose); }
.tdc-home__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.tdc-home h2.tdc-section-title { margin: 0 0 20px; font-size: clamp(26px, 3vw, 32px); }
.tdc-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tdc-section-head h2 { margin: 0; }
.tdc-section-head p { margin: 4px 0 0; color: var(--tdc-muted); }
.tdc-ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tdc-age { display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: var(--tdc-radius); text-decoration: none; color: var(--tdc-ink); background: var(--tdc-blush); transition: transform .15s; }
.tdc-age:nth-child(3n+2) { background: var(--tdc-butter); }
.tdc-age:nth-child(3n+3) { background: var(--tdc-mist); }
.tdc-age:hover { color: var(--tdc-ink); transform: translateY(-2px); }
.tdc-age strong { font-family: var(--tdc-serif); font-weight: 600; font-size: 21px; }
.tdc-age span { font-size: 14px; color: var(--tdc-muted); }
.tdc-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.tdc-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.tdc-signup { background: var(--tdc-blush); border-radius: 24px; padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; justify-content: space-between; }
.tdc-signup h2 { margin: 0 0 6px; }
.tdc-signup p { margin: 0; color: var(--tdc-muted); }
.tdc-signup form { display: flex; gap: 10px; flex: 1 1 340px; flex-wrap: wrap; }
.tdc-signup input[type=email] { flex: 1 1 220px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid #D9CBC2; background: #fff; font: inherit; font-size: 15px; }

/* ------------------------------------------------------------------ sidebar */
.sidebar .widget { padding: 0; margin-bottom: 28px; }
.tdc-side-signup { background: var(--tdc-blush); border-radius: var(--tdc-radius-lg); padding: 22px; }
.tdc-side-signup h2 { font-size: 22px; margin: 0 0 6px; }
.tdc-side-signup p { font-size: 15px; color: var(--tdc-muted); margin: 0 0 12px; }
.tdc-side-signup form { display: flex; flex-direction: column; gap: 10px; }
.tdc-side-signup input[type=email] { min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid #D9CBC2; background: #fff; font: inherit; font-size: 15px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 14px; text-decoration: none; color: var(--tdc-ink); border: 1px solid var(--tdc-line); }
.nav-links .page-numbers.current { background: var(--tdc-ink); color: #fff; border-color: var(--tdc-ink); }
.tdc-side-list { display: flex; flex-direction: column; gap: 14px; }
.tdc-side-list .tdc-card--row .tdc-card__img { width: 76px; height: 76px; border-radius: 12px; }
.tdc-side-list .tdc-card__title { font-size: 17px; }
.tdc-sticky { position: sticky; top: 24px; }

/* ------------------------------------------------------------------ ad slots */
/* Height is reserved before an ad loads, so the page never jumps (CLS). */
.tdc-ad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 28px auto; width: 100%; min-height: var(--tdc-ad-h, 280px); contain: layout; }
.tdc-ad::before { content: "Advertisement"; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #6E6676; }
.tdc-ad--content { --tdc-ad-h: 280px; }
.tdc-ad--leader { --tdc-ad-h: 120px; }
.tdc-ad--side { --tdc-ad-h: 600px; margin: 0; }
.tdc-ad--placeholder { border: 1.5px dashed #C9BDB3; background: var(--tdc-ad-bg); border-radius: 12px; }
.tdc-ad--placeholder::after { content: attr(data-size); font-size: 13px; color: var(--tdc-muted); }
@media (max-width: 768px) {
	.tdc-ad--content { --tdc-ad-h: 250px; }
	.tdc-ad--side { display: none; }
}

/* ------------------------------------------------------------------ footer */
.tdc-footer { background: var(--tdc-ink); color: #E9E3EC; }
.tdc-footer a { color: #E9E3EC; text-decoration: none; }
.tdc-footer a:hover { color: #fff; text-decoration: underline; }
.tdc-footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 48px 28px; }
.tdc-footer__brand { max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.tdc-footer__brand .tdc-logo__img { height: 36px; width: auto; align-self: flex-start; }
.tdc-footer__brand p { margin: 0; font-size: 14px; line-height: 1.6; color: #C9C0CF; }
.tdc-footer__nav { display: flex; gap: 48px; flex-wrap: wrap; font-size: 14px; }
.tdc-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tdc-footer__legal { border-top: 1px solid #45404D; padding-block: 20px 28px; font-size: 13px; line-height: 1.6; color: #B7AEBD; }
.tdc-footer__legal p { margin: 0 0 6px; }
.site-footer .site-info { display: none; } /* GeneratePress footer bar replaced by .tdc-footer */

/* ------------------------------------------------------------------ misc */
.tdc-404 { text-align: center; padding-block: 48px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
	.site-header, .tdc-footer, .tdc-ad, .sidebar, .tdc-related, .tdc-announce { display: none !important; }
	body { background: #fff; }
}

/* ------------------------------------------------------------------ pages (legal, about) */
.page:not(.home) .inside-article { max-width: 760px; }
.page .entry-content { font-size: 17px; line-height: 1.7; }
.page .entry-content h2 { font-size: 24px; }
