/*
	prtx.github.io
	- Hero: the original profile card (Source Sans), with three cards that open the sections.
	- Body: one calm reading column (Source Serif); one section shown at a time: About me, Research, What I think.
	- Light and dark themes: light by default, dark via the toggle (html[data-theme]).
	  Section names change with the theme (About me ... / /home ...).
	No build step; icons from assets/css/fontawesome-all.min.css.
*/

/* ---------- Colour tokens ----------
	Light is always the default; dark applies only when the visitor picks it with the toggle.
	The choice is stored as html[data-theme]. */
:root {
	color-scheme: light;
	/* hero */
	--hero-bg: #e8e4db;
	--hero-fg: #3d4046;
	--hero-strong: #1b1d21;
	--hero-link: #1d63b8;
	--hero-line: rgba(30, 32, 36, .2);
	--hero-hover: rgba(30, 32, 36, .07);
	--hero-tint: rgba(29, 99, 184, .07);

	/* reading body */
	--bg: #f4f1ea;
	--fg: #1f1e1c;
	--muted: #6b6760;
	--rule: #dcd7cc;
	--link: #1d4f91;
	--link-under: #a9bddb;
	--accent: #b0412e;
	--chip: #ebe7de;
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--hero-bg: #212529; --hero-fg: #ddd; --hero-strong: #e6e6e6; --hero-link: #66b8ff;
	--hero-line: rgba(221, 221, 221, .22); --hero-hover: rgba(255, 255, 255, .175); --hero-tint: rgba(102, 184, 255, .07);
	--bg: #17191c; --fg: #e8e6e1; --muted: #9c978e; --rule: #2c2f33;
	--link: #8fc4f5; --link-under: #3d5578; --accent: #e88b74; --chip: #23262a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	background: var(--bg);
	color: var(--fg);
	font: 400 1.0625rem/1.6 "Source Serif 4", "Iowan Old Style", Georgia, serif;
	font-optical-sizing: auto;
}
:focus-visible { outline: 2px solid var(--hero-link); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: .4rem .7rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* =================== Hero =================== */
@keyframes rise { from { opacity: 0; transform: translateY(1em); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@keyframes appear { from { opacity: 0; } to { opacity: .65; } }

.hero {
	min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 40px 16px 84px; position: relative;
	background: var(--hero-bg); color: var(--hero-fg);
	font: 300 15pt/1.75em "Source Sans 3", "Source Sans Pro", sans-serif;
	letter-spacing: -0.025em;
}
/* Entrance, after the original site: the body rises first, then the icon buttons pop in
   one at a time (0.5s each, 0.25s apart), then the section cards, then the arrow. */
.profile-top { animation: rise 1s .15s backwards; }
.icons a { animation: rise .5s ease-in-out backwards; }
.icons a:nth-child(1) { animation-delay: .55s; }
.icons a:nth-child(2) { animation-delay: .8s; }
.icons a:nth-child(3) { animation-delay: 1.05s; }
.icons a:nth-child(4) { animation-delay: 1.3s; }
.choices .choice { animation: rise .5s ease-in-out backwards; }
.choices .choice:nth-child(1) { animation-delay: 1.5s; }
.choices .choice:nth-child(2) { animation-delay: 1.6s; }
.choices .choice:nth-child(3) { animation-delay: 1.7s; }
.choices .choice:nth-child(4) { animation-delay: 1.8s; }
@keyframes fade-in { from { opacity: 0; } }
.choices .choice.secret { animation: fade-in .6s ease 2.1s backwards; }
.hero a { color: var(--hero-link); text-decoration: none; border-bottom: 1px dotted; transition: border-color .2s; }
.hero a:hover { border-color: transparent; }

.profile-top { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 30px; margin-bottom: 20px; }
.profile-image img { width: 400px; height: 400px; max-width: 72vw; max-height: 72vw; object-fit: cover; border-radius: 50%; display: block; }
/* soft shadow under the portrait: warm in light mode, deeper in dark mode */
.profile-image img { box-shadow: 0 18px 40px -8px rgba(60, 45, 25, .28), 0 4px 12px rgba(60, 45, 25, .10); }
:root[data-theme="dark"] .profile-image img { box-shadow: 0 20px 44px -6px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .35); }
.profile-text { text-align: left; min-width: 250px; }
.profile-text h1 { font-size: 4.35em; font-weight: 900; letter-spacing: -0.035em; line-height: 1; color: var(--hero-strong); }
.profile-text h1 { white-space: nowrap; }
/* optical alignment: the big heavy letters carry extra space on their left, so pull the name back to line up with the text below */
@media (min-width: 737px) { .profile-text h1 { margin-left: -0.04em; } }
.profile-text p { font-size: 1.25em; margin: .75em 0 .25em; opacity: .78; } /* hero metrics match the original site */

.icons { display: flex; gap: 24px; margin-top: 2.5em; }
.icons a {
	width: 2.5em; height: 2.5em; display: grid; place-items: center;
	font-size: 1.75em; border: 1px solid var(--hero-fg); border-radius: 50%;
	transition: background-color .2s, transform .2s;
}
.icons a:hover { background: var(--hero-hover); color: var(--hero-fg); border-color: var(--hero-fg); transform: scale(1.06); }
.icons a::before { line-height: 1; }

.choices { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 3em; width: min(100%, 1040px); }
@media (max-width: 1080px) { .choices { grid-template-columns: repeat(2, 1fr); width: min(100%, 640px); } }
.hero a.choice {
	display: block; padding: .8em 1.1em; border: 1px solid var(--hero-line); border-radius: 14px;
	color: var(--hero-fg); text-align: center; transition: border-color .2s, background-color .2s, transform .2s;
}
.hero a.choice:hover, .hero a.choice[aria-current="true"] { border-color: var(--hero-link); background: var(--hero-tint); }
.hero a.choice:hover { transform: translateY(-2px); }
.choice .name { display: block; font-weight: 600; font-size: 1.05em; height: 1.5em; line-height: 1.5em; overflow: hidden; color: var(--hero-strong); } /* fixed height: light/dark names never change card size */
.choice .name .lbl-dark { line-height: 1; font-size: .88em; } /* dark-mode commands a touch smaller than the light titles */
.choice .name { white-space: nowrap; }
@media (max-width: 736px) { .choice .name .lbl-dark { font-size: .8em; } }
@media (max-width: 360px) { .choice .name .lbl-dark { font-size: .72em; } .hero a.choice { padding-left: .6em; padding-right: .6em; } }
.choice .name::after { content: " \2193"; color: var(--hero-link); }
/* dark mode: the cards read as shell commands, so no arrow */
:root[data-theme="dark"] .choice .name::after { content: none; }
.hero a.scroll {
	position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
	border: 0; color: var(--hero-fg); font-size: 1.7em; line-height: 1; opacity: .65;
	animation: appear .6s 2.1s backwards, nudge 2s ease-in-out 2.7s infinite;
}
.hero a.scroll:hover { opacity: 1; }

/* =================== Reading body =================== */
main { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem 1rem; }
/* prose keeps a comfortable measure; lists use the full width */
main > section > p, .lead, .featured, .timeline { max-width: 52rem; }
main a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-under); text-decoration-thickness: 1px; text-underline-offset: .18em; }
main a:hover { text-decoration-color: currentColor; }

.sections {
	position: sticky; top: 0; z-index: 5;
	display: flex; justify-content: center; gap: .3rem;
	padding: .9rem 0; margin-bottom: .5rem;
	background: var(--bg);
	/* paint the bar across the full window without causing horizontal scroll */
	box-shadow: 0 0 0 100vmax var(--bg), 0 1px 0 100vmax var(--rule);
	clip-path: inset(0 -100vmax -1px);
	font: 600 .88rem/1 "Source Sans 3", sans-serif; letter-spacing: .12em; text-transform: uppercase;
}
main .sections a { text-decoration: none; color: var(--muted); padding: .55rem 1.1rem; border-radius: 999px; white-space: nowrap; }
main .sections a:hover { color: var(--fg); }
main .sections a[aria-current="true"] { color: var(--fg); background: var(--chip); }

main > section { padding: 2rem 0 1rem; scroll-margin-top: 3rem; }
.js .path { display: none; }
.js .path.active { display: block; }
html:not(.js) .path + .path { border-top: 1px solid var(--rule); }
.path-title { font: 600 1.75rem/1.2 "Source Serif 4", Georgia, serif; letter-spacing: -0.01em; color: var(--fg); margin-bottom: 1rem; }
.path-title:focus { outline: none; }
.cross { margin-top: 1.8rem; font-style: italic; color: var(--muted); }
p { margin: 0 0 1rem; }
.lead { font-size: 1.3rem; line-height: 1.45; }

h3 {
	font: 600 1.25rem/1.3 "Source Serif 4", Georgia, serif; letter-spacing: -0.005em;
	color: var(--fg); margin: 2.2rem 0 .9rem; padding-top: 1.3rem; border-top: 1px solid var(--rule);
}
ul, ol { list-style: none; }
.note { color: var(--muted); }
/* About me: the crossed-out job titles */
.roles-line s { color: var(--muted); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.more { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

.projects li { position: relative; padding-left: 1rem; margin-bottom: .45rem; }
.projects li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.projects b { font-weight: 600; }


main > section > h2 + p, main > section > h2 + .lead { margin-top: 0; }

/* What I think */
.empty { color: var(--muted); font-style: italic; }
.thought { padding: .9rem 0; border-top: 1px solid var(--rule); }
.thought:first-of-type { border-top: 0; }
.thought time { font: 400 .82rem/1 "Source Sans 3", sans-serif; color: var(--muted); }
.thought h4 { font-size: 1.15rem; font-weight: 600; margin: .3rem 0 .25rem; }
.thought h4 a { color: var(--fg); text-decoration: none; }
.thought h4 a:hover { text-decoration: underline; }
.thought p { margin: 0; color: var(--muted); }

.listening-card {
	padding: clamp(1rem, 4vw, 2rem);
	border: 1px solid var(--rule);
	border-radius: 1rem;
	background: radial-gradient(ellipse at top right, #33263d, transparent 72%), var(--chip);
}
.listening-card h3 {
	margin: 0 0 .45rem;
	padding: 0;
	border: 0;
	font: 600 clamp(1.5rem, 4vw, 2.25rem)/1.15 "Source Serif 4", Georgia, serif;
}
.listening-card iframe {
	display: block;
	width: 100%;
	margin: 1rem 0;
	border: 0;
	border-radius: .75rem;
	background: #121212;
}
.listening-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.listening-links a:first-child { font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

/* Footer: "Say hello" + links, shown under every section */
footer { max-width: 70rem; margin: 2rem auto 0; padding: 2rem 1.25rem 2.5rem; border-top: 1px solid var(--rule); }
footer h2 { font: 600 1.25rem/1.3 "Source Serif 4", Georgia, serif; margin-bottom: .7rem; }
footer p { margin: 0 0 .8rem; }
footer a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-under); text-decoration-thickness: 1px; text-underline-offset: .18em; }
footer a:hover { text-decoration-color: currentColor; }
footer .handle { margin: 1.6rem 0 0; color: var(--muted); font: 400 .85rem/1 "Source Sans 3", sans-serif; }


/* EDA-Learn diagram inside the featured card: white panel so the diagram reads in both themes */
.card-figure { max-width: 40rem; margin: .6rem auto 1.1rem; }
.card-figure figcaption { text-align: center; }
.card-figure a { display: block; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: .8rem; }
.card-figure img { display: block; width: 100%; height: auto; }
.card-figure figcaption { margin-top: .4rem; font: 400 .85rem/1.4 "Source Sans 3", sans-serif; color: var(--muted); }

/* =================== Researcher path ===================
	Type scale used across all sections:
	  section titles 1.75rem (serif, 600) · sub-headings 1.25rem (serif, 600) · lead and featured title 1.3rem (serif)
	  item titles 1.125rem (serif, 600) · body 1.0625rem (serif) · secondary lines .9rem (serif, muted)
	  dates/years/venues .85rem (sans) · small labels .8rem (sans, caps) */
.featured {
	margin: 1.6rem 0 .5rem; padding: 1.1rem 1.25rem 1rem;
	border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px 10px 10px 4px;
	background: var(--chip);
}
.featured .featured-label { font: 600 .8rem/1 "Source Sans 3", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .55rem; }
.featured h4 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; margin-bottom: .4rem; }
.featured h4 a { color: var(--fg); text-decoration: none; }
.featured p { font-size: 1.0625rem; margin-bottom: .6rem; }
.featured .featured-links { display: flex; gap: 1.1rem; margin: 0 !important; font: 600 .85rem/1 "Source Sans 3", sans-serif; letter-spacing: .04em; }
.featured-links a::after { content: " \2197"; }

.pub-group { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding-top: 1.6rem; }
.pub-group:first-child { padding-top: .2rem; }
.pub-year { font: 600 .85rem/1.6 "Source Sans 3", sans-serif; color: var(--muted); letter-spacing: .02em; margin: 0; padding-top: .05rem; }
@media (max-width: 30rem) {
	.pub-group { grid-template-columns: 1fr; gap: .6rem; }
}
.pubs li { margin-bottom: 1.6rem; }
.pubs .award { display: block; color: var(--accent); font: 600 .85rem/1.4 "Source Sans 3", sans-serif; margin-bottom: .15rem; }
.pubs .award i { margin-right: .3rem; }
.pubs .venue { display: block; color: var(--muted); font: 400 .85rem/1.4 "Source Sans 3", sans-serif; }
.pubs .title { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--fg); margin: .1rem 0 .25rem; }
main .pubs .title a { color: var(--fg); text-decoration: none; }
main .pubs .title a:hover { text-decoration: underline; text-decoration-color: var(--link-under); }
.pubs .meta { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.pubs .meta b { color: var(--fg); font-weight: 600; }
.more-authors { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: .18em; }
.more-authors:hover { color: var(--fg); }
.pubs .pub-links { display: flex; gap: .9rem; margin-top: .3rem; font: 600 .85rem/1.4 "Source Sans 3", sans-serif; }
.pubs .pub-links a::after { content: " \2197"; }
.timeline li { position: relative; display: grid; grid-template-columns: 5.6rem 1fr; gap: .9rem; padding: 0 0 1.15rem 1.4rem; font-size: 1.0625rem; line-height: 1.45; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: .6em; bottom: -.6em; width: 1px; background: var(--rule); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.timeline li.now::after { background: var(--accent); border-color: var(--accent); }
.timeline .when { color: var(--muted); font: 400 .85rem/1.9 "Source Sans 3", sans-serif; font-variant-numeric: tabular-nums; }
.timeline b { font-weight: 600; }
.timeline .note { display: block; font-size: .9rem; }
.quest { display: inline-block; margin-top: .45rem; padding: .2rem .6rem; border: 1px dashed var(--muted); border-radius: 8px; font-size: .85rem; color: var(--muted); }

@media (max-width: 30rem) {
	.timeline li { grid-template-columns: 1fr; gap: .3rem; }
}

/* =================== Portrait per theme ===================
	Light: assets/images/headshot.jpg   Dark: assets/images/headshot-dark.jpg */
.img-dark { display: none !important; }
:root[data-theme="dark"] .img-light { display: none !important; }
:root[data-theme="dark"] .img-dark { display: block !important; }
/* =================== Section names per theme ===================
	Light: About me / Research / Publications / Notes
	Dark:  /home / /research / /papers / /mnt/notes (set in monospace, like paths) */
.lbl-dark { display: none; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: 0; text-transform: none; }
:root[data-theme="dark"] .lbl-light { display: none; }
:root[data-theme="dark"] .lbl-dark { display: inline; }
.sections .lbl-dark { font-size: .95rem; }
.path-title .lbl-dark { font-size: 1.15rem; font-weight: 600; }
.profile-text h1 .lbl-dark { font-weight: 700; letter-spacing: -0.02em; }
/* Keep the hero still when the theme changes: both names share one grid cell, so the
   heading always takes the size of the larger one; the inactive name is just invisible. */
.profile-text h1 { display: grid; }
.profile-text h1 > span { grid-area: 1 / 1; display: block !important; align-self: center; }
.profile-text h1 > .lbl-dark { visibility: hidden; }
:root[data-theme="dark"] .profile-text h1 > .lbl-light { visibility: hidden; }
:root[data-theme="dark"] .profile-text h1 > .lbl-dark { visibility: visible; }
/* =================== Theme change: smooth cross-fade ===================
	Modern browsers use a view transition (set up in the toggle script); older ones get the
	.theme-fading fallback, which briefly animates colours instead of switching instantly. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease-in-out; }
.theme-fading, .theme-fading *, .theme-fading *::before, .theme-fading *::after {
	transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease,
		text-decoration-color .45s ease, fill .45s ease, stroke .45s ease !important;
}

/* Dark mode: blinking terminal cursor after "prtx" (still for reduced-motion users) */
.cur {
	display: inline-block; width: .45em; height: .8em; margin-left: .1em; vertical-align: -0.02em;
	background: var(--hero-link); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cur { animation: none; } }

/* =================== Secret /tmp (dark mode only) ===================
	A dotted fifth card, taken out of the grid so the four cards never move:
	beside the grid on wide screens, as a small pill just below it elsewhere. */
.hero a.choice.secret {
	display: none; position: absolute; width: max-content; border: 2px dotted rgba(221, 221, 221, .4);
	background: transparent; white-space: nowrap;
}
.hero a.choice.secret .name { color: var(--hero-fg); opacity: .75; overflow: visible; }
.hero a.choice.secret:hover { border-color: var(--hero-link); }
.hero a.choice.secret:hover .name { opacity: 1; }
:root[data-theme="dark"] .hero a.choice.secret { display: block; }
/* wide screens: beside the Notes card, same height */
@media (min-width: 1500px) { .hero a.choice.secret { left: calc(100% + 14px); top: 0; bottom: 0; display: none; align-content: center; } }
@media (min-width: 1500px) {
	:root[data-theme="dark"] .hero a.choice.secret { display: grid; }
}
/* everywhere else: a small pill centred just below the cards */
@media (max-width: 1499px) {
	.hero a.choice.secret { top: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: .3em 1em; border-radius: 999px; }
	.hero a.choice.secret:hover { transform: translateX(-50%); }
	.hero a.choice.secret .name { font-size: .85em; height: auto; line-height: 1.4; }
}
/* the /tmp tab in the sticky bar: dark mode only */
main .sections a.secret-tab { display: none; }
:root[data-theme="dark"] main .sections a.secret-tab { display: inline-block; }
/* the /tmp section never shows in light mode, even without JavaScript */
:root[data-theme="light"] #tmp { display: none !important; }
:root:not([data-theme="dark"]) #tmp { display: none !important; }

/* =================== Theme toggle =================== */
.theme-toggle {
	position: fixed; top: 14px; right: 14px; z-index: 20;
	width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
	border: 1px solid var(--hero-line); border-radius: 50%;
	background: color-mix(in srgb, var(--hero-bg) 85%, transparent); color: var(--hero-fg);
	backdrop-filter: blur(6px); transition: background-color .2s, transform .2s;
}
.theme-toggle:hover { background: var(--hero-hover); transform: rotate(-15deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
/* the sticky Builder/Researcher switch sits at the top while reading; keep it clear of the button */
@media (max-width: 760px) {
	.sections { padding-right: 44px; padding-left: 44px; gap: 0; }
	main .sections a { padding: .5rem .6rem; letter-spacing: .06em; }
	.sections { font-size: .8rem; }
	.sections .lbl-dark { font-size: .85rem; }
	.theme-toggle { top: 10px; right: 10px; width: 34px; height: 34px; }
	.theme-toggle svg { width: 17px; height: 17px; }
}

/* =================== Responsive =================== */
/* smallest phones: keep the icon row and the five dark tabs inside the screen */
@media (max-width: 400px) {
	.icons { gap: 12px; }
	.icons a { font-size: 1.55em; }
}
@media (max-width: 360px) {
	main nav.sections a { padding-left: .26rem; padding-right: .26rem; }
	main nav.sections .lbl-dark { font-size: .62rem; }
	main nav.sections .lbl-light { font-size: .95em; }
}
@media (max-width: 340px) { main nav.sections .lbl-dark { font-size: .56rem; } main nav.sections a { padding-left: .22rem; padding-right: .22rem; } }
/* four tabs on small phones */
@media (max-width: 520px) {
	.sections { padding-left: 0; padding-right: 42px; justify-content: flex-start; }
	main .sections a { padding: .42rem .4rem; letter-spacing: 0; font-size: .74rem; text-transform: none; }
	.sections { overflow-x: auto; scrollbar-width: none; } /* very narrow screens: the row scrolls instead of overlapping */
	.sections::-webkit-scrollbar { display: none; }
	.sections .lbl-dark { font-size: .7rem; }
	main .sections a:has(.lbl-dark) { padding-left: .38rem; padding-right: .38rem; }
}
/* short laptop screens (e.g. 1366x768): tighten the hero so the paths and arrow stay above the fold */
/* tall screens: extra top space sits the block a little lower, like the original site */
@media (min-width: 737px) and (min-height: 900px) { .hero { padding-top: clamp(40px, 15vh, 170px); } }
/* original site's size steps: 15pt above 1680px, 13pt down to 1281px, 12pt below */
@media (max-width: 1680px) { .hero { font-size: 13pt; } }
@media (min-width: 737px) and (max-height: 820px) {
	.hero { font-size: 12pt; padding-top: 24px; padding-bottom: 64px; }
	.profile-image img { width: 270px; height: 270px; }
	.profile-text p { margin-top: .45em; }
	.choices { margin-top: 2.3em; }
	.icons { margin-top: 1.9em; }
}
@media (max-width: 1280px) { .hero { font-size: 12pt; } }
@media (max-width: 736px) {
	.hero { font-size: 11pt; padding-top: 32px; }
	.profile-text { text-align: center; }
	.profile-text h1 { font-size: 2.5em; white-space: normal; }
	.profile-text p { font-size: 1.1em; }
	.profile-image img { width: 220px; height: 220px; }
	.choices { grid-template-columns: 1fr 1fr; gap: 10px; }
	.hero a.choice { padding: .7em .9em; }
	.hero { padding-bottom: 40px; }
	.hero a.scroll { display: none; } /* hero is taller than a phone screen; the path cards lead on */
}
@media (max-width: 30rem) {
	.lead { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.profile-top, .icons a, .choices .choice, .hero a.scroll { animation: none; }
}
