@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/fraunces-latin.woff2") format("woff2-variations"),
    url("fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --paper: #d8e2ec;
  --paper-deep: #c5d3e0;
  --ink: #12151c;
  /* Slightly darker than guide #3D4654 for WCAG AA on paper (~4.6:1+) */
  --ink-muted: #35404f;
  --rule: #8aa0b5;
  --stamp: #c1121f;
  --stamp-ink: #ffffff;
  --page-max: 52rem;
  --index-max: 60rem;
  --font-display: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino,
    serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo,
    monospace;
}

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

html {
  color-scheme: only light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(180deg,
      var(--paper) 0%,
      var(--paper-deep) 100%);
  background-attachment: fixed;
}

.page {
  position: relative;
  width: min(100% - 2.5rem, var(--index-max));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.intro {
  max-width: var(--page-max);
  margin-bottom: 4rem;
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 12ch;
  animation: rise-in 280ms ease-out both;
}

.place {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  animation: rise-in 280ms ease-out 40ms both;
}

.positioning {
  margin: 1rem 0 0;
  max-width: 36ch;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.55;
  animation: rise-in 280ms ease-out 80ms both;
}

.contact-line {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  animation: rise-in 280ms ease-out 120ms both;
}

.contact-line a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.contact-line a:hover,
.contact-line a:focus-visible {
  text-decoration-color: var(--stamp);
}

.contact-line a:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

.section-label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.index+.index {
  margin-top: 4rem;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.project-list>li {
  border-bottom: 1px solid var(--rule);
}

.project-list>li:nth-child(1) .project {
  animation-delay: 140ms;
}

.project-list>li:nth-child(2) .project {
  animation-delay: 190ms;
}

.project-list>li:nth-child(3) .project {
  animation-delay: 240ms;
}

.project-list>li:nth-child(4) .project {
  animation-delay: 290ms;
}

.project-list>li:nth-child(5) .project {
  animation-delay: 340ms;
}

.project-list>li:nth-child(6) .project {
  animation-delay: 390ms;
}

.project {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  grid-template-areas:
    "logo body"
    "preview preview";
  gap: 0.85rem 1rem;
  align-items: start;
  min-height: 44px;
  padding: 1.15rem 0.75rem;
  margin: 0 -0.75rem;
  color: inherit;
  text-decoration: none;
  animation: rise-in 280ms ease-out both;
}

.project:hover,
.project:focus-visible {
  background-color: var(--paper-deep);
}

.project:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

.project-logo {
  grid-area: logo;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: color-mix(in srgb, var(--paper-deep) 55%, transparent);
}

.project-logo--empty {
  background: transparent;
}

.project-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.project-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: fit-content;
  max-width: 100%;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.05rem;
  transition: border-bottom-color 120ms ease;
}

.project:hover .project-heading,
.project:focus-visible .project-heading {
  border-bottom-color: var(--stamp);
}

.project-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.project-domain {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--ink-muted);
}

.project-arrow {
  display: inline-block;
  color: var(--ink-muted);
  font-weight: 400;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 120ms ease, transform 120ms ease;
}

.project:hover .project-arrow,
.project:focus-visible .project-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.project-summary {
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.project-stack {
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.project-preview {
  grid-area: preview;
  display: block;
  width: min(100%, 11rem);
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}

.project-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .page {
    padding: 4.5rem 0 5.5rem;
  }

  .intro {
    margin-bottom: 5.5rem;
  }

  .project {
    grid-template-columns: 3rem minmax(0, 1fr) 9rem;
    grid-template-areas: "logo body preview";
    gap: 0.75rem 1.5rem;
    align-items: center;
    padding: 1.25rem 0.85rem;
    margin: 0 -0.85rem;
  }

  .project-logo {
    width: 3rem;
    height: 3rem;
  }

  .project-title {
    font-size: 1.35rem;
  }

  .project-preview {
    width: 9rem;
  }

  .index+.index {
    margin-top: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .name,
  .place,
  .positioning,
  .contact-line,
  .project {
    animation: none;
  }

  .project-heading,
  .project-arrow {
    transition: none;
  }
}