/*
Theme Name: Bahama Ventures Journal
Theme URI: https://bahama.ventures
Description: Editorial child theme for the Bahama Ventures journal.
Author: Bahama Ventures
Template: blankslate
Version: 1.0.0
Text Domain: bahama-ventures
*/

/* Brand primitives: designed on the same compact scale and utility-first principles as bahama.ventures. */
:root {
	--bv-near-black: #151719;
	--bv-ink: #25282b;
	--bv-muted: #687078;
	--bv-paper: #f6f5f0;
	--bv-white: #ffffff;
	--bv-line: #d9dad5;
	--bv-yellow: #ffba08;
	--bv-yellow-deep: #d99300;
	--bv-max: 76rem;
	--bv-reading: 43rem;
	--bv-space-1: .5rem;
	--bv-space-2: 1rem;
	--bv-space-3: 1.5rem;
	--bv-space-4: 2rem;
	--bv-space-5: 3rem;
	--bv-space-6: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bv-paper); color: var(--bv-ink); font-family: 'Inter', Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--bv-yellow-deep); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

/* Familiar Tachyons-style layout helpers keep hand-authored block content in the same visual system. */
.center { margin-right: auto; margin-left: auto; }
.mw8 { max-width: var(--bv-max); }
.ph3 { padding-right: var(--bv-space-3); padding-left: var(--bv-space-3); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.ttu { letter-spacing: .11em; text-transform: uppercase; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: .7rem 1rem; top: 1rem; left: 1rem; z-index: 100; background: var(--bv-yellow); color: var(--bv-near-black); font-weight: 700; }

.site-frame { width: min(calc(100% - 3rem), var(--bv-max)); margin-inline: auto; }
.site-header { background: var(--bv-near-black); color: var(--bv-white); border-bottom: 4px solid var(--bv-yellow); }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: var(--bv-space-3); }
.brand { display: inline-flex; align-items: center; color: var(--bv-white); text-decoration: none; font-size: 1.05rem; font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.brand:hover { color: var(--bv-white); }
.brand__mark { display: inline-grid; flex: 0 0 auto; place-items: center; width: 2rem; height: 2rem; margin-right: .55rem; background: var(--bv-yellow); color: var(--bv-near-black); font-size: .74rem; font-weight: 800; letter-spacing: -.1em; }
.brand__identity { display: inline-flex; align-items: baseline; white-space: nowrap; }
.brand__word { text-transform: uppercase; }
.brand__tagline { color: #bec1c1; font-size: .8em; font-weight: 500; letter-spacing: -.025em; }
.brand__tagline::before { content: '|'; display: inline-block; margin: 0 .48rem; color: #73787b; }
.menu-toggle { display: none; padding: .5rem 0; border: 0; background: transparent; color: var(--bv-white); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: 1.45rem; padding: 0; margin: 0; list-style: none; }
.primary-nav a { color: #e5e7e7; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.primary-nav .current-menu-item a, .primary-nav a:hover { color: var(--bv-yellow); }

.journal-hero { padding: clamp(3.75rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6.5rem); background: var(--bv-near-black); color: var(--bv-white); }
.journal-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(14rem, .55fr); gap: var(--bv-space-5); align-items: end; }
.eyebrow, .post-meta, .post-category { color: var(--bv-yellow-deep); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.journal-hero .eyebrow { color: var(--bv-yellow); }
.journal-hero h1, .page-title, .entry-title { margin: .85rem 0 0; font-size: clamp(3.1rem, 7.7vw, 7.25rem); font-weight: 700; letter-spacing: -.075em; line-height: .88; }
.journal-hero__intro { max-width: 20rem; margin: 0 0 .35rem; color: #bdc1c2; font-size: 1.06rem; line-height: 1.55; }

.content-area { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--bv-ink); }
.section-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: var(--bv-muted); font-size: .75rem; }
.post-list { border-bottom: 1px solid var(--bv-line); }
.post-card { display: grid; grid-template-columns: 4.5rem minmax(10rem, 17rem) minmax(0, 1fr) minmax(8rem, .36fr); gap: var(--bv-space-3); align-items: start; padding: var(--bv-space-4) 0; border-top: 1px solid var(--bv-line); }
.post-card__number { color: var(--bv-yellow-deep); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.post-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #d7d8d4; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card__image:hover img { transform: scale(1.03); }
.post-card h2 { max-width: 42rem; margin: .35rem 0 .65rem; font-size: clamp(1.55rem, 3vw, 2.75rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.06; }
.post-card h2 a { text-decoration: none; }
.post-excerpt { max-width: 42rem; margin: 0; color: var(--bv-muted); }
.post-card__link { align-self: end; color: var(--bv-ink); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.post-card__link::after { content: '  ↗'; color: var(--bv-yellow-deep); }
.post-card__link:hover { color: var(--bv-yellow-deep); }
.no-posts { padding: 4rem 0; border-top: 1px solid var(--bv-line); }

.pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--bv-space-4); }
.pagination .page-numbers { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.pagination .page-numbers li { list-style: none; }
.pagination a.page-numbers, .pagination span.page-numbers { min-width: 2.35rem; padding: .5rem .7rem; border: 1px solid var(--bv-line); color: var(--bv-ink); text-align: center; text-decoration: none; }
.pagination .current, .pagination a:hover { border-color: var(--bv-near-black); background: var(--bv-near-black); color: var(--bv-white); }

.article { padding-block: clamp(3.5rem, 8vw, 7rem); }
.article-header { max-width: 68rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--bv-ink); }
.article-header .entry-title, .page-header .page-title { max-width: 67rem; font-size: clamp(2.8rem, 7vw, 6.8rem); line-height: .94; }
.entry-summary { max-width: 38rem; margin: 1.5rem 0 0; color: var(--bv-muted); font-size: 1.15rem; }
.featured-image { max-width: 68rem; margin: 3rem 0 0; }
.featured-image img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.entry-content { max-width: var(--bv-reading); margin: 3.5rem auto 0; font-family: 'Inter', Arial, Helvetica, sans-serif; font-size: clamp(1.12rem, 2vw, 1.25rem); line-height: 1.72; }
.entry-content > * { margin-block: 0 1.55rem; }
.entry-content h2, .entry-content h3 { margin-top: 2.8rem; font-family: 'Inter', Arial, Helvetica, sans-serif; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1.1; }
.entry-content a { color: var(--bv-yellow-deep); }
.entry-content blockquote { padding-left: 1.5rem; margin-inline: 0; border-left: 4px solid var(--bv-yellow); font-size: 1.45rem; line-height: 1.4; }
.entry-footer { max-width: var(--bv-reading); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--bv-line); color: var(--bv-muted); font-family: 'Inter', Arial, Helvetica, sans-serif; font-size: .78rem; }
.page-header { max-width: 68rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--bv-ink); }

.site-footer { padding-block: 2.5rem; background: var(--bv-near-black); color: #bec1c1; }
.footer-inner { display: flex; justify-content: space-between; gap: var(--bv-space-3); font-size: .74rem; }
.footer-brand { color: var(--bv-white); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links li { list-style: none; }
.footer-links a { color: #bec1c1; text-decoration: none; }
.footer-links a:hover { color: var(--bv-yellow); }
.not-found { min-height: 50vh; padding-block: 6rem; }
.not-found h1 { margin: .75rem 0; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.075em; line-height: .9; }
.search-form { display: flex; max-width: 32rem; gap: .5rem; margin-top: 2rem; }
.search-field { min-width: 0; flex: 1; padding: .7rem .8rem; border: 1px solid var(--bv-ink); background: var(--bv-white); }
.search-submit { padding: .7rem 1rem; border: 1px solid var(--bv-near-black); background: var(--bv-near-black); color: var(--bv-white); font-weight: 700; }

@media (max-width: 760px) {
	.site-frame { width: min(calc(100% - 2rem), var(--bv-max)); }
	.header-inner { min-height: 4.5rem; }
	.menu-toggle { display: block; }
	.primary-nav { display: none; position: absolute; top: 4.5rem; right: 0; left: 0; z-index: 20; padding: 1.25rem 1rem; background: var(--bv-near-black); border-top: 1px solid #393d40; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { align-items: flex-start; flex-direction: column; gap: 1rem; }
	.journal-hero__grid { display: block; }
	.journal-hero__intro { margin-top: 2rem; }
	.post-card { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; }
	.post-card__image { grid-column: 2; width: min(100%, 22rem); }
	.post-card__body, .post-card__link { grid-column: 2; }
	.post-card__link { margin-top: .2rem; }
	.footer-inner { display: block; }
	.footer-links { margin-top: 1rem; }
}

@media (max-width: 430px) { .search-form { display: block; } .search-submit { width: 100%; margin-top: .5rem; } }
