/* YorkBee base: type details, links, buttons, form fields, focus.
   Tokens come from theme.json (--wp--preset--*, --wp--custom--*). */

:root {
	--yb-ease: var(--wp--custom--ease, cubic-bezier(.16, 1, .3, 1));
	--yb-head-h: 60px;
	--yb-paper: var(--wp--preset--color--paper);
	--yb-ink: var(--wp--preset--color--ink);
	--yb-black: var(--wp--preset--color--black);
	--yb-gold: var(--wp--preset--color--gold);
	/* Buying buttons: forest green with cream lettering (9:1). Hover: an outline. */
	--yb-cta: #1F4D3A;
	--yb-cta-text: #FFF6E6;
	--yb-cta-line: #1F4D3A;
	--yb-cta-frame: none;
	--yb-cta-frame-hover: none;
	--yb-bronze: var(--wp--preset--color--bronze);
	--yb-muted-dark: var(--wp--preset--color--muted-on-dark);
	--yb-muted-light: var(--wp--preset--color--muted-on-light);
	--yb-line-dark: var(--wp--preset--color--line-on-dark);
	--yb-line-light: var(--wp--preset--color--line-on-light);
	--yb-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
}
@media (min-width: 1080px) {
	:root { --yb-head-h: 76px; }
}

html {
	scroll-padding-top: calc(var(--yb-head-h) + 16px);
	-webkit-text-size-adjust: 100%;
}
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	/* Bodoni Moda's optical size, fixed at 18. Left on auto, Chrome uses the
	   display cut (up to 96) for large text, whose hairlines nearly vanish on
	   standard-density screens. Jost has no opsz axis, so it ignores this. */
	font-variation-settings: "opsz" 18;
}

/* Template parts and main sit flush; sections own their own spacing. */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }

/* Display headings set one word or phrase in italic: "The <em>honeys</em>". */
:where(h1, h2, h3, h4, h5) em,
:where(h1, h2, h3, h4, h5) i { font-style: italic; }
p { text-wrap: pretty; }

/* Small caps labels ("eyebrows"). Bronze on light, gold on dark sections. */
.yb-eyebrow {
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: .2em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--yb-bronze);
}
.is-dark .yb-eyebrow,
.is-style-black .yb-eyebrow,
.is-style-atmosphere .yb-eyebrow,
.is-style-brown .yb-eyebrow,
.is-style-comb .yb-eyebrow { color: var(--yb-gold); }

/* Underline link (".yc-u"): small caps label, hairline that draws on hover. */
.yb-u,
.is-style-text > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 0 0 5px;
	border: 0;
	border-radius: 0;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	color: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: .2em;
	text-decoration: none;
	text-transform: uppercase;
	min-height: 0;
	transition: background-size .8s var(--yb-ease);
}
.yb-u:hover,
.is-style-text > .wp-block-button__link:hover { background-size: 36% 1px; }
/* Text links keep their colour on hover (the button rule below would turn
   them ink, invisible on the black hero). */
.wp-block-button.is-style-text > .wp-block-button__link:hover,
.wp-block-button.is-style-text > .wp-block-button__link:focus-visible { color: inherit; background-color: transparent; }

/* Buttons: 52–56px tall, uppercase tracked label, arrow that slides on hover. */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 54px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .7s var(--yb-ease), color .7s var(--yb-ease), border-color .7s var(--yb-ease);
}
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background-color: transparent;
	color: var(--yb-ink);
}
.wp-block-button.is-style-light > .wp-block-button__link {
	background-color: var(--yb-paper);
	border-color: var(--yb-paper);
	color: var(--yb-ink);
}
.wp-block-button.is-style-light > .wp-block-button__link:hover,
.wp-block-button.is-style-light > .wp-block-button__link:focus-visible {
	background-color: transparent;
	color: var(--yb-paper);
}
.wp-block-button.is-style-line > .wp-block-button__link {
	background-color: transparent;
	color: currentColor;
	border-color: currentColor;
}
.wp-block-button.is-style-line > .wp-block-button__link:hover {
	background-color: var(--yb-ink);
	border-color: var(--yb-ink);
	color: var(--yb-paper);
}
.wp-block-button.has-arrow > .wp-block-button__link::after,
.yb-u.has-arrow::after,
.is-style-text.has-arrow > .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--yb-i-arrow) center / contain no-repeat;
	mask: var(--yb-i-arrow) center / contain no-repeat;
	transition: transform .8s var(--yb-ease);
}
.wp-block-button.has-arrow > .wp-block-button__link:hover::after,
.yb-u.has-arrow:hover::after { transform: translateX(6px); }

/* Form fields: hairline boxes, nearly square, generous height. */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
	input[type="number"], input[type="password"], input[type="url"], select, textarea) {
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid rgba(11, 11, 11, .22);
	border-radius: 1px;
	background: #fff;
	color: var(--yb-ink);
	font: 400 17px/1.4 var(--wp--preset--font-family--text);
	box-sizing: border-box;
}
:where(input, select, textarea)::placeholder { color: #8C877E; opacity: 1; }
:where(input, select, textarea):focus { border-color: var(--yb-ink); outline: none; }
label { font-size: var(--wp--preset--font-size--x-small); letter-spacing: .2em; text-transform: uppercase; }

/* Visible focus everywhere (WCAG 2.2): a thin gold-deep ring, offset. */
:focus-visible {
	outline: 1px solid var(--wp--preset--color--gold-deep);
	outline-offset: 4px;
}

/* Screen-reader-only text. */
.yb-vh,
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Images: near-square corners everywhere. */
img { border-radius: 1px; }
