/* Stefan Grunert — a living architecture. Intentionally light in every OS theme. */
:root {
    color-scheme: light;
    --bg: #f6f5ef;
    --ink: #252c27;
    --muted: #686e64;
    --line: #d9dccf;
    --accent: #305b40;
    --lime: #dce9ac;
    --code-bg: #eaece2;
    --font: 'Manrope', sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    /* Instrument Serif only for large display text; Newsreader carries the smaller italic roles. */
    --serif-text: 'Newsreader', Georgia, serif;
    --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --container: 1336px;
    --gutter: clamp(22px, 5vw, 80px);
    --section: clamp(70px, 8vw, 112px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; font-family: var(--font); font-size: 15px; line-height: 1.7; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { color: var(--ink); background: var(--lime); }
.site-main { flex: 1; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[hidden] { display: none !important; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 12px; }
.label, .eyebrow { font-family: var(--mono); font-size: 10px; font-weight: 400; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.label { color: var(--muted); }
.eyebrow { color: var(--accent); margin: 0 0 27px; }
.site-header__inner { min-height: 100px; display: flex; gap: 40px; align-items: center; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 700; letter-spacing: -.65px; text-decoration: none; white-space: nowrap; }
.logo__mark { width: 36px; height: 36px; color: var(--accent); }
.logo__dot { color: var(--accent); }
.nav { display: flex; gap: 29px; margin-left: auto; }
.nav__link { font-size: 14px; text-decoration: none; position: relative; padding-block: 12px; }
.nav__link::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width .2s; }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.language-nav { display: flex; align-items: center; gap: 8px; }
.lang, .lang-current, .lang-divider { font-family: var(--mono); font-size: 14px; text-decoration: none; }
.lang { color: var(--muted); padding: 10px 0; }
.lang:hover { color: var(--accent); text-decoration: underline; }
.lang-divider { color: #a0a597; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 34px; padding-top: 66px; padding-bottom: 58px; }
.hero__copy { position: relative; z-index: 1; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; }
.status-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px #305b400a; }
.hero h1 { font-size: clamp(59px, 6.2vw, 90px); line-height: 1.05; font-weight: 500; letter-spacing: -.065em; margin: 0 0 26px; }
h1 em, .display-title em { font-family: var(--serif); font-weight: 400; letter-spacing: -.027em; color: var(--accent); }
.hero h1 em { font-size: 1.18em; line-height: .97; }
html[lang='de'] .hero h1 { font-size: clamp(48px, 5.15vw, 76px); }
html[lang='de'] .hero h1 em { font-size: 1.1em; }
.hero__intro { color: var(--muted); max-width: 440px; font-size: 18px; line-height: 1.7; margin: 0 0 28px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 48px; padding: 12px 19px; font-size: 11px; font-weight: 500; border: 1px solid var(--accent); border-radius: 3px; text-decoration: none; transition: background .2s, transform .2s; }
.btn span { font-size: 19px; line-height: 1; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #244a33; }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { background: var(--lime); }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 11px; text-decoration: none; }
.text-link span { font-size: 18px; transition: transform .2s; }
.text-link:hover span { transform: translate(2px, -2px); }
.hero-art { min-width: 0; margin: 0; align-self: center; }
.hero-art img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; mix-blend-mode: darken; }

.section { padding-block: var(--section); }
.display-title { margin: 0; font-size: clamp(35px, 3.5vw, 50px); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.display-title em { font-size: 1.2em; }
.approach__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; margin-bottom: 48px; }
.approach__intro > p { max-width: 440px; color: var(--muted); margin: 0; font-size: 14px; line-height: 1.9; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.principle { padding: 30px 32px 36px; }
.principle:first-child { padding-left: 0; }
.principle:last-child { padding-right: 0; }
.principle + .principle { border-left: 1px solid var(--line); }
.principle__top { height: 58px; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.principle h3 { font-weight: 600; font-size: 18px; letter-spacing: -.035em; margin: 0 0 12px; }
.principle p { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 0; max-width: 310px; }
.thought-mark { width: 43px; height: 43px; stroke: #719061; stroke-width: 1.2; }
.thought-mark circle { fill: var(--bg); }
.thought-mark--2 circle { fill: #e3eacb; }
.thought-mark--3 circle { fill: var(--lime); }
.approach__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; color: var(--muted); font-size: 11px; }
.approach__foot .label { font-size: 9px; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 75px; border-top: 1px solid var(--line); }
.about .display-title { font-size: clamp(31px, 2.75vw, 43px); }
.personal-mark { display: flex; align-items: center; gap: 24px; margin-top: 43px; }
.personal-mark > span:first-child { color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 68px; line-height: 1; letter-spacing: -.08em; }
.personal-mark .label { border-left: 1px solid var(--line); padding-left: 22px; font-size: 9px; line-height: 1.8; }
.about__body { padding-top: 43px; color: var(--muted); }
.about__body.prose { font-size: 14px; }
.signature { display: flex; align-items: center; gap: 30px; color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 26px; }
.signature > span { font-family: var(--font); font-style: normal; font-size: 18px; }
.notes { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head .display-title { font-size: clamp(32px, 3vw, 43px); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { display: grid; grid-template-columns: 170px 1fr; gap: 28px; position: relative; border-top: 1px solid var(--line); padding: 27px 45px 27px 0; }
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row__date { padding-top: 7px; font-size: 9px; }
.post-row__title { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -.03em; }
.post-row__title a { text-decoration: none; }
.post-row__title a::after { content: '↗'; position: absolute; right: 4px; top: 28px; color: var(--accent); font-size: 23px; transition: transform .2s; }
.post-row__title a:hover { color: var(--accent); }
.post-row__title a:hover::after { transform: translate(2px, -2px); }
.post-row__excerpt { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 8px 0 0; max-width: 55ch; }
.post-row__tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 8px; margin: 13px 0 0; }
.post-row__tags span { padding: 2px 7px; background: #e9ece0; border-radius: 2px; }

.btn--light { color: var(--accent); background: var(--bg); border-color: #bdc9b3; min-width: 157px; }
.btn--light:hover { background: #dce9ac; }

.site-footer { margin-top: auto; padding-block: 28px; font-size: 10px; color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer__copy { margin: 0; }
.site-footer__nav { display: flex; gap: 22px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent); text-decoration: underline; }
.page-header { padding-block: 80px 50px; }
.page-title { font-size: clamp(45px, 6vw, 78px); line-height: 1.1; font-weight: 500; letter-spacing: -.06em; margin: 0 0 20px; }
.page-intro { color: var(--muted); max-width: 52ch; font-size: 15px; }
.section--first { padding-top: 0; }
.post { padding-block: 65px 90px; max-width: 840px; }
.post__header { margin-bottom: 35px; }
.backlink { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 30px; text-decoration: none; }
.post__title { font-weight: 500; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.05em; line-height: 1.12; margin: 0 0 24px; }
.post__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 10px; }
.post__footer { margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 15px; }
.post__notice { color: var(--muted); font-size: 14px; }
.prose { max-width: 70ch; font-size: 16px; line-height: 1.9; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3, .prose h4 { line-height: 1.3; font-weight: 600; letter-spacing: -.03em; }
.prose > h2, .prose > h3, .prose > h4 { margin-top: 2em; }
.prose h2 { font-size: 27px; }
.prose h3 { font-size: 22px; }
.prose a { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .85em; padding: .15em .3em; background: var(--code-bg); border-radius: 2px; }
.prose pre { padding: 20px; overflow-x: auto; background: var(--code-bg); border: 1px solid var(--line); border-radius: 3px; font-size: 13px; line-height: 1.65; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose blockquote { margin-inline: 0; padding: 5px 0 5px 20px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose blockquote > * + * { margin-top: .75em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose img { height: auto; }
.notfound { padding-block: 100px; max-width: 660px; }
.notfound__title { font-size: 45px; letter-spacing: -.04em; line-height: 1.15; }
.notfound__text, .empty { color: var(--muted); }
@media (min-width: 1500px) {
    .hero { padding-block: 80px; gap: 75px; }

}
@media (max-width: 1000px) {
    .site-header__inner { gap: 25px; }
    .nav { gap: 20px; }

    .hero { gap: 20px; padding-block: 48px; }
    .hero h1 { font-size: clamp(50px, 6.3vw, 63px); }
    html[lang='de'] .hero h1 { font-size: clamp(37px, 5.2vw, 52px); }
    .hero__actions { gap: 17px; }
    .btn { gap: 18px; font-size: 10px; padding-inline: 14px; }

    .approach__intro, .about, .contact__inner { gap: 38px; }
    .principle { padding-inline: 23px; }
    .principle h3 { font-size: 16px; }
}
@media (max-width: 700px) {
    :root { --gutter: 24px; }
    .site-header__inner { min-height: 80px; flex-wrap: wrap; gap: 0; padding-block: 17px 0; }
    .logo { font-size: 16px; gap: 8px; }
    .logo__mark { width: 30px; height: 30px; }
    .header-tools { margin-left: auto; }
    .nav { order: 3; flex: 0 0 100%; justify-content: space-between; margin: 10px 0 0; }
    .nav__link { font-size: 14px; padding: 10px 0 13px; }
    .hero { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 32px; gap: 35px; }
    .hero h1 { font-size: clamp(59px, 12.5vw, 84px); }
    html[lang='de'] .hero h1 { font-size: clamp(43px, 10vw, 68px); }
    .hero .eyebrow { font-size: 9px; margin-bottom: 23px; }
    .hero__actions { gap: 22px; }
    .btn { font-size: 11px; padding-inline: 17px; }

    .eyebrow { margin-bottom: 22px; }
    .approach__intro, .about, .contact__inner { grid-template-columns: 1fr; gap: 26px; }
    .display-title { font-size: 36px; }
    .approach__intro { margin-bottom: 35px; }
    .principles { grid-template-columns: 1fr; }
    .principle, .principle:first-child, .principle:last-child { padding: 26px 0; }
    .principle + .principle { border-left: 0; border-top: 1px solid var(--line); }
    .principle__top { height: 43px; margin-bottom: 12px; }
    .principle h3 { font-size: 19px; }
    .principle p { font-size: 13px; max-width: 440px; }
    .approach__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
    .about .display-title { font-size: 33px; }
    .personal-mark { margin-top: 25px; }
    .about__body { padding-top: 8px; }
    .about__body.prose { font-size: 14px; }
    .section-head { align-items: flex-end; gap: 15px; }
    .section-head .display-title { font-size: 30px; }
    .section-head .text-link { flex-shrink: 0; font-size: 10px; gap: 6px; }
    .post-row { grid-template-columns: 1fr; gap: 8px; padding-block: 22px; padding-right: 30px; }
    .post-row__title { font-size: 20px; }
    .post-row__title a::after { top: 42px; }
    .post-row__date { padding-top: 0; }
    .post-row__excerpt { font-size: 14px; }

    .site-footer__inner { flex-direction: column; gap: 12px; }
    .site-footer__nav { flex-wrap: wrap; }
    .page-header { padding-block: 50px 30px; }
    .post { padding-top: 40px; }
    .post__meta { gap: 8px 15px; }
    .prose { font-size: 15px; }
    .notfound__title { font-size: 34px; }
}
@media (max-width: 360px) {
    :root { --gutter: 18px; }
    .hero h1 { font-size: 54px; }
    html[lang='de'] .hero h1 { font-size: 40px; }
    .hero__actions { gap: 17px; }
    .hero__actions .text-link { font-size: 10px; }
    .display-title { font-size: 32px; }
    .section-head { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Homepage content; projects and personal thinking follow. */
.hero { padding-block: 44px 42px; }
.notes--home { padding-top: 47px; }
.notes--home .section-head,
.projects .section-head { align-items: baseline; margin-bottom: 34px; }
.projects .section-head { margin-bottom: 41px; }
.notes--home .section-head .display-title,
.projects .section-head .display-title { font-size: clamp(32px, 3.2vw, 48px); }
.section-heading-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; min-width: 0; }
.section-intro { margin: 0; color: var(--muted); font-size: clamp(16px, 1.35vw, 20px); }
.featured-note { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 38px 0; border-top: 1px solid var(--line); }
.featured-note__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 8px; font-size: 10px; color: var(--muted); }
.featured-note__meta .label { color: var(--accent); margin-bottom: 15px; }
.featured-note h3 { margin: 0 0 13px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.featured-note h3 a { display: flex; justify-content: space-between; gap: 20px; text-decoration: none; }
.featured-note h3 a > span { color: var(--accent); font-weight: 400; font-size: 31px; transition: transform .2s; }
.featured-note h3 a:hover { color: var(--accent); }
.featured-note h3 a:hover > span { transform: translate(3px,-3px); }
.featured-note__body > p:not(.post-row__tags) { max-width: 53ch; margin: 0; font-size: 14px; line-height: 1.9; color: var(--muted); }
.notes__foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 23px; font-size: 11px; color: var(--muted); }
.projects { border-top: 1px solid var(--line); }
.project-list { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 35px; }
.project-entry { position: relative; }
.project-entry h3 { margin: 24px 0 18px; font-family: var(--serif-text); font-weight: 500; font-style: italic; font-size: 40px; line-height: 1.1; letter-spacing: -.025em; color: var(--accent); }
.project-entry h3 a { display: flex; justify-content: space-between; gap: 15px; text-decoration: none; }
.project-entry > p:not(.label) { color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 390px; }
.approach { background: #edf0e4; border-block: 1px solid #dce2d0; }
.approach .principle__top .label { font-size: 10px; }
.about { border-top: 0; }
.correspondence { padding-block: clamp(38px, 4vw, 56px); background: #edf0e4; border-block: 1px solid #dce2d0; }
.correspondence__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.correspondence p { margin: 0; max-width: 38ch; color: var(--ink); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.5; }
.correspondence .text-link { color: var(--accent); flex-shrink: 0; }
@media (max-width: 1000px) and (min-width: 701px) {
    .nav { gap: 22px; }
    .nav__link { font-size: 14px; }
    .hero { gap: 20px; }
}
@media (max-width: 700px) {
    .hero { padding-block: 40px 30px; }
    .nav__link { font-size: 14px; }
    .notes--home { padding-top: 39px; }
    .notes--home .section-head { align-items: baseline; flex-direction: row; gap: 18px; }
    .section-heading-main { gap: 5px 16px; }
    .section-intro { font-size: 16px; }
    .featured-note { grid-template-columns: 1fr; gap: 18px; padding-block: 25px; }
    .featured-note__meta { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 5px 15px; padding: 0; }
    .featured-note__meta .label { flex-basis: 100%; margin-bottom: 4px; }
    .featured-note h3 { font-size: 35px; }
    .featured-note__body > p:not(.post-row__tags) { font-size: 14px; }
    .notes__foot { flex-direction: column; gap: 8px; }
    .project-list { grid-template-columns: 1fr; gap: 22px; }
    .project-entry > p:not(.label) { font-size: 14px; }
    .correspondence__inner { align-items: flex-start; flex-direction: column; gap: 24px; }

}

@media (max-width: 700px) {
    .hero-art { width: 100%; max-width: 460px; margin-inline: auto; }
}

/* Homepage v2: projects lead into their notes and lessons. */
.about__body .text-link { color: var(--accent); }
/* Keep copy and illustration together even when the surrounding sections grow. */
.hero { max-width: 960px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
/* Keep a subtle left bias within the spare container space. */
@media (min-width: 1100px) {
    .hero { position: relative; left: calc((min(100vw - 2 * var(--gutter), var(--container)) - 960px) / -8); }
}
.stem { position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 0 16px; color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; }
.stem em { color: var(--accent); font-family: var(--serif-text); font-size: 1.12em; font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.stem::after { content: ''; position: absolute; z-index: -1; right: -10%; bottom: -1px; left: -8px; height: 42px; background: url('../img/button-soil-projects-draft.png') center bottom / 100% 100% no-repeat; mix-blend-mode: multiply; opacity: .72; pointer-events: none; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.stem:nth-child(2)::after { background-image: url('../img/button-soil-notes-draft.png'); }
.stem:hover::after { opacity: 1; transform: translateX(4px); }
.stem__mark { width: 18px; height: 18px; flex: 0 0 auto; align-self: center; fill: none; stroke: var(--accent); stroke-width: 1.4; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.stem__mark circle { fill: var(--lime); }
.stem:hover .stem__mark { transform: translate(3px,-4px) rotate(10deg); }
.hero__actions { gap: 40px; }
.core-work { padding-block: clamp(38px, 4vw, 56px) clamp(42px, 4.5vw, 64px); background: #edf0e4; border-block: 1px solid #dce2d0; }
.core-work__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: 'label .' 'quote aside'; column-gap: clamp(32px, 5vw, 75px); row-gap: clamp(18px, 2vw, 27px); align-items: start; }
.core-work__label { grid-area: label; margin: 0; }
.core-work__quote { grid-area: quote; min-width: 0; margin: 0; padding: 0; border: 0; }
.core-work__quote > p:not(.eyebrow) { margin: 0; font-family: var(--serif-text); font-size: clamp(18px, 1.35vw, 24px); font-style: italic; font-weight: 400; line-height: 1.38; letter-spacing: -.01em; color: var(--ink); }
.core-work__quote footer { display: flex; gap: 10px; flex-wrap: wrap; margin-top: clamp(12px, 1.4vw, 20px); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.core-work__quote cite { font-style: normal; color: var(--ink); }
.core-work__aside { grid-area: aside; min-width: 0; padding-left: 32px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.core-work__aside > img { float: left; width: 127px; height: auto; margin: 0 24px 12px 0; mix-blend-mode: darken; }
.core-work__statement { color: var(--ink); }
.core-work__statement.prose { max-width: none; font-size: inherit; line-height: inherit; }
.core-work__statement p { margin: 0; }
.core-work__roles { clear: both; margin: 20px 0 0; color: var(--ink); font-size: inherit; line-height: inherit; overflow-wrap: anywhere; }
.core-work__roles .label { color: inherit; font-family: inherit; font-size: inherit; font-weight: 600; line-height: inherit; letter-spacing: inherit; text-transform: none; }
.notes--home .featured-note { padding-top: 12px; border-top: 0; }
.notes--home .featured-note h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.03em; }
.notes--home .featured-note h3 a > span { font-size: 23px; }
.projects { padding-top: 75px; }
.project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); margin-top: 0; }
.project-entry { display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 2.4vw, 32px); border: 1px solid #dce2d0; border-radius: 12px; background: #edf0e4; transition: background-color .2s, border-color .2s, transform .2s; }
.project-entry:hover { border-color: #cbd5c0; background: #e9eddf; transform: translateY(-2px); }
.project-entry { container-type: inline-size; }
/* Card titles share one size that scales with the card width, at most 40px, so the
   longest title of the language stays on one line. --card-title-fit is that title's
   width per pixel of font size (Newsreader italic 500); 50px covers mark and gap.
   Update the value when a longer card title is added. */
.project-list { --card-title-fit: 7.6; }                 /* Der Bienenpfarrer */
html[lang='en'] .project-list { --card-title-fit: 6.1; } /* The Bee Pastor */
html[lang='no'] .project-list { --card-title-fit: 5.95; } /* parlarina.com */
.project-entry h3 { font-size: min(40px, calc((100cqi - 50px) / var(--card-title-fit))); }
.project-entry--compact-title h3 { font-size: 32px; }
.project-entry h3 a { align-items: baseline; justify-content: flex-start; gap: 14px; }
.project-entry h3 a::before { content: ''; position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.project-entry h3 a:hover { color: #244a33; }
.project-entry__go { display: grid; place-items: center; align-self: baseline; flex: 0 0 36px; width: 36px; height: 36px; color: var(--accent); }
.project-entry__go svg { width: 36px; height: 36px; overflow: visible; transform: translateY(10px); }
.project-entry__go path { stroke: currentColor; stroke-width: 1.5; }
.project-entry__go circle { fill: currentColor; }
.project-entry:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 5px; }
.project-entry h3 a:focus-visible { outline: 0; }
.project-entry__meta { display: flex; justify-content: space-between; gap: 12px; }
.project-entry__meta span:last-child { color: var(--accent); }
.project-entry .label { flex-wrap: wrap; min-height: 30px; }
.project-entry .label span { white-space: nowrap; }
.project-entry__description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 390px; }
.project-entry .post-row__tags { margin-top: auto; padding-top: 20px; }
.project-entry .note-tag { position: relative; z-index: 2; background: #edf0e4; }
.project-entry:hover .note-tag { background: #e9eddf; }
.post-row__tags { align-items: center; }
.note-tag { padding: 2px 7px; border: 1px solid var(--line); border-radius: 2px; color: var(--accent); text-decoration: none; }
.note-tag:hover { color: var(--accent); border-color: var(--accent); }
.note-tag, .post-row__tags span { white-space: nowrap; }
.notes__links { display: flex; gap: 22px; flex-wrap: wrap; }
.notes-filter { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--accent); }
.correspondence__links { display: flex; gap: 16px 25px; flex-wrap: wrap; min-width: 0; }
.site-footer__copy { display: flex; align-items: center; gap: 14px; }
.site-footer__copy img { width: 22px; height: 30px; object-fit: contain; mix-blend-mode: darken; }

/* Project dossiers keep the cards concise while the Markdown can grow freely. */
.project-page { padding-block: 64px 96px; }
.project-page__header { padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.project-page__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.project-page__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 18px; color: var(--accent); }
.project-page__meta span + span::before { content: '·'; margin-right: 22px; }
.project-page__title { margin: 0; color: var(--accent); font-family: var(--serif); font-size: clamp(58px, 8vw, 108px); font-style: italic; font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.project-page__external { flex-shrink: 0; }
.project-page__content { padding-block: clamp(48px, 7vw, 82px); }
.project-page__content > p:first-child { color: var(--ink); font-size: clamp(20px, 2.1vw, 27px); line-height: 1.65; letter-spacing: -.025em; }
.project-page__notes { padding-top: clamp(52px, 7vw, 82px); border-top: 1px solid var(--line); }
.project-page__notes .section-head .display-title { font-size: clamp(32px, 3.2vw, 48px); }
@media (max-width: 700px) {
    .project-page { padding-block: 46px 72px; }
    .project-page__heading { align-items: flex-start; flex-direction: column; gap: 30px; }
    .project-page__title { font-size: clamp(54px, 18vw, 78px); }
    .project-page__content { padding-block: 45px 58px; }
    .project-page__notes .section-head { align-items: flex-start; }
}
@media (max-width: 1100px) {
    .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .hero { gap: 20px; }
}
@media (max-width: 1000px) and (min-width: 781px) {
    .core-work__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 32px; }
    .core-work__quote > p:not(.eyebrow) { font-size: clamp(18px, 1.9vw, 20px); }
    .core-work__aside { padding-left: 24px; font-size: 14px; line-height: 1.7; }
    .core-work__aside > img { width: 110px; margin-right: 18px; }
    .core-work__roles { margin-top: 16px; }
}
@media (max-width: 780px) {
    .core-work__grid { grid-template-columns: 1fr; grid-template-areas: 'label' 'quote' 'aside'; row-gap: 24px; }
    .core-work__quote > p:not(.eyebrow) { font-size: clamp(20px, 4.2vw, 24px); }
    .core-work__aside { padding: 28px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 440px) {
    .core-work__aside { font-size: 14px; line-height: 1.7; }
    .core-work__aside > img { width: 104px; margin-right: 18px; }
    .core-work__roles { margin-top: 17px; }
}
@media (max-width: 700px) {
    .hero { max-width: none; grid-template-columns: 1fr; gap: 35px; }
    .project-list { grid-template-columns: 1fr; }
    .project-entry__description { font-size: 14px; }
}

/* DrPublish image properties are per-placement snapshot metadata. */
.prose:has(.notebook-image) { display: flow-root; }
.prose .notebook-image { clear: both; }
.prose .notebook-image[data-size="half"] { width: 50%; }
.prose .notebook-image[data-size="third"] { width: 33.333%; }
.prose .notebook-image[data-alignment="center"] { margin-inline: auto; }
.prose .notebook-image[data-alignment="left"]:is([data-size="half"], [data-size="third"]) { float: left; margin: .4em 1.5em 1em 0; }
.prose .notebook-image[data-alignment="right"]:is([data-size="half"], [data-size="third"]) { float: right; margin: .4em 0 1em 1.5em; }
.prose .notebook-image img { width: 100%; height: auto; }
.prose .notebook-image[data-format="landscape"] img { aspect-ratio: 16 / 9; object-fit: cover; }
.prose .notebook-image[data-format="portrait"] img { aspect-ratio: 3 / 4; object-fit: cover; }
.prose .notebook-image[data-format="square"] img { aspect-ratio: 1; object-fit: cover; }
@media (max-width: 560px) {
  .prose .notebook-image[data-size] { float: none; width: 100%; margin: 1em 0; }
}

/* Publication templates: listing previews and placement captions. */
.post-row__body, .featured-note__body { display: flow-root; min-width: 0; }
.post-thumbnail { float: right; width: clamp(110px, 18vw, 190px); margin: 0 0 16px 24px; }
.post-thumbnail img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--code-bg); }
.prose .notebook-image { margin-inline: 0; }
.prose .notebook-image[data-alignment="center"] { margin-inline: auto; }
.prose .notebook-image figcaption { margin-top: .5em; font-size: .8em; line-height: 1.5; color: var(--muted); }
.notebook-image__credit::before { content: ' · '; }
.notebook-image__credit:first-child::before { content: ''; }
@media (max-width: 560px) {
    .post-thumbnail { width: 110px; margin-left: 16px; }
}

/* Notes keep their image beside the copy; navigation echoes the hero. */
.post-row { padding-right: 0; }
.post-row__title a::after { content: none; }
.post-row__body, .featured-note__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.post-row__body:has(.post-thumbnail), .featured-note__body:has(.post-thumbnail) { grid-template-columns: clamp(120px, 15vw, 190px) minmax(0, 1fr); }
.post-row__body .post-thumbnail, .featured-note__body .post-thumbnail { float: none; width: 100%; margin: 0; }
.note-copy { min-width: 0; }
.featured-note .note-copy > p:not(.post-row__tags) { max-width: 55ch; margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.note-link { isolation: isolate; font-size: 13px; padding: 3px 0 12px; gap: 7px; white-space: nowrap; }
.note-link::after { content: none; }
.note-link .stem__mark { width: 15px; height: 15px; }
.note-copy > .note-link { margin-top: 13px; }
.note-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
@media (max-width: 560px) {
    .post-row__body:has(.post-thumbnail), .featured-note__body:has(.post-thumbnail) { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
}

/* Publication metadata controls illustration blending; photos remain normal. */
img[data-background-mode="blend"] { mix-blend-mode: multiply; background: transparent; }
.post-thumbnail img[data-background-mode="blend"] { background: transparent; }

.correspondence__links { column-gap: 40px; }
.contact-link { display: inline-flex; align-items: center; gap: 9px; padding-block: 8px; color: var(--accent); font-size: 14px; line-height: 1.5; text-decoration: none; }
.contact-link svg { width: 20px; height: 20px; flex: 0 0 auto; }
.contact-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.contact-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.imprint { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-block: 28px; color: #81867d; font-size: 12px; line-height: 1.7; }
.imprint h2 { margin: 0; color: inherit; font-size: inherit; font-weight: 400; }
.imprint address { display: flex; flex-wrap: wrap; gap: 4px 16px; font-style: normal; }
.imprint a { color: inherit; text-decoration: none; }
.imprint a:hover { text-decoration: underline; }


.about { grid-template-columns: minmax(150px, .72fr) minmax(260px, 1.5fr) minmax(300px, 1.8fr); align-items: center; gap: clamp(26px, 3.5vw, 56px); }
.about__portrait { display: block; width: 100%; height: clamp(190px, 18vw, 250px); object-fit: cover; border-radius: 8px; }
.about__content { max-width: 620px; }
.about__body { padding-top: 16px; }
.about__landscape-trigger { display: block; width: 100%; height: clamp(190px, 18vw, 250px); margin: 0; padding: 0; overflow: hidden; color: inherit; background: none; border: 0; border-radius: 8px; cursor: zoom-in; }
.about__landscape { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; transition: transform .35s ease; }
.about__landscape-trigger:hover .about__landscape { transform: scale(1.015); }
.about__landscape-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.image-lightbox { width: min(92vw, 1280px); max-width: none; margin: auto; padding: 0; overflow: visible; background: transparent; border: 0; }
.image-lightbox::backdrop { background: rgba(20, 25, 21, .82); backdrop-filter: blur(3px); }
.image-lightbox img { display: block; width: 100%; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.image-lightbox__close { position: absolute; top: -42px; right: 0; width: 36px; height: 36px; padding: 0; color: #fff; background: transparent; border: 0; font-size: 32px; line-height: 1; cursor: pointer; }
.image-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 900px) {
    .about { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); }
    .about__landscape-trigger { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .about { grid-template-columns: 1fr; }
    .about__portrait { width: 220px; height: 220px; }
    .about__landscape-trigger { grid-column: auto; height: 220px; }
}

/* Projektseiten: Titelbild, Text mit Faktenblock, Galerie und Großansicht. */
.project-shot { display: block; width: 100%; margin: 0; padding: 0; overflow: hidden; color: inherit; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; }
.project-shot img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.project-shot:hover img { transform: scale(1.012); }
.project-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.project-hero { margin: clamp(36px, 5vw, 56px) 0 0; }
.project-hero .project-shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.project-hero figcaption, .project-gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.project-page__body--facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.project-page__body--facts .project-page__content { max-width: 70ch; }
.project-page__content h2 { margin-top: 2.2em; font-family: var(--serif-text); font-size: clamp(27px, 2.6vw, 34px); font-style: italic; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: var(--accent); }
.project-page__content h3 { margin-top: 1.8em; font-size: 17px; font-weight: 700; }

.project-facts { position: sticky; top: 32px; margin-block: clamp(48px, 7vw, 82px); padding: 26px 0 0; border-top: 1px solid var(--ink); }
.project-facts .eyebrow { margin-bottom: 18px; }
.project-facts dl { margin: 0; }
.project-facts__row { padding: 12px 0 13px; border-bottom: 1px solid var(--line); }
.project-facts dt { margin-bottom: 3px; }
.project-facts dd { margin: 0; font-size: 14px; line-height: 1.6; }
.project-facts__link { display: inline-flex; gap: 6px; margin-top: 20px; color: var(--accent); font-size: 14px; text-decoration: none; }
.project-facts__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.project-gallery { padding-block: clamp(20px, 3vw, 36px) clamp(52px, 7vw, 82px); }
.project-gallery .display-title { margin: 0 0 32px; font-size: clamp(32px, 3.2vw, 48px); }
.project-gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.project-gallery figure { margin: 0; }
.project-gallery .project-shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

.gallery-lightbox { width: min(94vw, 1440px); max-width: none; max-height: none; margin: auto; padding: 0; overflow: visible; color: #fff; background: transparent; border: 0; }
.gallery-lightbox::backdrop { background: rgba(20, 25, 21, .88); backdrop-filter: blur(3px); }
.gallery-lightbox__stage { margin: 0; }
.gallery-lightbox__stage img { display: block; width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.gallery-lightbox figcaption { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; font-size: 14px; line-height: 1.6; }
.gallery-lightbox figcaption .label { color: rgba(255, 255, 255, .7); white-space: nowrap; }
.gallery-lightbox__close, .gallery-lightbox__nav { position: absolute; width: 44px; height: 44px; padding: 0; color: #fff; background: rgba(20, 25, 21, .55); border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.gallery-lightbox__close { top: -54px; right: 0; font-size: 28px; }
.gallery-lightbox__nav { top: calc(41vh - 22px); }
.gallery-lightbox__nav--prev { left: 12px; }
.gallery-lightbox__nav--next { right: 12px; }
.gallery-lightbox__close:hover, .gallery-lightbox__nav:hover { background: rgba(20, 25, 21, .85); }
.gallery-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.core-work__more { display: inline-flex; gap: 6px; margin-top: 14px; color: var(--accent); font-size: 14px; text-decoration: none; }
.core-work__more:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
    .project-page__body--facts { grid-template-columns: 1fr; gap: 0; }
    .project-facts { position: static; order: -1; margin-bottom: 0; }
}
@media (max-width: 700px) {
    .project-hero .project-shot img { aspect-ratio: 4 / 3; }
    .gallery-lightbox__nav { top: auto; bottom: -58px; }
    .gallery-lightbox__nav--prev { left: auto; right: 56px; }
    .gallery-lightbox__nav--next { right: 0; }
    .gallery-lightbox figcaption { padding-right: 120px; }
}
