/* MNAI Safety — institutional trust theme (north-star kept).
   Design grammar lifted from the Tangible Design System as reference only:
   type 12/14/16/20/24/32, 4px spacing rhythm, radii 2/4/8/12/16/full,
   2px/2px focus ring, 200ms ease-in-out motion, semantic color roles.
   Light mode only. No build step, no dependencies. */

:root {
	/* Semantic roles */
	--ink: #101d26;            /* fg: ink-navy */
	--ink-soft: #33454f;       /* fg secondary */
	--muted: #5d707b;          /* fg muted (4.9:1 on paper — body-safe) */
	--paper: #f6f4ec;          /* bg */
	--card: #fffdf7;           /* surface */
	--surface-tint: #efead9;   /* muted fill */
	--line: #ddd5c2;           /* border */
	--divider: #e5ddc6;        /* divider */
	--control-border: #5d707b; /* 3:1+ control boundary on white/paper */
	--accent: #0e5f4c;         /* deep green: primary actions, status */
	--accent-strong: #0a4637;  /* accent hover */
	--accent-ink: #eaf5ef;     /* text on accent */
	--accent-tint: #e6f1ea;    /* subtle green wash */
	--amber: #8a5a00;          /* pre-launch signal */
	--amber-bg: #fdf0d3;
	--amber-line: #d9a800;
	--focus: #1d4ed8;          /* focus ring on light surfaces */
	--focus-on-dark: #ffd166;  /* focus ring on the ink-navy topbar */
	--radius: 14px;            /* cards 12–16 */
	--radius-control: 8px;     /* inputs, buttons, paths */
	--wrap: 68rem;
	color-scheme: light;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 16px/1.6 -apple-system, "Segoe UI", system-ui, sans-serif;
}

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

/* ---- Base text roles: lede/body/meta each have one job ---- */
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--accent);
	text-underline-offset: 2px;
	transition: color 200ms ease-in-out, background-color 200ms ease-in-out;
}
a:hover { color: var(--accent-strong); text-underline-offset: 3px; }

/* Visible keyboard focus on EVERY interactive element. Never remove. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.nav a:focus-visible,
.chip:focus-visible,
.wordmark:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
	border-radius: 4px;
}
.topbar a:focus-visible,
.topbar button:focus-visible {
	outline-color: var(--focus-on-dark);
}

/* ---- Topbar: ink-navy institutional band, north-star kept ---- */
.topbar {
	background: var(--ink);
	color: #f2efe4;
	border-bottom: 4px solid var(--accent);
	position: sticky;
	top: 0;
	z-index: 10;
}

.topbar-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
	flex-wrap: wrap;
}

.wordmark {
	color: #fff;
	font-weight: 800;
	font-size: 1.15rem; /* 18px — brand lockup, not a heading */
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
}
.wordmark:hover { color: #ffd166; }
.wordmark .star { color: #ffd166; }

.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }

.nav a {
	color: #e8e2d0;
	text-decoration: none;
	padding: 0.35rem 0.65rem;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}
.nav a:hover { background: #ffffff22; color: #fff; }
.nav a[aria-current="page"] {
	background: var(--accent);
	color: #fff;
	font-weight: 800;
	box-shadow: inset 0 -3px 0 #ffd166; /* amber underline: current page unmistakable */
}

.topbar-side { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ---- Badges: pre-launch honesty signal (amber scale) ---- */
.badge {
	display: inline-block;
	background: var(--amber-bg);
	color: var(--amber);
	border: 1px dashed var(--amber);
	border-radius: 999px; /* chips/badges full */
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.5;
	padding: 0.1rem 0.5rem;
	vertical-align: middle;
	white-space: nowrap;
}

.topbar .badge { background: transparent; color: #ffd166; border-color: #ffd166; }

/* ---- Chip: outbound cross-link pill on dark band ---- */
.chip {
	color: #fff;
	border: 1px solid #ffffff55;
	border-radius: 999px;
	padding: 0.2rem 0.7rem;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 200ms ease-in-out, border-color 200ms ease-in-out;
}
.chip:hover { border-color: #fff; background: #ffffff22; color: #fff; }
.chip:active { background: #ffffff33; }

main.wrap { padding-top: 1.5rem; padding-bottom: 2.5rem; }

/* ---- Cards: shared surface, 20–24px padding, 16–28px rhythm ---- */
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem; /* 24px */
	margin-bottom: 1.25rem; /* 20px */
	box-shadow: 0 1px 0 var(--line);
}

/* Eyebrow: 12px tracked uppercase — labels the working surface, never a headline */
.card-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.5rem; /* 8px */
}

/* Title roles: h1 display 28–32px/1.15, h2 headline 20px/1.25 */
.card h1 { margin: 0.25rem 0 0.75rem; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; }
.card h2 { margin: 0.25rem 0 0.5rem; font-size: 20px; line-height: 1.25; }

/* ---- Working-surface hierarchy: board (status + signup) is primary ---- */
.board {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1.25rem; /* 20px */
	align-items: start;
	margin-bottom: 1.25rem;
}
.board .card { margin-bottom: 0; }

/* Primary surface 1: project status — green top rule, full-strength ink */
.card.status { border-top: 4px solid var(--accent); }

/* Primary surface 2: launch list — green top rule + tinted wash */
.signup { border-top: 4px solid var(--accent); background: linear-gradient(var(--accent-tint), var(--accent-tint)) top / 100% 4.5rem no-repeat, var(--card); }
.signup h2 { color: var(--accent-strong); }

/* Secondary surface: sample meetup card is a placeholder — dashed, muted, NOT REAL */
.card.meetup {
	border-style: dashed;
	border-width: 2px;
	border-color: var(--amber-line);
	background: var(--surface-tint);
	box-shadow: none;
}
.card.meetup h2 { color: var(--ink-soft); font-size: 20px; }
.card.meetup .card-kicker { color: var(--amber); }

/* Quiet + even: track cards share one weight, no accents competing */
.tracks .card { background: var(--card); border-top: 1px solid var(--line); }
.tracks .card .card-kicker { color: var(--muted); }
.tracks .card h2 { font-size: 20px; }

@media (max-width: 800px) {
	.board { grid-template-columns: 1fr; }
}

/* ---- Checklist: status markers + body text, caption detail inside ---- */
.checklist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.8rem; }

.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.checklist li strong { font-weight: 700; }
.checklist li div { min-width: 0; }

.dot {
	flex: none;
	width: 0.75rem; /* 12px */
	height: 0.75rem;
	border-radius: 50%;
	margin-top: 0.45rem;
}

.dot.done { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.dot.todo { background: transparent; border: 2px solid var(--amber); }

/* ---- Signup form: real controls, 3:1+ borders, ring on focus ---- */
.signup-form { display: grid; gap: 0.7rem; margin-top: 0.8rem; }

.field { display: grid; gap: 0.25rem; font-weight: 600; font-size: 14px; line-height: 1.5; }

.field em { font-weight: 400; color: var(--muted); }

.field input {
	font: inherit;
	font-weight: 400;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--control-border);
	border-radius: var(--radius-control);
	background: #fff;
	color: var(--ink);
	transition: border-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:hover { border-color: var(--ink-soft); }
.field input:focus {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
	border-color: var(--accent);
}

button {
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.5;
	background: var(--accent);
	color: var(--accent-ink);
	border: 2px solid transparent;
	border-radius: var(--radius-control);
	padding: 0.6rem 1rem;
	cursor: pointer;
	transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
}
button:hover { background: var(--accent-strong); }
button:active { background: var(--accent-strong); transform: translateY(1px); }

/* ---- Meetup sample grid: dt label vs dd value are distinct jobs ---- */
.meetup-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 1rem 0 0;
}

.meetup-grid dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.5; color: var(--muted); }
.meetup-grid dd { margin: 0.25rem 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 700px) {
	.meetup-grid { grid-template-columns: 1fr; }
}

/* ---- Tracks + paths: even, quiet containers ---- */
.tracks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

@media (max-width: 800px) {
	.tracks { grid-template-columns: 1fr; }
}

.tracks .card { margin-bottom: 0; }
.tracks .card p { font-size: 15px; color: var(--ink-soft); }

.paths { display: grid; gap: 1rem; margin-top: 1rem; }

.path {
	border: 1px solid var(--line);
	border-radius: var(--radius-control);
	padding: 1.25rem 1.5rem; /* 20px 24px */
	background: #fff;
}

.path h2 { font-size: 20px; margin: 0 0 0.5rem; }
.path h2 .muted { font-weight: 400; }
.path ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.6rem; font-size: 16px; }
.path li span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---- Org map: real table — distinct header, row dividers, roomy cells ---- */
table.orgmap { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 15px; }

.orgmap thead th {
	background: var(--surface-tint);
	border-bottom: 2px solid var(--line);
}

.orgmap th, .orgmap td { text-align: left; padding: 0.75rem 1rem; vertical-align: top; }

.orgmap tbody td, .orgmap tbody th { border-bottom: 1px solid var(--divider); }

.orgmap tbody tr:last-child td { border-bottom: none; }
.orgmap tbody tr:hover { background: #faf7ec; }

.orgmap th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.5; color: var(--ink-soft); }
.orgmap td { line-height: 1.55; color: var(--ink); }

/* ---- Shelf: readings grid ---- */
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }

@media (max-width: 700px) {
	.shelf { grid-template-columns: 1fr; }
}

.shelf article { border: 1px solid var(--line); border-radius: var(--radius-control); padding: 1.25rem 1.5rem; background: #fff; }
.shelf h2 { font-size: 20px; margin: 0 0 0.5rem; }
.shelf ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: 15px; }

.big-email { font-size: 24px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }

.narrow { max-width: 36rem; }

/* Caption role: 14px muted — supporting note, never body copy */
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.55; }

/* ---- Footer: quieter than content ---- */
.footer { border-top: 1px solid var(--line); padding: 1.2rem 0 2rem; color: var(--ink-soft); font-size: 14px; margin-top: 1rem; }

.footer-inner { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }

.footer-links { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.footer-links a { font-size: 14px; }

/* ---- Inline code: subtle, never a shout ---- */
code { background: #eee9d8; border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.35rem; font-size: 0.9em; }

/* ---- Narrow screens: topbar stacks, email fits ---- */
@media (max-width: 700px) {
	.topbar-inner { gap: 0.5rem; }
	.topbar-side { margin-left: 0; }
	.card { padding: 1.25rem; }
	.card h1 { font-size: 28px; }
	.big-email { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
	button:active { transform: none; }
}
