/* ─────────────────────────────────────────────────────────────────
   The Apherios Times — a page window (2026-10-05), like Settings, the
   post box and the weather: the world blurred behind, Geist Mono, plain
   words, tabs Front / Photos / Stories / Events (.page-* in main.css).
   Markup: #newsletter-modal in index.html; filled by client/src/ui/times/.

   What stays a newspaper: the blackletter nameplate (ManufacturingConsent,
   @font-face in main.css — owner's choice), headlines with a byline, and
   photos captioned with where they were taken.
   ───────────────────────────────────────────────────────────────── */

/* The nameplate: the page title's size, in the blackletter face. */
#newspaper-title {
	font: 400 60px/1 'ManufacturingConsent', serif;
	letter-spacing: 0;
}

/* Front: blocks with a small label over each. */
#newsletter-modal .np-block {
	margin-top: 48px;
}

#newsletter-modal .np-block:first-child {
	margin-top: 0;
}

#newsletter-modal .np-block.hidden {
	display: none;
}

.np-label {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 16px;
	font: 500 13px var(--ui-font);
	color: rgba(232, 226, 216, 0.5);
}

.np-more {
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	font: 500 13px var(--ui-font);
	color: rgba(232, 226, 216, 0.75);
}

.np-more:hover {
	color: #e8e2d8;
}

/* The front-page photo: large, rounded, where it was taken under it. */
#newspaper-hero {
	margin: 0;
}

#newspaper-hero-frame {
	position: relative;
}

#newspaper-hero img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px;
	cursor: zoom-in;
}

#newspaper-hero-caption {
	margin-top: 10px;
	font: 400 13px var(--ui-font);
}

#newspaper-hero-empty,
.news-empty {
	font: 400 15px/1.6 var(--ui-font);
	color: rgba(232, 226, 216, 0.5);
}

/* A story / announcement / event: headline, text, byline. */
.times-item {
	position: relative;
	max-width: 34em;
}

.news-headline {
	padding-right: 32px;   /* room for the ⋯ */
	font: 300 26px/1.25 var(--ui-font);
	color: #e8e2d8;
	overflow-wrap: anywhere;
}

.news-blurb {
	margin-top: 14px;
	font: 400 15px/1.7 var(--ui-font);
	color: rgba(232, 226, 216, 0.85);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.news-byline {
	margin-top: 12px;
	font: 400 13px var(--ui-font);
	color: rgba(232, 226, 216, 0.5);
}

.news-photo {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin-bottom: 20px;
	border-radius: 10px;
	cursor: zoom-in;
}

.news-divider {
	height: 0;
	margin: 40px 0;
	border: none;
	border-top: 1px solid rgba(232, 226, 216, 0.1);
}

/* Events: when (your time, then UTC small), Now, Remind me. */
.event-when {
	margin-top: 8px;
	font: 400 15px var(--ui-font);
	color: #e8e2d8;
}

.event-when-utc {
	font-size: 12px;
	color: rgba(232, 226, 216, 0.45);
}

.event-now {
	font-weight: 500;
}

.event-remind {
	margin-top: 14px;
	padding: 4px 0;
	border: none;
	background: none;
	cursor: pointer;
	font: 500 15px var(--ui-font);
	color: #e8e2d8;
}

.event-remind:hover {
	color: #fff;
}

.event-remind.on {
	color: rgba(232, 226, 216, 0.55);
}

/* Photos tab. */
#newsletter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 28px 20px;
}

#newsletter-grid img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	cursor: zoom-in;
}

#newsletter-modal .photo-card {
	position: relative;
	gap: 8px;
}

#newsletter-modal .photo-card .photo-caption {
	font: 400 13px var(--ui-font);
	color: rgba(232, 226, 216, 0.6);
}

/* Where a photo / event is: the island, a link to its page. */
.times-place {
	color: rgba(232, 226, 216, 0.6);
}

.times-place-link {
	color: #e8e2d8;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(232, 226, 216, 0.35);
}

.times-place-link:hover {
	text-decoration-color: #e8e2d8;
}

/* A few numbers, one quiet line each. */
#newspaper-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
	gap: 20px 28px;
	max-width: 40em;
}

.np-stat {
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
}

.np-stat-label {
	font: 400 13px var(--ui-font);
	color: rgba(232, 226, 216, 0.5);
}

.np-stat-leader {
	display: none;
}

.np-stat-value {
	font: 300 30px/1 var(--ui-font);
	color: #e8e2d8;
}

/* Write a story / Announce an event: a word, then the form in place. */
.np-compose-area {
	margin-top: 48px;
	max-width: 34em;
}

#newsletter-modal .modal-panel > .np-compose-area:first-child {
	margin-top: 0;
}

.np-compose-area:has(.np-compose:not(.hidden)) .np-action {
	display: none;
}

.np-compose.hidden {
	display: none;
}

.page-box .page-link.quiet {
	color: rgba(232, 226, 216, 0.55);
}

.page-box .page-link.quiet:hover {
	color: #e8e2d8;
}

#newsletter-modal input[type="datetime-local"] {
	color-scheme: dark;
}

/* The quiet ⋯ → "Report to the editor" on every photo, story and event. */
.times-report {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
}

.photo-card .times-report {
	top: 6px;
	right: 6px;
}

.times-report-btn {
	padding: 0 4px;
	border: none;
	background: none;
	cursor: pointer;
	font: 400 18px/1 var(--ui-font);
	color: rgba(232, 226, 216, 0.45);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.times-report-btn:hover {
	color: #e8e2d8;
}

.times-report-menu {
	position: absolute;
	top: 24px;
	right: 0;
	padding: 10px 14px;
	white-space: nowrap;
	border: none;
	border-radius: 8px;
	background: rgba(18, 20, 24, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	cursor: pointer;
	font: 400 13px var(--ui-font);
	color: #e8e2d8;
}

.times-report-menu.hidden {
	display: none;
}
