:root {
  color-scheme: light;
  font-family: "Courier New", Courier, monospace;
  color: #111;
  background: #fff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  cursor: auto;
}

.page {
  width: min(100%, 47rem);
  padding: 2rem 2rem 4rem;
}

.header {
  width: min(100%, 34.375rem);
  margin-bottom: 3.5rem;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1rem;
  font-weight: 400;
}

h1 strong,
.contact {
  font-weight: 700;
}

.role {
  padding-left: 0.5rem;
}


.biography {
  max-width: 34.375rem;
}

.biography p {
  margin-top: 1.5rem;
}

.biography cite {
  font-style: italic;
}

.nowrap {
  white-space: nowrap;
}

h2 {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

a {
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a::after {
  position: absolute;
  inset: -0.5rem;
  content: "";
}

a:hover {
  font-weight: 700;
}

a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 5px;
}

.site-cursor {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  display: none;
  width: 0;
  height: 0;
  pointer-events: none;
  mix-blend-mode: normal;
}


.site-cursor img {
  position: absolute;
  display: none;
  width: 40px;
  max-width: none;
  height: auto;
}

html.has-custom-cursor body,
html.has-custom-cursor a {
  cursor: none;
}

html.has-custom-cursor .site-cursor {
  display: block;
}

html.has-custom-cursor .site-cursor__arrow {
  top: -14px;
  left: -20px;
  display: block;
}

html.has-custom-cursor .site-cursor__link {
  display: none;
}

html.has-custom-cursor.is-over-link .site-cursor__arrow {
  display: none;
}

html.has-custom-cursor.is-over-link .site-cursor__link {
  top: -3px;
  left: -5px;
  display: block;
}
html.has-custom-cursor:is([data-awaiting-wake-click], [data-waking-from-background], [data-contact-awaiting-return]) .site-cursor__arrow {
  display: none;
}
html.has-custom-cursor:is([data-awaiting-wake-click], [data-waking-from-background], [data-contact-awaiting-return]) .site-cursor__link {
  top: -3px;
  left: -5px;
  display: block;
}


.header-links {
  display: flex;
  flex: 0 0 auto;
}

.header-links a {
  display: inline-block;
  padding-block: 0;
}

.contact {
  font-weight: 700;
}


.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  padding: 0;
  margin: 0.15rem 0 0;
  list-style: none;
}

.project-links a {
  display: inline-block;
  padding-block: 0.5rem;
}

.project-description {
  margin-top: 0.4rem;
}

.project-whole-link {
  display: block;
  width: 34.375rem;
  max-width: 100%;
}
.project-whole-link::after { display: none; }
.project-whole-link:hover { font-weight: 400; }

.project-image {
  display: block;
  max-width: 100%;
  margin-top: 1.5rem;
}

.project-image--baldiga,
.project-image--kehr,
.project-image--waerme,
.project-image--shark {
  width: 34.375rem;
}

.project-image--baldiga,
.project-image--shark {
  filter: drop-shadow(0 3px 7px rgb(0 0 0 / 16%));
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  padding: 0.75rem;
  background: #111;
  color: #fff;
  transform: translateY(-110%);
  z-index: 1;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 40rem) {
  .page {
    padding: 1.25rem 1.25rem 3rem;
  }

  .header {
    margin-bottom: 2.5rem;
  }

}

body { text-transform: lowercase; }
.bio-portrait { margin: 0 0 1.5rem; width: 100%; }
.bio-portrait svg { display: block; width: 100%; height: auto; filter: grayscale(1); }
.bio-portrait figcaption { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.5; text-align: right; }

/* Native disclosures: no hash navigation, no scroll-to-target. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
.header { margin-bottom: 1.25rem; }
.content-switcher {
  --nav-gap: clamp(1.25rem, 5vw, 3.5rem);
  position: relative;
  padding-top: 2.75rem;
  overflow-anchor: none;
}
/* The menu becomes visible only after every letter has its floor position. */
.content-switcher:not([data-scattered]) { visibility: hidden; }
.content-switcher summary,
.content-switcher > .contact,
.content-switcher > .language-switch {
  position: absolute;
  top: 0;
  display: block;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: color 420ms ease-in-out, opacity 850ms ease-in-out;
}
.content-switcher summary::-webkit-details-marker { display: none; }
.menu-letter { display: inline-block; }
#projects-toggle { left: 0; width: 4.8rem; }
#bio-toggle { left: calc(4.8rem + var(--nav-gap)); width: 1.8rem; }
.content-switcher > .contact { left: calc(6.6rem + var(--nav-gap) + var(--nav-gap)); width: 4.2rem; }
.content-switcher > .language-switch { width: 1.5rem; }
.content-switcher > .language-switch--en { left: calc(10.8rem + var(--nav-gap) * 3); }
.content-switcher > .language-switch--de { left: calc(12.7rem + var(--nav-gap) * 3); }
.content-switcher:has(details[open]) summary,
.content-switcher:has(details[open]) > .contact,
.content-switcher:has(details[open]) > .language-switch { font-weight: 400; }
.content-switcher details[open] > summary { font-weight: 700; }
.content-switcher > .language-switch[aria-current="page"],
.content-switcher:has(details[open]) > .language-switch[aria-current="page"] {
  color: #a3222a;
  font-weight: 700;
}
@media (hover: hover) {
  .content-switcher:has(details[open]) summary:hover,
  .content-switcher:has(details[open]) > .contact:hover,
  .content-switcher:has(details[open]) > .language-switch:hover { font-weight: 700; }
}
.content-switcher summary:focus-visible,
.content-switcher > .language-switch:focus-visible { outline: 1px dotted currentColor; outline-offset: 4px; }
html.has-custom-cursor summary { cursor: none; }
@media (max-width: 40rem) {
  .content-switcher { padding-top: 2.75rem; }
}

.section-accent {
  color: #a3222a;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1rem;
  width: 1ch;
  margin: 1.75rem 0;
  user-select: none;
}
#projects > .section-accent { margin-top: 6.25rem; }
.biography .section-accent { margin: 1.5rem 0; }
@media (max-width: 40rem) {
  #projects > .section-accent { margin: 5.75rem 0 1.25rem; }
}

.header-accent,
.content-switcher details[open] > summary {
  color: #a3222a;
}

.inline-accent { color: #a3222a; font-weight: 700; }

.site-cursor img { filter: url(#cursor-accent); }

/* The native cursor must not reappear through element-specific rules. */
html.has-custom-cursor,
html.has-custom-cursor *,
html.has-custom-cursor *::before,
html.has-custom-cursor *::after {
  cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGklEQVR4nO3BAQEAAACCIP+vbkhAAQAAAO8GECAAARlDNO4AAAAASUVORK5CYII=") 0 0, none !important;
}
/* Cover the empty viewport too, including Safari's area below short pages. */
html, body { min-height: 100vh; }
.site-cursor { visibility: hidden; }
.site-cursor.is-visible { visibility: visible; }

.header h1 strong { color: #a3222a; }

.back-to-top,
.biography .back-to-top {
  margin-top: 3.5rem;
  font-size: 1rem;
  line-height: 1.5;
}
.back-to-top a { color: #a3222a; }

.bio-portrait-link { display: block; }
#bio-text { scroll-margin-top: 2rem; }

.contact-envelope {
  position: fixed;
  width: 0;
  height: 0;
  color: #a3222a;
  pointer-events: none;
  z-index: 9998;
}
.contact-envelope__letter {
  position: absolute;
  white-space: pre;
  will-change: transform, opacity;
}
html.contact-in-progress .page { pointer-events: none; }
html.contact-flight-active .content-switcher summary,
html.contact-flight-active .content-switcher > .contact,
html.contact-flight-active .content-switcher > .language-switch { opacity: 0; }

.idle-letter-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9000;
}

.idle-quote {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(34.375rem, calc(100% - 3rem));
  margin: 0;
  color: #a3222a;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.idle-quote p { margin: 0; }
.idle-quote cite { display: block; margin-top: 1.5rem; font-style: normal; }

.idle-quote .quote-line { display: block; }
@media (max-width: 30rem) {
  .idle-quote .quote-line > span { display: block; }
}


.header { margin-bottom: 0; }
.header-separator {
  margin-top: 1.5rem;
  color: #a3222a;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5rem;
}
.content-switcher { padding-top: 3rem; }
#projects { padding-top: 1.5rem; }
#bio { padding-top: 1.5rem; }

[hidden] { display: none !important; }
.title-toggle, .header-separator {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.title-toggle:focus:not(:focus-visible), .header-separator:focus:not(:focus-visible) { outline: none; }
.title-toggle { display: block; width: 100%; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.title-toggle .home-link { color: #a3222a; }
.header-separator { display: block; }
.title-toggle:focus-visible, .header-separator:focus-visible { outline: 1px solid #a3222a; outline-offset: 5px; }

.site-cursor { opacity: 1; transition: opacity 650ms ease; }
.site-cursor.is-dimmed { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .site-cursor { transition: none; } }
@media (prefers-reduced-motion: reduce) {
  .page, .content-switcher summary, .content-switcher > .contact, .content-switcher > .language-switch { transition: none; }
}

/* Let the document scroll normally in every state, including the home view. */
html, body {
  overflow-x: hidden;
  touch-action: pan-y pinch-zoom;
}

/* The title meets the words at 38.2% of the viewport, then joins the fixed navigation. */
:root { --page-edge: 2rem; --header-top: 2rem; --nav-fixed-top: 10rem; }
html, body { overflow-x: clip; }
.header {
  position: sticky;
  top: var(--header-top);
  z-index: 31;
  background: #fff;
  transition: transform 1350ms cubic-bezier(0.22, 0.1, 0.22, 1);
}
html:not(.menu-revealed) .header { transform: translateY(var(--intro-shift, 22vh)); }
.header-separator { visibility: hidden; }
html.menu-revealed .header-separator { visibility: visible; }
.content-switcher summary,
.content-switcher > .contact,
.content-switcher > .language-switch {
  position: fixed;
  top: var(--nav-fixed-top);
  z-index: 31;
}
#projects-toggle { left: var(--page-edge); }
#bio-toggle { left: calc(var(--page-edge) + 4.8rem + var(--nav-gap)); }
.content-switcher > .contact { left: calc(var(--page-edge) + 6.6rem + var(--nav-gap) * 2); }
.content-switcher > .language-switch--en { left: calc(var(--page-edge) + 10.8rem + var(--nav-gap) * 3); }
.content-switcher > .language-switch--de { left: calc(var(--page-edge) + 12.7rem + var(--nav-gap) * 3); }
html.menu-revealed body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--nav-fixed-top) + 3rem);
  background: #fff;
  pointer-events: none;
  z-index: 30;
}
html.language-changing body { opacity: 0; transition: opacity 360ms ease-in-out; }
html.language-changed body { transition: opacity 540ms ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  html.language-changing body, html.language-changed body { transition: none; }
}
#bio-text { scroll-margin-top: calc(var(--nav-fixed-top) + 3rem + 2px); }
@media (max-width: 40rem) {
  :root { --page-edge: 1.25rem; --header-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .header { transition: none; }
}

.german-letter-source, .english-letter-source, .extra-letter-source { position: fixed; left: 1px; bottom: 1px; width: calc(100vw - 2px); opacity: 0; pointer-events: none; z-index: -1; }
.german-title-name { color: #a3222a; font-weight: 700; }
.german-title-role { color: #111; font-weight: 400; }
.german-plus { color: #a3222a; font-weight: 700; }
.german-menu { color: #111; font-weight: 700; }
