/* ==========================================================================
   brandtweary.com — shared screen stylesheet

   Palette: pure black canvas, white text, neon-green accents. Green is for
   accents, framing, and focus only; body text is white.
   ========================================================================== */

:root {
	--background: oklch(0% 0 0);
	--foreground: oklch(100% 0 0);
	--surface: oklch(16% 0 0);
	--primary: oklch(90% 0.29 142);
	--muted: oklch(72% 0 0);
	--border: oklch(44% 0.09 145);
	--accent-wash: oklch(24% 0.04 145);

	--font-sans:
		ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;

	--measure: 44rem;
	--gutter: 1.5rem;
}

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

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

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	/* Safe-area insets keep content clear of notches in landscape. */
	padding: 0 max(var(--gutter), env(safe-area-inset-left))
		0 max(var(--gutter), env(safe-area-inset-right));
}

.page {
	max-width: var(--measure);
	margin: 0 auto;
	padding: 3.5rem 0 4rem;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
	line-height: 1.25;
	margin: 0;
	font-weight: 600;
}

h1 {
	font-size: clamp(1.9rem, 6vw, 2.6rem);
	color: var(--primary);
	letter-spacing: -0.01em;
}

h2 {
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--primary);
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--border);
}

/* AI help and booking pages: short sections, so the heading rules read
   choppy — headings alone carry the separation there. */
#ai h2,
#book h2 {
	border-bottom: none;
	padding-bottom: 0;
}

h3 {
	font-size: 1.1rem;
	color: var(--foreground);
}

p {
	margin: 0.9rem 0;
}

a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	/* A long URL breaks mid-token rather than forcing horizontal scroll. */
	overflow-wrap: anywhere;
}

a:hover {
	opacity: 0.8;
}

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

.muted {
	color: var(--muted);
}

/* A visible marker for text that has not been written yet. Every instance is
   a hole in the document, not a draft — see README. */
.placeholder {
	color: var(--muted);
	font-style: italic;
}

/* Skip link — visible only once focused. */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
}

.skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
	z-index: 10;
	padding: 0.5rem 0.75rem;
	background: var(--surface);
	border: 2px solid var(--primary);
	border-radius: 0.4rem;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Landing page
   -------------------------------------------------------------------------- */

.masthead {
	margin-bottom: 2.5rem;
}

.masthead .tagline {
	color: var(--muted);
	font-size: 1.05rem;
	margin-top: 0.6rem;
}

.linklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.linklist > li {
	margin: 0;
}

.linkcard {
	display: block;
	padding: 0.9rem 1.1rem;
	background: var(--surface);
	border: 2px solid var(--border);
	border-left-width: 4px;
	border-radius: 0.6rem;
	text-decoration: none;
	color: var(--foreground);
	transition:
		border-color 0.12s ease,
		background 0.12s ease;
}

.linkcard:hover {
	background: var(--accent-wash);
	border-color: var(--primary);
	opacity: 1;
}

.linkcard .label {
	display: block;
	font-weight: 600;
	color: var(--primary);
}

.linkcard .desc {
	display: block;
	font-size: 0.9rem;
	color: var(--muted);
}

.photo {
	margin: 2.75rem auto 0;
	max-width: 26rem;
}

.photo img {
	display: block;
	width: 100%;
	max-width: 26rem;
	height: auto;
	border: 2px solid var(--border);
	border-radius: 0.6rem;
}

.photo figcaption {
	margin-top: 0.45rem;
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
}

.sitefoot {
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   Resume
   -------------------------------------------------------------------------- */

.resume-head {
	margin-bottom: 2rem;
}

/* Contact line: wraps to one item per line on narrow screens rather than
   letting the separators strand. */
.contact {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.75rem;
	font-size: 0.95rem;
	color: var(--muted);
}

.contact > li:not(:last-child)::after {
	content: "·";
	margin-left: 0.75rem;
	color: var(--border);
}

.resume-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

.button {
	display: inline-block;
	padding: 0.55rem 1rem;
	border: 2px solid var(--primary);
	border-radius: 0.5rem;
	background: color-mix(in srgb, var(--primary) 12%, transparent);
	color: var(--primary);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.button:hover {
	background: color-mix(in srgb, var(--primary) 22%, transparent);
	opacity: 1;
}

.button--quiet {
	border-color: var(--border);
	background: transparent;
	color: var(--muted);
	font-weight: 400;
}

.resume-section {
	margin-top: 2.5rem;
}

.entry {
	margin-top: 1.6rem;
}

.entry:first-of-type {
	margin-top: 1.1rem;
}

/* Role line under an entry title: organization, dates, place. */
.entry-meta {
	margin: 0.2rem 0 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.entry-meta .sep {
	color: var(--border);
	margin: 0 0.4rem;
}

.entry-summary {
	margin: 0.6rem 0 0;
}

/* The accomplishment clause list — semicolon-separated prose rather than
   bullet lines, matching the shape of the Skills section. */
.entry-detail {
	margin: 0.6rem 0 0;
}

.bullets {
	margin: 0.6rem 0 0;
	padding-left: 1.15rem;
}

.bullets > li {
	margin: 0.35rem 0;
}

.bullets > li::marker {
	color: var(--primary);
}

/* Publications: hanging indent, the citation convention. */
.citations {
	list-style: none;
	margin: 1.1rem 0 0;
	padding: 0;
}

.citations > li {
	margin: 0 0 0.9rem;
	padding-left: 1.6rem;
	text-indent: -1.6rem;
	font-size: 0.95rem;
}

/* Skills: label / body pairs. */
.skills {
	margin: 1.1rem 0 0;
}

.skills dt {
	font-weight: 600;
	color: var(--primary);
	margin-top: 0.9rem;
}

.skills dd {
	margin: 0.15rem 0 0;
	font-size: 0.95rem;
}
