/*
Theme Name: Ben Arden
Theme URI: https://www.benarden.com
Author: Ben Arden, LLC
Description: Editorial portfolio theme for Ben Arden. Projects, editable block content, built in project forms that email submissions, and one click starter content.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: benarden
*/

@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-wdth.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

:root {
	--ba-ink: #0E0E0E;
	--ba-grey: #5E5E5E;
	--ba-accent: #B04442;
	--ba-accent-light: #E88A86;
	--ba-gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: #FFFFFF;
	color: var(--ba-ink);
	font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
a { color: var(--ba-ink); }
a:hover { color: var(--ba-accent); }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: var(--ba-ink); display: block; height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000; }

/* ---------- Header ---------- */
.ba-header {
	padding: 28px var(--ba-gutter);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px;
}
.ba-logo { display: flex; align-items: center; text-decoration: none; }
.ba-logo img { height: 24px; width: auto; display: block; }
.ba-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; font-size: 15px; font-weight: 500; }
.ba-nav a { text-decoration: none; }
.ba-nav .is-cta > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.ba-nav .current-menu-item:not(.menu-item-type-custom) > a { color: var(--ba-accent); }

/* ---------- Content reset ---------- */
.ba-content :where(p, h1, h2, h3, h4, h5, h6, figure, ul, ol, dl, dd, blockquote) { margin: 0; }
.ba-content :where(.is-layout-flow, .is-layout-constrained) > * { margin-block-start: 0; margin-block-end: 0; }
.ba-content :where(.wp-block-group) { box-sizing: border-box; }
.ba-content figure.ba-bare { display: contents; }
.ba-content .wp-block-image img, .ba-content .wp-block-video video { vertical-align: bottom; }
.ba-content .wp-element-caption { margin: 0; text-align: left; }
.ba-content :where(ul.wp-block-list) { padding-left: 1.2em; }

/* Generic blocks people add later get sensible defaults */
.ba-content > :where(p, h1, h2, h3, h4, ul, ol, .wp-block-image, .wp-block-buttons, .wp-block-quote, .wp-block-table, .wp-block-columns, .wp-block-embed):not([class*="bx"]):not(.ba-bare) {
	max-width: 1100px; margin: 0 auto; padding: 0 var(--ba-gutter);
}
.ba-content > :where(p, ul, ol):not([class*="bx"]) { font-size: 19px; line-height: 1.6; padding-top: 12px; padding-bottom: 12px; }
.ba-content > :where(h2, h3):not([class*="bx"]) { font-stretch: 112%; font-weight: 700; letter-spacing: -0.03em; line-height: 1; padding-top: 40px; padding-bottom: 12px; }
.ba-content > h2:not([class*="bx"]) { font-size: clamp(32px, 4vw, 60px); }
.ba-content > h3:not([class*="bx"]) { font-size: clamp(24px, 2.6vw, 40px); }

/* Linked rows and tiles: the whole card is clickable */
.ba-linked { position: relative; }
.ba-stretch { color: inherit; text-decoration: inherit; }
.ba-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ba-linked:hover .ba-stretch { color: inherit; }
.ba-linkp > a:hover { color: var(--ba-accent); }

/* Homepage hover */
.wk { overflow: hidden; }
.wk img, .wk video { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.case:hover .wk img, .case:hover .wk video { transform: scale(1.035); }
.case:hover .cta, .case:hover .cta a { color: var(--ba-accent); }

/* ---------- Next project ---------- */
.ba-next {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px;
	padding: clamp(56px, 7vw, 112px) var(--ba-gutter); color: var(--ba-ink); text-decoration: none;
	border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4;
}
.ba-next__label { display: flex; flex-direction: column; gap: 10px; }
.ba-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ba-grey); }
.ba-next__title { font-stretch: 112%; font-weight: 700; font-size: clamp(40px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.03em; }
.ba-next__cat { font-size: 16px; color: var(--ba-grey); }

/* ---------- Contact + footer ---------- */
.ba-contact { background: var(--ba-ink); color: #F5F5F5; }
.ba-contact a { color: #F5F5F5; }
.ba-contact a:hover { color: var(--ba-accent-light); }
.ba-contact__inner { padding: clamp(80px, 10vw, 160px) var(--ba-gutter) clamp(56px, 6vw, 88px); display: flex; flex-direction: column; gap: clamp(40px, 6vw, 88px); }
.ba-contact__title { margin: 0; font-stretch: 112%; font-weight: 700; font-size: clamp(48px, 8.4vw, 140px); line-height: 0.94; letter-spacing: -0.035em; max-width: 13ch; }
.ba-contact__title span { color: var(--ba-accent-light); }
.ba-contact__row { border-top: 1px solid #3A3A3A; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-end; }
.ba-contact__email { font-stretch: 108%; font-weight: 600; font-size: clamp(24px, 3.2vw, 48px); letter-spacing: -0.02em; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.ba-contact__side { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.ba-contact__brand { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: #A3A3A3; }
.ba-footer { border-top: 1px solid #262626; padding: 24px var(--ba-gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: #A3A3A3; }
.ba-footer img { height: 18px; width: auto; display: block; }
.ba-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.ba-footer__links a { text-decoration: none; }
.ba-footer__label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: #8C8C8C; }
.ba-footer .ba-top { color: #A3A3A3; text-decoration: none; }

/* ---------- Simple index / 404 ---------- */
.ba-simple { padding: clamp(40px, 7vw, 112px) var(--ba-gutter); display: flex; flex-direction: column; gap: 32px; }
.ba-simple h1 { margin: 0; font-stretch: 112%; font-weight: 700; font-size: clamp(48px, 8vw, 128px); line-height: 0.92; letter-spacing: -0.04em; }
.ba-simple h1 span { color: var(--ba-accent); }
.ba-simple ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ba-ink); }
.ba-simple li { border-bottom: 1px solid #E4E4E4; padding: 20px 0; font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; }
.ba-simple li a { text-decoration: none; }
