/*
Theme Name: Tide & Breath
Theme URI: https://example.com/tide-and-breath
Author: Tide & Breath
Description: A calm, coastal yoga & wellness theme with a floating header, level dropdown navigation, and gentle interactive animation. Homepage content is editable in Appearance > Customize > Tide & Breath Content.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tide-and-breath
Tags: custom-menu, custom-logo, featured-images, one-column, translation-ready, accessibility-ready
*/

/* ============ Tokens ============ */
:root {
	--cream: #f3ede1;
	--cream-2: #ece3d2;
	--paper: #f8f4ea;
	--green: #46604f;
	--green-d: #3a5243;
	--slate: #5b8299;
	--slate-l: #7a9db1;
	--mist: #8ba5b3;
	--sand: #dcc9a3;
	--ink: #33443a;
	--line: #d9cfba;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--script: "Caveat", "Segoe Script", cursive;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 76px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--cream); color: var(--ink);
	font-family: var(--serif); font-size: 20px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--green-d); }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--green); color: #fff; padding: 10px 16px; z-index: 300; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.eyebrow { font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; color: var(--ink); margin: 0 0 1.1rem; }
.eyebrow--light { color: #f3ede1; }

/* ============ Buttons ============ */
.btn {
	position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px;
	height: 46px; padding: 0 28px; border: 0; cursor: pointer; text-decoration: none;
	font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
	color: #fff; transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn--green { background: var(--green); border-radius: 3px; }
.btn--slate { background: var(--slate); border-radius: 999px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(40, 60, 50, .55); }
.btn--green:hover { background: var(--green-d); }
.btn--slate:hover { background: #4d7389; }
.btn .arrow { position: relative; width: 16px; height: 10px; transition: transform .35s var(--ease); }
.btn .arrow::before { content: ""; position: absolute; left: 0; right: 1px; top: 50%; height: 1px; background: currentColor; }
.btn .arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover .arrow { transform: translateX(5px); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ============ Floating header ============ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 210; background: linear-gradient(90deg, var(--green), var(--slate), var(--sand)); transform-origin: 0 50%; transform: scaleX(0); }
.site-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 200; padding: 0 clamp(10px, 2vw, 28px); pointer-events: none; transition: top .4s var(--ease); }
.admin-bar .site-header { top: 48px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 48px; } }
.site-header__bar {
	pointer-events: auto; position: relative; max-width: 1600px; margin: 0 auto; height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px 0 28px;
	background: rgba(243, 237, 225, .82); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
	border: 1px solid rgba(255,255,255,.55); border-radius: 22px;
	box-shadow: 0 10px 34px -16px rgba(43, 62, 52, .35);
	transition: height .4s var(--ease), background .4s, box-shadow .4s;
}
.site-header.is-scrolled { top: 8px; }
.admin-bar .site-header.is-scrolled { top: 40px; }
.site-header.is-scrolled .site-header__bar { --header-h: 62px; height: 62px; background: rgba(243, 237, 225, .93); box-shadow: 0 14px 40px -14px rgba(43, 62, 52, .45); }

.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-d); flex: none; }
.site-brand .custom-logo { max-height: 46px; width: auto; }
.tb-wave { width: 54px; height: 38px; color: var(--green); transition: transform .8s var(--ease); }
.site-brand:hover .tb-wave { transform: rotate(-8deg) scale(1.06); }
.site-brand__text { display: flex; flex-direction: column; line-height: 1; }
.site-brand__name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.site-brand__tag { font-family: var(--sans); font-size: .5rem; letter-spacing: .26em; text-transform: uppercase; margin-top: 6px; color: var(--ink); text-align: center; }
.site-brand__tag:empty { display: none; }

/* ---- Navigation: every top-level item shares one box model, so items with dropdowns sit on the same line ---- */
.main-nav { display: flex; align-items: center; gap: 10px; flex: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; align-items: center; gap: 2px; }
.main-nav .menu > li { position: relative; display: flex; align-items: center; margin: 0; padding: 0; }
.main-nav .menu > li > a {
	position: relative; display: inline-flex; align-items: center; height: 46px; padding: 0 12px; margin: 0;
	font-family: var(--sans); font-size: .68rem; font-weight: 400; letter-spacing: .14em; line-height: 1; text-transform: uppercase;
	text-decoration: none; color: var(--ink); white-space: nowrap; transition: color .3s;
}
.main-nav .menu > li > a::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px; background: var(--slate); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.main-nav .menu > li:hover > a::before,
.main-nav .menu > li:focus-within > a::before,
.main-nav .menu > li.current-menu-item > a::before,
.main-nav .menu > li.current-menu-ancestor > a::before,
.main-nav .menu > li.current_page_item > a::before { transform: scaleX(1); }
.main-nav .menu > li > a:hover { color: var(--slate); }
/* dropdown caret — drawn with a border so it never changes line height */
.main-nav .menu-item-has-children > a::after {
	content: ""; flex: none; width: 5px; height: 5px; margin: -3px 0 0 9px;
	border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
	transform: rotate(45deg); transition: transform .3s var(--ease);
}
.main-nav .menu-item-has-children:hover > a::after,
.main-nav .menu-item-has-children.is-open > a::after { transform: rotate(225deg); margin-top: 3px; }
.sub-toggle { display: none; }

.main-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 50%; min-width: 220px; padding: 10px; z-index: 5;
	background: rgba(248, 244, 234, .97); border: 1px solid var(--line); border-radius: 16px;
	box-shadow: 0 22px 44px -20px rgba(43, 62, 52, .5);
	opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.main-nav .menu > li:hover > .sub-menu,
.main-nav .menu > li:focus-within > .sub-menu,
.main-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .sub-menu li { margin: 0; }
.main-nav .sub-menu a {
	display: block; padding: 11px 16px; border-radius: 10px; text-decoration: none; white-space: nowrap;
	font-family: var(--sans); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
	transition: background .25s, padding-left .3s var(--ease), color .25s;
}
.main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus-visible { background: var(--cream-2); color: var(--slate); padding-left: 22px; }
.main-nav__cta { flex: none; margin-left: 4px; height: 44px; padding: 0 22px; }
@media (min-width: 1700px) {
	.main-nav .menu > li > a { padding: 0 16px; letter-spacing: .18em; }
	.main-nav .menu > li > a::before { left: 16px; right: 16px; }
	.site-brand__name { font-size: 1.55rem; letter-spacing: .18em; }
}

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 13px; width: 20px; height: 1.5px; background: var(--green-d); transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle__bars { top: 22px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Collapsed (hamburger) mode: JS adds .is-collapsed only when the full menu would not fit inside the bar. */
.js .site-header:not(.is-measured) .main-nav { visibility: hidden; }
.is-collapsed .nav-toggle { display: block; }
.is-collapsed .main-nav {
	position: absolute; left: 0; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 10px;
	padding: 16px; max-height: calc(100vh - 130px); overflow-y: auto;
	background: rgba(248, 244, 234, .98); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 50px -20px rgba(43,62,52,.5);
	opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.is-collapsed .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.is-collapsed .main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
.is-collapsed .main-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.is-collapsed .main-nav .menu > li > a { flex: 1; height: 54px; padding: 0 12px; }
.is-collapsed .main-nav .menu > li > a::before { display: none; }
.is-collapsed .main-nav .menu-item-has-children > a::after { display: none; }
.is-collapsed .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.is-collapsed .sub-toggle::before { content: ""; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); margin-top: -3px; }
.is-collapsed .is-open > .sub-toggle::before { transform: rotate(225deg); margin-top: 3px; }
.is-collapsed .main-nav .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.is-collapsed .main-nav .sub-menu::before { display: none; }
.is-collapsed .main-nav .menu > li:hover > .sub-menu, .is-collapsed .main-nav .menu > li:focus-within > .sub-menu { transform: none; }
.is-collapsed .main-nav .menu > li.is-open > .sub-menu { max-height: 400px; padding-bottom: 10px; }
.is-collapsed .main-nav__cta { justify-content: center; margin: 4px 0 0; }

/* ============ Hero ============ */
.hero { position: relative; min-height: min(100vh, 780px); padding: calc(var(--header-h) + 90px) clamp(24px, 8vw, 140px) 110px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(115deg, #f1e9da 0%, #f0e2cf 45%, #ecd4b6 100%); }
.hero__sky { position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 40%, rgba(255, 224, 186, .55), transparent 70%); }
.hero__media { position: absolute; top: -8%; bottom: -8%; right: 0; width: 76%; will-change: transform; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.42) 9%, #000 28%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.42) 9%, #000 28%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.hero__sun { position: absolute; right: 12%; top: 22%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 170, .55), transparent 68%); mix-blend-mode: soft-light; animation: sunpulse 9s ease-in-out infinite; pointer-events: none; }
@keyframes sunpulse { 50% { transform: scale(1.25); opacity: .6; } }
.hero__inner { position: relative; z-index: 2; max-width: 520px; }
.hero__eyebrow { max-width: 260px; line-height: 1.7; }
.hero__title { color: var(--green-d); margin-bottom: .45em; }
.hero__text { max-width: 330px; font-size: 1.28rem; line-height: 1.5; margin-bottom: 1.8rem; color: #3b4a41; }
.script-note { position: absolute; font-family: var(--script); font-weight: 500; line-height: .95; color: var(--slate); margin: 0; transform: rotate(-7deg); }
.script-note__heart { display: block; font-size: .8em; margin-top: 4px; transform-origin: center; animation: heart 3.2s ease-in-out infinite; }
@keyframes heart { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.hero__note { z-index: 3; right: clamp(20px, 6.5%, 110px); top: 24%; font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: #4b6f7b; }

/* Breathe-with-me widget */
.breathe { position: relative; z-index: 4; margin: 52px 0 24px 14px; width: 92px; height: 92px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: #fff; }
.breathe__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.breathe__ring--2 { inset: 12px; background: rgba(255,255,255,.2); }
.breathe__ring--1 { inset: 24px; background: rgba(91,130,153,.85); border-color: transparent; }
.breathe__label { position: relative; font-family: var(--sans); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; text-align: center; line-height: 1.35; max-width: 64px; }
.breathe:hover .breathe__ring--3 { transform: scale(1.08); }
.breathe__ring { transition: transform .5s var(--ease); }
.breathe.is-active .breathe__ring { animation: breathe 10s ease-in-out infinite; }
.breathe.is-active .breathe__ring--2 { animation-delay: .12s; }
.breathe.is-active .breathe__ring--3 { animation-delay: .24s; }
@keyframes breathe { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 50% { transform: scale(1.6); } 100% { transform: scale(1); } }
.hero.is-breathing .hero__sun { animation: sunbreathe 10s ease-in-out infinite; }
@keyframes sunbreathe { 0%, 100% { transform: scale(1); opacity: .8; } 40%, 50% { transform: scale(2.1); opacity: 1; } }

/* Hero entrance */
.js .hero__eyebrow, .js .hero__text, .js .hero .btn { opacity: 0; animation: fadeup .9s var(--ease) forwards; }
.js .hero__eyebrow { animation-delay: .1s; }
.js .hero__text { animation-delay: .75s; }
.js .hero .btn { animation-delay: .95s; }
.js .hero__note, .js .breathe { opacity: 0; animation: fadein 1.4s ease 1.3s forwards; }
@keyframes fadeup { from { translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes fadein { to { opacity: 1; } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(108%); animation: rise 1s var(--ease) forwards; animation-delay: calc(.2s + var(--d) * 110ms); }
@keyframes rise { to { transform: none; } }

/* ============ Benefits band ============ */
.benefits { background: var(--green); color: #f3ede1; padding: 40px 20px 34px; }
.benefits__list { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 12px; transition: transform .45s var(--ease); }
.benefit + .benefit::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 6px; width: 1px; background: rgba(243,237,225,.28); }
.benefit .tb-icon { width: 46px; height: 46px; transition: transform .6s var(--ease); }
.benefit__label { font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }
.benefit:hover { transform: translateY(-5px); }
.benefit:hover .tb-icon { transform: rotate(-8deg) scale(1.1); }
.js .benefit .tb-icon path, .js .benefit .tb-icon circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s ease calc(var(--i) * .18s); }
.js .benefit.is-in .tb-icon path, .js .benefit.is-in .tb-icon circle { stroke-dashoffset: 0; }

/* ============ About ============ */
.about { background: var(--cream); padding: 26px clamp(20px, 6vw, 60px) 34px; }
.about__inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 5fr 6fr; align-items: center; gap: clamp(28px, 6vw, 80px); }
.about__media { position: relative; }
.about__photo { overflow: hidden; box-shadow: 0 26px 40px -30px rgba(40, 60, 50, .7); }
.about__photo img { width: 100%; aspect-ratio: 322 / 229; object-fit: cover; transition: transform 1.4s var(--ease); }
.about__media:hover .about__photo img { transform: scale(1.06); }
.about__media .tb-sprig { position: absolute; left: -46px; bottom: -34px; width: 74px; color: var(--green); transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.about__copy h2 { margin-bottom: .4em; }
.about__copy p:not(.eyebrow) { max-width: 30em; font-size: 1.22rem; line-height: 1.55; margin-bottom: 1.6rem; }

/* ============ Classes ============ */
.classes { background: var(--mist); padding: 62px clamp(16px, 4vw, 60px) 58px; text-align: center; }
.classes__inner { max-width: 1240px; margin: 0 auto; }
.classes h2 { color: #f6f1e6; margin-bottom: 1.2em; }
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; perspective: 1000px; }
.class-card { display: block; text-decoration: none; height: 100%; box-shadow: 0 16px 30px -22px rgba(30, 50, 60, .8); transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--ty, 0)); transition: transform .5s var(--ease), box-shadow .5s; transform-style: preserve-3d; }
.class-card.is-tilting { transition: transform .12s linear, box-shadow .5s; }
.class-card:hover, .class-card:focus-visible { --ty: -8px; box-shadow: 0 30px 40px -24px rgba(30, 50, 60, .85); }
.class-card__img { display: block; overflow: hidden; aspect-ratio: 206 / 126; }
.class-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.class-card:hover .class-card__img img, .class-card:focus-visible .class-card__img img { transform: scale(1.12); }
.class-card__label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px 22px; line-height: 1; }
.class-card__label strong { font-family: var(--sans); font-weight: 400; font-size: .9rem; letter-spacing: .26em; text-transform: uppercase; }
.class-card__label em { font-style: normal; font-family: var(--sans); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; position: relative; padding-bottom: 7px; }
.class-card__label em::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width .5s var(--ease), left .5s var(--ease); }
.class-card:hover em::after, .class-card:focus-visible em::after { width: 100%; left: 0; }
.class-card--green .class-card__label { background: var(--green); color: #f3ede1; }
.class-card--slate .class-card__label { background: var(--slate-l); color: #f3ede1; }
.class-card--sand .class-card__label { background: var(--sand); color: #46604f; }

/* ============ Quote ============ */
.quote { position: relative; overflow: hidden; min-height: 190px; display: grid; place-items: center start; padding: 44px clamp(22px, 6vw, 110px); text-align: left; color: #f3ede1; }
.quote__bg { position: absolute; top: -25%; bottom: -25%; left: 0; right: 0; background-size: cover; background-position: center; will-change: transform; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(48, 78, 96, .55), rgba(66, 98, 116, .22) 65%); }
.quote blockquote { position: relative; z-index: 2; margin: 0; max-width: 560px; }
.quote p { font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.35; margin-bottom: .8em; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; }

/* ============ Newsletter ============ */
.join { background: var(--cream); padding: 30px clamp(20px, 5vw, 60px) 36px; }
.join__inner { position: relative; max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: auto 1.1fr 1fr auto; align-items: center; gap: clamp(16px, 4vw, 48px); }
.join .tb-sprig { width: 44px; color: var(--green); transform: rotate(-14deg); animation: sway 8s ease-in-out infinite; transform-origin: 50% 100%; }
.join h2 { font-size: 2rem; margin-bottom: .15em; }
.join__copy p { font-size: 1rem; line-height: 1.4; margin: 0; max-width: 24em; }
.signup { display: flex; align-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); transition: box-shadow .3s, border-color .3s; }
.signup:focus-within { border-color: var(--slate); box-shadow: 0 0 0 4px rgba(91, 130, 153, .18); }
.signup input[type="email"] { flex: 1; min-width: 0; height: 44px; padding: 0 20px; border: 0; background: transparent; font-family: var(--serif); font-size: 1rem; color: var(--ink); outline: none; }
.join__msg { margin: 0; font-style: italic; color: var(--green); animation: fadeup .8s var(--ease) both; }
.join__msg--error { color: #9c4b3b; margin-top: 8px; font-size: .95rem; }
.join__note { position: static; font-size: 1.5rem; text-align: center; transform: rotate(-8deg); }

/* ============ Footer ============ */
.site-footer { background: var(--green); color: #f3ede1; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 60px) 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.social { display: flex; gap: 22px; }
.social a { display: inline-flex; width: 22px; height: 22px; transition: transform .4s var(--ease), opacity .3s; opacity: .95; }
.social a:hover { transform: translateY(-4px) scale(1.15); opacity: 1; }
.social svg { width: 100%; height: 100%; }
.site-footer__words { margin: 0; font-family: var(--sans); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; }
.site-footer__words .sep { margin: 0 12px; opacity: .8; }
.site-footer__lotus { justify-self: end; width: 42px; height: 42px; transition: transform .8s var(--ease); }
.site-footer__lotus:hover { transform: rotate(12deg) scale(1.12); }
.site-footer__lotus svg { width: 100%; height: 100%; }
.site-footer__legal { margin: 0; padding: 14px 20px 22px; text-align: center; font-family: var(--sans); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.site-footer svg.tb-icon path { stroke-dasharray: none; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: var(--green); color: #f3ede1; display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(30, 50, 40, .6); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8); transition: opacity .35s, transform .45s var(--ease), visibility .35s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px) rotate(-10deg); }
.to-top svg { width: 24px; height: 24px; }

/* ============ Scroll reveal ============ */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .benefit[data-reveal].is-in:hover { transform: translateY(-5px); }

/* ============ Inner pages ============ */
.page-hero { padding: calc(var(--header-h) + 90px) 24px 50px; text-align: center; background: linear-gradient(180deg, #ecdfca, var(--cream)); }
.page-hero__inner { max-width: 860px; margin: 0 auto; }
.page-hero h1 { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.page-hero .eyebrow a { text-decoration: none; }
.content-wrap { max-width: 780px; margin: 0 auto; padding: 40px 24px 90px; }
.content-wrap--wide { max-width: 1180px; }
.entry__thumb { margin: 0 0 2rem; overflow: hidden; border-radius: 4px; }
.entry__content { font-size: 1.22rem; line-height: 1.7; }
.entry__content a { color: var(--slate); text-underline-offset: 3px; }
.entry__content img { border-radius: 4px; }
.entry__content blockquote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--sand); font-style: italic; font-size: 1.35rem; }
.alignwide { max-width: 1100px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.post-card { display: block; height: 100%; text-decoration: none; background: var(--paper); box-shadow: 0 16px 30px -24px rgba(30,50,40,.7); transition: transform .5s var(--ease), box-shadow .5s; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 28px 38px -26px rgba(30,50,40,.8); }
.post-card__img { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); color: var(--green); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.07); }
.post-card__img .tb-icon { width: 54px; height: 54px; }
.post-card__body { display: block; padding: 22px 22px 26px; }
.post-card__body strong { display: block; font-size: 1.5rem; font-weight: 500; line-height: 1.15; margin-bottom: .4em; color: var(--green-d); }
.post-card__body > span:last-child { font-size: 1.02rem; line-height: 1.5; }
.pagination, .post-navigation { margin-top: 3rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.pagination .nav-links, .post-navigation .nav-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--green); color: #fff; border-color: var(--green); }
.search-form { display: flex; gap: 8px; margin: 1.5rem auto; max-width: 480px; }
.search-form input[type="search"], .comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; }
.search-form input[type="submit"], .comment-form input[type="submit"] { padding: 0 24px; height: 46px; border: 0; border-radius: 999px; background: var(--slate); color: #fff; font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.comments-area { margin-top: 4rem; font-size: 1.05rem; }
.comment-list { list-style: none; padding: 0; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
	.class-grid { grid-template-columns: repeat(2, 1fr); }
	.join__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.join .tb-sprig { display: none; }
	.join__form { width: 100%; max-width: 480px; }
	.join__note { display: none; }
	.join__copy p { margin: 0 auto; }
}
@media (max-width: 860px) {
	.hero { padding-top: calc(var(--header-h) + 60px); min-height: 0; align-items: flex-start; padding-bottom: 300px; }
	.hero__media { width: 100%; top: auto; bottom: 0; height: 58%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40%); mask-image: linear-gradient(180deg, transparent 0, #000 40%); }
	.hero__note { top: auto; bottom: 34%; right: 18px; }
	.about__inner { grid-template-columns: 1fr; }
	.about__media .tb-sprig { left: -8px; }
	.benefits__list { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
	.benefit:nth-child(3)::before { display: none; }
	.site-footer__inner { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
	.site-footer__lotus { justify-self: center; }
}
@media (max-width: 520px) {
	body { font-size: 18px; }
	.class-grid { grid-template-columns: 1fr; }
	.site-header__bar { padding: 0 12px 0 18px; }
	.site-brand__name { font-size: 1.05rem; letter-spacing: .14em; }
	.quote blockquote { max-width: 62%; }
	.quote p { font-size: 1.12rem; }
	.tb-wave { width: 42px; }
	.signup { flex-direction: column; border-radius: 22px; padding: 6px; }
	.signup .btn { width: 100%; justify-content: center; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js [data-reveal], .js .hero__eyebrow, .js .hero__text, .js .hero .btn, .js .hero__note, .js .breathe { opacity: 1; transform: none; }
	.w > span { transform: none; }
	.js .benefit .tb-icon path, .js .benefit .tb-icon circle { stroke-dashoffset: 0; }
}
