/************************************************************************************
The fonts have been licenced from Rosetta Type Foundry: https://rosettatype.com/
Use and distribution is limited by the fonts EULA: https://rosettatype.com/license
Please, keep this notice included next to all @font-face rules which use the fonts.
*************************************************************************************/

/* Briefly block fallback text while the preloaded brand fonts load. */
@font-face {
	font-family: "Skolar PE Variable Web";
	src: url("fonts/SkolarPEVFWeb-Ups-d1be15676539.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: block;
}
@font-face {
	font-family: "Skolar PE Variable Web";
	src: url("fonts/SkolarPEVFWeb-Its-a854450a957c.woff2") format("woff2");
	font-weight: 300 700;
	font-style: italic;
	font-display: block;
}
@font-face {
	font-family: "Skolar Sans PE Web";
	src: url("fonts/SkolarSansPEWeb-Rg-af4967237eba.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: block;
}
@font-face {
	font-family: "Skolar Sans PE Web";
	src: url("fonts/SkolarSansPEWeb-Sb-2ee4ea4adc2a.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: block;
}
@font-face {
	font-family: "Skolar Sans PE Web";
	src: url("fonts/SkolarSansPEWeb-Bd-50eef2d62d32.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: block;
}


:root {
	--serif: "Skolar PE Variable Web", Georgia, serif;
	--sans: "Skolar Sans PE Web", system-ui, sans-serif;
	/* Major-third scale (4:5) on a 1.2rem body size. */
	--s-1: .96rem;
	--s0: 1.2rem;
	--s1: 1.5rem;
	--s2: 1.875rem;
	--s3: 2.344rem;
	--s4: 2.93rem;
	--s5: 3.662rem;
	--s6: 4.578rem;
	--s7: 5.722rem;
	--row-gap: 32px;
	--prose-measure: 65ch;
	--bg: #ffffff;
	--ink: #14211f;
	--muted: #4a5856;
	--faint: #6d7b79;
	--line: #d5dedc;
	--teal: #0C8376;
	--teal-deep: var(--teal);
	--band: var(--teal);
	--coral: #CC443A;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
a:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 5px; }
.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; background: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font: 400 var(--s0)/1.6 var(--sans);
	font-variant-numeric: oldstyle-nums proportional-nums;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.ac { font-variant-caps: all-small-caps; letter-spacing: .05em; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 48px); }
.meta { font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3 { text-wrap: balance; }
.nw { white-space: nowrap; }

p { max-inline-size: var(--prose-measure); text-wrap: pretty; }
.serif { font-family: var(--serif); font-weight: 400; }
em { font-style: italic; }
.t { color: var(--teal-deep); }
.c { color: var(--coral); }

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 36px; }
.logo { font: 600 var(--s0)/1 var(--sans); text-decoration: none; }
.logo span { color: var(--coral); }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px clamp(16px, 3vw, 40px); font: var(--s-1)/1 var(--sans); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--teal-deep); }
.nav-links .go { color: var(--teal-deep); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.eyebrow { font: 500 var(--s0)/1.4 var(--sans); font-variant-caps: normal; text-transform: none; letter-spacing: normal; color: var(--teal-deep); }
h1 { margin-block: 20px 36px; font: 400 clamp(2.75rem, calc(2rem + 3.5vw), 5rem)/1 var(--serif); }
h1 em { color: var(--coral); white-space: nowrap; }
.lede { max-inline-size: min(32em, var(--prose-measure)); color: var(--muted); font-size: 1.25rem; }
.lede strong { color: var(--ink); font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.btn {
	display: inline-flex; align-items: center; padding: 14px 28px; border-radius: 999px;
	font: 600 var(--s-1)/1.2 var(--sans); text-decoration: none; transition: transform .1s ease-out, box-shadow .1s ease-out;
}
/* Clear primary button with a decorative teal accent underneath. */
.btn-teal { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 0 4px 0 var(--teal); }
.btn-teal:hover { background: transparent; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 0 4px 0 var(--coral); }
.btn-coral { background: var(--coral); color: #fff; }

.portrait {
	position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%;
	background: conic-gradient(from 4deg, var(--coral) 0 236deg, var(--teal) 236deg 360deg);
	padding: 10px;
}
.portrait::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg); }
.portrait-crop { position: absolute; inset: 20px; border-radius: 50%; overflow: hidden; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate(-3%, -3%); }

/* Timeline */
.timeline { padding-block: 40px 120px; }
.timeline h2 { font: 400 clamp(var(--s1), 2.5vw, var(--s2))/1.2 var(--serif); }
.timeline h2 em { white-space: nowrap; }
.axis { position: relative; height: 1px; margin-block: 140px; list-style: none; padding: 0;
	background: linear-gradient(to right, var(--teal) 0 81.25%, var(--coral) 81.25%);
}
.axis::before {
	content: ""; position: absolute; inset: -4px 0 auto; height: 9px;
	background: repeating-linear-gradient(to right, var(--teal) 0 1px, transparent 1px 6.25%);
	opacity: .55; clip-path: inset(0 18.75% 0 0);
}
.axis li { position: absolute; inset-inline-start: var(--x); top: 0; }
.axis li::before {
	content: ""; position: absolute; top: -5px; left: -5px; width: 11px; height: 11px; border-radius: 50%;
	background: var(--dot, var(--teal));
}
.axis .label { position: absolute; width: 15em; font-size: var(--s-1); line-height: 1.45; }
.axis .label .meta { display: block; margin-bottom: 4px; font-weight: 600; color: var(--teal-deep); }
.axis .co .label .meta { color: var(--coral); }
.axis .below .label { top: 24px; }
.axis .above .label { bottom: 24px; }
.axis .start .label { left: -5px; }
.axis .mid .label { left: 0; transform: translateX(-50%); text-align: center; }
.axis li.end { right: 0; }
.axis li.end .label { right: 0; text-align: right; }
.axis .co { --dot: var(--coral); }

/* Sections */
.sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 72px; }
.sec > :nth-child(2) { min-inline-size: 0; }
.sec-label { font: 600 var(--s-1)/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; color: var(--coral); }
.sec h2 { max-inline-size: 40ch; margin-top: 18px; font: 400 clamp(1.75rem, 3vw, 2.25rem)/1.18 var(--serif); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--row-gap); }
.do-row, .build, .job, .tool-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.do-row, .build, .tool-group { align-content: start; }
.job .when { font: 700 var(--s0)/1.45 var(--sans); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.do-row h3 { font: 700 var(--s0)/1.45 var(--sans); }
.do-row p, .job p { color: var(--muted); }
.job h3 { font: italic 400 var(--s0)/1.45 var(--sans); }
.job h3 .employer { font-style: normal; font-weight: 400; color: var(--muted); }
.build h3 { font: 400 var(--s0)/1.45 var(--sans); }
.build h3 a { color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.build p { color: var(--muted); }
.product-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.product-list li { max-inline-size: 100%; }
.product-list a { display: inline-block; padding-block: 4px; color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }

.btn-light { border: 1.5px solid #fff; color: #fff; }
/* Press into the base on activation, without lifting on hover. */
.btn:active { transform: translateY(2px); }
.btn-teal:active { transform: translateY(4px); box-shadow: 0 0 0 var(--teal); }
.btn-ghost:active { transform: translateY(4px); box-shadow: 0 0 0 var(--coral); }
@media (prefers-reduced-motion: reduce) {
	.btn { transition: none; }
	.btn:active { transform: none; }
}

.contact .cta { margin-top: 24px; }
.tool-groups { margin: 0; display: grid; gap: var(--row-gap); align-content: start; }
.tool-group dt { color: var(--ink); font: 700 var(--s0)/1.45 var(--sans); }
.tool-group dd { margin: 0; min-width: 0; }
.tool-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font: 400 var(--s0)/1.6 var(--sans); }

/* Contact */
.band { color: var(--ink); }
.contact { align-items: start; }
.contact h2 em { color: inherit; }
.contact-details > p { max-inline-size: min(30em, var(--prose-measure)); color: var(--muted); }
.footer-heart { color: var(--coral); }
footer { padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--s-1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* After the font shorthands above, which reset numeric variants. */
h1, .timeline h2, .sec h2, .contact h2 { font-variant-numeric: oldstyle-nums proportional-nums; }

@media (min-width: 621px) {
	.tool-groups, .education-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.job { grid-template-columns: 12rem minmax(0, 1fr); gap: 16px; }
}
@media (min-width: 861px) {
	#what-i-do > .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tool-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; }
	.portrait { order: -1; width: min(72%, 320px); }
	.axis { height: auto; margin-block: 32px 0; background: none; padding-inline-start: 24px; border-inline-start: 1px solid var(--teal); display: grid; gap: 28px; }
	.axis::before { display: none; }
	.axis li { position: relative; inset: auto; }
	.axis li::before { top: 6px; left: -30px; }
	.axis .label, .axis li.end .label, .axis .mid .label { position: static; width: auto; transform: none; text-align: left; }
	.timeline { padding-block-end: 64px; }
}
@media (max-width: 620px) {
	.nav { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 24px; }
	.nav-links { flex-wrap: wrap; gap: 4px 20px; inline-size: 100%; line-height: 1.5; }
	.nav-links a { padding-block: 8px; }
	.do-row, .build, .job, .tool-group { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 380px) { .nw, h1 em, .timeline h2 em { white-space: normal; } }
