/*
Theme Name: Basecamp
Author: Matt Berry
Description: Shared layout and page architecture for Matt Berry's sites. Each brand is a small child theme that supplies its own colors, fonts, logo, photos and copy.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 7.1
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: basecamp
*/

/* ---------- Tokens (values come from the brand's theme.json) ---------- */
:root {
	--bc-ink: var(--wp--preset--color--contrast);
	--bc-panel: var(--wp--preset--color--panel);
	--bc-line-d: var(--wp--preset--color--line-dark);
	--bc-on-dark: var(--wp--preset--color--on-dark);
	--bc-muted-d: var(--wp--preset--color--muted-dark);
	--bc-ground: var(--wp--preset--color--base);
	--bc-card: var(--wp--preset--color--surface);
	--bc-muted: var(--wp--preset--color--muted);
	--bc-line: var(--wp--preset--color--line);
	--bc-accent: var(--wp--preset--color--accent);
	--bc-c2: var(--wp--preset--color--tone-2);
	--bc-c3: var(--wp--preset--color--tone-3);
	--bc-c4: var(--wp--preset--color--tone-4);
	--bc-c5: var(--wp--preset--color--tone-5);
	--bc-sans: var(--wp--preset--font-family--display);
	--bc-serif: var(--wp--preset--font-family--serif);
	--bc-mono: var(--wp--preset--font-family--mono);
	--bc-pad: clamp(20px, 5vw, 64px);
	--bc-tone: var(--bc-accent);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
img { max-width: 100%; height: auto; }

/* Italic inside a heading switches to the serif. That is the brand's emphasis move. */
h1 em, h2 em, h3 em, .bc-wordmark em, .bc-quote__big em {
	font-family: var(--bc-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
}

/* Tone helpers: add one of these classes to a card to pick its top-outline color. */
.bc-tone-1 { --bc-tone: var(--bc-accent); }
.bc-tone-2 { --bc-tone: var(--bc-c2); }
.bc-tone-3 { --bc-tone: var(--bc-c3); }
.bc-tone-4 { --bc-tone: var(--bc-c4); }
.bc-tone-5 { --bc-tone: var(--bc-c5); }
.bc-tone-ink { --bc-tone: var(--bc-ink); }

/* ---------- Section scaffolding ---------- */
.bc-section { padding: clamp(64px, 8vw, 120px) var(--bc-pad); }
.bc-section.bc-flush-top { padding-top: 0; }
/* ...unless it opens a page or follows a dark band, where it needs its own breathing room. */
.bc-sections .wp-block-post-content > .bc-section.bc-flush-top:first-child,
.bc-dark + .bc-section.bc-flush-top { padding-top: clamp(64px, 8vw, 120px); }
.bc-dark { background: var(--bc-ink); color: var(--bc-on-dark); }
.bc-wrap { max-width: 1320px; margin-inline: auto; display: flex; flex-direction: column; gap: 40px; }

/* WordPress adds vertical margins between blocks. Inside our sections spacing comes from gap instead. */
body .bc-section :is(div, section, figure, p, h1, h2, h3, h4, ul, ol, li),
body .bc-header :is(div, figure, p, ul, li),
body .bc-footer :is(div, figure, p, ul, li) { margin-block: 0; }

.bc-eyebrow {
	font-family: var(--bc-mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bc-muted);
	line-height: 1.4;
}
.bc-eyebrow a { color: inherit; text-decoration: none; }
.bc-dark .bc-eyebrow, .bc-card--dark .bc-eyebrow { color: var(--bc-muted-d); }

.bc-head { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.bc-headrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.bc-headrow > .bc-head { flex: 1 1 520px; }
.bc-headrow > .bc-lede { flex: 0 1 380px; }
.bc-h2 { font-size: clamp(36px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
.bc-lede { color: var(--bc-muted); }
.bc-dark .bc-lede { color: var(--bc-muted-d); }

/* ---------- Buttons ---------- */
.wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 999px;
	font-weight: 700; font-size: 17px; line-height: 1.1; text-decoration: none;
	transition: transform .15s ease, opacity .15s ease;
}
.wp-block-button__link:hover { transform: translateY(-1px); opacity: .9; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 1.5px solid currentColor; color: inherit; padding: 0 26px; font-weight: 600; }
.bc-btn-ink .wp-block-button__link { background: var(--bc-ink); color: var(--bc-on-dark); }
.bc-btn-light .wp-block-button__link { background: var(--bc-on-dark); color: var(--bc-ink); }
.bc-btn-play .wp-block-button__link::before {
	content: ""; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent currentColor;
}

/* ---------- Header ---------- */
.bc-header { background: var(--bc-ink); color: var(--bc-on-dark); padding: 16px var(--bc-pad); }
.bc-header__inner { max-width: 1320px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.bc-brand { display: flex; align-items: center; gap: 12px; }
.bc-brand .wp-block-image { width: 46px; flex: none; }
.bc-brand .wp-block-image img { width: 46px; height: 46px; display: block; }
.bc-brand .wp-block-site-title { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.bc-brand .wp-block-site-title a { color: inherit; text-decoration: none; }
.bc-nav { font-size: 16px; font-weight: 500; }
.bc-nav .wp-block-navigation__container { gap: 4px 28px; }
.bc-nav .wp-block-navigation-item__content { padding: 11px 2px; }
.bc-nav a { color: inherit; text-decoration: none; }
.bc-nav .bc-nav-cta > .wp-block-navigation-item__content {
	background: var(--bc-accent); color: var(--bc-ink); font-weight: 700;
	border-radius: 999px; padding: 11px 20px;
}
.bc-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--bc-ink); color: var(--bc-on-dark); padding: 24px var(--bc-pad); }
.bc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 28px; font-weight: 700; padding: 10px 0; }
.bc-nav .wp-block-navigation__responsive-container.is-menu-open .bc-nav-cta > .wp-block-navigation-item__content { font-size: 20px; padding: 14px 24px; margin-top: 12px; }

/* ---------- Hero ---------- */
.bc-hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
.bc-hero .bc-wrap { gap: clamp(36px, 5vw, 64px); }
.bc-display { font-size: clamp(46px, 9.2vw, 138px); line-height: 0.92; letter-spacing: -0.04em; font-weight: 700; }
.bc-display em { color: var(--bc-accent); letter-spacing: -0.02em; }
.bc-hero__top { display: flex; flex-direction: column; gap: 28px; }
.bc-hero__row { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-end; }
.bc-hero__intro { flex: 1 1 340px; max-width: 480px; display: flex; flex-direction: column; gap: 28px; }
.bc-hero__intro > p { font-size: 21px; line-height: 1.45; opacity: .9; }
.bc-hero__media { flex: 2 1 480px; position: relative; }
.bc-hero__media .wp-block-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 62%; border-radius: 28px; }
.bc-hero__caption { position: absolute; left: 20px; bottom: 20px; max-width: calc(100% - 40px); }
.bc-hero__caption a {
	display: inline-flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px; border-radius: 999px;
	background: var(--bc-on-dark); color: var(--bc-ink); font-weight: 600; font-size: 16px; line-height: 1.25; text-decoration: none;
}
.bc-hero__caption a { position: relative; }
.bc-hero__caption a::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--bc-accent); }
.bc-hero__caption a::after { content: ""; position: absolute; left: 27px; top: 50%; transform: translateY(-50%); border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--bc-ink); }

.bc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bc-stat { background: var(--bc-panel); border-radius: 20px; border-top: 6px solid var(--bc-tone); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.bc-stat__num { font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }

/* ---------- Cards (the bento box with the colored top outline) ---------- */
.bc-card { background: var(--bc-card); border-radius: 24px; overflow: hidden; border-top: 6px solid var(--bc-tone); display: flex; flex-direction: column; }
.bc-card .wp-block-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.bc-card .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bc-card:hover .wp-block-image img { transform: scale(1.03); }
.bc-card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.bc-card h3 { font-size: 26px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
.bc-card h3 a { color: inherit; text-decoration: none; }
.bc-card p { font-size: 17px; }
.bc-card__body > p:not(.bc-eyebrow) { color: var(--bc-muted); }
.bc-card--fill { background: var(--bc-tone); border-top: 0; padding: 26px 28px 28px; gap: 10px; justify-content: center; }
.bc-card--fill .bc-eyebrow { color: var(--bc-ink); }
.bc-card--fill .bc-big { font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.bc-card--dark { background: var(--bc-ink); color: var(--bc-on-dark); padding: 26px 28px 28px; gap: 24px; justify-content: space-between; }
.bc-card--dark .bc-big { font-family: var(--bc-serif); font-size: clamp(32px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.01em; }
.bc-card--dark .bc-big em { color: var(--bc-c2); font-style: italic; }
.bc-card--dark > p:last-child { color: var(--bc-muted-d); }
.bc-card__media { position: relative; display: flex; flex-direction: column; }
.bc-bento > :nth-child(1) .bc-card__media, .bc-bento > :nth-child(2) .bc-card__media { flex: 1 1 auto; }
.bc-tag { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 6px 14px; border-radius: 999px; background: var(--bc-ink); color: var(--bc-on-dark); font-family: var(--bc-mono); font-size: 12px !important; letter-spacing: 0.1em; text-transform: uppercase; }

/* Bento grid: first tile is the big one. */
.bc-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bc-bento > * { grid-column: span 2; }
.bc-bento > :nth-child(1) { grid-column: span 4; grid-row: span 2; }
.bc-bento > :nth-child(1) .wp-block-image { aspect-ratio: auto; flex: 1 1 auto; min-height: 320px; }
.bc-bento > :nth-child(2) .wp-block-image { aspect-ratio: auto; flex: 1 1 auto; min-height: 180px; }
.bc-bento > :nth-child(1) h3 { font-size: 32px; }

.bc-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bc-crew .bc-card .wp-block-image { aspect-ratio: 4 / 5; }
.bc-crew .bc-card__body { padding: 24px 28px 28px; gap: 8px; }
.bc-crew .bc-card h3 { font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.bc-crew .bc-card__body > p { font-size: 18px; }

/* ---------- Stories (latest posts) ---------- */
.bc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bc-chips .wp-block-button__link { background: var(--bc-card); color: var(--bc-ink); min-height: 44px; padding: 0 20px; font-size: 16px; font-weight: 600; }
.bc-chips .wp-block-button__link::before { content: ""; width: 12px; height: 12px; border-radius: 999px; background: var(--bc-tone); }
.bc-chips .bc-chip-all .wp-block-button__link { background: var(--bc-ink); color: var(--bc-on-dark); }
.bc-chips .bc-chip-all .wp-block-button__link::before { display: none; }

body .wp-block-query .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
body .wp-block-query .wp-block-post-template > li { margin-block: 0; }
.bc-stories .wp-block-post-template { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.bc-stories .wp-block-post-template > li:first-child { grid-row: span 2; }
.bc-stories .wp-block-post-template > li:only-child { grid-column: 1 / -1; }
.bc-posts .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bc-story { height: 100%; }
.bc-story .wp-block-post-featured-image { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bc-line); }
.bc-story .wp-block-post-featured-image a, .bc-story .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bc-story .bc-card__body { padding: 24px 28px 28px; gap: 10px; }
.bc-story .wp-block-post-title { font-size: 26px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.bc-story .wp-block-post-title a { color: inherit; text-decoration: none; }
.bc-story .wp-block-post-excerpt { margin: 0; color: var(--bc-muted); font-size: 17px; }
.bc-story .wp-block-post-excerpt__excerpt { margin: 0; }
.bc-story .wp-block-post-terms { margin: 0; }
.bc-stories li:first-child .wp-block-post-title { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -0.03em; }
.bc-stories li:not(:first-child) .wp-block-post-featured-image { aspect-ratio: 16 / 7; }
.bc-stories li:not(:first-child) .wp-block-post-excerpt { display: none; }
.bc-empty { background: var(--bc-card); border-radius: 24px; border-top: 6px solid var(--bc-accent); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.bc-empty h3 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.bc-empty p { margin: 0; color: var(--bc-muted); max-width: 620px; }
.wp-block-query-pagination { margin-top: 32px; font-weight: 600; gap: 16px; }

/* ---------- Quote ---------- */
.bc-quote .bc-wrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.bc-quote__text { flex: 3 1 520px; display: flex; flex-direction: column; gap: 36px; align-items: flex-start; }
.bc-quote__big { font-family: var(--bc-serif); font-size: clamp(32px, 4.3vw, 62px); line-height: 1.06; letter-spacing: -0.015em; }
.bc-quote__big em { color: var(--bc-accent); }
.bc-quote__photo { flex: 2 1 320px; }
.bc-quote__photo .wp-block-image { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; border-top: 6px solid var(--bc-c2); }
.bc-quote__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }

/* ---------- Split (photo + text) and mini cards ---------- */
.bc-split { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 40px 64px !important; }
.bc-split__media { flex: 1 1 420px; }
.bc-split__media .wp-block-image { position: relative; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; border-top: 6px solid var(--bc-tone); }
.bc-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bc-split__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.bc-split__text .bc-h2 { font-size: clamp(36px, 4.6vw, 62px); }
.bc-pair { display: flex; flex-wrap: wrap; gap: 20px; align-self: stretch; }
.bc-mini { flex: 1 1 220px; background: var(--bc-card); border-radius: 20px; border-top: 6px solid var(--bc-tone); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.bc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 600; }

/* ---------- Trip log ---------- */
.bc-log { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bc-stop { background: var(--bc-card); border-radius: 20px; border-top: 6px solid var(--bc-tone); padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.bc-stop .bc-eyebrow { font-size: 12px; }
.bc-stop__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.bc-stop > p:last-child { font-size: 16px; color: var(--bc-muted); }
.bc-stop--dark { background: var(--bc-ink); color: var(--bc-on-dark); }
.bc-stop--dark .bc-eyebrow, .bc-stop--dark > p:last-child { color: var(--bc-muted-d); }
.bc-h2--small { font-size: clamp(30px, 3.6vw, 48px); }

/* ---------- Join ---------- */
.bc-join { padding: 0 clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px); }
.bc-join__panel { border-radius: clamp(24px, 3vw, 40px); background: var(--bc-accent); color: var(--bc-ink); padding: clamp(48px, 7vw, 104px) clamp(20px, 4vw, 56px); }
.bc-join__panel .bc-wrap { max-width: 1240px; gap: 44px; }
.bc-join h2 { font-size: clamp(52px, 9vw, 128px); line-height: 0.9; letter-spacing: -0.045em; font-weight: 700; }
.bc-join .bc-headrow > p { flex: 0 1 420px; font-size: 20px; line-height: 1.4; font-weight: 500; }
.bc-join__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bc-join__card { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; align-items: flex-start; }
.bc-join__card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.bc-join__card p { font-size: 17px; }
.bc-join__card > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.bc-join__card--dark { background: var(--bc-ink); color: var(--bc-on-dark); }
.bc-join__card--dark p { color: var(--bc-muted-d); }
.bc-join__card--later { border: 1.5px dashed var(--bc-ink); }
.bc-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.bc-pills p { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--bc-ink); font-family: var(--bc-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.bc-footer { background: var(--bc-ink); color: var(--bc-on-dark); padding: clamp(56px, 7vw, 96px) var(--bc-pad) 40px; }
.bc-footer__inner { max-width: 1320px; margin-inline: auto; display: flex; flex-direction: column; gap: 48px; }
.bc-footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.bc-footer__top .wp-block-image { flex: none; width: clamp(120px, 16vw, 200px); }
.bc-footer__top .wp-block-image img { display: block; width: 100%; height: auto; }
.bc-wordmark { flex: 1 1 300px; font-size: clamp(40px, 9vw, 136px); line-height: 0.88; letter-spacing: -0.05em; font-weight: 700; }
.bc-wordmark em { color: var(--bc-accent); letter-spacing: -0.02em; }
.bc-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; border-top: 1px solid var(--bc-line-d); padding-top: 28px; font-size: 16px; }
.bc-footer__links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 500; }
.bc-footer__links a { color: inherit; text-decoration: none; padding: 11px 0; display: inline-block; }
.bc-footer__bar > p { color: var(--bc-muted-d); padding: 11px 0; }

/* ---------- Single posts, pages, archives ---------- */
.bc-page-head { padding: clamp(48px, 7vw, 96px) var(--bc-pad) clamp(28px, 4vw, 48px); }
.bc-page-head__inner { max-width: 1320px; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; }
.single .bc-page-head__inner, .page .bc-page-head__inner { max-width: 760px; }
.bc-page-head :is(h1, p, div) { margin-block: 0; }
.bc-title { font-size: clamp(38px, 6vw, 84px); line-height: 0.96; letter-spacing: -0.04em; font-weight: 700; }
.bc-meta { font-family: var(--bc-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bc-muted); }
.bc-feature { padding: 0 var(--bc-pad); }
.bc-feature .wp-block-post-featured-image { max-width: 1320px; margin: 0 auto; border-radius: 28px; overflow: hidden; border-top: 6px solid var(--bc-accent); }
.bc-feature .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bc-content { padding: clamp(32px, 5vw, 64px) var(--bc-pad) clamp(64px, 8vw, 120px); }
.bc-content .wp-block-post-content > * { max-width: 760px; margin-inline: auto; }
.bc-content .wp-block-post-content > .alignwide { max-width: 1100px; }
.bc-content .wp-block-post-content > .alignfull { max-width: none; }
.bc-content .wp-block-post-content { font-size: 19px; line-height: 1.65; }
.bc-content .wp-block-post-content :is(h2, h3) { margin-top: 1.8em; margin-bottom: .5em; letter-spacing: -0.025em; line-height: 1.1; }
.bc-content .wp-block-post-content h2 { font-size: clamp(28px, 3.4vw, 40px); }
.bc-content .wp-block-post-content h3 { font-size: clamp(22px, 2.6vw, 28px); }
.bc-content .wp-block-post-content a { color: inherit; text-decoration-color: var(--bc-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bc-content .wp-block-post-content img, .bc-content .wp-block-embed iframe { border-radius: 20px; }
.bc-content .wp-block-post-content blockquote { border-left: 0; border-top: 6px solid var(--bc-c2); background: var(--bc-card); border-radius: 20px; padding: 24px 28px; font-family: var(--bc-serif); font-size: 26px; line-height: 1.25; }
.bc-sections .wp-block-post-content > * { margin-block: 0; }
.bc-archive { padding-top: clamp(24px, 3vw, 40px); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bc-card .wp-block-image img, .wp-block-button__link { transition: none; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
	.bc-log { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bc-posts .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.bc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bc-bento > * { grid-column: span 1; }
	.bc-bento > :nth-child(1) { grid-column: span 2; grid-row: auto; }
	.bc-bento > :nth-child(1) .wp-block-image { aspect-ratio: 16 / 10; min-height: 0; }
	.bc-bento > :nth-child(2) .wp-block-image { aspect-ratio: 4 / 3; min-height: 0; }
	.bc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bc-stories .wp-block-post-template { grid-template-columns: 1fr; }
	.bc-stories .wp-block-post-template > li:first-child { grid-row: auto; }
	.bc-join__cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.bc-bento, .bc-grid-3, .bc-log, .bc-posts .wp-block-post-template { grid-template-columns: 1fr; }
	.bc-bento > *, .bc-bento > :nth-child(1) { grid-column: auto; }
	.bc-hero__caption { position: static; margin-top: 12px !important; max-width: none; }
	.bc-brand .wp-block-site-title { font-size: 18px; }
	.bc-crew .bc-card .wp-block-image { aspect-ratio: 4 / 3; }
}
