/*
Theme Name: Time Tamers
Theme URI: https://timetamers.com/
Author: Dr. Monti
Description: Time Tamers picture books and shop, by Dr. Monti.
Version:
Requires at least: 6.5
Requires PHP:
Text Domain: timetamers
*/

:root {
	--ink: #1c2822;
	--muted: #5c6b62;
	--paper: #f7f3ea;
	--card: #fffdf8;
	--leaf: #2d6a4f;
	--leaf-dark: #1b4332;
	--clay: #c46b4a;
	--line: #e4dccb;
	--soon: #8a6a2f;
	--max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
	font-size: 1.05rem;
	line-height: 1.6;
}
a { color: var(--leaf-dark); }
img { max-width: 100%; height: auto; }
.skip-link {
	position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 8px; background: #fff; padding: 8px; z-index: 9; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header {
	background: var(--card);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 5;
}
.header-row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding: 14px 0;
}
.brand { text-decoration: none; color: var(--ink); }
.brand strong { display: block; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand span { display: block; color: var(--muted); font-size: 0.85rem; }
.menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a { text-decoration: none; font-weight: 600; }
.menu a:hover { color: var(--clay); }
.hero {
	display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px;
	align-items: center; padding: 36px 0 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 12px; }
.lede { font-size: 1.15rem; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
	display: inline-block; text-decoration: none; border-radius: 999px;
	padding: 10px 16px; background: var(--leaf); color: #fff; font-weight: 700;
}
.btn.alt { background: transparent; color: var(--leaf-dark); border: 1px solid var(--leaf); }
.hero-card {
	background: var(--card); border: 1px solid var(--line); border-radius: 18px;
	padding: 12px; box-shadow: 0 10px 30px rgba(28, 40, 34, 0.06);
}
.hero-card img { border-radius: 12px; display: block; }
.section { padding: 18px 0 8px; }
.section h2 { font-size: 1.7rem; margin-bottom: 8px; }
.books { display: grid; gap: 12px; }
.book {
	background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.book h3 { margin: 0 0 6px; font-size: 1.15rem; }
.note { color: var(--muted); font-size: 0.95rem; }
.site-footer {
	margin-top: 36px; border-top: 1px solid var(--line); background: #efe8da; padding: 22px 0 32px;
}
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; max-width: 100%; }
.footer-links li, .footer-links a { min-width: 0; }
/* sec-live-flip-all-footer */
.page-content, .entry { padding: 28px 0 10px; }
.page-content h1, .entry h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.4em; }
.chart-preview { max-width: 420px; border-radius: 12px; border: 1px solid var(--line); }
.form-card {
	background: var(--card); border: 1px solid var(--line); border-radius: 16px;
	padding: 16px; max-width: 460px; margin: 16px 0;
}
label { display: block; font-weight: 700; margin: 10px 0 4px; }
input[type="email"], input[type="text"], textarea {
	width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
	font: inherit; background: #fff;
}
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; margin: 12px 0; }
.check input { margin-top: 4px; }
.form-card button, button.btn { border: 0; cursor: pointer; font: inherit; }
.form-card button:disabled { opacity: 0.45; cursor: not-allowed; }
.staging-note { background: #fff6df; border: 1px solid #ead7a2; border-radius: 10px; padding: 10px 12px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.product-card {
	background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
	display: flex; flex-direction: column; gap: 6px;
}
.product-card img { border-radius: 8px; }
.badge {
	display: inline-block; background: #f3e6c4; color: var(--soon);
	border-radius: 999px; padding: 2px 8px; font-size: 0.8rem; font-weight: 700;
}
.planned { color: var(--muted); text-decoration: none; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; list-style: none; padding: 0; }
.woocommerce ul.products li.product { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.woocommerce a.button, .woocommerce button.button {
	background: var(--leaf); color: #fff; border-radius: 999px; padding: 8px 12px;
}
@media (max-width: 800px) {
	.hero { grid-template-columns: 1fr; padding-top: 18px; }
	.header-row { align-items: flex-start; flex-direction: column; }
	.menu { gap: 12px; }
}

/* fix21-related: related products use the content width */
.tt-form-error {
	background: #fff1f0;
	border: 1px solid #e7b4b0;
	color: #6d1f1a;
	border-radius: 10px;
	padding: 10px 12px;
	font-weight: 700;
}
.single-product section.related.products {
	display: block;
	width: 100%;
	max-width: 100%;
	float: none;
	clear: both;
	align-self: stretch;
}
.single-product section.related ul.products,
.single-product .related ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 16px 0 0 !important;
	gap: 14px;
}
.single-product section.related ul.products li.product,
.single-product .related ul.products li.product {
	width: auto !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	min-width: 0;
}
@media (max-width: 700px) {
	.single-product section.related ul.products,
	.single-product .related ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* fix22-grid: shop and category cards fill their grid track */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	justify-self: stretch;
	box-sizing: border-box;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button {
	float: none !important;
	display: inline-block;
	max-width: 100%;
	box-sizing: border-box;
	white-space: normal;
}

/* sec-live-l2-20261029: free-chart submit only. 1.6x 13.3333px, padding +14px. */
#tt-free-chart-optin button[type="submit"] {
	font-size: 21.3333px;
	line-height: 1.25;
	padding: 15px 20px;
	max-width: 100%;
	box-sizing: border-box;
	white-space: normal;
}
