/* Ricky Dunn — dark only */

:root {
	--bg: #0c0c0c;
	--text: #ffffff;
	--text-dim: #b4b4b4;
	--text-body: rgb(160, 160, 160);
	--text-faint: #707070;
	--line: rgb(255 255 255 / 0.22);
	--accent: #fc861f; /* macOS orange accent tint */
	color-scheme: dark;
}


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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	overflow-x: clip;
	background: var(--bg);
	color: var(--text-dim);
	font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.625;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "cv11", "ss01";
}

::selection {
	background: var(--accent);
	color: var(--bg);
}

.page {
	max-width: 692px;
	margin: 0 auto;
	padding: 48px 24px 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

@media (min-width: 640px) {
	.page { padding-top: 96px; }
}

main { flex: 1; }

/* Links */

a {
	color: var(--accent);
	font-weight: 450;
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease;
}

a:hover {
	text-decoration-color: var(--accent);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Header */

.site-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-header .logo {
	display: block;
	flex-shrink: 0;
	height: 44px;
}

.site-header .logo img {
	display: block;
	width: auto;
	height: 100%;
}

.site-header h1,
.site-header .name {
	color: var(--text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.375;
}

.site-header .name,
.site-header .role {
	display: block;
}

.site-header .role {
	color: var(--text-dim);
	font-weight: 450;
	line-height: 1.375;
}

/* Nav */

.site-nav {
	display: flex;
	align-items: center;
	margin: 20px 0 48px;
	font-size: 14px;
}

.site-nav a {
	color: var(--text-faint);
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--text);
}

.site-nav a + a::before {
	content: "|";
	color: #3a3a3a;
	margin: 0 10px;
}

/* Content */

p {
	color: var(--text-body);
}

p + p { margin-top: 16px; }

strong {
	color: var(--text);
	font-weight: 500;
}

section {
	margin-top: 64px;
}

@media (min-width: 640px) {
	section { margin-top: 96px; }
}

h2 {
	color: var(--text);
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 20px;
}

.page-title {
	color: var(--text);
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 16px;
}

/* Rows: notes, experience, projects */

.rows {
	list-style: none;
}

.row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 6px 0;
}

.row time,
.row .meta {
	flex-shrink: 0;
	color: var(--text-faint);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.entry + .entry { margin-top: 24px; }

.entry .row { padding: 0; }

.entry .title {
	color: var(--text);
	font-weight: 450;
}

.entry .title span {
	color: var(--text-faint);
	font-weight: 400;
}

.experience .entry .title span {
	font-size: 13px;
}

.entry p {
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 480px) {
	.row {
		flex-direction: column;
		gap: 0;
	}
	.notes .row { padding: 8px 0; }
}

/* Note */

.note-header {
	margin-bottom: 24px;
}

.note-header h1 {
	color: var(--text);
	font-size: 16px;
	font-weight: 500;
}

.note-header time {
	color: var(--text-faint);
	font-size: 14px;
}

.prose h2 {
	margin: 40px 0 12px;
}

.prose ul,
.prose ol {
	margin: 16px 0 16px 20px;
}

.prose li + li { margin-top: 6px; }

.prose code {
	font-size: 14px;
	color: var(--text);
	background: #1a1a1a;
	padding: 2px 5px;
	border-radius: 4px;
}

/* Footer — sized after paco.me */

.site-footer {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	height: 48px;
	margin-top: 96px;
	color: var(--text-faint);
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
}

/* Full-width divider that breaks out of the content column */
.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	border-top: 1px solid #2e2e2e;
}

.clock {
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
	.clock-date { display: none; }
}
