/* newsway.css — standalone stylesheet for newsway (replaces bj3.css) */

:root {
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-head: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--bg: #eef1f6;
	--card: #ffffff;
	--navy: #1b1f3b;
	--navy-2: #2a3163;
	--orange: #ff6a3d;
	--ivory: #fffff0;
	--periwinkle: #9daaf2;

	--text: #1f2933;
	--text-soft: #4a5562;
	--heading: #111827;
	--link: #2b59c3;
	--rule: #e3e6ea;

	--radius: 14px;
	--shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .08);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	background: var(--bg);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text);
}

/* ---------- Hero banner ---------- */

#toppic {
	background:
		radial-gradient(ellipse at 20% 0%, rgba(255, 106, 61, .18), transparent 55%),
		radial-gradient(ellipse at 85% 100%, rgba(157, 170, 242, .22), transparent 60%),
		linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
	padding: clamp(3rem, 8vw, 5.5rem) 16px clamp(5rem, 10vw, 7rem);
}

.like {
	text-align: center;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(2.75rem, 1.2rem + 6vw, 5rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0;
}
.like span:nth-of-type(2),
.like span:nth-of-type(3) {
	display: inline-block;
	margin-top: .25em;
	font-weight: 500;
	font-size: 0.42em;
	letter-spacing: 0;
}
.like br + span + br { display: none; }        /* keep the two taglines on one line on wide screens */
.like span:nth-of-type(3)::before {
	content: "·";
	color: rgba(255, 255, 255, .35);
	margin: 0 .5em;
}
@media (max-width: 560px) {
	.like br + span + br { display: inline; }
	.like span:nth-of-type(3)::before { content: none; }
	.like span:nth-of-type(3) { margin-top: .1em; }
}

/* ---------- Page card ---------- */

#page {
	max-width: 860px;
	margin: clamp(-4rem, -6vw, -3rem) auto 3rem;
	padding: 0 16px;
	position: relative;
}

.card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: clamp(1.5rem, 4vw, 3rem);
}
.card::after {             /* clear the floated portrait */
	content: "";
	display: table;
	clear: both;
}

/* ---------- Typography ---------- */

p {
	margin: 0 0 1.1em;
	color: var(--text-soft);
}

h1, h2, h3 {
	font-family: var(--font-head);
	color: var(--heading);
	line-height: 1.2;
	letter-spacing: -0.015em;
}

h1 {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
	font-weight: 700;
	margin: 0 0 .7em;
}

h2 {
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
	font-weight: 700;
	margin: 0 0 .6em;
}

h3 {
	font-size: 1.2rem;
	font-weight: 600;
}

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .15s ease;
}
a:hover, a:focus-visible { color: var(--orange); }

h1 a, h2 a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--orange), var(--orange));
	background-size: 0 3px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .25s ease;
}
h1 a:hover, h2 a:hover,
h1 a:focus-visible, h2 a:focus-visible {
	color: var(--heading);
	background-size: 100% 3px;
}

hr {
	border: 0;
	height: 1px;
	background: var(--rule);
	margin: 2.75em 0;
	clear: both;
}

/* ---------- Images ---------- */

img { max-width: 100%; height: auto; }

.center {
	display: block;
	margin: 0 auto 1.4em;
	border-radius: 10px;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
a:hover > .center,
a:focus-visible > .center {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(17, 24, 39, .08), 0 14px 32px rgba(17, 24, 39, .14);
}

.portrait {
	float: right;
	width: clamp(110px, 28%, 200px);
	margin: .3em 0 1em 1.75em;
	border-radius: 12px;
	box-shadow: var(--shadow);
}

/* ---------- Footer & misc ---------- */

td { padding: 4px; }

footer, .footer {
	font-size: .9rem;
	color: var(--text-soft);
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
