/* ============================================================
   Borel Capital — stylesheet
   Tokens from the brand charter (Sept. 2026):
   ink / bordeaux / pearl / gray, Libre Baskerville + Instrument Sans
   ============================================================ */

:root {
	--ink: #121212;
	--bordeaux: #6e1f2e;
	--bordeaux-light: #8c2f40;
	--white: #ffffff;
	--pearl: #e9eaec;
	--pearl-line: #dcdee1;
	--gray-text: #5b5f66;
	--gray-line: #d6d9de;

	--font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
	--font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--max-width: 720px;
	--max-width-wide: 960px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--ink);
	background: var(--white);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	font-size: 16px;
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 24px; }

p { margin: 0 0 16px; color: var(--ink); }

a { color: var(--bordeaux); text-decoration: none; }
a:hover { color: var(--bordeaux-light); text-decoration: underline; }

strong { font-weight: 600; }

/* ---------- Wordmark & logo mark ---------- */

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
}
.wordmark:hover { text-decoration: none; color: var(--ink); }

.wordmark__text {
	font-family: var(--font-serif);
	font-size: 0.95rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wordmark--light { color: #fff; }
.wordmark--light:hover { color: #fff; }

.mark { display: block; flex: none; }

/* ---------- Header ---------- */

/* The header is injected into #site-header, a direct child of <body>: that wrapper is
   what must be sticky, otherwise the header has no room to stick. */
#site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--gray-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	min-height: 68px;
	max-width: var(--max-width-wide);
	margin: 0 auto;
	padding: 14px 24px;
	flex-wrap: wrap;
}

.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 420px) {
	.wordmark__text { font-size: 0.82rem; }
	.mark { width: 19px; height: 19px; }
	.site-nav { gap: 14px; }
	.site-nav a { font-size: 0.8rem; }
}

.site-nav a {
	text-decoration: none;
	color: var(--ink);
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	padding-bottom: 3px;
	border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }
.site-nav a.is-active { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }

/* ---------- Dark hero (homepage) ---------- */

.hero-dark {
	background: var(--ink);
	color: #fff;
	padding: 84px 24px 76px;
	text-align: center;
}

.hero-dark .mark--big { margin: 0 auto 28px; }

.hero-dark .wordmark-static {
	font-family: var(--font-serif);
	font-size: clamp(1.7rem, 5vw, 2.5rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 18px;
}

.hero-dark .hero-statement {
	font-family: var(--font-serif);
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
	max-width: 560px;
	margin: 0 auto;
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-pearl { background: var(--pearl); }
.section-tight { padding: 48px 0; }

.rule {
	border: none;
	border-top: 1px solid var(--gray-line);
	max-width: var(--max-width);
	margin: 0 auto;
}

.section-label {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bordeaux);
	font-weight: 600;
	margin-bottom: 18px;
}

h1.page-title {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.35;
	color: var(--ink);
	margin: 0 0 16px;
	max-width: 620px;
}

h2.subtitle {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--ink);
	margin: 0 0 6px;
}

.lede { color: var(--gray-text); font-size: 1rem; max-width: 540px; }

/* ---------- Page header (interior pages) ---------- */

.page-header { background: var(--pearl); padding: 56px 0; }

/* ---------- Two-column layout ---------- */

.two-col {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 760px) {
	.two-col { grid-template-columns: 1fr; }
}

/* ---------- Info panel (pearl card) ---------- */

.info-panel {
	background: var(--pearl);
	border-radius: 3px;
	padding: 26px 28px;
}

.info-panel h3 {
	font-family: var(--font-sans);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gray-text);
	margin: 0 0 16px;
}

.info-panel dl {
	margin: 0 0 20px;
}
.info-panel dt {
	font-size: 0.78rem;
	color: var(--gray-text);
	margin-bottom: 2px;
}
.info-panel dd {
	margin: 0 0 14px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink);
}
.info-panel dd:last-child { margin-bottom: 0; }

.info-panel .btn { width: 100%; text-align: center; }

/* ---------- Principles (white cards on pearl section) ---------- */

.principles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 760px) {
	.principles-grid { grid-template-columns: 1fr; }
}

.principle-card {
	background: var(--white);
	border-radius: 3px;
	padding: 26px 24px;
}

.principle-card h3 {
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 8px;
}
.principle-card p { margin: 0; color: var(--gray-text); font-size: 0.92rem; }

/* ---------- Job listing ---------- */

.job-meta { color: var(--gray-text); font-size: 0.85rem; margin: 0 0 20px; }
.job-list { padding-left: 20px; margin: 0 0 20px; }
.job-list li { margin-bottom: 8px; color: var(--ink); }

/* ---------- Forms ---------- */

.form-field { margin-bottom: 18px; }

.form-field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--ink);
}
.form-field .hint { font-weight: 400; color: var(--gray-text); font-size: 0.78rem; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--gray-line);
	border-radius: 2px;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--ink);
	background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--bordeaux);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input[type="file"] { width: 100%; font-size: 0.88rem; padding: 6px 0; }

.btn {
	display: inline-block;
	padding: 11px 26px;
	border-radius: 2px;
	text-decoration: none;
	font-size: 0.86rem;
	letter-spacing: 0.03em;
	font-weight: 600;
	border: 1px solid var(--bordeaux);
	background: var(--bordeaux);
	color: var(--white);
	cursor: pointer;
	font-family: var(--font-sans);
}
.btn:hover { background: var(--bordeaux-light); border-color: var(--bordeaux-light); color: var(--white); text-decoration: none; }

.btn--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.7); color: #fff; }

.form-status { margin-top: 14px; font-size: 0.86rem; min-height: 1.2em; }
.form-status--success { color: #1e7e45; }
.form-status--warn { color: #a9670c; }
.form-status--error { color: #b3261e; }

.form-note { font-size: 0.83rem; color: var(--gray-text); margin-top: 18px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.72);
	padding: 44px 0 32px;
}

.site-footer__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 22px;
}

.site-footer .site-nav a { color: rgba(255, 255, 255, 0.72); border-bottom-color: transparent; }
.site-footer .site-nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }

.site-footer a.contact-email { color: var(--bordeaux-light); font-size: 0.88rem; }
.site-footer a.contact-email:hover { color: #fff; }

.site-footer__legal {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.76rem;
	line-height: 1.6;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-top: 18px;
	margin-top: 6px;
}

@media (max-width: 600px) {
	.hero-dark { padding: 64px 24px 56px; }
	section { padding: 44px 0; }
	.page-header { padding: 40px 0; }
}

/* ---------- Utilities (replace inline styles, required by the CSP) ---------- */
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mt-28 { margin-top: 28px; }
.wrap--form { max-width: 640px; }
.email-link { font-weight: 600; }
.turnstile-slot { margin: 4px 0 16px; }
.turnstile-slot:empty { margin: 0; }

/* ---------- Home: two short text blocks under the band ---------- */
.home-intro {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 48px;
}
.home-intro p { margin-bottom: 10px; max-width: 380px; }
.home-intro a { font-weight: 600; }
@media (max-width: 760px) {
	.home-intro { grid-template-columns: 1fr; gap: 32px; }
}
