/* ==========================================================================
   The Old Tree Series landing page (page-templates/old-tree-series.php)
   Brand teals + a deep "storybook night" blue taken from the covers.
   ========================================================================== */

.ot { --ot-section: clamp(64px, 9vw, 112px); }
.ot p { max-width: var(--measure); }
.ot-dark { background: var(--c-deep); color: #e6f1f5; }
.ot-dark a:not(.btn) { color: #fff; }

/* Shared type ------------------------------------------------------------- */
.ot-kicker,
.ot-eyebrow {
	margin: 0 0 12px;
	color: var(--c-link);
	font-family: var(--f-alt);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
}
.ot-dark .ot-eyebrow, .ot-dark .ot-kicker { color: var(--c-gold); }
.ot-h2 { margin: 0 0 20px; color: var(--c-text); font-family: var(--f-serif); font-size: var(--fs-h2); font-weight: 400; line-height: 1.25; }
.ot-section-head { max-width: 720px; margin: 0 0 clamp(32px, 5vw, 56px); }
.ot-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; color: var(--c-link); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.ot-link::after { content: "\2192"; margin-left: 6px; text-decoration: none; }

.ot-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 28px; }
.ot-actions--center { justify-content: center; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: var(--fs-xs); }
.ot-btn-gold { background: var(--c-gold); color: var(--c-deep); }
.ot-btn-gold:hover, .ot-btn-gold:focus-visible { background: #fff; color: var(--c-deep); }
.ot-btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.ot-btn-outline-light:hover, .ot-btn-outline-light:focus-visible { background: #fff; color: var(--c-deep); }

/* Hero -------------------------------------------------------------------- */
.ot-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
	background:
		radial-gradient(60% 70% at 85% 30%, rgba(62, 170, 205, .28), transparent 70%),
		var(--c-deep);
}
.ot-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.ot-hero__title { margin: 0 0 20px; color: #fff; font-family: var(--f-serif); font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); font-weight: 400; line-height: 1.08; }
.ot-hero__lede { margin: 0 0 16px; color: #fff; font-size: var(--fs-lead); line-height: 1.5; }
.ot-hero__text { margin: 0; color: #cfe3ea; }
.ot-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 36px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .2); list-style: none; color: #cfe3ea; font-size: var(--fs-small); line-height: 1.4; }
.ot-facts li { margin: 0; }
.ot-facts strong { display: block; color: #fff; font-size: 1.375rem; font-weight: 600; }

.ot-hero__covers { position: relative; width: 100%; max-width: 560px; aspect-ratio: 10 / 8.6; margin: 0 auto; }
.ot-cover {
	position: absolute;
	top: 6%;
	width: 46%;
	height: auto;
	aspect-ratio: 5 / 8;
	object-fit: cover;
	border-radius: 3px 8px 8px 3px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
}
.ot-cover--1 { top: 0; left: 27%; z-index: 3; }
.ot-cover--2 { left: 1%; z-index: 2; transform: rotate(-8deg); }
.ot-cover--3 { right: 1%; z-index: 1; transform: rotate(8deg); }

/* Intro ------------------------------------------------------------------- */
.ot-intro { padding: var(--ot-section) 0; background: #fff; }
.ot-intro__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ot-intro__facts { padding: clamp(24px, 3vw, 36px); border-top: 4px solid var(--c-teal); border-radius: 0 0 10px 10px; background: var(--c-bg); }
.ot-facts-card__title { margin: 0 0 16px; font-size: var(--fs-h4); font-weight: 600; }
.ot-dl { margin: 0; }
.ot-dl > div { padding: 14px 0; border-top: 1px solid #d5e3e8; }
.ot-dl > div:first-child { border-top: 0; padding-top: 0; }
.ot-dl dt { margin: 0 0 2px; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ot-dl dd { margin: 0; font-size: var(--fs-small); line-height: 1.55; }
.ot-dl a { text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }

/* Books ------------------------------------------------------------------- */
.ot-books { padding: var(--ot-section) 0; background: var(--c-bg); }
.ot-book-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ot-book { margin: 0; }
.ot-book > article { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(11, 59, 82, .08), 0 8px 24px rgba(11, 59, 82, .06); }
.ot-book__cover { display: block; background: var(--c-deep); }
.ot-book__cover img { display: block; width: 100%; aspect-ratio: 5 / 8; object-fit: cover; transition: transform .4s; }
.ot-book__cover:hover img { transform: scale(1.02); }
.ot-book__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: clamp(20px, 2.5vw, 28px); }
.ot-book__num { margin: 0 0 6px; color: var(--c-link); font-family: var(--f-alt); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.ot-book__title { margin: 0 0 8px; font-family: var(--f-serif); font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); font-weight: 400; line-height: 1.3; }
.ot-book__title a { color: var(--c-text); }
.ot-book__title a:hover { color: var(--c-link); }
.ot-book__rating { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--c-muted); font-size: var(--fs-xs); }
.ot-book__rating .stars { margin: 0; gap: 3px; }
.ot .star { width: 16px; height: 16px; }
.ot .star.is-on { fill: #b07d00; }
.ot-book__synopsis { flex: 1 1 auto; margin: 0 0 20px; font-size: var(--fs-small); line-height: 1.65; }
.ot-book__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* Book One: wide, side-by-side feature across the full row. */
.ot-book--featured { grid-column: 1 / -1; }
.ot-book--featured > article { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); }
.ot-book--featured .ot-book__body { justify-content: center; padding: clamp(28px, 5vw, 64px); }
.ot-book--featured .ot-book__title { font-size: var(--fs-h2); }
.ot-book--featured .ot-book__synopsis { flex: none; font-size: var(--fs-lead); line-height: 1.6; }
.ot-book--featured .ot-book__num::after { content: " · Start here"; color: var(--c-muted); }

/* Learning ---------------------------------------------------------------- */
.ot-learn { padding: var(--ot-section) 0; background: var(--c-teal-wash); }
.ot-learn__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ot-learn__intro { position: sticky; top: 32px; }
.ot-accordion { display: grid; gap: 12px; }
.ot-accordion__item { border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(11, 59, 82, .08); }
.ot-accordion__item summary {
	display: flex; align-items: center; gap: 16px;
	min-height: 64px; padding: 14px 56px 14px 18px;
	position: relative; cursor: pointer; list-style: none;
	font-size: 1.125rem; font-weight: 600; line-height: 1.35;
}
.ot-accordion__item summary::-webkit-details-marker { display: none; }
.ot-accordion__item summary::after {
	content: ""; position: absolute; right: 22px; top: 50%;
	width: 10px; height: 10px; margin-top: -7px;
	border-right: 2px solid var(--c-link); border-bottom: 2px solid var(--c-link);
	transform: rotate(45deg); transition: transform .2s;
}
.ot-accordion__item[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.ot-accordion__item summary:hover { color: var(--c-link); }
.ot-accordion__num { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-deep); color: #fff; font-family: var(--f-serif); font-size: 1rem; font-weight: 400; }
.ot-accordion__item p { margin: 0; padding: 0 22px 22px 70px; font-size: var(--fs-small); line-height: 1.7; }

/* Reviews ----------------------------------------------------------------- */
.ot-reviews { padding: var(--ot-section) 0; background: #fff; }
.ot-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.ot-quote { display: flex; flex-direction: column; margin: 0; padding-top: 24px; border-top: 3px solid var(--c-teal); }
.ot-quote .stars { margin: 0 0 16px; }
.ot-quote blockquote { flex: 1 1 auto; margin: 0 0 20px; }
.ot-quote blockquote p { margin: 0; font-family: var(--f-serif); font-size: 1.125rem; font-weight: 300; line-height: 1.75; }
.ot-quote blockquote p::before { content: "\201C"; }
.ot-quote blockquote p::after { content: "\201D"; }
.ot-quote figcaption { font-size: var(--fs-small); line-height: 1.4; }
.ot-quote__name { display: block; font-weight: 700; }
.ot-quote__book { color: var(--c-muted); }

/* Author ------------------------------------------------------------------ */
.ot-author { padding: var(--ot-section) 0; background: var(--c-bg); }
.ot-author__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ot-author__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 42% 30%; border-radius: 10px; }

/* Closing CTA ------------------------------------------------------------- */
.ot-cta { padding: clamp(64px, 8vw, 104px) 0; text-align: center; }
.ot-cta__inner p { margin: 0 auto; color: #cfe3ea; font-size: var(--fs-lead); }
.ot-cta__title { margin: 0 0 16px; color: #fff; font-family: var(--f-serif); font-size: var(--fs-h2); font-weight: 400; }

/* Tablet ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.ot-book-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ot-learn__grid { grid-template-columns: 1fr; }
	.ot-learn__intro { position: static; }
	.ot-quotes { grid-template-columns: 1fr; max-width: var(--measure); }
}

/* Phone ------------------------------------------------------------------- */
@media (max-width: 767px) {
	.ot-hero__grid, .ot-intro__grid, .ot-author__grid { grid-template-columns: 1fr; }
	.ot-hero__covers { order: -1; max-width: 340px; }
	.ot-actions .btn { flex: 1 1 100%; }
	.ot-facts { gap: 16px 24px; }
	.ot-facts li { flex: 1 1 40%; }

	/* Books become compact rows: small cover beside the text. */
	.ot-book-list { grid-template-columns: 1fr; gap: 16px; }
	.ot-book > article,
	.ot-book--featured > article { display: grid; align-items: start; }
	.ot-book__cover { align-self: start; margin: 16px 0 16px 16px; border-radius: 3px 6px 6px 3px; overflow: hidden; box-shadow: 0 4px 12px rgba(11, 59, 82, .2); }
	.ot-book > article, .ot-book--featured > article { grid-template-columns: 112px minmax(0, 1fr); }
	.ot-eyebrow { letter-spacing: .08em; }
	.ot-book__body, .ot-book--featured .ot-book__body { padding: 16px 16px 12px; }
	.ot-book--featured .ot-book__title { font-size: 1.5rem; }
	.ot-book--featured .ot-book__synopsis { font-size: var(--fs-body); }
	.ot-book__synopsis { margin-bottom: 12px; }
	.ot-book__actions { gap: 4px 12px; }
	.ot-book__actions .btn { width: 100%; }

	.ot-accordion__item p { padding: 0 18px 20px; }
	.ot-author__photo { order: -1; }
}
