/* Musical Soldier theme. Design tokens follow the comp: black, warm red/orange, bone type, condensed headlines. */

:root {
	--ms-black: #0b0b0b;
	--ms-charcoal: #161616;
	--ms-bone: #e9e4d8;
	--ms-muted: #9b9489;
	--ms-red: #c8312b;
	--ms-ember: #e0743a;
	--ms-font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
	--ms-font-body: 'Oswald', system-ui, sans-serif;
	--ms-font-mono: 'Space Mono', ui-monospace, monospace;
	--ms-container: 1200px;
	--ms-gutter: 24px;
	--ms-section-y: clamp(64px, 9vw, 120px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ms-black);
	color: var(--ms-bone);
	font-family: var(--ms-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--ms-ember); outline-offset: 3px; }

.ms-skip-link {
	position: absolute; left: -9999px; top: 8px; background: var(--ms-bone); color: var(--ms-black); padding: 8px 12px; z-index: 100;
}
.ms-skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.ms-container { width: min(100% - var(--ms-gutter) * 2, var(--ms-container)); margin-inline: auto; }
.ms-section { padding-block: var(--ms-section-y); }

/* Type */
.ms-eyebrow { font-family: var(--ms-font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ms-muted); margin: 0 0 12px; }
.ms-h2, .ms-h3, .ms-hero__title { font-family: var(--ms-font-display); font-weight: 400; letter-spacing: .02em; line-height: 1; margin: 0 0 16px; }
.ms-h2 { font-size: clamp(40px, 6vw, 72px); }
.ms-h3 { font-size: clamp(28px, 3vw, 36px); }
.ms-lead { font-size: 19px; color: var(--ms-bone); opacity: .85; max-width: 60ch; }
.ms-meta { font-family: var(--ms-font-mono); font-size: 12px; color: var(--ms-muted); }

/* Buttons */
.ms-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; font-family: var(--ms-font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ms-red); transition: background .2s, color .2s;
}
.ms-btn--outline { color: var(--ms-bone); background: transparent; }
.ms-btn--outline:hover { background: var(--ms-red); }
.ms-btn--solid { background: var(--ms-red); color: var(--ms-bone); }
.ms-btn--red { color: var(--ms-bone); background: rgba(200,49,43,.08); border-color: var(--ms-red); }
.ms-btn--red:hover { background: var(--ms-red); }
.ms-btn--solid:hover { background: var(--ms-ember); border-color: var(--ms-ember); }

/* Header */
.ms-header { position: sticky; top: 0; z-index: 50; background: rgba(11,11,11,.9); backdrop-filter: blur(8px); border-bottom: 1px solid #222; }
.ms-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.ms-header__brand img, .custom-logo { max-height: 52px; width: auto; }
.ms-wordmark { font-family: var(--ms-font-display); font-size: 28px; letter-spacing: .04em; }
.ms-nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.ms-nav__list a { text-decoration: none; font-family: var(--ms-font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ms-nav__list a:hover { color: var(--ms-ember); }
.ms-nav__cta { margin-left: 16px; padding: 10px 16px; font-size: 11px; }
.ms-header__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.ms-header__bars, .ms-header__bars::before, .ms-header__bars::after { display: block; width: 24px; height: 2px; background: var(--ms-bone); position: relative; }
.ms-header__bars::before, .ms-header__bars::after { content: ''; position: absolute; left: 0; }
.ms-header__bars::before { top: -7px; }
.ms-header__bars::after { top: 7px; }

/* Hero: split layout, type left, photograph right (per approved mockup) */
.ms-hero { position: relative; padding-block: clamp(56px, 8vw, 110px) clamp(40px, 6vw, 80px); background: radial-gradient(ellipse at 80% 20%, #1d1d1d 0%, var(--ms-black) 60%); }
.ms-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.ms-hero__content { position: relative; z-index: 1; }
.ms-hero__title { font-family: 'Permanent Marker', var(--ms-font-display), cursive; font-weight: 400; font-size: clamp(56px, 8.4vw, 118px); line-height: .95; letter-spacing: 0; text-transform: uppercase; margin: 8px 0 12px; color: var(--ms-bone); }
.ms-hero__subtitle { font-family: 'Permanent Marker', cursive; font-size: clamp(24px, 3vw, 34px); color: var(--ms-muted); margin: 0 0 22px; }
.ms-hero__lede { font-family: var(--ms-font-body); font-size: 19px; font-weight: 300; max-width: 42ch; margin: 0 0 30px; color: var(--ms-bone); opacity: .9; }
.ms-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ms-hero__media { margin: 0; position: relative; }
.ms-hero__media img { width: 100%; height: auto; aspect-ratio: 1053 / 1020; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.05); }
.ms-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ms-black) 0%, transparent 35%); pointer-events: none; }

/* Album */
.ms-album__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ms-album__cover img { border: 1px solid #222; width: 100%; height: auto; }
.ms-album__services { font-family: var(--ms-font-body); font-size: 15px; letter-spacing: .02em; }
.ms-album__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 28px; }
.ms-album__services { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; font-family: var(--ms-font-mono); font-size: 13px; }
.ms-album__services a { text-decoration: none; border-bottom: 1px solid #333; padding-bottom: 2px; }
.ms-album__services a:hover { border-color: var(--ms-ember); }

/* Pillars */
.ms-pillars { border-top: 1px solid #1f1f1f; border-bottom: 1px solid #1f1f1f; }
.ms-pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ms-pillar__title { font-family: var(--ms-font-display); font-size: 28px; letter-spacing: .03em; margin: 0 0 8px; }
.ms-pillar__text { color: var(--ms-muted); margin: 0; font-size: 15px; }

/* Tiles */
.ms-tiles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ms-tile { position: relative; min-height: 380px; display: flex; align-items: flex-end; background: var(--ms-charcoal) var(--ms-tile-img) center / cover no-repeat; text-decoration: none; overflow: hidden; }
.ms-tile__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,11,.95), rgba(11,11,11,.1) 60%); transition: opacity .3s; }
.ms-tile:hover .ms-tile__overlay { opacity: .7; }
.ms-tile__body { position: relative; padding: 24px; display: grid; gap: 4px; }
.ms-tile__title { font-family: var(--ms-font-display); font-size: 36px; letter-spacing: .03em; }
.ms-tile__text { font-size: 15px; color: var(--ms-bone); opacity: .8; }

/* Signup */
.ms-signup { background: var(--ms-charcoal); text-align: center; }
.ms-signup__inner { display: grid; justify-items: center; gap: 12px; }

/* Footer */
.ms-footer { border-top: 1px solid #1f1f1f; padding-block: 56px; font-size: 14px; color: var(--ms-muted); }
.ms-footer__inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.ms-footer__crisis a { color: var(--ms-ember); text-decoration: none; }
.ms-footer__nav { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; justify-content: center; font-family: var(--ms-font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ms-footer__nav a { text-decoration: none; }
.ms-footer__legal, .ms-footer__tagline { margin: 0; }
.ms-footer__tagline { font-family: var(--ms-font-display); font-size: 22px; letter-spacing: .08em; color: var(--ms-bone); }

/* Posts */
.ms-post-card { padding-bottom: 40px; border-bottom: 1px solid #1f1f1f; margin-bottom: 40px; }
.ms-post-card__image img { width: 100%; margin-bottom: 20px; }
.ms-empty { padding: 80px 0; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
	.ms-album__grid { grid-template-columns: 1fr; gap: 40px; }
	.ms-hero__grid { grid-template-columns: 1fr; }
	.ms-pillars__grid { grid-template-columns: repeat(2, 1fr); }
	.ms-tiles__grid { grid-template-columns: 1fr; }
	.ms-tile { min-height: 300px; }
}
@media (max-width: 720px) {
	.ms-header__toggle { display: block; }
	.ms-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ms-black); border-bottom: 1px solid #222; padding: 24px var(--ms-gutter); }
	.ms-nav.is-open { display: grid; gap: 20px; }
	.ms-nav__list { flex-direction: column; gap: 14px; }
	.ms-nav__cta { margin-left: 0; justify-self: start; }
	.ms-header { position: sticky; }
	.ms-pillars__grid { grid-template-columns: 1fr; }
	.ms-hero__grid { grid-template-columns: 1fr; }
	.ms-hero__media { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

/* Prose sections */
.ms-prose__inner { max-width: 720px; }
.ms-prose--center .ms-prose__inner { text-align: center; margin-inline: auto; }
.ms-prose__p { font-size: 18px; color: var(--ms-bone); opacity: .88; margin: 0 0 18px; }
.ms-prose__quote { font-family: var(--ms-font-display); font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; letter-spacing: .02em; margin: 0 0 24px; padding: 0; border: 0; color: var(--ms-bone); }

/* Header shows the Musical Soldier wordmark (text, no label badge). Footer carries a small World War Me Records badge. Not a link. */
.ms-header__wordmark{font-family:var(--ms-font-display);font-size:28px;letter-spacing:.04em;line-height:1;color:var(--ms-bone);}
.ms-footer__logo{width:64px;height:64px;margin:0 auto 14px;display:block;}

/* Content plan, 19 Oct 2026: tracklist, crisis list, page sections */
.ms-tracklist { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ms-tracklist__list { list-style: none; counter-reset: ms-track; padding: 0; margin: 14px 0 0; }
.ms-tracklist__list li { counter-increment: ms-track; padding: 9px 0; border-bottom: 1px solid rgba(242,234,221,.12); font-family: var(--ms-font-body); color: var(--ms-bone); }
.ms-tracklist__list li::before { content: counter(ms-track, decimal-leading-zero); font-family: var(--ms-font-mono, 'Space Mono', monospace); font-size: 12px; color: var(--ms-muted); margin-right: 14px; }
.ms-tracklist__note { font-size: 13px; color: var(--ms-muted); margin: 16px 0 0; }
.ms-resources { list-style: none; padding: 0; margin: 0 0 16px; }
.ms-resources li { padding: 12px 0; border-bottom: 1px solid rgba(242,234,221,.12); color: var(--ms-bone); }
.ms-resources a { color: var(--ms-bone); text-decoration: underline; }
@media (max-width: 720px) { .ms-tracklist { grid-template-columns: 1fr; gap: 28px; } }

/* Full-bleed hero: photograph behind the type, darkened to the left */
.ms-hero--bleed { overflow: hidden; }
.ms-hero--bleed .ms-hero__grid { grid-template-columns: 1fr; }
.ms-hero--bleed .ms-hero__media { position: absolute; inset: 0; z-index: 0; }
.ms-hero--bleed .ms-hero__media img { height: 100%; aspect-ratio: auto; opacity: .42; object-position: 70% top; }
.ms-hero--bleed .ms-hero__media::after { background: linear-gradient(90deg, var(--ms-black) 20%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.85) 100%); }
.ms-hero--bleed .ms-hero__content { max-width: 620px; }

/* Silence band: photograph under heavy shading (mockup imagery exception) */
.ms-silence { background: linear-gradient(rgba(10,10,10,.82), rgba(10,10,10,.94)), var(--ms-silence-img, none) center / cover no-repeat, var(--ms-black); }

/* The road back: generated road toward dawn behind the driver section */
.ms-road { background: linear-gradient(rgba(10,10,10,.6), rgba(10,10,10,.88)), var(--ms-road-img, none) center / cover no-repeat, var(--ms-black); }

/* Header logo: Musical Soldier wordmark (cropped from the approved mockup) */
.ms-header__logo { height: 56px; width: auto; display: block; }
@media (max-width: 720px) { .ms-header__logo { height: 44px; } }

/* Hero, polished: photograph on the right at full strength, type on the left */
.ms-hero--bleed { min-height: 82vh; display: flex; align-items: center; }
.ms-hero--bleed .ms-hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 38%; z-index: 0; }
.ms-hero--bleed .ms-hero__media img { height: 100%; width: 100%; opacity: .92; object-fit: cover; object-position: center 30%; }
.ms-hero--bleed .ms-hero__media::after { background: linear-gradient(90deg, var(--ms-black) 0%, rgba(10,10,10,.5) 28%, transparent 62%); }
.ms-hero--bleed .ms-hero__content { max-width: 560px; position: relative; z-index: 1; }
.ms-hero--bleed .ms-hero__title { font-size: clamp(64px, 9vw, 132px); }
/* Header logo larger, solid background */
.ms-header { background: var(--ms-black); }
.ms-header__logo { height: 72px; }
@media (max-width: 720px) { .ms-header__logo { height: 52px; } .ms-hero--bleed .ms-hero__media { left: 0; opacity: .5; } }
