/*
 * apps.css — the app views.
 *
 * Everything an app renders inside its frame: the three states, the eight
 * views, and the container queries they reflow on. Scoped to `.js` because a
 * view only exists once a fetch has replaced the server-rendered block, but
 * deliberately not scoped to a viewport: the desktop runs these in a window
 * and the phone runs them in a full-screen sheet, and it is the same markup
 * either way.
 *
 * Layouts respond to `@container eos-app`, never to the screen — a window is
 * resized independently of the viewport, and a phone sheet is simply the
 * narrowest container the same rules already handle.
 */

.js .eos-view {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	min-height: 0;
}

/*
 * A failed fetch reports itself as a strip at the top of the window, over
 * the server-rendered content it fell back to — which is earlier in the
 * document, hence the order.
 */
.js .eos-view[data-state="error"] {
	flex: none;
	order: -1;
}

.js .eos-view__frame,
.js .eos-loading {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	min-height: 0;
}

.js .eos-scroll {
	flex: 1;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 18px;
}

.js .eos-scroll--about {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px 26px;
}

/* The mono footer: what this window is showing, and where it came from. */
.js .eos-appbar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 26px;
	padding: 0 14px;
	background: var(--surface2);
	border-top: 1px solid var(--line3);
	font: 500 10.5px var(--mono);
	color: var(--muted2);
	white-space: nowrap;
	overflow: hidden;
}

.js .eos-grouplabel {
	margin: 0 0 8px;
	font: 600 10.5px var(--mono);
	letter-spacing: .04em;
	color: var(--muted2);
}

/* ---------------------------------------------------------------------
 * Loading, empty and error states
 * ------------------------------------------------------------------ */

.js .eos-sk {
	display: block;
	flex: none;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--surface4) 0%, var(--surface5) 50%, var(--surface4) 100%);
	background-size: 200% 100%;
	animation: eos-shimmer 1.4s linear infinite;
}

@keyframes eos-shimmer {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

.js .eos-state {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px;
	text-align: center;
	color: var(--muted);
}

.js .eos-state__mark {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--surface4);
}

.js .eos-state__mark::after {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 2px;
	background: var(--line6);
	transform: rotate(45deg);
}

.js .eos-state__mark--error {
	background: var(--alert-tint);
}

.js .eos-state__mark--error::after {
	width: 4px;
	height: 16px;
	border-radius: 2px;
	background: var(--alert-text);
	transform: none;
}

.js .eos-state__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink2);
}

.js .eos-state__copy {
	margin: 0;
	max-width: 46ch;
	font-size: 12.5px;
}

.js .eos-state__source {
	margin: 0;
	font-size: 10.5px;
	color: var(--muted2);
}

/* Reported above the content the server sent, which stays readable. */
.js .eos-state--error {
	flex: none;
	gap: 8px;
	padding: 16px 18px;
	background: var(--surface2);
	border-bottom: 1px solid var(--line3);
}

.js .eos-state--error .eos-state__mark {
	width: 32px;
	height: 32px;
	border-radius: 10px;
}

/* ---------------------------------------------------------------------
 * Images and their stand-ins
 * ------------------------------------------------------------------ */

.js .eos-ph {
	display: grid;
	place-items: center;
	flex: none;
	background: repeating-linear-gradient(135deg, var(--stripe1) 0 6px, var(--stripe2) 6px 12px);
	border: 1px solid var(--line4);
	font: 500 9.5px var(--mono);
	color: var(--muted);
	text-align: center;
}

.js img.eos-ph {
	display: block;
	background: var(--surface4);
	object-fit: cover;
}

.js .eos-ph--portrait {
	width: 96px;
	height: 96px;
	border-radius: 24px;
}

.js .eos-ph--badge {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 3px solid var(--surface);
	box-shadow: 0 0 0 1px var(--line5);
}

.js .eos-ph--award {
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

/* ---------------------------------------------------------------------
 * About Me
 * ------------------------------------------------------------------ */

.js .eos-about-app__head {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.js .eos-about-app__intro {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.js .eos-about-app__name {
	margin: 0;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.js .eos-about-app__intro .eos-chips {
	margin: 2px 0 0;
}

.js .eos-scroll--about .eos-prose {
	margin: 0;
}

.js .eos-tilegrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* The File block's inline PDF viewer, once apps.js has revealed it. */
.js .eos-prose .wp-block-file__embed {
	display: block;
	width: 100%;
	margin: 0 0 10px;
	border-radius: 8px;
	border: 1px solid var(--line3);
	background: var(--surface4);
}

.js .eos-prose .wp-block-file {
	margin: 16px 0;
}

/* ---------------------------------------------------------------------
 * Contact
 *
 * A card of ways to reach a person: one row each, the whole row a link.
 * ------------------------------------------------------------------ */

.js .eos-scroll--contact {
	padding: 22px 26px 26px;
}

.js .eos-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 46ch;
}

.js .eos-card__lede {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
}

.js .eos-card__rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.js .eos-card__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--surface2);
	border: 1px solid var(--line3);
	text-decoration: none;
	color: var(--ink);
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.js .eos-card__row:hover {
	background: var(--accent-hover);
	border-color: var(--accent);
	color: var(--ink);
}

.js .eos-card__mark {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--accent);
}

.js .eos-card__row--quiet .eos-card__mark {
	background: var(--muted2);
}

.js .eos-card__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.js .eos-card__label {
	font: 600 10px var(--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted2);
}

.js .eos-card__value {
	font-size: 13.5px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.js .eos-card__go {
	flex: none;
	font-size: 13px;
	color: var(--muted2);
}

.js .eos-card__row:hover .eos-card__go {
	color: var(--accent-text);
}

.js .eos-card__note {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

/* ---------------------------------------------------------------------
 * Crypto Lab
 *
 * Byte values are the content here, so they get the mono face, room to wrap
 * and enough contrast to be read a character at a time. The verdict line is
 * the one thing that changes colour, because it is the one thing that carries
 * a result.
 * ------------------------------------------------------------------ */

.js .eos-lab__tabs {
	flex: none;
	display: flex;
	gap: 2px;
	padding: 10px 14px 0;
	border-bottom: 1px solid var(--line3);
	background: var(--surface2);
}

.js .eos-lab__tab {
	padding: 7px 14px;
	border: 0;
	border-radius: 8px 8px 0 0;
	background: none;
	font: 600 12px var(--mono);
	letter-spacing: .03em;
	color: var(--muted2);
	cursor: pointer;
}

.js .eos-lab__tab:hover {
	color: var(--ink);
}

.js .eos-lab__tab[aria-selected="true"] {
	background: var(--surface);
	color: var(--accent-text);
	box-shadow: inset 0 -2px 0 var(--accent);
}

.js .eos-scroll--crypto {
	padding: 18px 20px 22px;
}

.js .eos-lab__panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.js .eos-lab__intro {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink2);
	max-width: 62ch;
}

.js .eos-lab__controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.js .eos-lab__control {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.js .eos-lab__label {
	font: 600 10px var(--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted2);
}

.js .eos-lab__input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--line4);
	border-radius: 8px;
	background: var(--surface2);
	font-family: var(--font);
	font-size: 13px;
	color: var(--ink);
	resize: vertical;
}

.js .eos-lab__input:focus-visible {
	border-color: var(--accent);
}

.js .eos-lab__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.js .eos-lab__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.js .eos-lab__field {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--surface2);
	border: 1px solid var(--line3);
}

.js .eos-lab__field--wide {
	grid-column: 1 / -1;
}

/* The bytes themselves: wrapped anywhere, because hex has no word breaks. */
.js .eos-lab__value {
	font: 500 11.5px/1.55 var(--mono);
	color: var(--ink);
	overflow-wrap: anywhere;
	word-break: break-all;
}

.js .eos-lab__verdict {
	margin: 0;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 12.5px;
	line-height: 1.45;
	background: var(--surface4);
	color: var(--ink2);
	min-height: 1em;
}

.js .eos-lab__verdict[data-state="ok"] {
	background: var(--accent-tint);
	color: var(--accent-text);
}

.js .eos-lab__verdict[data-state="bad"] {
	background: var(--alert-tint, var(--warn-tint));
	color: var(--alert-text, var(--warn));
}

/* One square per bit of a SHA-256 digest: 32 across, 8 down. */
.js .eos-lab__bits {
	display: grid;
	grid-template-columns: repeat(32, 1fr);
	gap: 2px;
	padding: 10px;
	border-radius: 8px;
	background: var(--surface2);
	border: 1px solid var(--line3);
}

.js .eos-lab__bit {
	aspect-ratio: 1;
	border-radius: 1px;
	background: var(--line4);
}

.js .eos-lab__bit[data-on="true"] {
	background: var(--accent);
}

/* ---------------------------------------------------------------------
 * Help
 *
 * A read-only guide, so it borrows the reader's measure and the group labels
 * the rest of the OS titles its sections with. Server-rendered: the only
 * thing here that is not is the window around it.
 * ------------------------------------------------------------------ */

.js .eos-scroll--help {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px 24px 26px;
}

.js .eos-help__lede {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line3);
}

.js .eos-help__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ink);
}

.js .eos-help__copy {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink2);
	max-width: 52ch;
}

.js .eos-help__section {
	display: flex;
	flex-direction: column;
}

.js .eos-help__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

/*
 * Term above description on a narrow window, side by side once there is room
 * for both — the term column is wide enough for the longest of them.
 */
.js .eos-help__row {
	display: grid;
	grid-template-columns: 148px 1fr;
	gap: 4px 14px;
	align-items: baseline;
}

.js .eos-help__row dt {
	margin: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink);
}

.js .eos-help__row dd {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink2);
	max-width: 56ch;
}

.js .eos-help__list kbd {
	display: inline-block;
	min-width: 1.6em;
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--surface4);
	box-shadow: inset 0 0 0 1px var(--line4);
	font: 600 11px var(--mono);
	text-align: center;
	color: var(--ink);
}

/* ---------------------------------------------------------------------
 * Finder
 *
 * A sidebar of folders beside the records in the open one. The rows behave
 * like desktop icons — click to select, double click to open — so the
 * selected and open states are the two the list has to draw.
 * ------------------------------------------------------------------ */

.js .eos-finder {
	display: grid;
	grid-template-columns: 190px 1fr;
	flex: 1;
	min-height: 0;
}

.js .eos-finder__side {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 10px;
	min-height: 0;
	overflow: auto;
	background: var(--glass4);
	-webkit-backdrop-filter: blur(40px) saturate(1.8);
	backdrop-filter: blur(40px) saturate(1.8);
	border-right: 1px solid var(--line3);
}

.js .eos-finder__side .eos-grouplabel {
	margin: 0 0 2px;
	padding: 0 10px;
}

.js .eos-finder__folders {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.js .eos-finder__folder {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	font-size: 12.5px;
	color: var(--ink2);
	text-align: left;
	cursor: pointer;
}

.js .eos-finder__folder:hover {
	background: var(--accent-hover);
	color: var(--ink);
}

.js .eos-finder__folder[aria-current="true"] {
	background: var(--accent-sel);
	color: var(--ink);
	font-weight: 600;
}

.js .eos-finder__foldermark {
	flex: none;
	width: 13px;
	height: 10px;
	border-radius: 1px 3px 3px 3px;
	background: var(--accent);
	opacity: .8;
}

.js .eos-finder__foldername {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.js .eos-finder__foldercount {
	flex: none;
	font-size: 10.5px;
	color: var(--muted2);
}

.js .eos-finder__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.js .eos-finder__scroll {
	flex: 1;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 12px;
}

.js .eos-finder__files {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.js .eos-finder__file {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 7px 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	text-align: left;
	cursor: default;
	transition: background var(--speed) var(--ease);
}

.js .eos-finder__file:hover {
	background: var(--accent-hover);
}

.js .eos-finder__file[data-selected="true"] {
	background: var(--accent);
}

.js .eos-finder__file[data-selected="true"] .eos-finder__filename {
	color: #fff;
}

.js .eos-finder__file[data-selected="true"] .eos-finder__filemeta {
	color: rgba(255, 255, 255, .78);
}

/* Its window is on screen: the row says so, as an app's card does. */
.js .eos-finder__file[data-open="true"] {
	box-shadow: inset 0 0 0 1.5px var(--accent);
}

.js .eos-finder__fileart {
	flex: none;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 26px;
	height: 32px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--surface);
	box-shadow: 0 1px 3px rgba(20, 40, 50, .14), inset 0 0 0 1px var(--line3);
}

/* The strip across a document icon, naming what kind of record it is. */
.js .eos-finder__filekind {
	height: 11px;
	display: grid;
	place-items: center;
	background: var(--accent);
	font: 700 6.5px var(--mono);
	letter-spacing: .04em;
	color: #fff;
}

.js .eos-finder__filetext {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.js .eos-finder__filename {
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.js .eos-finder__filemeta {
	font-size: 10.5px;
	color: var(--muted2);
}

.js .eos-finder__scroll .eos-state {
	margin: 24px auto;
}

/* ---------------------------------------------------------------------
 * Experience
 * ------------------------------------------------------------------ */

.js .eos-exp {
	display: grid;
	grid-template-columns: 300px 1fr;
	flex: 1;
	min-height: 0;
}

.js .eos-exp__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 10px;
	min-height: 0;
	overflow: auto;
	background: var(--surface2);
	border-right: 1px solid var(--line3);
}

.js .eos-exp__item {
	display: grid;
	grid-template-columns: 16px 1fr;
	gap: 10px;
	padding: 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.js .eos-exp__item:hover {
	background: var(--accent-hover);
}

.js .eos-exp__item[aria-selected="true"] {
	background: var(--accent-sel);
}

.js .eos-exp__rail {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding-top: 4px;
}

.js .eos-exp__dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2.5px solid var(--accent);
	background: var(--surface);
}

.js .eos-exp__line {
	width: 2px;
	flex: 1;
	border-radius: 1px;
	background: var(--line5);
}

.js .eos-exp__itemtext {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.js .eos-exp__role {
	font-weight: 600;
	line-height: 1.3;
}

.js .eos-exp__org {
	font-size: 12px;
	color: var(--muted);
}

.js .eos-exp__dates {
	margin-top: 2px;
	font-size: 10.5px;
	color: var(--muted2);
}

.js .eos-exp__detail {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px 28px;
	min-height: 0;
	overflow: auto;
}

.js .eos-exp__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.js .eos-exp__metadates {
	font-size: 11px;
	color: var(--muted2);
}

.js .eos-exp__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.2;
}

.js .eos-exp__org2,
.js .eos-exp__summary {
	margin: 0;
	font-size: 13.5px;
	color: var(--ink2);
}

.js .eos-exp__summary {
	line-height: 1.55;
	text-wrap: pretty;
}

.js .eos-exp__detail .eos-bullets,
.js .eos-exp__detail .eos-chips {
	margin-top: 0;
}

/* ---------------------------------------------------------------------
 * Certifications and Awards
 * ------------------------------------------------------------------ */

.js .eos-certs__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-content: start;
	gap: 12px;
}

.js .eos-awards__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-content: start;
	gap: 12px;
}

.js .eos-cert,
.js .eos-award {
	padding: 14px;
	border: 1px solid var(--line4);
	border-radius: 14px;
	background: var(--surface3);
	font: inherit;
	color: inherit;
	cursor: pointer;
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.js .eos-cert:hover,
.js .eos-award:hover,
.js .eos-cert[data-open="true"],
.js .eos-award[data-open="true"] {
	border-color: var(--accent);
	background: var(--surface);
}

.js .eos-cert {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.js .eos-cert__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.js .eos-cert__name {
	font-weight: 600;
	line-height: 1.3;
}

.js .eos-cert__issuer {
	font-size: 11.5px;
	color: var(--muted);
}

.js .eos-award {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-align: left;
}

.js .eos-award__mark {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(160deg, #2d7a87, var(--accent));
}

.js .eos-award__mark::after {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 2px;
	background: var(--tile-bg);
	transform: rotate(45deg);
}

.js .eos-award__mark--large {
	width: 64px;
	height: 64px;
	border-radius: 16px;
}

.js .eos-award__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.js .eos-award__title {
	font-weight: 600;
	line-height: 1.3;
}

.js .eos-award__meta {
	font-size: 12px;
	color: var(--muted);
}

.js .eos-award__summary {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--ink3);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.js .eos-detail {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.js .eos-detail__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.js .eos-detail__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
}

.js .eos-detail__sub {
	margin: 3px 0 6px;
	font-size: 12.5px;
	color: var(--muted);
}

.js .eos-detail__facts {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--line3);
	border-bottom: 1px solid var(--line3);
}

.js .eos-detail__copy {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ink2);
	text-wrap: pretty;
}

.js .eos-detail__action {
	display: flex;
	justify-content: center;
	height: 34px;
}

/* ---------------------------------------------------------------------
 * Toolbars
 *
 * The design puts the filter row in the window's title bar. That bar is
 * shared chrome the window manager clones, so the row sits at the top of
 * the view instead, in the same segmented style.
 * ------------------------------------------------------------------ */

.js .eos-toolbar {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-bottom: 1px solid var(--line3);
	background: var(--surface2);
}

.js .eos-segmented {
	display: flex;
	gap: 4px;
	padding: 3px;
	border-radius: 9px;
	background: var(--surface4);
}

.js .eos-filter {
	padding: 3px 9px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	font: 500 11.5px var(--font);
	color: var(--muted);
	cursor: pointer;
}

.js .eos-filter:hover {
	color: var(--ink);
}

.js .eos-filter[aria-pressed="true"] {
	font-weight: 600;
	color: var(--ink2);
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}

/* ---------------------------------------------------------------------
 * Portfolio
 * ------------------------------------------------------------------ */

.js .eos-projects__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-content: start;
	gap: 14px;
}

.js .eos-project {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--line4);
	border-radius: 14px;
	background: var(--surface3);
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.js .eos-project:hover,
.js .eos-project[data-open="true"] {
	border-color: var(--accent);
	background: var(--surface);
}

.js .eos-project__text {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 12px 14px 14px;
	min-width: 0;
}

.js .eos-project__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.js .eos-project__cat {
	font: 600 9.5px var(--mono);
	letter-spacing: .05em;
	color: var(--accent-text);
}

.js .eos-project__year {
	font-size: 10.5px;
	color: var(--muted2);
}

.js .eos-project__title {
	font-weight: 600;
	line-height: 1.3;
}

.js .eos-project__summary {
	font-size: 12px;
	line-height: 1.45;
	color: var(--ink3);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.js .eos-projects__none {
	margin: 18px 2px 0;
}

/* ---------------------------------------------------------------------
 * Blog list
 * ------------------------------------------------------------------ */

.js .eos-scroll--blog {
	padding: 0;
}

.js .eos-posts {
	display: flex;
	flex-direction: column;
}

.js .eos-post-row {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 16px;
	width: 100%;
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--line2);
	background: transparent;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.js .eos-post-row:hover,
.js .eos-post-row[data-open="true"] {
	background: var(--surface5);
}

.js .eos-post-row__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.js .eos-post-row__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10.5px;
	color: var(--muted2);
}

.js .eos-post-row__meta .eos-mono {
	font-size: 10.5px;
}

.js .eos-post-row__cat {
	font: 600 10px var(--mono);
	letter-spacing: .04em;
	color: var(--accent-text);
}

.js .eos-post-row__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.01em;
}

.js .eos-post-row__excerpt {
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--ink3);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.js .eos-more {
	align-self: center;
	margin: 16px auto;
}

/* ---------------------------------------------------------------------
 * Reader — a post or a project in its own window
 * ------------------------------------------------------------------ */

.js .eos-scroll--reader {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 0 0 28px;
}

.js .eos-reader__back {
	align-self: flex-start;
	margin: 16px 0 -4px 22px;
	padding: 0;
	border: 0;
	background: transparent;
	font: 500 12.5px var(--font);
	color: var(--accent-text);
	cursor: pointer;
}

.js .eos-reader__back:hover {
	text-decoration: underline;
}

.js .eos-scroll--reader > .eos-ph--banner {
	order: -1;
	width: 100%;
	height: 170px;
	border-radius: 0;
	border-width: 0 0 1px;
}

.js .eos-scroll--reader > .eos-reader__head,
.js .eos-scroll--reader > .eos-prose,
.js .eos-scroll--reader > div,
.js .eos-scroll--reader > .eos-reader__links {
	padding: 0 26px;
}

.js .eos-reader__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.js .eos-reader__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: var(--muted2);
}

.js .eos-reader__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.2;
	text-wrap: pretty;
}

.js .eos-reader__title--post {
	font-size: 26px;
	letter-spacing: -.025em;
	line-height: 1.15;
}

.js .eos-reader__lede {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ink3);
}

.js .eos-reader__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Prose inside a reader, at reading size. */
.js .eos-scroll--reader .eos-prose {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ink2);
}

.js .eos-scroll--reader .eos-prose > * {
	margin: 0 0 14px;
}

.js .eos-scroll--reader .eos-prose > :last-child {
	margin-bottom: 0;
}

.js .eos-scroll--reader .eos-prose h1,
.js .eos-scroll--reader .eos-prose h2,
.js .eos-scroll--reader .eos-prose h3 {
	margin: 22px 0 8px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ink);
}

.js .eos-scroll--reader .eos-prose pre {
	padding: 14px 16px;
	border: 1px solid var(--line3);
	border-radius: 10px;
	background: var(--code);
	font: 12.5px/1.55 var(--mono);
	white-space: pre-wrap;
	overflow-x: auto;
}

.js .eos-scroll--reader .eos-prose img {
	border-radius: 10px;
}

.js .eos-scroll--reader .eos-prose blockquote {
	margin-left: 0;
	padding-left: 14px;
	border-left: 2px solid var(--accent);
	color: var(--ink3);
}

/* ---------------------------------------------------------------------
 * Cover images and their stand-ins
 * ------------------------------------------------------------------ */

.js .eos-ph--cover {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-width: 0 0 1px;
	border-radius: 0;
}

.js .eos-ph--banner {
	width: 100%;
	height: 170px;
}

.js .eos-ph--thumb {
	width: 96px;
	height: 68px;
	border-radius: 8px;
}

/* ---------------------------------------------------------------------
 * Terminal
 *
 * The one window that is dark in both themes. It is a terminal — the
 * brief's "not a hacker aesthetic" applies to the site, not to the
 * easter egg inside it, and a light shell would read as a text editor.
 * ------------------------------------------------------------------ */

.js .eos-view__frame--terminal {
	background: #141a1e;
}

.js .eos-term__screen {
	flex: 1;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 14px 16px;
	font: 12.5px/1.6 var(--mono);
	color: #d6e0e3;
	cursor: text;
}

.js .eos-term__line {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	color: #a9b6bb;
}

.js .eos-term__line--echo {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	color: #d6e0e3;
}

.js .eos-term__line--accent {
	color: #8fd6de;
}

.js .eos-term__line--warn {
	color: #f0b46a;
}

.js .eos-term__line--dim {
	color: #7a868c;
}

.js .eos-term__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.js .eos-term__user {
	color: #8fd6de;
}

.js .eos-term__cwd {
	color: #7a868c;
}

.js .eos-term__sigil {
	color: #d6e0e3;
}

.js .eos-term__cmd {
	color: #d6e0e3;
}

/*
 * The caret is the whole interface here, so the input is stripped to
 * nothing and given the rest of the line.
 */
.js .eos-term__input {
	flex: 1;
	min-width: 8ch;
	padding: 0;
	border: 0;
	outline: 0;
	background: none;
	font: inherit;
	color: #d6e0e3;
	caret-color: #8fd6de;
}

/* The frame is dark whatever the theme, so its footer has to be too. */
.js .eos-view__frame--terminal .eos-appbar {
	background: #10161a;
	border-top-color: rgba(255, 255, 255, .08);
	color: #7a868c;
}

/* ---------------------------------------------------------------------
 * Contact — a mail compose window
 * ------------------------------------------------------------------ */

.js .eos-view__frame--compose {
	background: var(--surface);
}
/* The row a field is in carries its focus ring: the input has no edges. */
/*
 * The honeypot. Off the screen rather than display:none — a bot that
 * skips unrendered fields should still find this one — and out of the
 * accessibility tree, so the one audience that would otherwise be asked
 * to fill it in never hears about it.
 */
/* The square mark the design puts before each footer link. */
.js .eos-sent {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px;
	text-align: center;
}

.js .eos-sent__mark {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--accent);
}

/* A tick, drawn from two borders rather than carried as an asset. */
.js .eos-sent__mark::after {
	content: "";
	width: 16px;
	height: 9px;
	border-left: 3px solid #fff;
	border-bottom: 3px solid #fff;
	transform: rotate(-45deg) translate(2px, -3px);
}

.js .eos-sent__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}

.js .eos-sent__copy {
	margin: 0;
	max-width: 44ch;
	font-size: 13px;
	color: var(--muted);
}

.js .eos-sent .eos-button {
	margin-top: 6px;
	cursor: pointer;
}

/* ---------------------------------------------------------------------
 * Narrow windows
 *
 * Sized against the window, not the screen: these lay out for how much
 * room the visitor has actually given the window.
 * ------------------------------------------------------------------ */

@container eos-app (max-width: 700px) {
	.js .eos-certs__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.js .eos-projects__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@container eos-app (max-width: 640px) {
	/* Narrow enough that the sidebar costs more than it gives. */
	.js .eos-finder {
		grid-template-columns: 148px 1fr;
	}

	.js .eos-exp {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 38%) minmax(0, 1fr);
	}

	.js .eos-exp__list {
		border-right: 0;
		border-bottom: 1px solid var(--line3);
	}

	.js .eos-exp__detail {
		padding: 18px 20px;
	}
}

@container eos-app (max-width: 560px) {
	.js .eos-lab__fields {
		grid-template-columns: 1fr;
	}

	.js .eos-help__row {
		grid-template-columns: 1fr;
	}

	/*
	 * The folders become a row above the files rather than a column beside
	 * them: a file name needs the width more than a folder name does.
	 */
	.js .eos-finder {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
	}

	.js .eos-finder__side {
		padding: 8px 10px;
		border-right: 0;
		border-bottom: 1px solid var(--line3);
	}

	.js .eos-finder__side .eos-grouplabel {
		display: none;
	}

	.js .eos-finder__folders {
		flex-direction: row;
		gap: 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.js .eos-finder__folder {
		flex: none;
	}

	.js .eos-finder__foldername {
		flex: none;
	}

	.js .eos-certs__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.js .eos-awards__grid,
	.js .eos-projects__grid,
	.js .eos-tilegrid {
		grid-template-columns: 1fr;
	}

	/* The thumbnail is the first thing to go when a reader gets narrow. */
	.js .eos-post-row {
		grid-template-columns: 1fr;
	}

	.js .eos-post-row .eos-ph--thumb {
		display: none;
	}

	.js .eos-scroll--reader > .eos-reader__head,
	.js .eos-scroll--reader > .eos-prose,
	.js .eos-scroll--reader > div,
	.js .eos-scroll--reader > .eos-reader__links {
		padding: 0 18px;
	}

	.js .eos-reader__back {
		margin-left: 14px;
	}
}
