:root {
	--ink: #1D211F;
	--paper: #FFFFFF;
	--text: #ECEFED;
	--body: #C9CFCB;
	--muted: #8B928D;
	--rule: #333936;
	--magenta: #EC1E79;
	--yellow: #F7C515;
	--cyan: #27AAE1;
	--kraft: #D9C7A0;
	--measure: 58ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--body);
	font-family: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 19px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ---------- masthead ---------- */
.masthead {
	border-bottom: 1px solid var(--rule);
	padding: 26px 0;
	margin-bottom: 68px;
}

.masthead .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

/* the ransom note wordmark, same as jillbeans.art */
.logo {
	font-family: 'Permanent Marker', cursive;
	font-size: 28px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.logo span {
	display: inline-block;
	background-color: #FFFFFF;
	color: #1D211F;
	padding: 2px 7px;
	margin: 0 1px;
	border-radius: 2px;
}

.logo span:nth-child(odd)  { transform: rotate(-4deg); }
.logo span:nth-child(even) { transform: rotate(3deg); }

.logo .i { color: var(--magenta); }
.logo .kraft { background-color: var(--kraft); }
.logo .gap { background: none; padding: 0 5px; }

/* four items now, so let it wrap evenly instead of orphaning the last one */
.site-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 22px;
}

.site-nav a {
	color: #FFFFFF;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	padding-bottom: 4px;
}

.site-nav a:hover { color: var(--magenta); }

/* little arrow so the outbound link reads as leaving the site */
.site-nav .ext {
	font-size: 11px;
	color: var(--muted);
	margin-left: 1px;
}

.site-nav a:hover .ext { color: var(--magenta); }

.site-nav a[aria-current="page"] {
	color: var(--magenta);
	border-bottom: 3px solid var(--magenta);
}

/* ---------- intro ---------- */
.intro { margin-bottom: 84px; position: relative; }

.eyebrow {
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cyan);
	margin: 0 0 18px 0;
	font-weight: 800;
}

h1 {
	font-family: 'Permanent Marker', cursive;
	font-weight: normal;
	font-size: clamp(42px, 7.5vw, 82px);
	line-height: 1.06;
	color: #FFFFFF;
	margin: 0 0 26px 0;
}

.lede {
	font-size: 21px;
	line-height: 1.65;
	max-width: var(--measure);
	color: var(--text);
	margin: 0 0 34px 0;
}

/* ---------- project index ---------- */
.toc { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }

.toc li { border-bottom: 1px solid var(--rule); }
.toc li:first-child { border-top: 1px solid var(--rule); }

.toc a {
	display: flex;
	gap: 18px;
	align-items: baseline;
	padding: 15px 0;
	color: #FFFFFF;
	text-decoration: none;
	font-weight: 600;
}

.toc a:hover { color: var(--magenta); }

.toc .num {
	font-variant-numeric: tabular-nums;
	color: var(--yellow);
	font-size: 15px;
	min-width: 2ch;
	font-weight: 800;
}

/* ---------- projects ---------- */
.project {
	padding-top: 84px;
	margin-bottom: 24px;
	border-top: 1px solid var(--rule);
}

.project:first-of-type { border-top: none; }

.project-head { max-width: var(--measure); margin-bottom: 42px; }

.project h2 {
	font-family: 'Permanent Marker', cursive;
	font-weight: normal;
	font-size: clamp(32px, 4.6vw, 50px);
	line-height: 1.14;
	color: #FFFFFF;
	margin: 0 0 8px 0;
}

.project h2 .rule {
	display: block;
	width: 84px;
	height: 5px;
	background: var(--magenta);
	margin-top: 14px;
}

.project .meta {
	font-size: 13px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 800;
	margin: 18px 0 20px 0;
}

.project p { margin: 0 0 18px 0; }

.note {
	border-left: 4px solid var(--yellow);
	padding-left: 18px;
	color: var(--text);
	font-size: 18px;
}

/* ---------- figures ---------- */
.plate { margin: 0 0 40px 0; }

/* mat everything on white so her work separates from the chalkboard */
.plate img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--paper);
	padding: 12px;
}

.plate figcaption {
	font-size: 14px;
	color: var(--muted);
	margin-top: 10px;
}

.grid-2, .grid-3 { display: grid; gap: 26px; margin-bottom: 40px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 .plate, .grid-3 .plate { margin-bottom: 0; }

/* the source images are every shape imaginable, so mat them to a common
   height instead of letting the rows go ragged */
.grid-3 .plate img { height: 300px; object-fit: contain; }
.grid-2 .plate img { height: 380px; object-fit: contain; }
.stage img { height: auto; padding: 22px; }

.label {
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--yellow);
	margin: 0 0 14px 0;
	font-weight: 800;
}

/* ---------- course list on the landing page ---------- */
.courses {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 40px;
}

.course {
	display: block;
	padding: 30px 28px 26px 28px;
	border: 1px solid var(--rule);
	text-decoration: none;
	color: var(--body);
	transition: border-color 0.15s, background-color 0.15s;
}

.course:hover {
	border-color: var(--magenta);
	background-color: #232825;
	color: var(--body);
}

.course-term {
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--yellow);
	font-weight: 800;
	margin: 0 0 12px 0;
}

.course h2 {
	font-family: 'Permanent Marker', cursive;
	font-weight: normal;
	font-size: 30px;
	line-height: 1.16;
	color: #FFFFFF;
	margin: 0 0 14px 0;
}

.course h2 span { display: block; font-size: 21px; color: var(--cyan); }

.course-desc { margin: 0 0 18px 0; font-size: 17px; }

.course-go {
	margin: 0;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--magenta);
}

/* ---------- single big outbound link ---------- */
.cta-block {
	border: 3px dashed var(--kraft);
	padding: 28px 24px;
	text-align: center;
	margin-bottom: 44px;
}

.cta-block .label { margin-bottom: 10px; }

.big-link {
	font-family: 'Permanent Marker', cursive;
	font-size: clamp(26px, 4vw, 38px);
	text-decoration: none;
	color: #FFFFFF;
}

.big-link:hover { color: var(--magenta); }
.big-link .ext { font-size: 0.5em; color: var(--muted); }

/* ---------- resume ---------- */
.res-section { margin-bottom: 50px; max-width: var(--measure); }

.res-section h2 {
	font-family: 'Permanent Marker', cursive;
	font-size: 26px;
	font-weight: normal;
	color: #FFFFFF;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--magenta);
	margin: 0 0 22px 0;
}

.res-item { margin-bottom: 26px; }

.res-item h3 { font-size: 19px; font-weight: 800; color: #FFFFFF; margin: 0 0 3px 0; }

.res-item .when { font-size: 14px; color: var(--muted); margin: 0 0 8px 0; letter-spacing: 0.02em; }

.res-section ul { margin: 0; padding-left: 20px; }
.res-section li { margin-bottom: 7px; }
.res-section li::marker { color: var(--cyan); }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.cols ul { padding-left: 20px; }

a { color: var(--cyan); }
a:hover { color: var(--magenta); }

/* ---------- footer ---------- */
.footer {
	margin-top: 92px;
	border-top: 1px solid var(--rule);
	padding: 30px 0 60px 0;
	color: var(--muted);
	font-size: 15px;
}

.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--magenta); }

@media screen and (max-width: 720px) {
	body { font-size: 18px; }
	.wrap { padding: 0 20px; }
	.masthead { margin-bottom: 44px; }
	.logo { font-size: 22px; }
	.site-nav { justify-content: flex-start; gap: 4px 16px; }
	.site-nav a { font-size: 13px; letter-spacing: 0.6px; }
	.intro { margin-bottom: 52px; }
	.project { padding-top: 52px; }
	.grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
	.grid-3 .plate img, .grid-2 .plate img { height: auto; }
	.courses { grid-template-columns: minmax(0, 1fr); }
	.cols { grid-template-columns: minmax(0, 1fr); }
}
