@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --foreground: #f0f0f0;
  --muted: rgba(240, 240, 240, 0.7);
  --quiet: rgba(240, 240, 240, 0.5);
  --underline: #888;
  --page-gutter: 6.4vw;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--background);
}

body {
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}

.cookie-banner {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid rgba(240, 240, 240, 0.18);
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.cookie-banner p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.cookie-actions button {
  padding: 9px 12px;
  border: 1px solid rgba(240, 240, 240, 0.25);
  border-radius: 7px;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.cookie-actions button:last-child {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}

.cookie-actions button:hover {
  border-color: var(--foreground);
}

.photo {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.photo-inner {
  width: 100%;
  height: 100%;
  background-image: url("/me2.webp");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.home-page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.home-page .photo {
  position: absolute;
}

.home-page .photo-inner,
.about-page .photo-inner {
  opacity: 0.7;
}

.home-page .photo::after,
.about-page .photo::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(to top, var(--background) 0%, rgba(10, 10, 10, 0) 41.5%);
}

.name {
  position: absolute;
  z-index: 1;
  top: 68px;
  left: var(--page-gutter);
  font-size: 20px;
  line-height: 56px;
  letter-spacing: -0.2px;
}

.home-content {
  position: absolute;
  z-index: 1;
  top: 223px;
  left: var(--page-gutter);
  max-width: 44.4vw;
}

.home-headline {
  font-size: max(32px, 4.375vw);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1.04px;
}

.roles {
  display: flex;
  flex-direction: column;
  gap: 0.9vw;
  margin-top: 3vw;
  padding-left: 2px;
}

.roles p {
  font-size: max(14px, 1.4vw);
  line-height: 32px;
  letter-spacing: -0.64px;
  opacity: 0.9;
}

.roles a,
.about-copy a {
  color: var(--foreground);
  text-decoration-color: var(--underline);
  text-decoration-skip-ink: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.16px;
}

.home-footer {
  position: absolute;
  z-index: 1;
  bottom: 50px;
  left: var(--page-gutter);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-underline-offset: 4px;
}

.about-page {
  --about-photo-base-opacity: 1;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: clip;
}

.about-page .photo {
  position: fixed;
  opacity: var(--about-photo-opacity, var(--about-photo-base-opacity));
}

.about-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding: 50vh var(--page-gutter) 50px;
}

.about-content {
  width: min(800px, 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.16px;
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.back-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.back-link:hover {
  color: var(--foreground);
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.about-title {
  max-width: 800px;
  font-size: clamp(52px, 6.5vw, 92px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.about-intro {
  margin-top: clamp(48px, 6vw, 80px);
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.about-copy {
  padding-top: clamp(64px, 8vw, 112px);
}

.about-copy section + section {
  margin-top: clamp(72px, 8vw, 112px);
}

.about-copy h2 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.about-copy p {
  max-width: 800px;
  color: rgba(240, 240, 240, 0.88);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.72;
  letter-spacing: -0.018em;
}

.about-copy p + p {
  margin-top: 22px;
}

.about-copy blockquote {
  margin-top: clamp(48px, 6vw, 76px);
  max-width: 760px;
  color: var(--foreground);
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.about-footer {
  margin-top: clamp(96px, 12vw, 176px);
}

.not-found-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--page-gutter);
}

.not-found-code {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.2;
}

.not-found-page h1 {
  margin-top: 20px;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.not-found-page > p:not(.not-found-code) {
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
}

.not-found-page a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-top: 42px;
  color: var(--foreground);
  font-size: 16px;
  text-decoration: none;
}

.not-found-page a:hover {
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-underline-offset: 4px;
}

.not-found-page svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  :root {
    --page-gutter: 27px;
  }

  .home-page .photo,
  .about-page .photo {
    width: 100%;
    height: 80%;
  }

  .home-page .photo {
    opacity: 0.54;
  }

  .about-page {
    --about-photo-base-opacity: 0.54;
  }

  .home-page .photo-inner,
  .about-page .photo-inner {
    transform: translateX(30%);
  }

  .name {
    top: 28px;
    left: 22px;
  }

  .home-content {
    top: auto;
    bottom: 92px;
    left: var(--page-gutter);
    max-width: calc(100% - 54px);
  }

  .home-headline {
    letter-spacing: -0.8px;
  }

  .home-footer {
    bottom: 40px;
    left: var(--page-gutter);
  }

  .footer-links {
    gap: 20px;
    font-size: 14px;
  }

  .about-shell {
    padding-bottom: 40px;
  }

  .about-title {
    font-size: clamp(48px, 17vw, 68px);
  }

  .about-intro {
    margin-top: 42px;
  }

  .about-copy {
    padding-top: 72px;
  }

  .about-copy section + section {
    margin-top: 72px;
  }

  .about-copy p {
    line-height: 1.66;
  }

  .about-footer {
    margin-top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-link,
  .back-link svg {
    transition: none;
  }
}
