/* Kirsten Ziman — personal site
   Light, minimal, no framework dependency. */

:root {
	--bg: #faf8f4;
	--bg-card: #f2efe7;
	--text: #2a2924;
	--text-muted: #6e6a60;
	--accent: #2f6a63;
	--accent-dark: #204a45;
	--border: #e4dfd2;
	--max-width: 760px;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 1.1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
	font-weight: 500;
	color: var(--text);
	line-height: 1.25;
}

h1 { font-size: 2rem; margin: 0 0 0.4em; }
h2 { font-size: 1.4rem; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 0.3em; }

p { margin: 0 0 1em; }

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

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

.cv-button {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.65em 1.4em;
	border-radius: 6px;
	text-decoration: none;
	margin: 0.3em 0 1.6em;
}

.cv-button:hover {
	background: var(--accent-dark);
	color: #fff;
	text-decoration: none;
}

.cv-button-outline {
	background: transparent;
	color: var(--accent-dark);
	border: 1px solid var(--accent);
}

.cv-button-outline:hover {
	background: var(--bg-card);
	color: var(--accent-dark);
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 0.3em 0 1.8em;
}

.cta-row .cv-button { margin: 0; }

.poster-more {
	margin-top: 1.1rem;
}

.poster-more summary {
	cursor: pointer;
	list-style: none;
	width: fit-content;
}

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

.poster-more[open] summary { margin-bottom: 1.1rem; }

.poster-more summary::after { content: "\2193"; margin-left: 0.5em; }
.poster-more[open] summary::after { content: "\2191"; }

hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 2em 0;
}

/* Layout */

.wrap {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Header / nav */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	padding: 1.4rem 0;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
}

.site-header nav ul {
	list-style: none;
	display: flex;
	gap: 1.4rem;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.site-header nav a {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.site-header nav a.current,
.site-header nav a:hover {
	color: var(--accent-dark);
}

@media (max-width: 600px) {
	.site-header { padding: 0.9rem 0; }
	.site-header .wrap { gap: 0.5rem 1rem; }
	.site-header nav ul { gap: 0.7rem 1rem; }
}

/* Main content */

main {
	padding: 3rem 0 4rem;
}

body.home {
	min-height: 100vh;
	display: flex;
	align-items: center;
}

body.home main {
	padding: 0;
	width: 100%;
}

/* Footer */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 1.6rem 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent-dark); }

.icon-row {
	display: flex;
	gap: 0.9rem;
	align-items: center;
}

.icon-row svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
	vertical-align: -3px;
}

/* Hero (index page) */

.hero {
	text-align: center;
	padding: 1rem 0 2.5rem;
}

.hero img.headshot {
	width: 168px;
	height: 168px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1.4rem;
	border: 1px solid var(--border);
}

.hero h1 { margin: 0; }

/* Home nav buttons */

.home-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 1.8rem;
}

.home-nav a {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.75em 1.7em;
	border-radius: 8px;
	text-decoration: none;
}

.home-nav a:hover {
	background: var(--accent-dark);
	color: #fff;
	text-decoration: none;
}

/* Publications / posters list */

.entry-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry {
	display: flex;
	gap: 1.1rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--border);
	align-items: flex-start;
}

.entry:last-child { border-bottom: none; }

.entry .thumb {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--bg-card);
	border: 1px solid var(--border);
}

.entry .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.entry .entry-body h3 {
	margin: 0 0 0.25em;
	font-size: 1rem;
}

.entry .entry-body p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.entry.text-only { padding-left: 0; }

/* Photo grid (creative page) */

.photo-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.6rem;
	margin: 1.5rem 0;
}

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

.photo-card figure {
	margin: 0;
}

.photo-card img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--text);
	display: block;
}

.photo-card figcaption {
	margin-top: 0.5rem;
	font-size: 0.88rem;
	color: var(--text-muted);
}

.photo-card figcaption a { color: var(--text-muted); text-decoration: underline; }

.placeholder-box {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	border: 1px dashed var(--border);
	border-radius: 8px;
	color: var(--text-muted);
	font-size: 0.82rem;
	text-align: center;
	padding: 1rem;
	background: var(--bg-card);
}

.music-entry .placeholder-box {
	aspect-ratio: auto;
	height: 3.2rem;
	max-width: 420px;
	margin: 0.5rem 0 0.6rem;
}

/* Music entries */

.music-entry {
	padding: 1.2rem 0;
	border-bottom: 1px solid var(--border);
}

.music-entry:last-child { border-bottom: none; }

.music-entry h3 { margin: 0 0 0.5em; }

.music-entry audio {
	width: 100%;
	max-width: 420px;
	display: block;
	margin: 0.5rem 0 0.6rem;
}

.music-entry .sheet-link {
	font-size: 0.9rem;
}

.music-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.6rem;
	margin: 1.5rem 0;
}

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

.music-columns .music-entry {
	padding: 0;
	border-bottom: none;
}

.video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-card);
	border: 1px solid var(--border);
	margin: 0.5rem 0 0.6rem;
}

.video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.music-entry-full {
	grid-column: 1 / -1;
}


.music-columns .music-entry h3 { margin: 0 0 0.4em; }

.note {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1rem 1.2rem;
	color: var(--text-muted);
	font-size: 0.92rem;
}

/* Contact form */

form.contact-form {
	margin-top: 1.5rem;
}

form.contact-form label {
	display: block;
	font-size: 0.88rem;
	color: var(--text-muted);
	margin-bottom: 0.3em;
}

form.contact-form .field {
	margin-bottom: 1.1rem;
}

form.contact-form input[type="text"],
form.contact-form input[type="email"],
form.contact-form textarea {
	width: 100%;
	font-family: inherit;
	font-size: 1rem;
	padding: 0.6em 0.7em;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: #fff;
	color: var(--text);
}

form.contact-form textarea { resize: vertical; }

form.contact-form button {
	font-family: inherit;
	font-size: 0.95rem;
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 0.65em 1.4em;
	border-radius: 6px;
	cursor: pointer;
}

form.contact-form button:hover { background: var(--accent-dark); }
