/* ==========================================================================
   T Yarns: theme styles
   Tokens come from theme.json (--wp--preset--*). Short aliases below.
   ========================================================================== */

:root {
	--ty-cream: var(--wp--preset--color--cream);
	--ty-paper: var(--wp--preset--color--paper);
	--ty-sand: var(--wp--preset--color--sand);
	--ty-ink: var(--wp--preset--color--ink);
	--ty-ink-soft: var(--wp--preset--color--ink-soft);
	--ty-adobe: var(--wp--preset--color--adobe);
	--ty-adobe-dark: var(--wp--preset--color--adobe-dark);
	--ty-navel: var(--wp--preset--color--navel);
	--ty-poppy: var(--wp--preset--color--poppy);
	--ty-jacaranda: var(--wp--preset--color--jacaranda);
	--ty-euc: var(--wp--preset--color--eucalyptus);
	--ty-white: var(--wp--preset--color--white);
	--ty-display: var(--wp--preset--font-family--display);
	--ty-r-sm: 6px;
	--ty-r-md: 14px;
	--ty-r-lg: 28px;
	--ty-ease: cubic-bezier(.2, .7, .2, 1);
	--ty-header-h: 76px;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01";
	overflow-x: clip;
}
img { height: auto; max-width: 100%; }
::selection { background: var(--ty-poppy); color: var(--ty-ink); }

:where(h1, h2, h3, h4) { font-variation-settings: "SOFT" 50, "WONK" 0; text-wrap: balance; }
:where(h1, h2, h3, h4) em {
	font-style: italic;
	font-weight: 380;
	color: var(--ty-adobe);
	font-variation-settings: "SOFT" 100, "WONK" 1;
}
.has-cream-color :where(h1, h2, h3) em,
.has-ink-background-color :where(h1, h2, h3) em { color: var(--ty-poppy); }
.ty-newsletter :where(h1, h2, h3) em { color: var(--ty-poppy); }
p { text-wrap: pretty; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ty-adobe); outline-offset: 3px; border-radius: 4px; }

/* Eyebrow style (registered block style) */
.is-style-tyarns-eyebrow {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.78rem !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ty-adobe);
	margin-bottom: 0.6rem !important;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.is-style-tyarns-eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	flex: none;
}
.has-text-align-center.is-style-tyarns-eyebrow { justify-content: center; }
.has-cream-color .is-style-tyarns-eyebrow,
.ty-newsletter .is-style-tyarns-eyebrow { color: var(--ty-poppy); }

/* Buttons */
.wp-element-button, .wp-block-button__link {
	transition: background-color .25s var(--ty-ease), color .25s var(--ty-ease), transform .25s var(--ty-ease), box-shadow .25s;
}
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ty-ink);
	border: 1.5px solid currentColor;
	padding: calc(0.9rem - 1.5px) calc(1.75rem - 1.5px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ty-ink); color: var(--ty-cream); border-color: var(--ty-ink); }
.wp-block-button.is-style-tyarns-light > .wp-block-button__link { background: var(--ty-cream); color: var(--ty-ink); }
.wp-block-button.is-style-tyarns-light > .wp-block-button__link:hover { background: var(--ty-poppy); color: var(--ty-ink); }

.ty-arrow-link { font-weight: 600; font-size: 0.95rem; margin: 0; }
.ty-arrow-link a { color: var(--ty-ink); text-decoration: none; border-bottom: 1.5px solid var(--ty-adobe); padding-bottom: 2px; }
.ty-arrow-link a::after { content: "→"; display: inline-block; margin-left: 0.35em; transition: transform .25s var(--ty-ease); }
.ty-arrow-link a:hover::after { transform: translateX(4px); }

.ty-stars { color: var(--ty-navel); letter-spacing: 0.08em; }

/* ==========================================================================
   Header
   ========================================================================== */
.ty-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .ty-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ty-site-header { top: 0; } }

.ty-announce { font-weight: 500; letter-spacing: 0.01em; }
.ty-announce p { margin: 0; }
.ty-announce a { color: var(--ty-poppy); }
.ty-announce__side { flex: 1 1 0; opacity: .85; }
.ty-announce__main { flex: 0 1 auto; }

.ty-header { border-bottom: 1px solid color-mix(in srgb, var(--ty-sand) 70%, transparent); transition: box-shadow .3s, padding .3s; }
.ty-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(42, 34, 29, .45); }
.ty-header__row { gap: 1.5rem; }
.ty-header__row > * { flex: 1 1 0; }
.ty-header__row > .ty-nav { flex: 2 1 auto; }

.ty-logo { margin: 0; line-height: 1; }
.ty-logo a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--ty-display);
	font-size: 1.85rem;
	font-weight: 560;
	font-style: italic;
	letter-spacing: -0.02em;
	font-variation-settings: "SOFT" 100, "WONK" 1;
	white-space: nowrap;
}
.ty-logo a::before {
	content: "";
	width: 2.1rem;
	height: 2.1rem;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='%23B4472A'/%3E%3Cg fill='none' stroke='%23F7F1E8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M9 15c7-4 15-4 22 0'/%3E%3Cpath d='M8 21c8-4 16-4 24 0'/%3E%3Cpath d='M9.5 27c7-3.6 14-3.6 21 0'/%3E%3C/g%3E%3Cpath d='M13 10.5h14M20 10.5V33' stroke='%23F1BE47' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
	transition: transform .6s var(--ty-ease);
}
.ty-logo a:hover::before { transform: rotate(-14deg); }
.ty-logo--footer a { color: var(--ty-cream); font-size: 2.2rem; }

.ty-nav .wp-block-navigation-item__content { padding: 0.35rem 0; position: relative; }
.ty-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ty-adobe);
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ty-ease);
}
.ty-nav > .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.ty-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.ty-nav .wp-block-navigation__submenu-container {
	background: var(--ty-white) !important;
	border: 1px solid var(--ty-sand) !important;
	border-radius: var(--ty-r-md);
	padding: 0.6rem !important;
	box-shadow: 0 24px 50px -28px rgba(42, 34, 29, .45);
	min-width: 240px !important;
}
.ty-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 0.8rem !important; border-radius: 8px; }
.ty-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.ty-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--ty-paper); }

.ty-header__actions { gap: 0.25rem; }
.ty-icon-link, .ty-search .wp-block-search__button {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	color: var(--ty-ink); background: transparent; border: 0; padding: 0; transition: background .2s;
}
.ty-icon-link:hover, .ty-search .wp-block-search__button:hover { background: var(--ty-paper); }
.ty-search .wp-block-search__button svg { width: 24px; height: 24px; fill: currentColor; }
.ty-search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.ty-search .wp-block-search__input { border: 1px solid var(--ty-sand); border-radius: 999px; padding: 0.5rem 1rem; background: var(--ty-white); font-size: 0.9rem; }
.ty-search.wp-block-search__searchfield-hidden .wp-block-search__input { border: 0; padding: 0; }

/* Mobile header */
@media (max-width: 1080px) {
	.ty-announce__side { display: none; }
	.ty-header__row > .ty-nav { flex: 0 0 auto; order: -1; }
	.ty-header__row > .ty-logo { flex: 1 1 auto; text-align: center; }
	.ty-header__row > .ty-logo a { justify-content: center; font-size: 1.55rem; }
	.ty-header__row > .ty-logo a::before { width: 1.8rem; height: 1.8rem; }
	.ty-header__row > .ty-header__actions { flex: 0 0 auto; }
	.ty-header__actions .ty-search { display: none; }
}
@media (max-width: 480px) { .ty-header__row > .ty-logo a::before { display: none; } }
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem 1.5rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.1rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-family: var(--ty-display); font-size: 1.6rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { font-size: 1.05rem; font-family: var(--wp--preset--font-family--body); border: 0 !important; box-shadow: none; background: transparent !important; padding: 0.5rem 0 0 1rem !important; }

/* ==========================================================================
   Sections
   ========================================================================== */
.ty-section__head { margin-bottom: var(--wp--preset--spacing--40) !important; gap: 1rem 2rem; }
.ty-section__head h2, .ty-section__head p { margin: 0; }
.ty-section__title { margin-bottom: var(--wp--preset--spacing--50) !important; }
.ty-section__aside { max-width: 30rem; color: var(--ty-ink-soft); }

/* Hero */
.ty-hero { position: relative; overflow: hidden; }
.ty-hero::before {
	content: ""; position: absolute; width: 46vw; height: 46vw; right: -12vw; top: -18vw;
	background: radial-gradient(circle, color-mix(in srgb, var(--ty-poppy) 55%, transparent) 0%, transparent 65%);
	pointer-events: none; z-index: 0;
}
.ty-hero > * { position: relative; z-index: 1; }
.ty-hero__title { font-size: clamp(2.9rem, 6.2vw, 5.6rem) !important; line-height: 0.98 !important; margin-top: 0.4rem; }
.ty-hero__lede { color: var(--ty-ink-soft); max-width: 34rem; }
.ty-hero__proof p { margin: 0; color: var(--ty-ink-soft); }
.ty-hero__proof p + p::before { content: "·"; margin-right: 1.5rem; color: var(--ty-sand); }
.ty-hero__media { position: relative; padding-bottom: 3rem; }
.ty-hero__main { margin: 0 0 0 auto !important; width: 88%; }
.ty-hero__main img { aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; box-shadow: 0 40px 80px -45px rgba(42, 34, 29, .6); }
.ty-hero__inset {
	position: absolute !important; left: 0; bottom: 0; width: 38%; margin: 0 !important;
	border: 8px solid var(--ty-cream); border-radius: var(--ty-r-lg); overflow: hidden;
	box-shadow: 0 30px 60px -35px rgba(42, 34, 29, .55); transform: rotate(-4deg);
}
.ty-hero__inset img { aspect-ratio: 1; object-fit: cover; display: block; }
.ty-seal { position: absolute; top: 4%; left: 4%; width: 132px; height: 132px; display: grid; place-items: center; }
.ty-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: ty-spin 26s linear infinite; }
.ty-seal text { font: 700 14px/1 var(--wp--preset--font-family--body); letter-spacing: 0.24em; text-transform: uppercase; fill: var(--ty-ink); }
.ty-seal__mark {
	width: 64px; height: 64px; border-radius: 50%; background: var(--ty-adobe); color: var(--ty-cream);
	display: grid; place-items: center; font: italic 560 2rem/1 var(--ty-display); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.ty-seal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ty-poppy); }
@keyframes ty-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ty-seal svg, .ty-marquee__track { animation: none !important; } }
@media (max-width: 781px) {
	.ty-hero__media { margin-top: 1.5rem; }
	.ty-hero__main { width: 92%; }
	.ty-seal { width: 104px; height: 104px; left: auto; right: 0; top: -8%; }
	.ty-seal__mark { width: 50px; height: 50px; font-size: 1.6rem; }
}

/* Arch image style */
.is-style-tyarns-arch img { border-radius: 999px 999px var(--ty-r-lg) var(--ty-r-lg); }

/* Marquee */
.ty-marquee { background: var(--ty-adobe); color: var(--ty-cream); overflow: hidden; padding: 0.95rem 0; transform: rotate(-1.2deg); margin: 0 -1rem 1.5rem; width: calc(100% + 2rem); }
.ty-marquee__track { display: flex; width: max-content; gap: 2rem; animation: ty-marquee 38s linear infinite; font: italic 460 1.45rem/1 var(--ty-display); white-space: nowrap; font-variation-settings: "SOFT" 100; }
.ty-marquee__star { color: var(--ty-poppy); font-style: normal; }
@keyframes ty-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Product cards (query loop)
   ========================================================================== */
.ty-product-grid { gap: clamp(1rem, 2.4vw, 2rem) !important; row-gap: clamp(2rem, 4vw, 3rem) !important; }
@media (max-width: 1000px) { .ty-product-grid.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) { .ty-product-grid.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.ty-card { position: relative; }
.ty-card__img { margin: 0 0 0.9rem; border-radius: var(--ty-r-md); overflow: hidden; position: relative; background: var(--ty-paper); }
.ty-card__img img { transition: transform .8s var(--ty-ease), filter .5s; }
.ty-card:hover .ty-card__img img { transform: scale(1.05); }
.ty-card__img::after {
	content: "View colorway"; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
	background: var(--ty-cream); color: var(--ty-ink); border-radius: 999px; text-align: center;
	font-size: 0.85rem; font-weight: 600; padding: 0.7rem; opacity: 0; transform: translateY(8px);
	transition: opacity .3s, transform .3s var(--ty-ease); pointer-events: none;
}
.ty-card:hover .ty-card__img::after { opacity: 1; transform: none; }
@media (hover: none) { .ty-card__img::after { display: none; } }
.ty-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.4rem; z-index: 2; }
.ty-badge { background: var(--ty-poppy); color: var(--ty-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 999px; }
.ty-badge--soldout { background: var(--ty-ink); color: var(--ty-cream); }
.ty-card:has(.ty-badge--soldout) .ty-card__img img { filter: grayscale(.55) opacity(.75); }
.ty-card:has(.ty-badge--soldout) .ty-card__img::after { content: "Sold out · back soon"; }
.ty-card__body > * { margin: 0 !important; }
.ty-card__terms { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ty-ink-soft); }
.ty-card__terms a { color: inherit; text-decoration: none; }
.ty-card__terms .wp-block-post-terms__separator { opacity: .5; }
.ty-card__title { font-size: 1.35rem !important; margin: 0.2rem 0 0.35rem !important; font-weight: 450; }
.ty-card__title a:hover { color: var(--ty-adobe); }
.ty-card__meta { align-items: baseline; }
.ty-card__meta > * { margin: 0 !important; }
.ty-card__bases { font-size: 0.8rem; color: var(--ty-ink-soft); }
.ty-card__price, .ty-card__price * { font-weight: 600 !important; font-size: 0.98rem !important; color: var(--ty-ink) !important; }

/* Collection tiles */
.ty-tiles { gap: clamp(0.75rem, 2vw, 1.5rem) !important; }
@media (max-width: 900px) { .ty-tiles.is-layout-grid { grid-template-columns: repeat(2, 1fr) !important; } }
.ty-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--ty-r-lg); overflow: hidden; color: var(--ty-cream); text-decoration: none; isolation: isolate; }
.ty-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .9s var(--ty-ease); }
.ty-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30, 22, 18, .78)); z-index: -1; }
.ty-tile:hover img { transform: scale(1.06); }
.ty-tile__label { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.2rem; display: grid; gap: 0.2rem; }
.ty-tile__label strong { font: italic 450 clamp(1.5rem, 2.4vw, 2rem)/1.05 var(--ty-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.ty-tile__label small { font-size: 0.85rem; opacity: .9; }
.ty-tile__label strong::after { content: " →"; font-style: normal; font-size: 0.7em; opacity: 0; transition: opacity .3s; }
.ty-tile:hover .ty-tile__label strong::after { opacity: 1; }

/* Bases */
.ty-bases__grid { gap: clamp(1rem, 3vw, 2.5rem) !important; }
@media (max-width: 860px) { .ty-bases__grid.is-layout-grid { grid-template-columns: 1fr !important; } }
.ty-base { background: var(--ty-cream); border-radius: var(--ty-r-lg); overflow: hidden; display: grid; grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 600px) { .ty-base { grid-template-columns: 1fr; } }
.ty-base__img { margin: 0 !important; height: 100%; }
.ty-base__img img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.ty-base__body { padding: clamp(1.25rem, 3vw, 2.25rem); }
.ty-base__body h3 { margin: 0.2rem 0 0.6rem; }
.ty-base__body > p:not(.ty-base__weight) { font-size: 0.95rem; color: var(--ty-ink-soft); }
.ty-base__weight { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ty-adobe); margin: 0; }

.ty-specs { margin: 1rem 0 0; display: grid; font-size: 0.88rem; }
.ty-specs > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.55rem 0; border-top: 1px dashed var(--ty-sand); }
.ty-specs dt { font-weight: 700; color: var(--ty-ink); }
.ty-specs dd { margin: 0; color: var(--ty-ink-soft); }
.ty-specs--compare > div { grid-template-columns: 5.5rem 1fr 1fr; }
.ty-specs--compare > div:first-child { border-top: 0; }
.ty-specs--compare > div:first-child dd strong { color: var(--ty-ink); }

/* Process */
.ty-steps { gap: clamp(1rem, 3vw, 2.5rem) !important; counter-reset: step; }
@media (max-width: 860px) { .ty-steps.is-layout-grid { grid-template-columns: 1fr !important; } }
.ty-step { border-top: 2px solid var(--ty-ink); padding-top: 1.25rem; }
.ty-step__num { font: italic 400 3.2rem/1 var(--ty-display); color: var(--ty-adobe); margin: 0 0 0.75rem; font-variation-settings: "SOFT" 100, "WONK" 1; }
.ty-step h3 { margin: 0 0 0.5rem; }
.ty-step p:last-child { color: var(--ty-ink-soft); }

/* Story */
.ty-story { position: relative; overflow: hidden; }
.ty-story p { color: color-mix(in srgb, var(--ty-cream) 88%, transparent); }
.ty-story__media { position: relative; padding-right: 12%; padding-bottom: 2rem; }
.ty-story__media .is-style-tyarns-arch img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.ty-story__inset { position: absolute !important; right: 0; bottom: 0; width: 42%; margin: 0 !important; border: 7px solid var(--ty-euc); border-radius: var(--ty-r-md); overflow: hidden; transform: rotate(3deg); }
.ty-story__inset img { aspect-ratio: 1; object-fit: cover; display: block; }
.ty-signature { font: italic 400 2rem/1 var(--ty-display) !important; color: var(--ty-poppy) !important; font-variation-settings: "SOFT" 100, "WONK" 1; margin-top: 1.5rem !important; }

/* Shop updates */
.ty-updates__img img { border-radius: var(--ty-r-lg); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.ty-dates { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.6rem; }
.ty-dates li { display: flex; align-items: center; gap: 1.1rem; background: var(--ty-white); border: 1px solid var(--ty-sand); border-radius: var(--ty-r-md); padding: 0.75rem 1rem; }
.ty-dates__day { display: grid; text-align: center; min-width: 4.2rem; font: 500 1.15rem/1.05 var(--ty-display); color: var(--ty-adobe); border-right: 1px solid var(--ty-sand); padding-right: 1rem; }
.ty-dates__day small { font: 700 0.68rem/1.4 var(--wp--preset--font-family--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ty-ink-soft); }

/* Testimonials */
.ty-quotes__grid { gap: clamp(1rem, 2.5vw, 2rem) !important; }
@media (max-width: 860px) { .ty-quotes__grid.is-layout-grid { grid-template-columns: 1fr !important; } }
.ty-quote { margin: 0; background: var(--ty-cream); border-radius: var(--ty-r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.ty-quote blockquote { margin: 0; flex: 1; }
.ty-quote blockquote p { font: 400 1.18rem/1.45 var(--ty-display); margin: 0; font-variation-settings: "SOFT" 100; }
.ty-quote figcaption { font-size: 0.88rem; color: var(--ty-ink-soft); }
.ty-quote figcaption strong { color: var(--ty-ink); }
.ty-quote figcaption span { display: block; font-size: 0.78rem; margin-top: 0.2rem; color: var(--ty-adobe); font-weight: 600; }

/* Journal cards */
.ty-posts { gap: clamp(1.25rem, 3vw, 2.25rem) !important; row-gap: 3rem !important; }
@media (max-width: 860px) { .ty-posts.is-layout-grid { grid-template-columns: 1fr !important; } }
.ty-post__img { border-radius: var(--ty-r-md); overflow: hidden; margin-bottom: 1rem !important; }
.ty-post__img img { transition: transform .8s var(--ty-ease); }
.ty-post:hover .ty-post__img img { transform: scale(1.04); }
.ty-post__meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ty-ink-soft); margin-bottom: 0.5rem !important; }
.ty-post__meta a { color: var(--ty-adobe); text-decoration: none; }
.ty-post .wp-block-post-title { margin: 0 0 0.5rem; font-weight: 450; }
.ty-post .wp-block-post-title a:hover { color: var(--ty-adobe); }
.ty-post .wp-block-post-excerpt { color: var(--ty-ink-soft); }
.ty-post .wp-block-post-excerpt__more-link { display: none; }

/* Instagram */
.ty-insta__head { font-family: var(--ty-display); font-size: 1.35rem; margin-bottom: var(--wp--preset--spacing--30) !important; }
.ty-insta__head a { color: var(--ty-adobe); }
.ty-insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 760px) { .ty-insta__grid { grid-template-columns: repeat(3, 1fr); } }
.ty-insta__grid a { display: block; aspect-ratio: 1; overflow: hidden; position: relative; }
.ty-insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ty-ease), opacity .3s; }
.ty-insta__grid a:hover img { transform: scale(1.06); opacity: .85; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ty-newsletter { position: relative; overflow: hidden; }
.ty-newsletter::after {
	content: ""; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem; border-radius: 50%;
	border: 2px dashed color-mix(in srgb, var(--ty-cream) 35%, transparent); pointer-events: none;
}
.ty-newsletter p { color: color-mix(in srgb, var(--ty-cream) 90%, transparent); }
.ty-newsletter h2 { margin: 0.3rem 0 0.8rem; }
.ty-newsletter__form .ff-el-group { margin-bottom: 0.75rem !important; }
.ty-newsletter__form .ff-el-input--label { display: none !important; }
.ty-newsletter__form fieldset { display: grid !important; grid-template-columns: 1fr 1.4fr auto; gap: 0.6rem; align-items: start; }
.ty-newsletter__form fieldset > p, .ty-newsletter__form legend { display: none !important; }
.ty-newsletter__form fieldset > .ff-el-group, .ty-newsletter__form .ff_submit_btn_wrapper { margin: 0 !important; }
.ty-newsletter__form .ff-el-form-control {
	background: color-mix(in srgb, var(--ty-cream) 14%, transparent) !important; border: 1.5px solid color-mix(in srgb, var(--ty-cream) 55%, transparent) !important;
	color: var(--ty-cream) !important; border-radius: 999px !important; padding: 0.85rem 1.2rem !important; font-size: 0.95rem !important; height: auto !important;
}
.ty-newsletter__form .ff-el-form-control::placeholder { color: color-mix(in srgb, var(--ty-cream) 75%, transparent); }
.ty-newsletter__form .ff-btn-submit {
	background: var(--ty-ink) !important; color: var(--ty-cream) !important; border-radius: 999px !important; border: 0 !important;
	padding: 0.95rem 1.6rem !important; font-weight: 600 !important; white-space: nowrap;
}
.ty-newsletter__form .ff-btn-submit:hover { background: var(--ty-poppy) !important; color: var(--ty-ink) !important; }
.ty-newsletter__form .ff-message-success { background: var(--ty-cream); color: var(--ty-ink); border-radius: var(--ty-r-md); border: 0; }
.ty-newsletter__form .ff-el-is-error .text-danger { color: var(--ty-poppy); font-size: 0.8rem; }
@media (max-width: 680px) { .ty-newsletter__form fieldset { grid-template-columns: 1fr; } }

.ty-footer a { color: var(--ty-cream); text-decoration: none; }
.ty-footer a:hover { color: var(--ty-poppy); }
.ty-footer p { color: color-mix(in srgb, var(--ty-sand) 92%, transparent); }
.ty-footer__heading { font: 700 0.75rem/1 var(--wp--preset--font-family--body) !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ty-poppy); margin: 0.5rem 0 1.1rem !important; }
.ty-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.ty-footer__rule { border-color: color-mix(in srgb, var(--ty-sand) 22%, transparent) !important; opacity: 1; }
.ty-social { margin-top: 1.5rem !important; }

/* ==========================================================================
   Pages, posts, listings
   ========================================================================== */
.ty-page__title, .ty-listing__head h1 { margin-bottom: var(--wp--preset--spacing--30); }
.ty-listing__head { margin-bottom: var(--wp--preset--spacing--40) !important; }
.ty-listing__head h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0.2rem 0 0.8rem; }
.ty-article__dek { color: var(--ty-ink-soft); font-family: var(--ty-display); }
.ty-article__hero { border-radius: var(--ty-r-lg); overflow: hidden; margin-block: var(--wp--preset--spacing--40) !important; }
.ty-article .wp-block-post-content > p:first-of-type::first-letter { float: left; font: italic 500 4.4rem/0.8 var(--ty-display); color: var(--ty-adobe); padding: 0.35rem 0.6rem 0 0; }
.ty-article .wp-block-post-content h2 { font-size: 2rem; margin-top: 2.5rem; }
.ty-article .wp-block-post-content figure img { border-radius: var(--ty-r-md); }
.ty-byline { gap: 1rem; align-items: center; }
.ty-byline p { margin: 0; }
.ty-byline__mark { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--ty-adobe); color: var(--ty-cream); display: grid; place-items: center; font: italic 560 1.5rem/1 var(--ty-display); flex: none; }
.ty-article .wp-block-post-navigation-link { margin-top: 1rem; font-size: 0.95rem; }

.ty-breadcrumbs { color: var(--ty-ink-soft); margin-bottom: var(--wp--preset--spacing--30) !important; }
.ty-breadcrumbs a { color: var(--ty-ink-soft); text-decoration: none; }
.ty-breadcrumbs a:hover { color: var(--ty-adobe); }

.ty-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--wp--preset--spacing--40); }
.ty-chips a { border: 1.5px solid var(--ty-sand); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.88rem; font-weight: 600; color: var(--ty-ink); text-decoration: none; transition: all .2s; }
.ty-chips a:hover, .ty-chips a[aria-current="page"] { background: var(--ty-ink); border-color: var(--ty-ink); color: var(--ty-cream); }

.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); gap: 0.5rem; font-weight: 600; }
.wp-block-query-pagination a { text-decoration: none; }

/* Page content helpers used by page patterns */
.ty-page-hero { position: relative; }
.ty-page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; }
.ty-lede { font-size: 1.3rem; font-family: var(--ty-display); color: var(--ty-ink-soft); line-height: 1.45; }
.ty-rounded img, img.ty-rounded { border-radius: var(--ty-r-lg); }
.ty-card-box { background: var(--ty-white); border: 1px solid var(--ty-sand); border-radius: var(--ty-r-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.ty-card-box > :first-child { margin-top: 0; }
.ty-table table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--ty-white); border-radius: var(--ty-r-md); overflow: hidden; }
.ty-table th, .ty-table td { border: 0; border-bottom: 1px solid var(--ty-sand); padding: 0.85rem 1rem; text-align: left; vertical-align: top; }
.ty-table thead th { background: var(--ty-ink); color: var(--ty-cream); font-weight: 600; border: 0; }
.ty-table tbody th { font-weight: 700; }
.ty-table figcaption { text-align: left; }

/* FAQ / details */
.wp-block-details { border-top: 1px solid var(--ty-sand); padding: 0; }
.wp-block-details:last-child { border-bottom: 1px solid var(--ty-sand); }
.wp-block-details summary {
	list-style: none; cursor: pointer; font-weight: 600; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 0.25rem; top: 50%; width: 0.75rem; height: 0.75rem; margin-top: -0.5rem;
	border-right: 2px solid var(--ty-ink); border-bottom: 2px solid var(--ty-ink); transform: rotate(45deg); transition: transform .3s var(--ty-ease);
}
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -0.15rem; }
.wp-block-details > :not(summary) { margin-top: 0; padding-bottom: 1.1rem; color: var(--ty-ink-soft); font-size: 0.95rem; }
.wp-block-details[open] > :not(summary) { animation: ty-fade .35s var(--ty-ease); }
@keyframes ty-fade { from { opacity: 0; transform: translateY(-4px); } }

/* ==========================================================================
   Single product (Fluent Cart)
   ========================================================================== */
.ty-product__info .product-card-inner { display: block; }
.ty-product__cols { align-items: flex-start !important; }
.ty-product__summary { position: sticky; top: calc(var(--ty-header-h) + 3rem); }
.admin-bar .ty-product__summary { top: calc(var(--ty-header-h) + 3rem + 32px); }
@media (max-width: 781px) { .ty-product__summary { position: static; } }
.ty-product__summary > * { margin-block: 0; }
.ty-product__terms { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ty-product__terms a { color: var(--ty-adobe); text-decoration: none; }
.ty-product__title { font-size: clamp(2.5rem, 4.5vw, 3.75rem) !important; margin: 0.4rem 0 0.6rem !important; line-height: 1 !important; }
.ty-product__price, .ty-product__price * { font: 500 1.5rem/1.2 var(--ty-display) !important; color: var(--ty-ink) !important; }
.ty-product__excerpt { color: var(--ty-ink-soft); font-size: 1.05rem; margin: 1rem 0 1.25rem !important; }
.ty-product__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.6rem !important; }
.ty-perks { list-style: none; padding: 1.25rem; margin: 1.5rem 0 !important; display: grid; gap: 0.8rem; background: var(--ty-paper); border-radius: var(--ty-r-md); font-size: 0.9rem; color: var(--ty-ink-soft); }
.ty-perks li { display: flex; gap: 0.8rem; align-items: flex-start; }
.ty-perks strong { color: var(--ty-ink); }
.ty-perks svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ty-adobe); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.ty-details { margin-top: 0.5rem !important; }
.ty-product__story { border-top: 1px solid var(--ty-sand); padding-top: var(--wp--preset--spacing--50); }
.ty-product__story-title { font-size: clamp(2rem, 3.4vw, 2.75rem) !important; }
.ty-product__content { font-size: 1.1rem; }
.ty-product__content > p:first-child { font-family: var(--ty-display); font-size: 1.35rem; line-height: 1.5; }
.tyarns-dyelot-note { background: var(--ty-white); border-left: 3px solid var(--ty-navel); padding: 1rem 1.25rem; border-radius: 0 var(--ty-r-md) var(--ty-r-md) 0; font-size: 0.95rem !important; color: var(--ty-ink-soft); }
.ty-product__related { border-top: 1px solid var(--ty-sand); padding-top: var(--wp--preset--spacing--50); }

/* Fluent Cart: gallery, variant pickers, quantity, buttons */
.fct-product-gallery-thumb, .fct-product-gallery-wrapper img, .fct-product-gallery img { border-radius: var(--ty-r-md); }
.ty-product .fct_buy_section { display: grid; gap: 1.1rem; }
.ty-product .fct-product-variants { display: flex !important; flex-wrap: wrap; gap: 0.6rem; columns: auto !important; }
.ty-product .fct-product-variant-item {
	flex: 1 1 0; min-width: 9rem; margin: 0 !important; cursor: pointer;
	background: var(--ty-white) !important; border: 1.5px solid var(--ty-sand) !important; border-radius: var(--ty-r-md) !important;
	padding: 0.85rem 1rem !important; transition: border-color .2s, box-shadow .2s; box-shadow: none !important;
}
.ty-product .fct-product-variant-item:hover { border-color: var(--ty-ink-soft) !important; }
.ty-product .fct-product-variant-item.selected { border-color: var(--ty-ink) !important; box-shadow: inset 0 0 0 1px var(--ty-ink) !important; }
.ty-product .fct-product-variant-image { display: none !important; }
.ty-product .fct-product-variant-text, .ty-product .variant-content { padding: 0 !important; display: block !important; }
.ty-product .fct-product-variant-title { font-weight: 700; font-size: 1rem; color: var(--ty-ink) !important; }
.ty-product .fct-product-variant-title::after { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ty-ink-soft); margin-top: 0.15rem; }
.ty-product [aria-label="Sunday Sock"] .fct-product-variant-title::after { content: "Fingering · 400 yds"; }
.ty-product [aria-label="Orchard DK"] .fct-product-variant-title::after { content: "DK · 231 yds"; }
.ty-product .fct-product-variant-item[data-item-stock="out-of-stock"] { opacity: .5; }
.ty-product .fct-product-variant-item[data-item-stock="out-of-stock"] .fct-product-variant-title::after { content: "Sold out"; }
.ty-product .fct-product-item-price { display: none !important; }
.ty-product .fct-product-quantity-container { display: flex; align-items: center; gap: 1rem; }
.ty-product .quantity-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.ty-product .fct-product-quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--ty-sand); border-radius: 999px; background: var(--ty-white); overflow: hidden; }
.ty-product .fct-product-quantity button { width: 2.6rem; height: 2.6rem; border: 0; background: transparent; color: var(--ty-ink); cursor: pointer; display: grid; place-items: center; }
.ty-product .fct-product-quantity button:hover { background: var(--ty-paper); }
.ty-product .fct-quantity-input { width: 2.6rem; border: 0 !important; background: transparent !important; text-align: center; font: 600 1rem var(--wp--preset--font-family--body); color: var(--ty-ink); -moz-appearance: textfield; box-shadow: none !important; padding: 0 !important; }
.ty-product .fct-quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ty-product .fct-product-buttons-wrap { display: flex !important; gap: 0.6rem; flex-wrap: wrap; }
.ty-product .fct-product-buttons-wrap > * {
	flex: 1 1 12rem; display: inline-flex !important; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 3.4rem; border-radius: 999px !important; font: 600 0.98rem/1 var(--wp--preset--font-family--body) !important;
	letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, transform .25s; box-shadow: none !important;
}
.ty-product .fluent-cart-add-to-cart-button { order: -1; background: var(--ty-adobe) !important; color: var(--ty-white) !important; border: 0 !important; }
.ty-product .fluent-cart-add-to-cart-button:hover { background: var(--ty-adobe-dark) !important; transform: translateY(-1px); }
.ty-product .fluent-cart-direct-checkout-button { background: transparent !important; color: var(--ty-ink) !important; border: 1.5px solid var(--ty-ink) !important; }
.ty-product .fluent-cart-direct-checkout-button:hover { background: var(--ty-ink) !important; color: var(--ty-cream) !important; }
.ty-product .fluent-cart-add-to-cart-button[disabled], .ty-product [data-stock-availability="out-of-stock"] { background: var(--ty-sand) !important; color: var(--ty-ink-soft) !important; border-color: var(--ty-sand) !important; cursor: not-allowed; }

/* Fluent Cart reviews */
.ty-product__reviews { border-top: 1px solid var(--ty-sand); padding-top: var(--wp--preset--spacing--50); }
.ty-product__reviews::before { content: "Reviews"; display: block; font: 420 var(--wp--preset--font-size--xx-large)/1.1 var(--ty-display); margin-bottom: var(--wp--preset--spacing--30); }
.ty-product__reviews [class*="summary"] { background: var(--ty-white); border-color: var(--ty-sand) !important; border-radius: var(--ty-r-md) !important; }

/* Fluent Cart: buttons, cart drawer, cart & checkout pages */
.fct-primary-btn, .fct_place_order_btn, .checkout-button {
	background: var(--ty-adobe) !important; color: var(--ty-white) !important; border: 0 !important;
	border-radius: 999px !important; font: 600 1rem/1 var(--wp--preset--font-family--body) !important;
	letter-spacing: 0.02em; min-height: 3.25rem; padding: 0 1.75rem !important; box-shadow: none !important;
	background-image: none !important; display: inline-flex !important; align-items: center; justify-content: center;
	transition: background .25s !important; text-decoration: none !important;
}
.fct-primary-btn:hover, .fct_place_order_btn:hover, .checkout-button:hover { background: var(--ty-adobe-dark) !important; }
.fct_place_order_btn { width: 100%; }
.fct-checkout :is(h1, h2, h3, h4), .fct_checkout :is(h1, h2, h3, h4) { font-family: var(--ty-display) !important; font-weight: 500 !important; }
.fct-checkout input:not([type=checkbox]):not([type=radio]), .fct-checkout select, .fct-checkout textarea { background: var(--ty-white) !important; font-family: var(--wp--preset--font-family--body) !important; }
.fct-checkout input:focus, .fct-checkout select:focus { border-color: var(--ty-ink) !important; box-shadow: none !important; }
.fct-cart-drawer, [class*="cart-drawer"] { font-family: var(--wp--preset--font-family--body); }
.ty-minicart { font-weight: 600; font-size: 0.95rem; }
.ty-minicart [class*="count"], .ty-minicart [class*="badge"] { background: var(--ty-adobe) !important; color: var(--ty-white) !important; }

/* Fluent Cart shop app (Shop page): match the theme's product cards */
.fct-products-container { gap: clamp(1rem, 2.4vw, 2rem) !important; row-gap: clamp(2rem, 4vw, 3rem) !important; }
@media (max-width: 760px) { .fct-products-container { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.fct-product-card { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; display: flex; flex-direction: column; gap: 0.3rem; }
.fct-product-card-image-wrap { border-radius: var(--ty-r-md) !important; overflow: hidden; background: var(--ty-paper); margin-bottom: 0.6rem; }
.fct-product-card-image { aspect-ratio: 4 / 5; width: 100% !important; height: auto !important; object-fit: cover; transition: transform .8s var(--ty-ease); border-radius: 0 !important; }
.fct-product-card:hover .fct-product-card-image { transform: scale(1.05); }
h3.fct-product-card-title { margin: 0 !important; padding: 0 !important; }
a.fct-product-card-title { font: 450 1.35rem/1.15 var(--ty-display) !important; color: var(--ty-ink) !important; text-decoration: none !important; }
a.fct-product-card-title:hover { color: var(--ty-adobe) !important; }
.fct-product-card-prices { padding: 0 !important; margin: 0 !important; font-weight: 600; color: var(--ty-ink); }
.fct-product-card-prices::after { content: "Sock · DK"; font-weight: 400; font-size: 0.8rem; color: var(--ty-ink-soft); margin-left: 0.6rem; }
.fct-product-view-button {
	margin: 0.5rem 0 0 !important; align-self: flex-start; background: transparent !important; color: var(--ty-ink) !important;
	border: 1.5px solid var(--ty-sand) !important; border-radius: 999px !important; padding: 0.55rem 1.1rem !important; min-height: 0 !important;
	font: 600 0.85rem/1 var(--wp--preset--font-family--body) !important; box-shadow: none !important; background-image: none !important; width: auto !important;
}
.fct-product-view-button:hover { background: var(--ty-ink) !important; border-color: var(--ty-ink) !important; color: var(--ty-cream) !important; }
.fct-shop-filter-wrapper { background: transparent !important; border: 0 !important; padding: 0 !important; }
.fct-shop-filter-item:has(.fct-shop-price-range-container) { display: none !important; }
.fct-shop-filter-wrapper :is(h3, h4, .fct-shop-filter-title, summary, button[class*="toggle"]) { font: 700 0.75rem/1.4 var(--wp--preset--font-family--body) !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ty-ink) !important; }
.fct-shop-checkbox { font-size: 0.95rem !important; color: var(--ty-ink) !important; }
.fct-shop-checkbox input { accent-color: var(--ty-adobe); }
.fct-shop-filter-wrapper input[type="search"], .fct-shop-filter-wrapper input[type="text"] { border-radius: 999px !important; border-color: var(--ty-sand) !important; background: var(--ty-white) !important; }
.fct-shop-filter-wrapper button[type="submit"], .fct-shop-filter-wrapper [class*="apply"] { background: var(--ty-ink) !important; color: var(--ty-cream) !important; border-radius: 999px !important; border: 0 !important; }

.ty-page-hero .is-style-tyarns-arch img { aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.ty-page .ff-el-form-control { border-radius: var(--ty-r-sm) !important; border-color: var(--ty-sand) !important; background: var(--ty-white) !important; padding: 0.75rem 1rem !important; }
.ty-page .ff-btn-submit { background: var(--ty-adobe) !important; color: var(--ty-white) !important; border-radius: 999px !important; padding: 0.9rem 1.75rem !important; font-weight: 600 !important; border: 0 !important; }
.ty-page .ff-btn-submit:hover { background: var(--ty-adobe-dark) !important; }
.ty-page .ff-el-input--label label { font-weight: 600; font-size: 0.9rem; }
@media (max-width: 781px) { .ty-announce__main { font-size: 0.75rem !important; } }
