/* ==========================================================================
   Tasty Crochet — child theme styles
   Loaded via wp_enqueue_style() in functions.php, because theme.json's
   top-level `styles.css` accepts raw CSS only and cannot reference a file.
   --------------------------------------------------------------------------
   1.  Fonts
   2.  Design tokens
   3.  Base
   4.  Typography
   5.  Layout primitives
   6.  Components
   7.  Accessibility
   8.  Motion
   9.  Responsive
   ========================================================================== */

/* 1. Fonts ================================================================ */

@font-face {
	font-family: "DM Serif Display";
	src: url("../fonts/dm-serif-display-400-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "DM Serif Display";
	src: url("../fonts/dm-serif-display-400-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Lato";
	src: url("../fonts/lato-400-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Lato";
	src: url("../fonts/lato-400-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Lato";
	src: url("../fonts/lato-700-latin.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Lato";
	src: url("../fonts/lato-700-latin-ext.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Design tokens ======================================================== */

:root {
	/* Palette — locked. Every text pair below clears WCAG AA on its surface.
	   --coral and --taupe are decorative only and deliberately never used
	   for small text; see tests/test_tastycrochet_theme.py. */
	--teal: #04474e;
	--coral: #dd4b32;
	--coral-text: #b3341e;
	--coral-btn: #c63921;
	--coral-light: #e3705a;
	--brick: #9f2419;
	--taupe: #a87a65;
	--taupe-text: #7a5341;
	--ink: #302a2c;
	--ink-deep: #1e1e1e;
	--cream: #f7ede1;
	--blush: #f0dacc;
	--shell: #f5f5f5;
	--paper: #ffffff;

	/* Type */
	--font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
	--font-body: Lato, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial,
		sans-serif;

	--fs-hero: 34px;
	--fs-h1: 26.4px;
	--fs-h2: 28px;
	--fs-h3: 24px;
	--fs-body: 22px;
	--fs-btn: 16px;
	--fs-small: 15px;

	--lh-tight: 1.18;
	--lh-heading: 1.15;
	--lh-body: 1.8;

	/* Space + shape */
	--container: 1180px;
	--content: 1066px;
	--gap-col: 17px;
	--gap-row: 57px;
	--radius-pill: 50px;
	--radius-card: 10px;
	--shell-pad: 20px;
}

/* 3. Base ================================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-weight: 400;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* Long unbroken yarn names and URLs must never force a sideways scroll. */
	overflow-wrap: break-word;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

/* 4. Typography =========================================================== */

h1,
h2,
h3,
h4,
.wp-block-heading {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--teal);
	line-height: var(--lh-heading);
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 {
	font-size: var(--fs-h1);
	line-height: 21px;
}

h2 {
	font-size: var(--fs-h2);
	line-height: 23px;
}

h3 {
	font-size: var(--fs-h3);
	line-height: 20px;
}

p {
	margin: 0 0 1.1em;
}

a {
	color: var(--coral-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--brick);
}

strong,
b {
	font-weight: 700;
}

.cy-eyebrow {
	font-family: var(--font-body);
	font-size: var(--fs-small);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--taupe-text);
	margin: 0 0 10px;
}

.cy-lede {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--ink);
	max-width: 62ch;
}

/* 5. Layout primitives ==================================================== */

.cy-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--shell-pad);
}

.cy-section {
	padding-block: clamp(40px, 6vw, 76px);
}

.cy-section--cream {
	background: var(--cream);
}

.cy-section--blush {
	background: var(--blush);
}

.cy-section--shell {
	background: var(--shell);
}

.cy-section--teal {
	background: var(--teal);
	color: var(--paper);
}

.cy-section--teal h1,
.cy-section--teal h2,
.cy-section--teal h3,
.cy-section--teal .cy-eyebrow {
	color: var(--paper);
}

.cy-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.cy-section-head > div {
	max-width: 46ch;
}

.cy-section-head h2 {
	margin: 0;
}

/* Horizontal pattern rail. Scroll-snap keeps cards aligned without a
   scrollbar-jacking library, and it never overflows the viewport. */
.cy-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(240px, 1fr);
	gap: var(--gap-col);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--shell-pad);
	padding-block: 4px 20px;
	margin: 0;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: var(--taupe) transparent;
}

.cy-rail > * {
	scroll-snap-align: start;
}

.cy-grid {
	display: grid;
	gap: var(--gap-row) var(--gap-col);
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.cy-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cy-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 6. Components =========================================================== */

/* Announcement bar ------------------------------------------------------- */

.cy-announcement {
	background: var(--teal);
	color: var(--paper);
	font-size: var(--fs-small);
	line-height: 1.4;
	text-align: center;
	padding-block: 10px;
}

.cy-announcement a {
	color: var(--paper);
	font-weight: 700;
}

/* Masthead --------------------------------------------------------------- */

.cy-masthead {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--blush);
}

.cy-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap-col);
	min-height: 76px;
	padding-block: 12px;
}

.cy-masthead__brand {
	font-family: var(--font-display);
	font-size: var(--fs-h2);
	line-height: 23px;
	color: var(--teal);
	text-decoration: none;
	margin: 0;
}

.cy-masthead__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cy-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--blush);
	border-radius: var(--radius-pill);
	background: var(--paper);
	color: var(--teal);
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease,
		color 160ms ease;
}

.cy-iconbtn:hover {
	background: var(--cream);
	border-color: var(--taupe);
	color: var(--teal);
}

.cy-iconbtn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

/* Primary navigation ----------------------------------------------------- */

.cy-nav {
	border-top: 1px solid var(--blush);
}

.cy-nav .wp-block-navigation__responsive-container-open,
.cy-nav .wp-block-navigation__responsive-container-close {
	display: none;
}

.cy-nav__list,
ul.cy-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-btn);
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cy-nav a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 700;
	padding-block: 14px;
	display: inline-block;
}

.cy-nav a:hover,
.cy-nav a:focus {
	color: var(--coral-text);
}

.cy-nav .current-menu-item > a,
.cy-nav a[aria-current="page"] {
	color: var(--coral-text);
	box-shadow: inset 0 -2px 0 var(--coral-btn);
}

/* Buttons ---------------------------------------------------------------- */

.cy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--coral-btn);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: var(--fs-btn);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease,
		border-color 160ms ease;
}

.cy-btn:hover,
.cy-btn:focus {
	background: var(--teal);
	color: var(--paper);
}

.cy-btn--ghost {
	background: transparent;
	color: var(--teal);
	border-color: var(--teal);
}

.cy-btn--ghost:hover,
.cy-btn--ghost:focus {
	background: var(--teal);
	color: var(--paper);
}

.cy-btn--light {
	background: var(--paper);
	color: var(--teal);
}

.cy-btn--light:hover,
.cy-btn--light:focus {
	background: var(--ink);
	color: var(--paper);
}

.cy-btnrow {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 22px;
}

/* Hero ------------------------------------------------------------------- */

.cy-hero {
	background: var(--cream);
	padding-block: clamp(48px, 7vw, 92px);
}

.cy-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 57px);
	align-items: center;
}

.cy-hero__title {
	font-size: var(--fs-hero);
	line-height: var(--lh-tight);
	margin: 0 0 18px;
}

.cy-hero__media img,
.cy-hero__media figure {
	border-radius: var(--radius-card);
}

.cy-hero__meta {
	font-size: var(--fs-small);
	color: var(--taupe-text);
}

/* Pattern cards ---------------------------------------------------------- */

.cy-card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--shell);
	border-radius: var(--radius-card);
	overflow: hidden;
	height: 100%;
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.cy-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(30, 30, 30, 0.12);
}

.cy-card__media img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.cy-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 22px;
	flex: 1;
}

.cy-card__title {
	font-size: 19px;
	line-height: 1.3;
	margin: 0;
}

.cy-card__title a {
	color: var(--teal);
	text-decoration: none;
}

.cy-card__title a:hover,
.cy-card__title a:focus {
	color: var(--coral-text);
	text-decoration: underline;
}

.cy-card__meta {
	font-size: var(--fs-small);
	line-height: 1.4;
	color: var(--taupe-text);
	margin: 0;
}

.cy-card__tag {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	background: var(--blush);
	color: var(--taupe-text);
	font-size: var(--fs-small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Numbered step / technique list ----------------------------------------- */

.cy-steps {
	counter-reset: cy-step;
	display: grid;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cy-steps > li {
	counter-increment: cy-step;
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.cy-steps > li::before {
	content: counter(cy-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--teal);
	color: var(--paper);
	font-family: var(--font-display);
	font-size: 19px;
}

/* Designer / about block -------------------------------------------------- */

.cy-person {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 57px);
	align-items: center;
}

.cy-person__media img {
	border-radius: var(--radius-card);
}

.cy-quote {
	margin: 0;
	padding: 28px 32px;
	border-left: 4px solid var(--coral-light);
	background: var(--blush);
	border-radius: 0 var(--radius-card) var(--radius-card) 0;
	font-family: var(--font-display);
	font-size: var(--fs-h2);
	line-height: 1.25;
	color: var(--teal);
}

.cy-quote cite {
	display: block;
	margin-top: 12px;
	font-family: var(--font-body);
	font-size: var(--fs-small);
	font-style: normal;
	color: var(--taupe-text);
}

/* Newsletter ------------------------------------------------------------- */

.cy-newsletter {
	background: var(--teal);
	color: var(--paper);
	padding-block: clamp(40px, 6vw, 76px);
	text-align: center;
}

.cy-newsletter h2 {
	color: var(--paper);
}

.cy-newsletter p {
	color: var(--paper);
	max-width: 54ch;
	margin-inline: auto;
}

.cy-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 24px;
}

.cy-newsletter__form input[type="email"] {
	flex: 1 1 280px;
	max-width: 380px;
	padding: 13px 20px;
	border: 1px solid var(--paper);
	border-radius: var(--radius-pill);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-btn);
	line-height: 1.3;
}

.cy-fieldlabel {
	font-size: var(--fs-small);
	color: var(--taupe-text);
}

/* Footer ----------------------------------------------------------------- */

.cy-footer {
	background: var(--ink-deep);
	color: var(--paper);
	padding-block: clamp(40px, 6vw, 64px) 28px;
}

.cy-footer a {
	color: var(--paper);
	text-decoration: none;
}

.cy-footer a:hover,
.cy-footer a:focus {
	text-decoration: underline;
}

.cy-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--gap-row) var(--gap-col);
}

.cy-footer__title {
	font-family: var(--font-body);
	font-size: var(--fs-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--coral-light);
	margin: 0 0 14px;
}

.cy-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	font-size: var(--fs-small);
	line-height: 1.5;
}

.cy-footer__legal {
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: var(--fs-small);
	color: var(--shell);
}

/* Overlays: drawer + search ----------------------------------------------- */

.cy-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: grid;
	background: rgba(30, 30, 30, 0.55);
	padding: var(--shell-pad);
}

.cy-overlay[hidden] {
	display: none;
}

.cy-overlay__panel {
	background: var(--paper);
	border-radius: var(--radius-card);
	padding: clamp(24px, 4vw, 40px);
	overflow-y: auto;
	max-height: 100%;
	justify-self: start;
	width: min(420px, 100%);
}

.cy-overlay__panel--center {
	justify-self: center;
	width: min(640px, 100%);
}

.cy-overlay__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.cy-overlay__head h2 {
	margin: 0;
	font-size: var(--fs-h2);
	line-height: 23px;
}

.cy-search__input {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--taupe);
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-size: var(--fs-btn);
	line-height: 1.3;
	color: var(--ink);
	background: var(--paper);
}

.cy-search__input:focus-visible {
	border-color: var(--teal);
}

body.cy-overlay-open {
	overflow: hidden;
}

/* Single post / page content --------------------------------------------- */

.cy-prose {
	max-width: var(--content);
	margin-inline: auto;
}

.cy-prose > * {
	margin-block: 0 1.4em;
}

.cy-prose h2 {
	font-size: var(--fs-h2);
	line-height: 23px;
	margin-top: 1.6em;
}

.cy-prose h3 {
	font-size: var(--fs-h3);
	line-height: 20px;
	margin-top: 1.4em;
}

.cy-prose img,
.cy-prose figure {
	border-radius: var(--radius-card);
}

.cy-prose figure figcaption {
	font-size: var(--fs-small);
	line-height: 1.5;
	color: var(--taupe-text);
	margin-top: 10px;
}

.cy-prose blockquote {
	margin: 1.8em 0;
	padding: 20px 26px;
	border-left: 4px solid var(--coral-light);
	background: var(--cream);
	border-radius: 0 var(--radius-card) var(--radius-card) 0;
	font-family: var(--font-display);
	font-size: var(--fs-h3);
	line-height: 20px;
	color: var(--teal);
}

.cy-prose pre,
.cy-prose code {
	font-size: var(--fs-small);
}

.cy-prose pre {
	background: var(--shell);
	border: 1px solid var(--blush);
	border-radius: var(--radius-card);
	padding: 18px;
	overflow-x: auto;
}

.cy-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-small);
}

.cy-prose th,
.cy-prose td {
	border: 1px solid var(--blush);
	padding: 10px 12px;
	text-align: left;
}

/* Pattern meta sidebar --------------------------------------------------- */

.cy-patternmeta {
	background: var(--cream);
	border-radius: var(--radius-card);
	padding: 24px;
	margin-block: 0 34px;
}

.cy-patternmeta dl {
	display: grid;
	grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
	gap: 10px 18px;
	margin: 0;
	font-size: var(--fs-small);
	line-height: 1.5;
}

.cy-patternmeta dt {
	font-weight: 700;
	color: var(--teal);
}

.cy-patternmeta dd {
	margin: 0;
	color: var(--ink);
}

/* Pagination ------------------------------------------------------------- */

.cy-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	align-items: center;
	margin-top: 40px;
	font-size: var(--fs-small);
}

.cy-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border: 1px solid var(--blush);
	border-radius: var(--radius-pill);
	color: var(--ink);
	text-decoration: none;
}

.cy-pagination .page-numbers:hover,
.cy-pagination .page-numbers:focus {
	border-color: var(--teal);
	color: var(--teal);
}

.cy-pagination .page-numbers.current {
	background: var(--coral-btn);
	border-color: var(--coral-btn);
	color: var(--paper);
}

/* 7. Accessibility ======================================================== */

.cy-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: var(--teal);
	color: var(--paper);
	border-radius: 0 0 var(--radius-card) 0;
	text-decoration: none;
}

.cy-skip:focus {
	left: 0;
}

.cy-screenreader {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 2px;
	border-radius: 2px;
}

/* On dark surfaces the teal ring disappears, so invert it. */
.cy-section--teal a:focus-visible,
.cy-footer a:focus-visible,
.cy-newsletter a:focus-visible,
.cy-newsletter__form input:focus-visible {
	outline-color: var(--paper);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
}

/* 8. Motion =============================================================== */

/* Progressive enhancement. The hidden state is applied by a class the script
   adds (.cy-reveal--pending), never by default, so a JS failure or a crawler
   without JS still sees fully visible content instead of a blank page. */
.cy-reveal--pending {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cy-reveal--pending.cy-is-visible {
	opacity: 1;
	transform: none;
}

/* No-JS and reduced-motion users must never be left with invisible content,
   so the hidden state is opt-in via the .cy-reveal--pending class that the
   script adds only once it is able to reveal again. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.cy-reveal--pending,
	.cy-reveal--pending.cy-is-visible {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.cy-card,
	.cy-btn,
	.cy-iconbtn {
		transition: none;
	}

	.cy-card:hover {
		transform: none;
	}
}

/* 9. Responsive =========================================================== */

@media (max-width: 1065px) {
	:root {
		--gap-row: 40px;
	}

	.cy-rail {
		grid-auto-columns: minmax(220px, 1fr);
	}
}

@media (max-width: 900px) {
	:root {
		--fs-hero: 30px;
		--fs-body: 21px;
	}

	.cy-hero__grid,
	.cy-grid--3,
	.cy-grid--2,
	.cy-person {
		grid-template-columns: minmax(0, 1fr);
	}

	.cy-hero__title {
		font-size: var(--fs-hero);
	}
}

@media (max-width: 760px) {
	:root {
		--gap-col: 14px;
		--gap-row: 32px;
		--shell-pad: 16px;
	}

	.cy-nav__list,
	ul.cy-nav {
		gap: 18px;
		font-size: var(--fs-small);
	}

	.cy-section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.cy-patternmeta dl {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px 0;
	}

	.cy-patternmeta dd {
		margin-bottom: 12px;
	}

	.cy-quote {
		padding: 22px 20px;
	}
}

@media (max-width: 559px) {
	:root {
		--fs-hero: 26px;
		--fs-h1: 26.4px;
		--fs-h2: 28px;
		--fs-h3: 24px;
		--fs-body: 19px;
		--fs-btn: 16px;
	}

	.cy-masthead__inner {
		min-height: 64px;
	}

	.cy-rail {
		grid-auto-columns: minmax(200px, 1fr);
		scroll-padding-inline: var(--shell-pad);
	}

	.cy-steps > li {
		grid-template-columns: 38px minmax(0, 1fr);
		gap: 12px;
	}

	.cy-steps > li::before {
		width: 38px;
		height: 38px;
		font-size: var(--fs-small);
	}

	.cy-overlay {
		padding: 0;
	}

	.cy-overlay__panel {
		width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}
}

/* Print ------------------------------------------------------------------ */

@media print {
	.cy-masthead,
	.cy-nav,
	.cy-overlay,
	.cy-newsletter__form,
	.cy-footer__cols {
		display: none;
	}

	body {
		font-size: 12pt;
		color: #000;
		background: #fff;
	}
}
/* ============================================================
   Template wrappers
   ============================================================ */
.cy-main {
	display: block;
}

/* ============================================================
   Intro strip
   ============================================================ */
.cy-intro {
	padding-block: var(--space-2, 1.5rem);
	background: var(--blush);
}

.cy-intro__text {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.05rem;
	line-height: 1.6;
	text-align: center;
	color: var(--teal);
}

/* ============================================================
   Hero
   ============================================================ */
.cy-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3, 1.5rem);
	text-align: center;
}

.cy-hero__inner .cy-btnrow {
	justify-content: center;
}

/* ============================================================
   Rail sections and rail blocks
   ============================================================ */
.cy-rail-section {
	display: block;
	padding-block: var(--space-6, 3.5rem);
}

.cy-rail-block__head {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 1.5rem;
}

.cy-rail-block__head .cy-eyebrow {
	margin: 0;
}

.cy-rail-block__heading {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
	line-height: 1.25;
	color: var(--teal);
}

.cy-rail-block__blurb {
	margin: 0;
	max-width: 62ch;
	color: var(--ink);
}

.cy-rail-block__head .cy-btnrow {
	margin-top: 0.5rem;
}

/* ============================================================
   Prose sections (about, technique, meditative, fresh)
   ============================================================ */
.cy-about,
.cy-technique,
.cy-meditative,
.cy-fresh {
	display: block;
	padding-block: var(--space-7, 4rem);
}

.cy-about__inner,
.cy-technique__inner,
.cy-meditative__inner,
.cy-fresh__inner {
	max-width: 760px;
}

.cy-about__heading,
.cy-technique__heading,
.cy-meditative__heading,
.cy-fresh__heading {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
	line-height: 1.25;
	color: var(--teal);
	margin-bottom: 1rem;
}

.cy-about__text,
.cy-technique__list,
.cy-meditative__text,
.cy-fresh__text {
	color: var(--ink);
}

.cy-about__text + .cy-about__text {
	margin-top: 1rem;
}

.cy-technique__list {
	padding-left: 1.25rem;
}

.cy-technique__list li + li {
	margin-top: 0.5rem;
}

.cy-about__inner .cy-eyebrow,
.cy-technique__inner .cy-eyebrow,
.cy-fresh__inner .cy-eyebrow {
	margin-bottom: 0.5rem;
}

/* ============================================================
   Newsletter inner wrapper
   ============================================================ */
.cy-newsletter__inner {
	max-width: 760px;
}

.cy-newsletter__inner .cy-btn {
	margin-top: 0.75rem;
}

/* ============================================================
   Card link and blank media
   ============================================================ */
.cy-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.cy-card__link:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
	border-radius: 2px;
}

.cy-card__img {
	display: block;
	width: 100%;
	height: auto;
}

.cy-card__img--blank {
	aspect-ratio: 4 / 3;
	background: var(--blush);
}

/* ============================================================
   Search overlay
   ============================================================ */
.cy-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.cy-search__input {
	flex: 1 1 16rem;
}

.cy-search__submit {
	flex: 0 0 auto;
}

.cy-search__hint {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	color: var(--ink);
}

.cy-search__hint kbd {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 0.8em;
	border: 1px solid var(--taupe);
	border-radius: 3px;
	padding: 0.1em 0.35em;
	background: var(--shell);
}

/* ============================================================
   Announcement internals
   ============================================================ */
.cy-announcement__text,
.cy-announcement__cta {
	display: inline;
	margin: 0 0.35rem;
}

/* ============================================================
   Footer columns
   ============================================================ */
.cy-footer__col,
.cy-footer__brand {
	min-width: 12rem;
	flex: 1 1 12rem;
}

.cy-footer__brand p {
	margin: 0 0 0.5rem;
}

.cy-footer__rule {
	margin-block: 1.5rem;
	border: 0;
	border-top: 1px solid var(--taupe);
}

/* ============================================================
   Single post
   ============================================================ */
.cy-single__card,
.cy-page__card {
	display: block;
}

.cy-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.cy-single__tags a {
	color: var(--teal);
	text-decoration: none;
}

.cy-single__title,
.cy-page__title {
	font-family: var(--font-display);
	line-height: 1.18;
	color: var(--teal);
	margin-bottom: 0.75rem;
}

.cy-single__meta {
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	color: var(--ink);
}

.cy-single__media {
	margin-bottom: 1.75rem;
}

.cy-single__media img {
	display: block;
	width: 100%;
	height: auto;
}

/* ============================================================
   404
   ============================================================ */
.cy-notfound {
	text-align: center;
}

.cy-notfound__code {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
	line-height: 1;
	color: var(--taupe-text);
}

.cy-notfound__title {
	font-family: var(--font-display);
	color: var(--teal);
	margin-block: 0.5rem 1rem;
}

.cy-notfound .cy-btnrow {
	justify-content: center;
	margin-block: 1.75rem 2.5rem;
}
/* ============================================================
   Route wrappers and post/page prose bodies
   ============================================================ */
.cy-single,
.cy-page {
	display: block;
}

.cy-single__content,
.cy-page__content {
	margin-top: 1.5rem;
}

.cy-rail-block {
	margin-top: 1rem;
}

.cy-rail-block .cy-card {
	min-width: 15rem;
}

/* -------------------------------------------------------------------------
 * Block-gap overrides (deployed 1.0.4)
 * ---------------------------------------------------------------------- */

/* WordPress core injects a 1.75rem block gap on every child of a flow
   container (:root :where(.is-layout-flow) > *), which puts an unwanted
   28px band above the hero. This theme controls its own vertical rhythm,
   so opt out explicitly. Logical property, so it survives a switch to
   horizontal writing mode. */
.cy-hero {
	margin-block-start: 0;
}

/* The 1.75rem gap above the footer comes from core's
   :where(.wp-site-blocks) > * rule, which lands on the block template-part
   wrapper around <footer>, not on the <footer> element itself. Scoped to the
   footer part so a repositioned header keeps core's spacing. */
.wp-site-blocks > .wp-block-template-part:has(> .cy-footer) {
	margin-block-start: 0;
}

/* ==== TastyCrochet parity patch (additive) ====
   Base: tastycrochet.prod.css snapshot (live 30419 bytes, sha 5929ed7e)
   Adds only reviewed local rules; no production line altered.
   ==== */

:root { --font-mono: ui-monospace, menlo, monaco, "Consolas", "Liberation Mono", monospace; }

.cy-btn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.cy-iconbtn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4, .wp-block-heading { scroll-margin-top: 100px; }

@supports not (selector(:focus-visible)) {
	a:focus,
	button:focus,
	input:focus,
	select:focus,
	textarea:focus,
	[tabindex]:focus {
		outline: 3px solid var(--teal);
		outline-offset: 2px;
		border-radius: 2px;
	}
}

a[href^="#"]{text-decoration: none;}
/* Core injects a 1.75rem band above every direct child of .wp-site-blocks:
     :where(.wp-site-blocks) > * { margin-block-start: 1.75rem; margin-block-end: 0; }
   :where() carries zero specificity, so .wp-site-blocks (0,1,0) outranks it and
   wins on load order alone. Applied blanket rather than scoped to the footer
   part so the band is removed above every top-level template part. */
.wp-site-blocks > * {
	margin-block-start: 0rem;
}

/* ==== Breadcrumbs (Rank Math) ==== */
.cy-breadcrumbs { margin-block: 0 1rem; }
.cy-breadcrumbs .rank-math-breadcrumb { font-size: var(--fs-small); font-family: var(--font-mono); }
.cy-breadcrumbs .rank-math-breadcrumb p { margin: 0; }
.cy-breadcrumbs .rank-math-breadcrumb a { color: var(--teal); text-decoration: none; }
.cy-breadcrumbs .rank-math-breadcrumb a:hover { text-decoration: underline; }
.cy-breadcrumbs .rank-math-breadcrumb .separator {
	color: var(--taupe-text);
	margin-inline: 0.4rem;
}
