/* Ranke-Graph — landing page.
   No framework, no build, no JavaScript.

   A modern surface with archival warmth in the accents: the ground is
   near-white and the hairlines are cool grey, while the amber and teal
   sampled from the logo appear only where the eye lands. */

:root {
	/* sampled from the logo */
	--ink:        #203030;
	--amber:      #e0a040;
	--terracotta: #b5462a;
	--teal:       #2d5c66;

	color-scheme: light;   /* the page is light, not light-by-default */

	--bg:      #ffffff;
	--surface: #fbfcfc;
	--text:    #1c2426;
	--muted:   #5b6a6c;
	--rule:    #d8dee1;
	--accent:  #1f5f6b;   /* the logo's teal, deepened to carry links */

	--measure: 34rem;      /* comfortable reading width */
	--page:    64rem;      /* outer container */
	--gap:     clamp(2rem, 5vw, 4rem);
}

/* The page is light for every reader: the logo is drawn for a bright ground,
   and the palette is built around it. A dark variant would mean a second set
   of tokens here and a logo that reads on both. */


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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	padding: 0 clamp(1rem, 4vw, 2.5rem);
	background: var(--bg);
	color: var(--text);
	font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	      "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.page { max-width: var(--page); margin: 0 auto; }

/* ── header ─────────────────────────────────────────────────────────── */

header { padding: var(--gap) 0 0; }
.wordmark { width: min(20rem, 62%); height: auto; display: block; }

/* Subpages carry a smaller mark that doubles as the way home. */
header.slim { padding-bottom: 0; }
header.slim .wordmark { width: min(13rem, 45%); }
header.slim::after { display: none; }

/* One warm line on a cool page: the whole archival note, stated once. */
header::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 2px;
	background: var(--amber);
	margin-top: var(--gap);
}

/* ── typography ─────────────────────────────────────────────────────── */

h1 {
	font-size: clamp(2rem, 5vw, 3.1rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
	max-width: 18ch;
}

h2 {
	font-size: 1.05rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 600;
	margin: 0 0 1.4rem;
}

h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }

p { max-width: var(--measure); }

.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

section { padding: var(--gap) 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

/* ── hero ───────────────────────────────────────────────────────────── */

.hero { display: grid; gap: var(--gap); align-items: center; }

@media (min-width: 52rem) {
	.hero { grid-template-columns: 1fr auto; }
}

/* An illustration, not a wallpaper: it sits beside the words, never over them. */
.illustration {
	width: clamp(9rem, 22vw, 15rem);
	height: auto;
	justify-self: center;
}

/* ── the signpost ───────────────────────────────────────────────────── */

.paths { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .paths { grid-template-columns: repeat(4, 1fr); } }

.path {
	display: grid;
	gap: 0.35rem;
	align-content: start;
	padding: 1.3rem 1.4rem;
	border: 1px solid var(--rule);
	border-radius: 10px;
	background: var(--surface);
	text-decoration: none;
	color: inherit;
}
.path:hover { border-color: var(--accent); }
.path b { font-size: 1.1rem; color: var(--accent); }
.path span { color: var(--text); font-size: 0.95rem; }
.path em { color: var(--muted); font-size: 0.85rem; font-style: normal; }

/* ── subsection heading inside a section ────────────────────────────── */

h3.sub {
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 2rem 0 1rem;
}

/* ── the property list ──────────────────────────────────────────────── */

.props { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
@media (min-width: 44rem) { .props { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } }

.props b { display: block; color: var(--text); }
.props span { color: var(--muted); }

/* ── cards ──────────────────────────────────────────────────────────── */

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: 10px;
	padding: 1.4rem 1.5rem;
}
.card p { margin: 0.4rem 0 0.9rem; color: var(--muted); font-size: 0.95rem; }
.card .meta { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ── plain link lists ───────────────────────────────────────────────── */

.rows { display: grid; gap: 0.9rem; margin: 0; padding: 0; }
.rows > div { display: grid; gap: 0.15rem; }
.rows .what { color: var(--muted); font-size: 0.95rem; max-width: var(--measure); }

/* ── footer ─────────────────────────────────────────────────────────── */

footer {
	border-top: 1px solid var(--rule);
	padding: 2rem 0 4rem;
	color: var(--muted);
	font-size: 0.9rem;
}

/* ── scaffolding: anything unwritten shouts ─────────────────────────── */

.todo {
	display: block;
	border: 1px dashed var(--amber);
	background: color-mix(in srgb, var(--amber) 12%, transparent);
	color: var(--text);
	padding: 0.7rem 0.9rem;
	border-radius: 6px;
	font-size: 0.9rem;
	max-width: var(--measure);
}
.todo::before { content: "TO WRITE — "; font-weight: 700; letter-spacing: 0.04em; }
