/* ============================================================
   CHROIX — imprint stylesheet
   Bloomberg-but-imprint. Steel-slate accent against three warm verticals.
   ============================================================ */

:root {
	--bg:          #0a0a0a;
	--bg-soft:     #111111;
	--bg-card:     #141414;
	--bg-deepest:  #1c1c1c;

	--text:        #f4f1ea;
	--text-dim:    #8a8580;
	--text-faint:  #4a4540;

	/* Chroix accent — steel-slate. TODO: lock this. */
	--chroix:      #4A6378;
	--chroix-hi:   #6A87A0;
	--chroix-lo:   #2F4250;

	/* Property accents — set per-block via inline --accent. */
	--accent:      var(--chroix);

	--rule:        rgba(244, 241, 234, 0.08);
	--rule-strong: rgba(244, 241, 234, 0.18);

	--sans:        'Archivo', system-ui, -apple-system, sans-serif;
	--mono:        'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	--wrap-max:    1180px;
	--gutter:      clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 120ms ease;
}
a:hover { color: var(--chroix-hi); }

.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.dim  { color: var(--text-dim); }

.wrap {
	max-width: var(--wrap-max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ============================================================
   Section labels — shared
   ============================================================ */
.section-label {
	font-size: 11px;
	letter-spacing: 0.22em;
	color: var(--text-dim);
	text-transform: uppercase;
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rule);
	display: flex;
	align-items: center;
	gap: 12px;
}
.section-label::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	background: var(--chroix);
}

/* ============================================================
   1. MASTHEAD
   ============================================================ */
.masthead {
	padding: 64px 0 80px;
	border-bottom: 1px solid var(--rule);
}

.mast-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 48px;
}
.mast-row .rule {
	flex: 1;
	height: 1px;
	background: var(--rule-strong);
}
.mast-meta {
	font-size: 10px;
	letter-spacing: 0.28em;
	color: var(--text-dim);
}

.wordmark {
	font-family: var(--sans);
	font-weight: 700;
	font-size: clamp(72px, 14vw, 168px);
	line-height: 0.9;
	letter-spacing: -0.04em;
	margin: 0 0 32px;
}

.tagline {
	font-size: clamp(18px, 2.4vw, 26px);
	line-height: 1.35;
	max-width: 36ch;
	color: var(--text);
	margin: 0;
	font-weight: 400;
}

/* ============================================================
   2. LATEST STRIP
   ============================================================ */
.latest {
	padding: 64px 0;
	border-bottom: 1px solid var(--rule);
}

.latest-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.latest-row {
	border-top: 1px solid var(--rule);
}
.latest-row:last-child {
	border-bottom: 1px solid var(--rule);
}

.latest-link {
	display: grid;
	grid-template-columns: 6px 110px 80px 80px 1fr auto;
	gap: 20px;
	align-items: center;
	padding: 18px 0 18px 18px;
	position: relative;
	transition: background 120ms ease;
}
.latest-link:hover {
	background: var(--bg-soft);
	color: var(--text);
}

.latest-marker {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--accent);
}

.latest-name {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
}
.latest-num,
.latest-date {
	font-size: 12px;
	color: var(--text-dim);
}
.latest-title {
	font-size: 17px;
	line-height: 1.35;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.latest-link:hover .latest-title {
	color: var(--accent);
}
.latest-arrow {
	color: var(--text-faint);
	font-size: 16px;
	transition: transform 120ms ease, color 120ms ease;
}
.latest-link:hover .latest-arrow {
	color: var(--accent);
	transform: translateX(4px);
}

@media (max-width: 720px) {
	.latest-link {
		grid-template-columns: 6px 1fr auto;
		grid-template-areas:
			". name num"
			". title arrow"
			". date date";
		row-gap: 6px;
		padding: 16px 0 16px 16px;
	}
	.latest-name { grid-area: name; }
	.latest-num  { grid-area: num; text-align: right; }
	.latest-title{ grid-area: title; white-space: normal; }
	.latest-date { grid-area: date; }
	.latest-arrow{ grid-area: arrow; align-self: center; }
}

/* ============================================================
   3. PROPERTY CARDS
   ============================================================ */
.properties {
	padding: 80px 0;
	border-bottom: 1px solid var(--rule);
}

.property-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 980px) {
	.property-grid { grid-template-columns: 1fr; }
}

.property {
	background: var(--bg-card);
	border: 1px solid var(--rule);
	border-top: 3px solid var(--accent);
	padding: 28px 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	transition: border-color 160ms ease, transform 160ms ease;
}
.property:hover {
	border-color: var(--rule-strong);
	border-top-color: var(--accent);
}

.property-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.property-vert {
	font-size: 10px;
	letter-spacing: 0.22em;
	color: var(--text-dim);
}
.property-swatch {
	width: 14px;
	height: 14px;
	background: var(--accent);
	display: inline-block;
}

.property-name {
	font-size: 38px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
	line-height: 1;
}

.property-blurb {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	min-height: 4.5em;
}

.property-meta {
	margin: 0;
	font-size: 11px;
	letter-spacing: 0.04em;
	border-top: 1px solid var(--rule);
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.property-meta > div {
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 12px;
}
.property-meta dt {
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}
.property-meta dd {
	margin: 0;
	color: var(--text);
}

/* In-this-issue pull (lede headline + deck from the latest child issue) */
.property-pull {
	border-left: 2px solid var(--accent);
	padding: 4px 0 4px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: -4px 0 -4px;
}
.property-pull-label {
	font-size: 9px;
	letter-spacing: 0.22em;
	color: var(--text-dim);
	text-transform: uppercase;
}
.property-pull-headline {
	font-size: 16px;
	line-height: 1.35;
	color: var(--text);
	font-weight: 600;
	transition: color 120ms ease;
}
.property-pull-headline:hover {
	color: var(--accent);
}
.property-pull-deck {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--text-dim);
}

.property-foot {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}

/* Buttons — shared */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	border: 1px solid var(--rule-strong);
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
	white-space: nowrap;
}
.btn:hover { color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--solid {
	background: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}
.btn--solid:hover { filter: brightness(1.08); }
.btn--lg { padding: 14px 22px; font-size: 14px; }

/* ============================================================
   4. METHOD
   ============================================================ */
.method {
	padding: 80px 0;
	border-bottom: 1px solid var(--rule);
}
.method-wrap {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 48px;
	align-items: start;
}
.method-wrap .section-label {
	margin: 0;
	border-bottom: none;
	padding-bottom: 0;
}
.method-body {
	max-width: 64ch;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.method-body p {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
}
@media (max-width: 720px) {
	.method-wrap {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ============================================================
   5. SUBSCRIBE — ALL
   ============================================================ */
.subscribe {
	padding: 80px 0;
	border-bottom: 1px solid var(--rule);
	background: var(--bg-soft);
}

.subscribe-lede {
	font-size: 18px;
	color: var(--text);
	margin: 0 0 32px;
	max-width: 48ch;
}

.sub-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 640px;
}

.sub-label {
	display: block;
	font-size: 10px;
	letter-spacing: 0.22em;
	color: var(--text-dim);
	text-transform: uppercase;
	margin-bottom: 8px;
}

.sub-email input {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--rule-strong);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	padding: 14px 16px;
	outline: none;
	transition: border-color 120ms ease;
}
.sub-email input:focus { border-color: var(--chroix); }

.sub-pubs {
	border: none;
	padding: 0;
	margin: 0;
	/* fieldset's UA default is min-width: min-content, which collapses any
	   flex/grid child to its intrinsic content width. Forcing min-width:0
	   lets the grid children expand to the form's full width. Without this,
	   the .sub-pub rows render at width: 0 and their contents leak out. */
	min-width: 0;
}
.sub-pubs legend {
	float: left;
	width: 100%;
	margin-bottom: 12px;
}

.sub-pub {
	display: grid;
	grid-template-columns: auto 14px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-top: 1px solid var(--rule);
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
	transition: background 120ms ease;
}
.sub-pub:hover {
	background: rgba(244, 241, 234, 0.02);
}
.sub-pub:last-of-type { border-bottom: 1px solid var(--rule); }

.sub-pub input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border: 1px solid var(--rule-strong);
	background: var(--bg);
	cursor: pointer;
	position: relative;
	margin: 0;
}
.sub-pub input[type="checkbox"]:checked {
	background: var(--accent);
	border-color: var(--accent);
}
.sub-pub input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid var(--bg);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.sub-pub-swatch {
	width: 10px;
	height: 10px;
	background: var(--accent);
	display: inline-block;
}
.sub-pub-name {
	font-size: 16px;
	font-weight: 600;
}
.sub-pub-vert {
	font-size: 11px;
}

.sub-form .btn {
	align-self: flex-start;
}

.sub-foot {
	font-size: 11px;
	letter-spacing: 0.04em;
	margin: 0;
}

.sub-status {
	font-size: 13px;
	margin: 0;
	min-height: 1.5em;
}
.sub-status.ok  { color: #7ee787; }
.sub-status.err { color: #f85149; }

/* ============================================================
   6. COLOPHON
   ============================================================ */
.colophon {
	padding: 64px 0 80px;
}
.colo-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 32px;
	align-items: start;
}
@media (max-width: 820px) {
	.colo-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.colo-wrap { grid-template-columns: 1fr; }
}

.colo-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.colo-mark {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.colo-tag {
	font-size: 11px;
	color: var(--text-dim);
}

.colo-links,
.colo-feeds {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 12px;
}
.colo-links a,
.colo-feeds a {
	color: var(--text-dim);
}
.colo-links a:hover,
.colo-feeds a:hover {
	color: var(--chroix-hi);
}

.colo-addr {
	font-style: normal;
	font-size: 11px;
	line-height: 1.5;
}
