:root {
  color-scheme: light;
  --ink: #171a21;
  --muted: #5d6572;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --line: #d8dde5;
  --green: #24a37a;
  --red: #c94d5f;
  --yellow: #d7a62d;
  --shadow: 0 24px 70px rgba(23, 26, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(216, 221, 229, 0.62) 1px, transparent 1px),
    linear-gradient(180deg, rgba(216, 221, 229, 0.62) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: min(680px, calc(100svh - 88px));
  display: block;
  padding: clamp(42px, 8vh, 76px) 0 clamp(24px, 5vh, 44px);
}

.hero > * {
  min-width: 0;
}

.intro {
  width: 100%;
  min-width: 0;
  max-width: 870px;
}

.profile-topline {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.profile-photo {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(23, 26, 33, 0.18);
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(23, 26, 33, 0.12);
}

.role {
  min-width: 0;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: 6.8rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  width: min(100%, 760px);
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 1.35rem;
}

.profile-brief {
  width: min(100%, 820px);
  min-width: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 1.04rem;
  overflow-wrap: break-word;
}

.profile-brief p {
  margin-bottom: 0;
}

.profile-highlights {
  width: min(100%, 820px);
  min-width: 0;
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.profile-highlights li {
  min-width: 0;
  position: relative;
  padding-left: 18px;
  overflow-wrap: break-word;
}

.profile-highlights li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.projects {
  max-width: 1120px;
  padding: 22px 0 82px;
}

.section-heading {
  display: block;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 2.35rem;
  line-height: 1.05;
}

.catalogue-sections {
  display: grid;
  gap: 42px;
}

.catalogue-section {
  min-width: 0;
}

.catalogue-section-heading {
  width: min(100%, 760px);
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.catalogue-section-heading h3 {
  margin-bottom: 0;
  font-size: 1.32rem;
  line-height: 1.15;
}

.catalogue-section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.catalogue-item {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.catalogue-item > * {
  min-width: 0;
}

.catalogue-item:hover {
  border-color: rgba(23, 26, 33, 0.34);
  box-shadow: 0 12px 32px rgba(23, 26, 33, 0.08);
}

.catalogue-thumb {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 26, 33, 0.04);
}

.catalogue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalogue-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 18px;
}

.project-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.project-description {
  color: var(--muted);
}

.project-url {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    max-width: 9ch;
    font-size: 5.2rem;
  }

  .catalogue-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell,
  .site-footer {
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
  }

  body {
    background-size: 34px 34px;
  }

  .profile-topline {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .profile-photo {
    width: 68px;
    height: 68px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .lede {
    width: 100%;
    max-width: 100%;
    font-size: 1.1rem;
    overflow-wrap: break-word;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .catalogue-grid {
    gap: 14px;
  }

  .catalogue-copy {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 3.1rem;
  }
}
