/*
Theme Name: Frerasite
Description: Child of the default Twenty Twenty-Five theme. Artisan identity: Fraunces headings, Ysabeau Office body and buttons, house palette from the design mockup with WCAG AA fixes per docs/design-research.md — one reserved CTA color per palette, AA link/muted-text tones, keyboard-only focus indicators.
Author: Soeuramique
Template: twentytwentyfive
Version: 0.1.15
Requires at least: 6.7
Tested up to: 6.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frerasite
*/

/* Fraunces, self-hosted woff2 subsets (no Google Fonts CDN — GDPR-safe for EU shops).
   Variable axis 400-700, optical size auto. Latin-ext covers œ, à, é, è, ê, ç. */

@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('./assets/fonts/fraunces-latin.woff2') format('woff2');
	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: 'Fraunces';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('./assets/fonts/fraunces-latin-ext.woff2') format('woff2');
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Ysabeau Office, self-hosted (OFL): brand voice for the site title. */
@font-face {
	font-family: 'Ysabeau Office';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('./assets/fonts/ysabeau-office-latin.woff2') format('woff2');
	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: 'Ysabeau Office';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('./assets/fonts/ysabeau-office-latin-ext.woff2') format('woff2');
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* WooCommerce legacy CSS keeps 300-weight display text (e.g. the
   thank-you heading); thin weights fail legibility for shop UI
   (design-research.md §4). */
.woocommerce-thankyou-order-received {
	font-weight: 400;
}

/* Unify button shape: 6px soft square — fits the editorial-craft
   identity (Fraunces, moody palettes) and matches the site's own
   thumbnails/inputs (.25rem). Core block buttons default to pill
   (9999px), Woo block buttons to .25rem, legacy buttons to 1em.
   One shape everywhere (design-research.md §5: CTA prominence +
   coherence). */
.wc-block-components-button {
	border-radius: 6px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	border-radius: 6px;
}

/* Form controls (variation selects, sorting, search, quantity, coupon
   and checkout fields): inherit the theme's type instead of the OS
   default. Borders use accent-3 (>= 4.5:1 on every palette's base,
   WCAG 1.4.11), 6px radius matches the buttons, visible focus ring
   (2.4.11), 1rem type so iOS doesn't zoom on focus. Native select
   arrow kept: padding and caret stay browser-default. */
.woocommerce select,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="search"],
.woocommerce textarea,
.wc-block-components-quantity-selector {
	font-family: var(--wp--preset--font-family--ysabeau-office);
	font-size: 1rem;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-3);
	border-radius: 6px;
}

.woocommerce select:hover,
.woocommerce input[type="text"]:hover,
.woocommerce input[type="email"]:hover,
.woocommerce input[type="tel"]:hover,
.woocommerce input[type="number"]:hover,
.woocommerce input[type="search"]:hover,
.woocommerce textarea:hover {
	border-color: var(--wp--preset--color--contrast);
}

.woocommerce select:focus-visible,
.woocommerce input:focus-visible,
.woocommerce textarea:focus-visible,
.wc-block-components-quantity-selector:focus-within {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

/* Checkboxes/radios: native accent, brand color. */
input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--wp--preset--color--accent-1);
}

/* Social icons: core's logos-only style colors each icon with its
   brand blue/red (off-brand on our dark bands). Icons follow the
   surrounding text color instead. */
.wp-block-social-links .wp-social-link {
	color: currentColor;
}

/* Focus indicators: keyboard-only. Default = brand halo for every
   focusable element (Woo renders cart/checkout buttons and drawers
   via JS after page load, so only a global rule covers them all and
   recolors any browser-default ring). */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

/* Buttons breathe a little more. */
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
button:focus-visible,
[role='button']:focus-visible,
summary:focus-visible {
	outline-offset: 3px;
}

/* Links: no ring — thicker offset underline plus a faint CTA tint.
   WCAG 2.4.7 visible, 2.4.13-thickness intent. */
a:focus-visible {
	outline: none;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	background-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 10%, transparent);
}

/* Mouse-click focus is never keyboard focus: no ring (Firefox matches
   :focus-visible on clicks more aggressively than Chromium — this is
   the belt under that braces). */
:focus:not(:focus-visible) {
	outline: none;
}

/* Programmatic container focus (Woo focuses the mini-cart drawer on
   open): a non-interactive wrapper gets no indicator. */
[tabindex='-1']:focus,
[tabindex='-1']:focus-visible {
	outline: none;
}

/* Firefox legacy inner button ring. */
button::-moz-focus-inner {
	border: none;
}

/* Prices: the glanceable element on cards — semibold, per NN/g's
   glanceable-reading findings and Baymard's card-hierarchy guidance. */
.woocommerce .price bdi,
.wc-block-components-product-price bdi,
.wc-block-components-product-price__value {
	font-weight: 600;
}
