/* NY HAM — modern static site, 2026 refresh */

:root {
	--bg: #f6f8fb;
	--bg-alt: #eef2f8;
	--surface: #ffffff;
	--text: #1c2733;
	--text-muted: #5a6a7a;
	--accent: #1466c8;
	--accent-strong: #0e4f9e;
	--accent-contrast: #ffffff;
	--border: #d9e1ec;
	--shadow: 0 1px 2px rgba(16, 34, 56, 0.06), 0 8px 24px rgba(16, 34, 56, 0.08);
	--radius: 14px;
	--header-bg: rgba(246, 248, 251, 0.85);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b1526;
		--bg-alt: #0f1c31;
		--surface: #14233c;
		--text: #e8eef6;
		--text-muted: #9fb0c3;
		--accent: #5aa2f0;
		--accent-strong: #7fb8f5;
		--accent-contrast: #0b1526;
		--border: #23364f;
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
		--header-bg: rgba(11, 21, 38, 0.85);
	}
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 4.5rem;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 68rem;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

h1, h2, h3, h4 {
	line-height: 1.2;
	letter-spacing: -0.015em;
}

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

a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Header / nav */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--header-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.75rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--text);
	letter-spacing: 0.02em;
}

.brand:hover { text-decoration: none; }

.brand-mark {
	width: 1.6rem;
	height: 1.6rem;
	color: var(--accent);
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	color: var(--text);
	font-weight: 500;
}

.nav-menu a.button { color: var(--accent-contrast); }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	margin-inline: 0.5rem;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */

.button {
	display: inline-block;
	padding: 0.6rem 1.25rem;
	background: var(--accent);
	color: var(--accent-contrast);
	font-weight: 600;
	border-radius: 999px;
	transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
	background: var(--accent-strong);
	text-decoration: none;
	transform: translateY(-1px);
}

.button-large { padding: 0.8rem 1.75rem; font-size: 1.05rem; }
.button-small { padding: 0.45rem 1rem; font-size: 0.95rem; }

.button-ghost {
	background: transparent;
	color: var(--accent);
	box-shadow: inset 0 0 0 2px var(--accent);
}

.button-ghost:hover {
	background: var(--accent);
	color: var(--accent-contrast);
}

/* Hero */

.hero {
	padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.hero h1 {
	margin: 0 0 1rem;
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	font-weight: 800;
}

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

.lead {
	margin: 0 0 1.75rem;
	font-size: clamp(1.1rem, 2.5vw, 1.3rem);
	color: var(--text-muted);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero-art img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* Sections */

.section {
	padding-block: clamp(3rem, 7vw, 5rem);
}

.section-alt { background: var(--bg-alt); }

.section-header {
	max-width: 42rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.section-header h2 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	font-weight: 800;
}

.section-header p {
	margin: 0;
	color: var(--text-muted);
	font-size: 1.1rem;
}

.section-footer {
	margin-top: 2.5rem;
	text-align: center;
}

.section-footer p {
	color: var(--text-muted);
	margin: 0 0 1rem;
}

/* Cards */

.grid {
	display: grid;
	gap: 1.25rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
}

.card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
}

.card p {
	margin: 0 0 0.5rem;
	color: var(--text-muted);
	font-size: 0.97rem;
}

.card p:last-child { margin-bottom: 0; }

.card-link {
	display: block;
	color: inherit;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.card-link:hover {
	text-decoration: none;
	transform: translateY(-3px);
	border-color: var(--accent);
}

.card-link h3 { color: var(--accent); }

.card-url {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
	letter-spacing: 0.02em;
}

.card-icon {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--accent);
	margin-bottom: 0.75rem;
}

.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	margin-right: 0.35rem;
	background: var(--accent);
	color: var(--accent-contrast);
	border-radius: 50%;
	font-size: 0.9rem;
	vertical-align: 0.1em;
}

/* Exam details accordion */

.exam-details {
	margin-top: 1.25rem;
	padding: 0;
	overflow: hidden;
}

.exam-details summary {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
	font-size: 1.15rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.exam-details summary::-webkit-details-marker { display: none; }

.exam-details summary small {
	font-weight: 400;
	color: var(--text-muted);
}

.exam-details summary .card-icon {
	flex-shrink: 0;
	margin-bottom: 0;
}

.exam-details summary::after {
	content: "";
	margin-left: auto;
	width: 0.6rem;
	height: 0.6rem;
	border-right: 2px solid var(--text-muted);
	border-bottom: 2px solid var(--text-muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.exam-details[open] summary::after { transform: rotate(-135deg); }

.exam-details-body {
	padding: 0 1.5rem 1.5rem;
	border-top: 1px solid var(--border);
}

.exam-details-body h4 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.05rem;
}

.exam-details-body p,
.exam-details-body li {
	color: var(--text-muted);
	font-size: 0.97rem;
}

.exam-details-body li { margin-bottom: 0.4rem; }

/* Footer */

.site-footer {
	border-top: 1px solid var(--border);
	padding-block: 2rem;
}

.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.site-footer p { margin: 0; }

/* Responsive */

@media (max-width: 860px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }

	.hero-grid { grid-template-columns: 1fr; }

	.hero-art { order: -1; }

	.hero-art img { max-height: 300px; width: 100%; object-fit: cover; }
}

@media (max-width: 640px) {
	.grid-3 { grid-template-columns: 1fr; }

	.nav-toggle { display: flex; }

	.nav-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		display: none;
		padding: 0.5rem 1.25rem 1rem;
	}

	.nav-menu.is-open { display: flex; }

	.nav-menu li { padding-block: 0.5rem; }

	.nav-menu a.button { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
