/* ==========================================================================
   NewsNow Academy: base (tokens, reset, type, shared atoms)
   Editorial rules: radius max 2px, no shadows, no gradients, one accent.
   ========================================================================== */

:root {
	--ink: #0f0f0f;
	--red: #cc2a17;
	--red-on-dark: #ff8a73;
	--paper: #f2f2ef;
	--white: #fff;
	--ph: #e7e7e3;
	--ph-dark: #deded9;
	--rule: #d6d6d1;
	--gray: #5c5c57;
	--gray-dark: #3b3b38;
	--on-dark: #c9c9c4;

	--serif: Newsreader, Georgia, "Times New Roman", serif;
	--sans: Archivo, "Helvetica Neue", Arial, sans-serif;

	--gutter: 16px;
	--max: 1280px;
	--radius: 2px;
	--tap: 44px;
	--space: clamp(48px, 7vw, 88px);
}

@media (min-width: 900px) {
	:root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.01em;
	font-optical-sizing: auto;
}

p { margin: 0 0 1em; }

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover { color: var(--red); }

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

em { font-style: italic; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

/* --- Accessibility helpers ------------------------------------------------ */

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--white);
}
.skip-link:focus { top: 8px; color: var(--white); }

/* --- Layout primitive ----------------------------------------------------- */

.container {
	width: 100%;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* --- Label (condensed red caps) -------------------------------------------- */

.label {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--red);
	font-family: var(--sans);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.label--on-dark { color: var(--red-on-dark); }

.badge {
	position: absolute;
	top: 0;
	left: 0;
	padding: 6px 10px;
	background: var(--red);
	color: var(--white);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.badge--inline { position: static; display: inline-block; margin-bottom: 8px; }

/* --- Buttons --------------------------------------------------------------- */

.btn,
.button,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--tap);
	padding: 10px 20px;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--white);
	font-family: var(--sans);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }

.btn--white { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--red-on-dark); border-color: var(--red-on-dark); color: var(--ink); }

.btn--block { width: 100%; }

.btn-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--tap);
	height: var(--tap);
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}
.btn-plus:hover { background: var(--ink); color: var(--white); }

/* --- Prices --------------------------------------------------------------- */

.price {
	font-family: var(--sans);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.price del {
	margin-right: 6px;
	color: var(--gray);
	font-weight: 400;
}
.price ins { text-decoration: none; }
.price--free { color: var(--red); }

/* --- Media (16:10 image or placeholder) ----------------------------------- */

.media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ph);
}
.media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.media__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: var(--ph-dark);
	color: var(--gray);
	font-size: 14px;
}

/* --- Byline --------------------------------------------------------------- */

.byline {
	margin: 0;
	color: var(--gray);
	font-size: 14px;
}

/* --- Section heading (3px rule + Newsreader 40px) -------------------------- */

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 32px;
	padding-top: 12px;
	border-top: 3px solid var(--ink);
}
.section-head__title { font-size: clamp(30px, 4vw, 40px); }
.section-head__title em { color: var(--red); }
.section-head__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}
