/* Signaldeck — mobile-first news magazine */

:root {
	--ink: #0b1a24;
	--ink-soft: #243746;
	--muted: #5a6f7d;
	--paper: #e6edf2;
	--paper-2: #d5e0e8;
	--surface: #f3f7fa;
	--line: rgba(11, 26, 36, 0.12);
	--accent: #d97706;
	--accent-deep: #b45309;
	--signal: #0f766e;
	--white: #ffffff;
	--shadow: 0 18px 40px rgba(11, 26, 36, 0.12);
	--radius: 4px;
	--font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
	--font-serif: "IBM Plex Serif", Georgia, serif;
	--container: min(1120px, calc(100% - 2rem));
	--header-h: 64px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(15, 118, 110, 0.12), transparent 55%),
		radial-gradient(900px 420px at 100% 0%, rgba(217, 119, 6, 0.10), transparent 50%),
		linear-gradient(180deg, var(--paper) 0%, var(--surface) 42%, var(--paper-2) 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--signal);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent-deep);
}

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: 0 0 0.55rem;
}

p {
	margin: 0 0 1rem;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container {
	width: var(--container);
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.text-center {
	text-align: center;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 26, 36, 0.92);
	backdrop-filter: blur(10px);
	color: var(--white);
	transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.header-bar {
	min-height: var(--header-h);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.75rem;
}

.site-title {
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.site-title a,
.custom-logo-link {
	color: var(--white);
	text-decoration: none;
}

.custom-logo {
	max-height: 40px;
	width: auto;
}

.header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.85rem;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--ink);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.header-cta:hover {
	background: #f59e0b;
	color: var(--ink);
}

.nav-toggle {
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--radius);
	background: transparent;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--white);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.main-navigation {
	display: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 0.75rem 0 1rem;
}

.main-navigation.is-open {
	display: block;
}

.primary-menu {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.primary-menu a {
	display: block;
	padding: 0.55rem 0;
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	font-weight: 500;
}

.primary-menu a:hover {
	color: #fbbf24;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.85rem 1.25rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--accent);
	color: var(--ink);
}

.btn-primary:hover {
	background: #f59e0b;
	color: var(--ink);
}

.btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--white);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--white);
}

.btn-block {
	width: 100%;
}

/* Hero — full bleed */
.hero-section {
	position: relative;
	min-height: min(100svh, 820px);
	display: grid;
	align-items: end;
	color: var(--white);
	overflow: hidden;
}

.hero-media {
	position: absolute;
	inset: 0;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 26, 36, 0.35) 0%, rgba(11, 26, 36, 0.55) 42%, rgba(11, 26, 36, 0.92) 100%),
		linear-gradient(90deg, rgba(11, 26, 36, 0.55) 0%, transparent 60%);
}

.hero-copy {
	position: relative;
	z-index: 1;
	padding: 5.5rem 0 2.5rem;
	animation: rise-in 0.9s ease both;
}

.hero-copy > * {
	max-width: 38rem;
}

.brand-mark {
	margin: 0 0 0.65rem;
	font-family: var(--font-serif);
	font-size: clamp(2rem, 8vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--white);
}

.hero-kicker {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fbbf24;
}

.hero-title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.55rem, 5.4vw, 2.55rem);
	color: var(--white);
	max-width: 16ch;
}

.hero-subtitle {
	margin: 0 0 1.35rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.02rem;
	max-width: 34ch;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Ticker */
.ticker-section {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.88);
	padding: 0.75rem 0;
	border-bottom: 3px solid var(--accent);
}

.ticker-row {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ticker-label {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.2rem 0.5rem;
	background: var(--signal);
	color: var(--white);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ticker-list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.92rem;
}

.ticker-list li {
	padding-left: 0.85rem;
	position: relative;
}

.ticker-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

/* Sections */
.section {
	padding: 3.25rem 0;
}

.section-head {
	margin-bottom: 1.75rem;
	max-width: 40rem;
}

.section-head.row-head {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
	max-width: none;
}

.section-kicker {
	margin: 0 0 0.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--signal);
}

.section-title {
	font-size: clamp(1.55rem, 4.5vw, 2.2rem);
}

.section-lead {
	color: var(--muted);
	margin: 0;
}

.view-all {
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 2px solid var(--accent);
}

.meta-tag {
	display: inline-block;
	margin-bottom: 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.meta-line {
	font-size: 0.82rem;
	color: var(--muted);
}

/* Dispatches */
.dispatch-grid {
	display: grid;
	gap: 1.25rem;
}

.dispatch-item {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--line);
	overflow: hidden;
}

.dispatch-media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.dispatch-body {
	padding: 1.1rem 1.15rem 1.25rem;
}

.dispatch-body h3 {
	font-size: 1.2rem;
}

.dispatch-body p {
	color: var(--ink-soft);
	font-size: 0.95rem;
}

/* Topics */
.topics-section {
	padding-top: 0.5rem;
}

.topic-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1rem;
}

.topic-row a {
	display: inline-block;
	padding: 0.55rem 0.85rem;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
}

.topic-row a:hover {
	border-color: var(--signal);
	color: var(--signal);
}

/* Field */
.field-grid {
	display: grid;
	gap: 1.15rem;
}

.field-item {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--line);
	overflow: hidden;
}

.field-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.field-body {
	padding: 1rem 1.1rem 1.2rem;
}

.field-body p {
	margin: 0;
	color: var(--muted);
	font-size: 0.94rem;
}

/* Gear */
.gear-section {
	background: linear-gradient(180deg, rgba(11, 26, 36, 0.04), transparent);
}

.gear-split {
	display: grid;
	gap: 1.75rem;
}

.gear-points {
	margin-top: 1rem;
	display: grid;
	gap: 0.55rem;
}

.gear-points li {
	padding-left: 1.1rem;
	position: relative;
	color: var(--ink-soft);
}

.gear-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.55rem;
	height: 0.55rem;
	background: var(--accent);
}

.gear-cards {
	display: grid;
	gap: 1rem;
}

.gear-card {
	display: grid;
	gap: 0.85rem;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid var(--line);
	padding: 0.85rem;
}

.gear-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.gear-card .score {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-family: var(--font-serif);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--signal);
}

.gear-card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

/* Voices */
.voices-track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.5rem;
	-webkit-overflow-scrolling: touch;
}

.voice-card {
	flex: 0 0 min(86vw, 340px);
	scroll-snap-align: start;
	margin: 0;
	padding: 1.25rem;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.9);
	border-left: 3px solid var(--accent);
}

.voice-card p {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	line-height: 1.45;
}

.voice-card footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
}

.voice-card img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.voice-card strong {
	display: block;
	color: var(--white);
}

.voice-card span {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.65);
}

/* Articles */
.articles-grid {
	display: grid;
	gap: 1.15rem;
}

.article-card {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--line);
	overflow: hidden;
}

.article-card-image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.article-card-body {
	padding: 1rem 1.1rem 1.2rem;
}

.article-card-body time {
	font-size: 0.8rem;
	color: var(--muted);
}

.article-card-body h3 {
	font-size: 1.15rem;
}

.article-card-body h3 a {
	color: var(--ink);
	text-decoration: none;
}

.article-excerpt {
	color: var(--muted);
	font-size: 0.92rem;
}

.read-more {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--signal);
	text-decoration: none;
}

.demo-note {
	margin-top: 1rem;
	font-size: 0.85rem;
	color: var(--muted);
}

/* CTA */
.cta-banner {
	position: relative;
	min-height: 320px;
	display: grid;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: var(--white);
}

.cta-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 26, 36, 0.88), rgba(11, 26, 36, 0.55));
}

.cta-inner {
	position: relative;
	z-index: 1;
	padding: 3rem 0;
	max-width: 36rem;
}

.cta-inner h2 {
	color: var(--white);
	font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.cta-inner p {
	color: rgba(255, 255, 255, 0.85);
}

/* Contact */
.contact-section {
	padding-bottom: 4rem;
}

.contact-grid {
	display: grid;
	gap: 1.75rem;
}

.contact-details {
	display: grid;
	gap: 0.35rem;
	color: var(--ink-soft);
	font-weight: 500;
}

.contact-form {
	display: grid;
	gap: 0.75rem;
	padding: 1.15rem;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea,
.search-field {
	width: 100%;
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	font: inherit;
	color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus,
.search-field:focus {
	outline: 2px solid rgba(15, 118, 110, 0.35);
	border-color: var(--signal);
}

.form-feedback {
	margin: 0;
	min-height: 1.25em;
	font-size: 0.9rem;
}

.form-feedback.is-success {
	color: var(--signal);
}

.form-feedback.is-error {
	color: #b91c1c;
}

.search-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.55rem;
	margin-bottom: 1.5rem;
}

/* Page / entry */
.page-hero {
	padding: 2.5rem 0 0.5rem;
}

.page-title {
	font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.page-lead {
	color: var(--muted);
}

.content-wrap.narrow {
	max-width: 760px;
}

.entry-header {
	margin-bottom: 1.25rem;
}

.entry-media {
	margin: 0 0 1.5rem;
}

.entry-media img {
	width: 100%;
	border-radius: var(--radius);
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.comments-area {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

/* Footer */
.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
}

.footer-top {
	padding: 2.5rem 0 1.75rem;
}

.footer-grid {
	display: grid;
	gap: 1.5rem;
}

.footer-brand .site-title a,
.footer-brand .custom-logo-link {
	color: var(--white);
}

.footer-brand p {
	margin-top: 0.65rem;
	color: rgba(255, 255, 255, 0.68);
	max-width: 28ch;
}

.footer-menu {
	display: grid;
	gap: 0.4rem;
}

.footer-menu a,
.footer-col a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.footer-menu a:hover,
.footer-col a:hover {
	color: #fbbf24;
}

.footer-links-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1rem 0;
}

.footer-links-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.15rem;
	justify-content: flex-start;
	align-items: center;
}

.footer-links-row a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	font-size: 0.88rem;
	white-space: nowrap;
}

.footer-links-row a:hover {
	color: #fbbf24;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1rem 0 1.35rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
	margin: 0;
}

/* Motion */
@keyframes rise-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.55s ease var(--reveal-delay, 0ms), transform 0.55s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.reveal,
	.hero-copy {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}
}

/* Tablet+ */
@media (min-width: 640px) {
	.ticker-row {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
	}

	.ticker-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.35rem 1.25rem;
	}

	.dispatch-item.is-lead {
		display: grid;
		grid-template-columns: 1.15fr 1fr;
		align-items: stretch;
	}

	.dispatch-item.is-lead .dispatch-media img {
		height: 100%;
		aspect-ratio: auto;
		min-height: 260px;
	}

	.field-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.articles-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.section-head.row-head {
		flex-direction: row;
		justify-content: space-between;
		align-items: end;
	}
}

@media (min-width: 768px) {
	.nav-toggle {
		display: none;
	}

	.main-navigation {
		display: block;
		padding: 0 0 0.85rem;
		border-top: 0;
	}

	.primary-menu {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.25rem 1.25rem;
	}

	.primary-menu a {
		padding: 0.25rem 0;
		font-size: 0.92rem;
	}

	.header-bar {
		grid-template-columns: 1fr auto;
	}

	.hero-copy {
		padding: 7rem 0 3.5rem;
	}

	.gear-card {
		grid-template-columns: 1fr 1.1fr;
		align-items: center;
	}

	.contact-grid {
		grid-template-columns: 0.9fr 1.1fr;
		align-items: start;
	}

	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	:root {
		--container: min(1160px, calc(100% - 3rem));
	}

	.section {
		padding: 4.25rem 0;
	}

	.dispatch-grid {
		grid-template-columns: 1.4fr 1fr;
		gap: 1.35rem;
	}

	.dispatch-item.is-lead {
		grid-column: 1;
		grid-row: 1 / span 2;
		grid-template-columns: 1fr;
	}

	.dispatch-item.is-lead .dispatch-media img {
		min-height: 320px;
		aspect-ratio: 16 / 11;
	}

	.field-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.gear-split {
		grid-template-columns: 0.9fr 1.1fr;
		align-items: start;
		gap: 2.5rem;
	}

	.articles-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.voice-card {
		flex-basis: 360px;
	}
}
