/*
Theme Name: Wind & Wall
Theme URI: https://windandwall.com
Author: The Winding Room LLC
Description: Custom theme for Wind & Wall. Card table at night: bottle-green felt, ivory type, one butter-yellow accent, tile-shaped corners. Mobile first.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: windandwall
*/

/* Design read: premium-consumer DTC coming-soon page for women who play American
   mahjong weekly and for gift buyers. Playful but premium, confident colour.
   Dials: VARIANCE 7, MOTION 3 (one reveal, nothing loops), DENSITY 3.
   Competitors are all light pastel/preppy (pink + navy, Jost/Poppins), so this is
   dark-locked, one accent, Bricolage Grotesque, tiles shot as objects.
   Shape rule: every corner is the tile radius (14px), buttons and inputs included. */

@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage.woff2") format("woff2");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-display: swap;
}

:root {
	--bg: #0f2a22;
	--bg-2: #12332a;
	--surface: #173e33;
	--surface-2: #1d4a3d;
	--ink: #f3efe2;
	--ink-2: #c9d2c6;
	--muted: #9fb0a3;
	--line: rgba(243, 239, 226, 0.14);
	--accent: #ffcf3d;
	--accent-2: #ffd966;
	--accent-ink: #1a1a12;
	--danger: #ffb4a2;
	--radius: 14px;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	font-variation-settings: "opsz" 14;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.br-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--accent); color: var(--accent-ink); padding: .7rem 1rem; border-radius: var(--radius);
}
.br-skip:focus { left: 16px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.br-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.br-section { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 112px); }

/* ---------- type ---------- */
.br-h1, .br-h2, .br-h3 { font-weight: 760; letter-spacing: -0.025em; margin: 0; font-variation-settings: "opsz" 96; }
.br-h1 { font-size: clamp(2.35rem, 6.2vw, 4.4rem); line-height: 1.02; }
.br-h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.06; }
.br-h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.015em; }
.br-lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 44ch; margin: 1.1rem 0 0; }
.br-body { color: var(--ink-2); max-width: 65ch; }
.br-small { color: var(--muted); font-size: .92rem; max-width: 40ch; }
.br-eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }

/* ---------- header: ONE row at every width ---------- */
.br-header { position: sticky; top: 0; z-index: 40; background: rgba(15, 42, 34, 0.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.br-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: nowrap; }
.br-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.br-brand:hover { color: var(--ink); }
.br-mark { flex: 0 0 auto; }
.br-word { font-weight: 780; font-size: 1.22rem; letter-spacing: -0.03em; white-space: nowrap; font-variation-settings: "opsz" 60; }
.br-amp { color: var(--accent); font-weight: 600; }

.br-nav { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 22px); flex-wrap: nowrap; white-space: nowrap; }
.br-nav > a, .br-dd > summary { font-size: .98rem; font-weight: 560; text-decoration: none; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.br-nav > a:hover, .br-dd > summary:hover { color: var(--accent); }
.br-dd { position: relative; }
.br-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.br-dd > summary::-webkit-details-marker { display: none; }
.br-dd > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.br-dd[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.br-dd-panel { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 220px; display: grid; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(4, 16, 12, .5); }
.br-dd-right { left: auto; right: -8px; }
.br-dd-panel a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 520; }
.br-dd-panel a:hover { background: var(--surface-2); color: var(--ink); }
.br-cart { display: inline-flex; align-items: center; gap: 8px; }
.br-cart-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700; }

.br-nav-narrow { display: none; }
@media (max-width: 760px) {
	.br-nav-wide { display: none; }
	.br-nav-narrow { display: block; }
	.br-word { font-size: 1.08rem; }
	.br-mark { width: 30px; height: 30px; }
}
@media (max-width: 370px) {
	.br-word { display: none; }
}

/* ---------- buttons + sign-up form ---------- */
.br-btn, .sc-button, .button, button.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius);
	background: var(--accent); color: var(--accent-ink) !important; font: 700 1rem/1 var(--font); letter-spacing: -0.005em;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .15s var(--ease), background .2s var(--ease);
}
.br-btn:hover, .sc-button:hover, .button:hover, #place_order:hover { background: var(--accent-2); color: var(--accent-ink) !important; }
.br-btn:active, .sc-button:active, .button:active, #place_order:active { transform: translateY(1px) scale(.99); }
.button.alt, .woocommerce a.button.alt { background: var(--accent); }

.sc-signup { margin-top: 1.8rem; max-width: 520px; }
.sc-label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.sc-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.sc-input, .input-text, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
	width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--radius);
	border: 1.5px solid rgba(243, 239, 226, .32); background: rgba(8, 24, 19, .55); color: var(--ink);
	font: 500 1rem/1.3 var(--font);
}
textarea { padding: 14px 16px; min-height: 120px; }
.sc-input::placeholder, .input-text::placeholder { color: #8ea193; }
.sc-input:focus, .input-text:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 207, 61, .25); }
.sc-note { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.sc-status { margin: 8px 0 0; min-height: 1.4em; font-weight: 600; color: var(--accent); }
.sc-signup.is-error .sc-status { color: var(--danger); }
.sc-signup.is-error .sc-input { border-color: var(--danger); }
.sc-signup.is-busy .sc-button { opacity: .7; }
.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
	.sc-row { grid-template-columns: 1fr; }
	.sc-button { width: 100%; }
}

/* ---------- home: hero ---------- */
.ww-hero { padding-top: clamp(28px, 5vw, 72px); padding-bottom: clamp(40px, 6vw, 88px); }
.ww-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.ww-hero-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.ww-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
	.ww-hero-grid { grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 88px); }
	.ww-hero-media { aspect-ratio: 4 / 5; max-height: 78vh; }
}

/* ---------- home: statement band ---------- */
.ww-band { background: var(--accent); color: var(--accent-ink); }
.ww-band .br-wrap { padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(40px, 7vw, 84px); }
.ww-band p { margin: 0; font-weight: 760; font-size: clamp(1.7rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 22ch; font-variation-settings: "opsz" 96; }
.ww-band p span { display: block; font-weight: 520; font-size: clamp(1.05rem, 1.7vw, 1.3rem); letter-spacing: -0.005em; line-height: 1.45; margin-top: 1rem; max-width: 46ch; font-variation-settings: "opsz" 14; }

/* ---------- home: bento (exactly 3 cells) ---------- */
.ww-bento { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 36px; }
.ww-cell { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.ww-cell figure { margin: 0; overflow: hidden; }
.ww-cell img { width: 100%; height: 100%; object-fit: cover; }
.ww-cell-copy { padding: 22px 22px 26px; }
.ww-cell-copy p { margin: .5rem 0 0; color: var(--ink-2); max-width: 46ch; }
.ww-cell-a figure { aspect-ratio: 3 / 2; }
.ww-cell-b figure { aspect-ratio: 1 / 1; }
.ww-cell-c { background: var(--surface-2); justify-content: flex-end; min-height: 280px;
	background-image:
		radial-gradient(circle at 18% 22%, rgba(255, 207, 61, .9) 0 22px, transparent 23px),
		repeating-linear-gradient(90deg, rgba(243, 239, 226, .06) 0 44px, transparent 44px 56px);
}
@media (min-width: 900px) {
	.ww-bento { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
	.ww-cell-a { grid-row: 1 / span 2; }
	.ww-cell-a figure { aspect-ratio: auto; flex: 1 1 auto; min-height: 420px; }
	.ww-cell-b figure { aspect-ratio: 16 / 10; }
}

/* ---------- home: why join (plain list, no cards) ---------- */
.ww-why { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 8px; }
.ww-why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ww-why-list li { padding: 22px 0; border-top: 1px solid var(--line); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; letter-spacing: -0.01em; }
.ww-why-list li span { display: block; font-size: 1rem; font-weight: 400; color: var(--ink-2); margin-top: 4px; letter-spacing: 0; }
@media (min-width: 900px) { .ww-why { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ---------- home: closing join ---------- */
.ww-join { background: var(--bg-2); border-top: 1px solid var(--line); }
.ww-join-inner { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .ww-join-inner { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ww-join .sc-signup { margin-top: 0; }

/* ---------- reveal (the only motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.br-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
	.br-reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- prose pages ---------- */
.br-page-title { margin-bottom: 1.6rem; }
.br-prose { max-width: 760px; }
.br-prose .br-body h2 { color: var(--ink); font-size: 1.35rem; letter-spacing: -0.015em; margin: 2.2rem 0 .6rem; }
.br-prose .br-body h3 { color: var(--ink); font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.br-prose .br-body p, .br-prose .br-body li { color: var(--ink-2); }
.br-prose .br-body ul { padding-left: 1.2rem; }
.br-prose .br-body a { color: var(--accent); }
.br-prose details { border-top: 1px solid var(--line); padding: 16px 0; }
.br-prose details:last-of-type { border-bottom: 1px solid var(--line); }
.br-prose summary { cursor: pointer; font-weight: 650; color: var(--ink); font-size: 1.08rem; }
.br-prose details p { margin: .6rem 0 0; }

/* ---------- store ---------- */
.br-store h1.page-title, .br-store .woocommerce-products-header__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 760; letter-spacing: -0.025em; margin: 0 0 1rem; }
.br-store .term-description { color: var(--ink-2); max-width: 60ch; }
.woocommerce-result-count, .woocommerce-ordering { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.woocommerce-ordering select { min-height: 42px; width: auto; }
ul.products { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
ul.products li.product { margin: 0; padding: 0; width: auto; float: none; }
ul.products li.product a { text-decoration: none; }
ul.products li.product img { border-radius: var(--radius); background: var(--surface); aspect-ratio: 1 / 1; object-fit: cover; }
ul.products li.product h2 { font-size: 1.05rem; font-weight: 650; margin: .8rem 0 .2rem; }
ul.products li.product .price { color: var(--ink-2); }
.br-empty { max-width: 620px; padding: 32px 0; }
.br-empty .br-body { margin-top: .6rem; }

.single-product div.product { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .single-product div.product { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.single-product div.product .woocommerce-product-gallery { margin: 0; width: auto; float: none; }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--radius); }
.single-product div.product .summary { margin: 0; width: auto; float: none; }
.single-product .product_title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 760; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 .6rem; }
.single-product .price { font-size: 1.3rem; font-weight: 650; color: var(--accent); }
.single-product .woocommerce-tabs, .single-product .related, .single-product .upsells { grid-column: 1 / -1; }
.woocommerce-tabs ul.tabs { list-style: none; padding: 0; display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; }
.woocommerce-tabs ul.tabs li.active a { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
form.cart { display: flex; gap: 10px; align-items: stretch; margin: 1.4rem 0; }
form.cart .quantity input { width: 84px; text-align: center; }
.br-assurances { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.br-assurances li { padding-left: 22px; position: relative; }
.br-assurances li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.stock.out-of-stock { color: var(--muted); font-weight: 600; }

/* cart + checkout */
.br-store-page { max-width: 1100px; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 1.4rem; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.woocommerce-error { border-color: var(--danger); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; margin-left: 12px; }
table.shop_table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.shop_table th, table.shop_table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table img { width: 64px; border-radius: 10px; }
.cart-collaterals { margin-top: 28px; }
.cart_totals h2, #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
form.checkout { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
	form.checkout { grid-template-columns: 1.1fr .9fr; }
	form.checkout #customer_details { grid-row: 1 / span 2; }
}
.col2-set .col-1, .col2-set .col-2 { width: auto; float: none; }
.form-row { margin: 0 0 14px; }
.form-row label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.woocommerce-checkout-payment, #payment { background: var(--surface); border-radius: var(--radius); padding: 18px; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 14px; }
#payment .payment_box { background: rgba(8, 24, 19, .45); padding: 14px; border-radius: 10px; color: var(--ink-2); }
#place_order { width: 100%; margin-top: 12px; }
.select2-container--default .select2-selection--single { min-height: 52px; border-radius: var(--radius) !important; border: 1.5px solid rgba(243, 239, 226, .32) !important; background: rgba(8, 24, 19, .55) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink) !important; line-height: 50px !important; padding-left: 16px !important; }
.select2-dropdown { background: var(--surface) !important; color: var(--ink); border-color: var(--line) !important; }

/* ---------- footer ---------- */
.br-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg); }
.br-footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.br-footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .br-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .br-footer-brand { grid-column: auto; } }
.br-footer-h { font-size: .95rem; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.br-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.br-footer ul a { text-decoration: none; color: var(--ink-2); }
.br-footer ul a:hover { color: var(--accent); }
.br-footer .br-small { margin-top: 14px; }
.br-colophon { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
