/* =============================================================
   WEEVA — POLYMATHIA
   Design tokens: the whole site stays near-monochrome (paper /
   ink / concrete) — the same restraint as the 16-post campaign —
   with the burnt-orange "payoff" colour used sparingly, the way
   the campaign holds colour back until the final post.
   ============================================================= */

:root {
	--paper: #F1F0EE;
	--white: #FFFFFF;
	--ink: #101012;
	--ink-soft: #55565A;
	--concrete-dark: #1C1C1D;
	--concrete: #7A7A76;
	--payoff: #B8551D;
	--payoff-soft: #F0A268;
	--line: #DEDDD8;
	--line-on-dark: rgba(241, 240, 238, 0.16);

	--font-display: 'Archivo', 'Arial Narrow', sans-serif;
	--font-body: 'Newsreader', Georgia, serif;
	--font-mono: 'IBM Plex Mono', 'Courier New', monospace;

	--container: 1280px;
	--gutter: clamp(20px, 5vw, 64px);

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   RESET / BASE
   ============================================================= */

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.site-wrap { overflow: hidden; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
}
.skip-link.screen-reader-text:focus {
	position: fixed !important;
	clip: auto !important;
	width: auto; height: auto;
	top: 12px; left: 12px;
	z-index: 9999;
	background: var(--ink);
	color: var(--paper);
	padding: 10px 16px;
	font-family: var(--font-mono);
	font-size: 13px;
}

:focus-visible {
	outline: 2px solid var(--payoff);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.eyebrow {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin: 0 0 14px;
}
.eyebrow--glow { color: var(--payoff); }
.eyebrow--on-dark { color: var(--payoff-soft); }
.eyebrow--muted-dark { color: rgba(244, 241, 234, 0.5); }

.section-title {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.1;
	margin: 0;
}

/* Recurring triangle motif */
.pillar-card__mark {
	display: block;
	width: 30px; height: 6px;
	margin-bottom: 20px;
	background: var(--stage-color, var(--concrete));
}

/* =============================================================
   HEADER
   ============================================================= */

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	padding: 22px var(--gutter);
	transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(246, 244, 239, 0.92);
	backdrop-filter: blur(10px);
	border-bottom-color: var(--line);
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-header__mark {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	text-decoration: none;
	color: var(--paper);
	transition: color 0.35s var(--ease);
}
.is-scrolled .site-header__mark { color: var(--ink); }
.site-header__wordmark {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 19px;
	letter-spacing: 0.08em;
}
.site-header__glyph { color: var(--payoff); font-size: 13px; }

.nav__list {
	list-style: none;
	display: flex;
	gap: clamp(20px, 3vw, 40px);
	margin: 0; padding: 0;
}
.nav__link {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--paper);
	position: relative;
	padding-bottom: 4px;
	transition: color 0.35s var(--ease);
}
.is-scrolled .nav__link { color: var(--ink); }
.nav__link::after {
	content: "";
	position: absolute; left: 0; right: 100%; bottom: 0;
	height: 1px;
	background: var(--payoff);
	transition: right 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { right: 0; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px; height: 34px;
	background: none; border: none;
	cursor: pointer;
	padding: 0;
}
.nav-toggle__bar {
	display: block;
	height: 1.5px; width: 100%;
	background: var(--paper);
	transition: background-color 0.35s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.is-scrolled .nav-toggle__bar { background: var(--ink); }

/* =============================================================
   HERO
   ============================================================= */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	background: var(--concrete-dark);
}

.hero__media { position: absolute; inset: 0; z-index: 1; }
.hero__image {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 50% 42%;
}
.hero__scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(17,17,19,0.3) 0%, rgba(17,17,19,0.05) 32%, rgba(17,17,19,0.5) 78%, rgba(17,17,19,0.9) 100%),
		linear-gradient(90deg, rgba(17,17,19,0.5) 0%, rgba(17,17,19,0) 45%);
}

.hero__content {
	position: relative;
	z-index: 3;
	max-width: var(--container);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--gutter) 96px;
	color: var(--paper);
}

.hero__headline {
	font-family: var(--font-display);
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(56px, 13vw, 168px);
	line-height: 0.86;
	letter-spacing: -0.01em;
	margin: 0 0 22px;
}

.hero__tagline {
	font-family: var(--font-body);
	font-style: italic;
	font-size: clamp(17px, 2vw, 22px);
	line-height: 1.5;
	max-width: 30ch;
	color: var(--paper);
	opacity: 0.92;
	margin: 0;
}

.hero__scroll-cue {
	position: absolute;
	z-index: 3;
	right: var(--gutter);
	bottom: 36px;
	color: var(--paper);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0.75;
}
.hero__scroll-cue span { animation: weeva-bob 1.8s ease-in-out infinite; }
@keyframes weeva-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(4px); }
}

/* =============================================================
   THESIS
   ============================================================= */

.thesis { padding: clamp(90px, 14vw, 160px) var(--gutter); }
.thesis__inner {
	max-width: 780px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 18px;
	align-items: start;
}
.thesis__bracket {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(40px, 6vw, 64px);
	color: var(--payoff);
	line-height: 1;
}
.thesis__quote {
	margin: 0;
	font-family: var(--font-body);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(22px, 3.4vw, 34px);
	line-height: 1.45;
	text-align: center;
	color: var(--ink);
}

/* =============================================================
   PILLARS
   ============================================================= */

.pillars { padding: clamp(40px, 8vw, 80px) var(--gutter) clamp(90px, 12vw, 140px); }
.pillars__head { max-width: var(--container); margin: 0 auto 48px; text-align: center; }

.pillars__grid {
	max-width: var(--container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.pillar-card {
	aspect-ratio: 1 / 1;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--white);
	transition: background-color 0.35s var(--ease);
}
.pillar-card:hover { background: var(--paper); }

.pillar-card__frame {
	height: 100%;
	padding: clamp(20px, 2.4vw, 34px);
	display: flex;
	flex-direction: column;
}
.pillar-card__coord {
	font-size: 11px;
	color: var(--ink-soft);
	letter-spacing: 0.08em;
	margin-bottom: auto;
}
.pillar-card__title {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(18px, 1.6vw, 23px);
	margin: 0 0 10px;
}
.pillar-card__body {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-soft);
	margin: 0;
}

/* =============================================================
   SOUND (track index)
   ============================================================= */

.sound { padding: clamp(60px, 8vw, 100px) var(--gutter); background: var(--white); }
.sound__head, .visuals__head { max-width: var(--container); margin: 0 auto 40px; }

.sound__player {
	max-width: var(--container);
	margin: 0 auto 44px;
	border: 1px solid var(--line);
	background: var(--paper);
	padding: 4px;
}
.sound__player iframe { display: block; border-radius: 2px; }

.track-list {
	max-width: var(--container);
	margin: 0 auto;
	list-style: none;
	padding: 0;
	border-top: 1px solid var(--line);
}
.track-list__item {
	display: grid;
	grid-template-columns: 48px 1fr auto auto;
	align-items: baseline;
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}
.track-list__index { font-size: 12px; color: var(--payoff); }
.track-list__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(18px, 2.2vw, 26px);
	text-decoration: none;
	color: var(--ink);
	position: relative;
	width: fit-content;
}
a.track-list__title::after {
	content: "";
	position: absolute; left: 0; right: 100%; bottom: -3px;
	height: 1.5px;
	background: var(--payoff);
	transition: right 0.3s var(--ease);
}
a.track-list__title:hover::after,
a.track-list__title:focus-visible::after { right: 0; }
.track-list__stage {
	font-size: 11px;
	color: var(--ink-soft);
	text-transform: uppercase;
	display: none;
}
.track-list__duration { font-size: 13px; color: var(--ink-soft); }

@media (min-width: 640px) {
	.track-list__stage { display: inline; }
	.track-list__item { grid-template-columns: 48px 1fr auto auto auto; }
}

/* =============================================================
   VISUALS
   ============================================================= */

.visuals { padding: clamp(60px, 8vw, 100px) var(--gutter) clamp(100px, 12vw, 150px); }

.series-week {
	max-width: var(--container);
	margin: 0 auto;
}
.series-week + .series-week { margin-top: 48px; }
.series-week__title {
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--ink-soft);
	margin: 0 0 14px;
}

.series-week__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.visual-tile {
	position: relative;
	aspect-ratio: 3 / 4;
	background: var(--white);
	display: block;
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
}
.visual-tile img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}
.visual-tile:hover img { transform: scale(1.04); }

.visual-tile__caption {
	position: absolute;
	left: 12px; bottom: 12px;
	font-size: 11px;
	color: var(--white);
	background: rgba(17,17,19,0.65);
	padding: 4px 8px;
}

.visual-tile--placeholder {
	background:
		repeating-linear-gradient(135deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 14px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 11px;
	text-align: center;
}
.visual-tile__stage { color: var(--payoff); }

@media (max-width: 900px) {
	.pillars__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.series-week__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.pillars__grid { grid-template-columns: 1fr; }
	.pillar-card { aspect-ratio: auto; }
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer { background: var(--concrete-dark); color: var(--paper); }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: clamp(70px, 9vw, 110px) var(--gutter) 40px; }

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 40px;
	padding-bottom: 60px;
	border-bottom: 1px solid var(--line-on-dark);
}
.site-footer__headline {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(28px, 4vw, 46px);
	margin: 0 0 22px;
}
.site-footer__email {
	font-family: var(--font-mono);
	font-size: 15px;
	color: var(--payoff-soft);
	text-decoration: none;
	border-bottom: 1px solid var(--payoff-soft);
	padding-bottom: 2px;
}
.site-footer__block--social { text-align: right; }
.social-list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 10px;
}
.social-list a {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: var(--paper);
	opacity: 0.85;
}
.social-list a:hover { opacity: 1; color: var(--payoff-soft); }

.site-footer__base {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 24px;
	font-size: 11px;
	opacity: 0.65;
	letter-spacing: 0.04em;
}

@media (max-width: 700px) {
	.site-footer__grid { grid-template-columns: 1fr; }
	.site-footer__block--social { text-align: left; }
}

/* =============================================================
   GENERIC PAGE / SINGLE / ARCHIVE / 404
   ============================================================= */

.page-simple, .archive-simple {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(140px, 16vw, 190px) var(--gutter) clamp(90px, 10vw, 130px);
}
.page-simple__head { margin-bottom: 36px; }
.page-simple__title {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(30px, 5vw, 52px);
	margin: 0;
	line-height: 1.1;
}
.page-simple__meta { color: var(--ink-soft); font-size: 13px; }
.page-simple__thumb { margin-bottom: 36px; }
.page-simple__embed { margin-bottom: 36px; aspect-ratio: 16/9; }
.page-simple__embed iframe { width: 100%; height: 100%; }

.prose { font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 1.4em; }
.prose a { color: var(--payoff); text-decoration-thickness: 1px; }
.prose h2, .prose h3 {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-weight: 800;
	margin: 1.6em 0 0.6em;
}

.not-found {
	min-height: 70svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px var(--gutter);
}
.not-found__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(80px, 16vw, 180px);
	margin: 0;
	line-height: 1;
	color: var(--concrete);
}
.not-found__text { color: var(--ink-soft); margin: 10px 0 28px; }
.not-found__link { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--payoff); padding-bottom: 2px; font-size: 13px; }

/* =============================================================
   MOBILE NAV
   ============================================================= */

@media (max-width: 780px) {
	.nav-toggle { display: flex; }
	.nav {
		position: fixed;
		inset: 0;
		background: var(--concrete-dark);
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s var(--ease);
		z-index: 90;
	}
	.nav.is-open { opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; align-items: center; gap: 32px; }
	.nav__link { color: var(--paper); font-size: 20px; }

	.is-open ~ .nav-toggle .nav-toggle__bar:nth-child(1),
	.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
	.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
	.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
	.nav-toggle.is-active .nav-toggle__bar { background: var(--paper); }

	.thesis__inner { grid-template-columns: 1fr; }
	.thesis__bracket { display: none; }
}
