@font-face {
  font-family: Inter;
  src: url("assets/inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F8F6F1;
  --ink: #17262C;
  --muted: #47585D;
  --lake: #245B70;
  --line: #D8DFDA;
  --display: var(--body);
  --body: Inter, system-ui, sans-serif;
  --gutter: clamp(24px, 6.25vw, 104px);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font: 400 1em/1 var(--display); }
a { color: var(--lake); text-underline-offset: 0.22em; }
a:focus-visible { outline: 2px solid var(--lake); outline-offset: 5px; }

.wrap { width: min(1220px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.masthead, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.masthead { min-height: 78px; border-bottom: 1px solid var(--line); }
.imprint { font-size: 14px; font-weight: 650; letter-spacing: -0.025em; }
.profile-links { display: flex; gap: clamp(14px, 3vw, 32px); }
.profile-links a, .site-footer a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 13px; font-weight: 550; text-decoration: none; }
.profile-links a:hover, .site-footer a:hover { text-decoration: underline; }
.arrow { display: inline-block; font-weight: 500; transition: transform 180ms ease; }
a:hover .arrow { transform: translate(2px, -2px); }

.hero { padding-block: clamp(74px, 7vw, 104px) clamp(80px, 7.2vw, 108px); }
.hero--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); align-items: center; gap: clamp(34px, 4.4vw, 64px); }
.hero h1 { font-size: clamp(72px, 7.65vw, 110px); line-height: 0.93; letter-spacing: -0.035em; }
.hero p { max-width: 27ch; margin-top: 24px; color: var(--muted); font-size: clamp(21px, 1.85vw, 26px); line-height: 1.38; letter-spacing: -0.035em; text-wrap: pretty; }
.intro { animation: arrive 480ms ease-out both; }
.project-button { display: inline-flex; align-items: center; gap: 18px; min-height: 48px; margin-top: 32px; padding: 10px 17px; border: 1px solid var(--lake); color: var(--paper); background: var(--lake); font-size: 14px; font-weight: 600; text-decoration: none; transition: color 180ms ease, background-color 180ms ease; }
.project-button:hover { color: var(--lake); background-color: var(--paper); }
.project-button:hover .arrow { transform: translateY(3px); }

.particle-figure { min-width: 0; }
.particle-figure img { display: block; width: 100%; height: auto; background: var(--ink); }
.particle-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; padding-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.projects { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.projects h2 { padding-block: 28px 31px; font-size: clamp(42px, 4vw, 58px); letter-spacing: -0.025em; }
.project-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.6fr) minmax(185px, 1.2fr); align-items: start; gap: 24px 32px; border-top: 1px solid var(--line); padding-block: 32px 34px; }
.project-type { padding-top: 9px; color: var(--muted); font-size: 12px; font-weight: 620; letter-spacing: 0.065em; text-transform: uppercase; }
.project-details h3 { font-size: clamp(32px, 3.4vw, 47px); letter-spacing: -0.018em; text-wrap: balance; }
.project-details p { max-width: 56ch; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.project-action { display: inline-flex; align-items: center; justify-self: end; gap: 9px; min-height: 44px; font-size: 14px; font-weight: 620; text-decoration-color: var(--line); }
.project-action:hover { text-decoration-color: currentColor; }
.site-footer { justify-content: flex-end; min-height: 77px; border-top: 1px solid var(--line); }
.site-footer a:hover .arrow { transform: translateY(-3px); }


@keyframes arrive {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero--split { grid-template-columns: 1fr; max-width: 665px; }
  .hero { padding-block: 65px 66px; }
  .project-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 6px; }
  .project-type { grid-column: 1 / -1; padding-top: 0; }
}

@media (max-width: 540px) {
  .masthead { min-height: 60px; }
  .imprint { font-size: 13px; }
  .profile-links a { font-size: 12px; }
  .profile-links .arrow { display: none; }
  .hero { padding-block: 54px 58px; }
  .hero h1 { font-size: clamp(58px, 18vw, 76px); }
  .hero p { margin-top: 18px; }
  .project-button { margin-top: 23px; }
  .hero--split { gap: 35px; }
  .projects h2 { padding-block: 23px; }
  .project-row { grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding-block: 24px 20px; }
  .project-details h3 { text-wrap: pretty; }
  .project-details p { margin-top: 8px; }
  .project-action { justify-self: start; }
  .site-footer { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
