/* Clara Schüler – research site. Colours and fonts match the Gestalt website (palette "Taube"). */

@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Fraunces; src: url(fonts/fraunces-latin-wght-italic.woff2) format("woff2"); font-style: italic; font-weight: 100 900; font-display: swap; }

:root {
	--primary: #82a0ff;
	--secondary: #420022;
	--bg: #fcfcfc;
	--light: #f9f8f6;
	--dark: #4f364b;
	--headings: #110a08;
	--text: #070403;
	--stroke: #e1d9cc;
	--radius: 22px;
	--display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
	--accent: Fraunces, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.65 Inter, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, .hero-title { margin: 0 0 0.6em; font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; color: var(--headings); }
h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); line-height: 1.25; letter-spacing: -0.01em; }
.hero-title { font-size: clamp(2.6rem, 2rem + 3vw, 4.5rem); }
:where(h1, h2, h3, .hero-title) em { font-family: var(--accent); font-weight: 350; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

a { color: var(--headings); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--dark); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--headings); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2 * clamp(1rem, 5vw, 2rem)); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font: 500 .8125rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--headings); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--stroke); }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; min-height: 4rem; padding-block: .6rem; }
.brand { font: 500 1.15rem var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
@media (max-width: 380px) { .brand { font-size: 1rem; } .nav ul { gap: .7rem; font-size: .85rem; } }
.nav ul { display: flex; gap: clamp(.9rem, 3vw, 2rem); margin: 0; padding: 0; list-style: none; font: 500 .95rem var(--display); }
.nav ul a { text-decoration: none; }
.nav ul a:hover { color: var(--headings); text-decoration: underline; text-decoration-color: var(--primary); }

/* Hero: the painting stays, with a calm card on top */
.hero { position: relative; display: grid; place-items: center; min-height: min(78vh, 680px); padding: 3rem 1rem; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: relative; max-width: 36rem; padding: clamp(1.75rem, 5vw, 3rem); background: var(--bg); border-radius: var(--radius); text-align: center; box-shadow: 0 20px 60px -30px rgb(17 10 8 / .45); }
.hero-card p { color: var(--text); }
.hero-card .eyebrow { justify-content: center; }
.hero-card .hero-title { color: var(--headings); }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; background: var(--primary); color: var(--headings); font: 500 1rem/1.2 var(--display); text-decoration: none; transition: background .2s, color .2s; }
.btn:hover { background: var(--headings); color: #fff; }

/* About */
.about { padding-block: clamp(4rem, 10vw, 7rem); }
.about .wrap { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .about .wrap { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } .profile { position: sticky; top: 6rem; } }
.profile { text-align: center; }
.profile img { width: min(260px, 70%); margin: 0 auto 1.5rem; border-radius: 50%; }
.profile h1 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); margin-bottom: .4rem; }
.roles { color: var(--text); }
.social { display: flex; justify-content: center; gap: .6rem; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--stroke); color: var(--headings); transition: background .2s, border-color .2s; }
.social a:hover { background: var(--primary); border-color: var(--primary); }
.social svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.resume { max-width: 44rem; }
.resume h3 { margin-top: 2.5rem; }
.topics { margin: 0; padding-left: 1.2rem; }
.topics li { margin-bottom: .4rem; break-inside: avoid; }
.topics li::marker { color: var(--primary); }
@media (min-width: 600px) { .topics { columns: 2; column-gap: 2.5rem; } }

/* Experience timeline: left = therapy & practice, right = science & career */
.experience { padding-block: clamp(4rem, 10vw, 7rem); background: var(--light); border-top: 1px solid var(--stroke); }
.experience header { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.experience header .eyebrow { justify-content: center; }
.timeline { --progress: 0; --line-x: .75rem; position: relative; margin: 0 auto; padding: 0; list-style: none; max-width: 1000px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--line-x); width: 2px; margin-left: -1px; background: var(--stroke); }
.timeline::after { background: var(--primary); transform-origin: top; transform: scaleY(var(--progress)); }
.tl-item { position: relative; padding: 0 0 1.25rem 2.5rem; }
.tl-item::before { content: ""; position: absolute; z-index: 1; top: 1.6rem; left: var(--line-x); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--light); border: 2px solid var(--stroke); transition: background .4s, border-color .4s; }
.tl-item.is-visible::before { background: var(--primary); border-color: var(--primary); }
.tl-card { padding: clamp(1.25rem, 4vw, 2.5rem); background: #fff; border: 1px solid var(--stroke); border-radius: var(--radius); }
.tl-card time { display: block; margin-bottom: .35rem; font: 500 .8125rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.tl-card h3 { margin-bottom: .5rem; }
.tl-card p, .tl-card ul { margin: 0; }
.tl-card ul { padding-left: 1.1rem; }
.tl-card li + li { margin-top: .4rem; }
.tl-card h3 + p + time { margin-top: 1.25rem; }
.pubs { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--stroke); }
.pubs summary { cursor: pointer; font: 500 1rem var(--display); color: var(--headings); }
.pubs summary::marker { color: var(--primary); }
.pubs a { overflow-wrap: anywhere; }
.pubs ol { margin: .9rem 0 0; padding-left: 1.2rem; font-size: .95rem; }
.pubs li + li { margin-top: .6rem; }
@media (min-width: 760px) {
	.timeline { --line-x: 50%; }
	.tl-item { width: 50%; padding: 0 2.5rem 1.75rem 0; }
	.tl-item.right { margin-left: 50%; padding: 0 0 1.75rem 2.5rem; }
	.tl-item::before { left: 100%; }
	.tl-item.right::before { left: 0; }
	/* an item that switches sides moves up next to the previous one */
	.tl-item.right + .tl-item:not(.right), .tl-item:not(.right) + .tl-item.right { margin-top: -5rem; }
	.tl-item:not(.right) .tl-card { text-align: right; }
	.tl-item:not(.right) .tl-card ul { list-style-position: inside; padding: 0; }
}

/* Scroll effect, only with JavaScript and only if the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
	.js .tl-card { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
	@media (min-width: 760px) {
		.js .tl-item:not(.right) .tl-card { transform: translateX(-32px); }
		.js .tl-item.right .tl-card { transform: translateX(32px); }
	}
	.js .tl-item.is-visible .tl-card { opacity: 1; transform: none; }
}

/* Footer */
.footer { padding-block: 3rem; background: var(--secondary); color: #fff; text-align: center; }
.footer a { color: inherit; }
.footer .social a { color: #fff; border-color: rgb(255 255 255 / .3); }
.footer .social a:hover { color: var(--headings); }
.footer p { margin: 1.25rem 0 0; font-size: .9rem; opacity: .85; }

/* Simple text pages (legal notice) */
.page { max-width: 44rem; padding-block: clamp(3rem, 8vw, 6rem); }
.page .h-small { margin-top: 2.5rem; font-size: 1.3rem; }

/* Artwork page: external gallery embedded below the own header */
.art { padding-top: clamp(3rem, 8vw, 5rem); }
.art-bar { min-height: 3.5rem; margin-top: 1.5rem; }
.art-bar .btn { border: 0; cursor: pointer; }
.art iframe { display: block; width: 100%; height: 85vh; min-height: 600px; border: 0; border-top: 1px solid var(--stroke); margin-top: 1rem; }
.art-fallback { padding-block: 1.5rem; font-size: .95rem; }
