/* Eight Degrees Off Centre — 2001 edition, revived for 2026 */

:root {
	--canvas: #FFFF00;
	--ink: #000000;
	--ink-muted: #555500;
	--brand-purple: #660099;
	--brand-purple-hover: #7700B3;
	--link: #0000A0;
	--link-visited: #004080;
	--link-hover: #660099; /* 9.66:1 AAA contrast on #FFFF00 */
	--hairline: rgba(102, 0, 153, 0.22);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
	margin: 0;
	padding: 0;
	background-color: var(--canvas);
	color: var(--ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

a:link {
	color: var(--link);
}

a:visited {
	color: var(--link-visited);
}

a:hover,
a:active {
	color: var(--link-hover);
}

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

img {
	border: 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 8px 14px;
	background-color: var(--brand-purple);
	color: var(--canvas);
	font-weight: bold;
	text-decoration: none;
	border-radius: 4px;
}

.skip-link:focus {
	left: 12px;
	color: var(--canvas);
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* Centered page frame with generous breathing room: 200px left + 32px gap + 640px content + 64px horizontal padding */
.page-shell {
	max-width: 936px;
	margin: 0 auto;
	padding: 24px 32px 56px;
}

/* Header: E.D.O.C. logo on the left, large title banner centered over the content area */
.site-header {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	width: 100%;
	margin-bottom: 28px;
}

.logo-stack {
	flex: 0 0 200px;
	width: 200px;
	line-height: 0;
}

.logo-stack a {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.logo-a,
.logo-b {
	display: block;
}

.title-banner {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	padding-top: 23px; /* aligns flush with top of edoc_logo_b.gif, matching 2001 */
	margin: 0;
	line-height: 0;
}

.title-banner img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Main two-column layout: 200px nav track aligned beneath the E.D.O.C. logo + airy prose column */
.page-layout {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

/* Left purple pill navigation bar */
.nav-column {
	flex: 0 0 200px;
	width: 200px;
	display: flex;
	justify-content: center;
}

.nav-pill {
	width: 156px;
	line-height: 0;
}

.nav-pill img {
	display: block;
}

.nav-pill-link {
	display: block;
	width: 150px;
	height: 34px;
	margin-left: 3px;
	background-color: var(--brand-purple);
	/* Matches the exact 3px yellow-olive drop shadow along the right edge of home.gif & contact.gif */
	box-shadow: 1px 0 0 #404000, 2px 0 0 #707000, 3px 0 0 #D0D000;
	color: #FFFFFF;
	text-decoration: none;
	font-family: Impact, "Arial Narrow", "Helvetica Condensed", Arial, sans-serif;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.3px;
	line-height: 34px;
	text-align: center;
	text-shadow: 2px 2px 2px #220232;
	transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.nav-pill-link:link,
.nav-pill-link:visited {
	color: #FFFFFF;
}

.nav-pill-link:hover,
.nav-pill-link:focus-visible {
	color: var(--canvas);
	background-color: var(--brand-purple-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nav-pill-link:focus-visible {
	outline: 2px solid var(--canvas);
	outline-offset: -4px;
	border-radius: 0;
}

.nav-pill-link:active {
	color: var(--canvas);
	text-shadow: 1px 1px 1px #220232;
}

/* Content column: 640px (~72ch in 16px Arial), matching the title banner track */
.content-column {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 640px;
}

.section-heading {
	display: block;
	margin-bottom: 18px;
}

.news-entry {
	margin: 0 0 16px 0;
	text-wrap: pretty;
}

.news-date {
	display: block;
	font-size: 13px;
	font-weight: bold;
	margin-bottom: 4px;
}

.signoff {
	margin: 0 0 28px 0;
}

/* App showcase list */
.app-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.app-item {
	padding: 18px 0;
	border-top: 1px solid var(--hairline);
}

.app-item:first-child {
	padding-top: 0;
	border-top: 0;
}

.app-title {
	margin: 0 0 6px 0;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.25;
	text-wrap: balance;
}

/* Standalone heading links: clean by default, underline on hover/focus (WCAG 1.4.1 safe) */
.app-title a {
	text-decoration: none;
	transition: color 150ms var(--ease-out);
}

.app-title a:hover,
.app-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}

.app-meta {
	font-size: 13px;
	font-weight: normal;
	color: var(--ink-muted);
	margin-left: 8px;
}

.app-desc {
	margin: 0;
	text-wrap: pretty;
}

/* Inline prose links keep underlines to satisfy WCAG 1.4.1 Use of Color */
.app-desc a {
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 150ms var(--ease-out);
}

.contact-block {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 2px solid var(--brand-purple);
}

.site-footer {
	margin-top: 32px;
	font-size: 13px;
	color: var(--ink-muted);
}

/* Mobile layout: comfortable padding, centered header, touch-friendly targets */
@media (max-width: 720px) {
	.page-shell {
		padding: 16px 20px 40px;
	}

	.site-header {
		flex-direction: column;
		align-items: center;
		gap: 14px;
		margin-bottom: 24px;
	}

	.logo-stack {
		flex: 0 0 auto;
	}

	.title-banner {
		padding-top: 0;
		width: 100%;
	}

	.page-layout {
		flex-direction: column;
		gap: 24px;
	}

	.nav-column {
		flex: 0 0 auto;
		width: 100%;
		justify-content: center;
	}

	.nav-pill-link {
		height: 44px;
		line-height: 44px;
	}

	.content-column {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nav-pill-link,
	.app-title a,
	.app-desc a {
		transition: none;
	}
}
