/* Maxim — quiet personal site. Instrument Serif (display) + General Sans (text), self-hosted. */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
	--bg: #f5f2ec;
	--text: #1c1b19;
	--muted: #6f6a62;
	--line: #d8d2c6;
	--serif: "Instrument Serif", Georgia, serif;
	--sans: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--pad: clamp(20px, 5vw, 72px);
	--header: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header__name { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: .01em; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.site-nav a { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.site-header__toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 80px); align-items: end; padding: clamp(32px, 6vw, 96px) var(--pad) clamp(56px, 8vw, 120px); }
.hero__name { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 10.5vw, 176px); line-height: .9; letter-spacing: -.015em; margin: 0 0 28px; }
.hero__tagline { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__image { margin: 0; }
.hero__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }

/* Sections: small serif label on the left, text column on the right */
.section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 5vw, 80px); padding: clamp(56px, 8vw, 112px) var(--pad); border-top: 1px solid var(--line); }
.section__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.5vw, 60px); line-height: 1; margin: 0; }
.section__body { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 1.6em 0 .35em; }

/* Lead paragraph of About / Industry slightly larger */
.section--about .prose > p:first-child,
.section--industry .prose > p:first-child { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; margin-bottom: 1.2em; }

/* Full-bleed image between About and Industry */
.image-band { margin: 0; }
.image-band img { width: 100%; max-height: 82vh; object-fit: cover; }

/* Music industry entries: company headline + text, separated by hairlines */
.industry h3 { padding-top: 1em; border-top: 1px solid var(--line); }
.industry h3 + p { color: var(--text); }
.industry .role { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Bands */
.bands { list-style: none; margin: 0; padding: 0; }
.band { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.band:first-child { padding-top: 0; }
.band:not(:has(.band__image)) { grid-template-columns: minmax(0, 1fr); }
.band__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.band__name { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; margin: 0 0 6px; }
.band__role { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.band__desc p { margin: 0 0 12px; }
.band__link { font-size: 15px; font-weight: 500; }

/* Contact */
.contact__mail { font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); line-height: 1.1; margin: 0 0 18px; overflow-wrap: anywhere; }
.contact__mail a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__note { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 32px var(--pad) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer__social, .site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Single pages (Impressum, Datenschutz) */
main.page { padding: clamp(40px, 6vw, 96px) var(--pad); max-width: calc(76ch + 2 * var(--pad)); }
.page__title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1; margin: 0 0 40px; }
.page__body { font-size: 16px; }
.page__body h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 1.6em 0 .4em; }
.page__body h3 { font-size: 22px; }

/* Mobile */
@media (max-width: 800px) {
	body { font-size: 17px; }
	:root { --header: 60px; }
	.site-header__name { font-size: 22px; }
	.site-header__toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; padding: 10px; background: none; border: 0; cursor: pointer; }
	.site-header__toggle span:not(.screen-reader-text) { display: block; height: 1.5px; background: var(--text); transition: transform .2s; }
	.nav-open .site-header__toggle span:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
	.nav-open .site-header__toggle span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
	.site-nav { position: fixed; inset: var(--header) 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--pad) 24px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
	.nav-open .site-nav { display: flex; }
	.site-nav a { font-family: var(--serif); font-size: 30px; letter-spacing: 0; text-transform: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
	.site-nav a:last-child { border-bottom: 0; }
	.hero { grid-template-columns: 1fr; padding-top: 24px; }
	.hero__image { order: -1; }
	.hero__name { margin-bottom: 16px; }
	.section { grid-template-columns: 1fr; }
	.band { grid-template-columns: 1fr; gap: 16px; }
	.site-footer { flex-direction: column; }
}

/* Label names in Music Industry are links: quiet underline, arrow on hover */
.industry h3 a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.industry h3 a::after { content: " \2197"; font-size: .6em; vertical-align: .35em; color: var(--muted); }
.industry h3 a:hover { color: var(--text); border-color: var(--text); }
.industry__linkedin { margin: 20px 0 0; }
.industry__linkedin a { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--text); padding-bottom: 2px; }
.industry__linkedin a::after { content: " \2197"; }

/* ── Multi-page layout (v2): centred nav, one section per page, page transitions ── */
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-header__spacer { justify-self: end; }
.site-nav { justify-self: center; }
.site-nav a { position: relative; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--text); }
.main .section { border-top: 0; min-height: calc(100vh - var(--header) - 120px); align-content: start; }
.home .hero { min-height: calc(100vh - var(--header) - 110px); }

/* Swift cross-page transition (View Transitions API: Chrome/Edge/Safari; others just load normally).
   Header stays put; the page content glides out up and in from below. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: mf-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: mf-in .42s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes mf-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes mf-in { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) {
	::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media (max-width: 800px) {
	.site-header { display: flex; }
	.site-header__spacer { display: none; }
	.site-nav a::after { display: none; }
	.main .section { min-height: 0; }
	.home .hero { min-height: 0; }
}
/* keep the header perfectly still during page transitions */
::view-transition-group(site-header), ::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
::view-transition-old(site-header) { display: none; }
@media (max-width: 800px) {
	.site-nav { justify-self: stretch; width: 100%; }
	.site-nav a[aria-current="page"] { color: var(--muted); }
}

/* Social icons top right (desktop); inside the burger menu on mobile */
.site-header__social { justify-self: end; display: flex; align-items: center; gap: 18px; }
.site-header__social a, .site-nav__social a { display: inline-flex; color: var(--text); transition: opacity .2s; }
.site-header__social a:hover, .site-nav__social a:hover { opacity: .5; }
.site-nav__social { display: none; }
@media (max-width: 800px) {
	.site-header__social { display: none; }
	.site-nav__social { display: flex; gap: 26px; padding-top: 18px; }
	.site-nav__social svg { width: 24px; height: 24px; }
}
@media (max-width: 800px) { .site-nav .site-nav__social a { border-bottom: 0; padding: 4px 0; } }
