@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/sono-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  font-family: "Schibsted Grotesk", sans-serif;
  color: #2b2b22;
  background: #f4f4f0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.page {
  width: min(calc(100% - 48px), 760px);
  margin: 0 auto;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 2px;
  width: fit-content;
  margin-top: 8px;
  margin-left: -10px;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.icon-link:hover {
  color: #414c3c;
  background: #e8eae2;
}

.icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-github {
  -webkit-mask-image: url("/assets/brand-github.svg");
  mask-image: url("/assets/brand-github.svg");
}

.icon-x {
  -webkit-mask-image: url("/assets/brand-x.svg");
  mask-image: url("/assets/brand-x.svg");
}

.identity {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 58px;
}

.avatar {
  display: block;
  flex: none;
  width: 72px;
  height: 72px;
  border: 1px solid #dedfd6;
  border-radius: 50%;
  object-fit: cover;
}

.identity-copy h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.identity-copy p {
  margin: 0;
}

.identity-copy .role {
  margin-top: 4px;
  color: #565a4f;
  font-size: 14px;
  line-height: 1.4;
}

.identity-copy .intro {
  margin-top: 12px;
  color: #4f544a;
  font-size: 15px;
  line-height: 1.55;
}

.work {
  margin-top: 62px;
}

.work h2,
.experience h2 {
  margin: 0 0 18px;
  color: #65695d;
  font-family: "Sono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-list {
  border-top: 1px solid #dedfd6;
}

.work-item {
  display: grid;
  grid-template-columns: 30px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid #dedfd6;
  text-decoration: none;
}

.work-item:hover,
.work-item:focus-visible {
  background: #e8eae2;
}

.work-logo {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.work-category {
  width: fit-content;
  padding: 4px 7px;
  border: 1px solid #e0e2d9;
  border-radius: 999px;
  color: #656b60;
  background: #f1f2eb;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.work-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.work-description {
  color: #595e53;
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
}

.experience {
  margin-top: 60px;
  padding-bottom: 88px;
}

.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-list li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #dedfd6;
  font-size: 14px;
  line-height: 1.5;
}

.experience-list li:last-child {
  border-bottom: 1px solid #dedfd6;
}

.experience-years {
  color: #74786e;
  font-variant-numeric: tabular-nums;
}

.experience-list a {
  text-decoration-color: #a8aea1;
  text-underline-offset: 3px;
}

.experience-list a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid #596b50;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .page {
    width: min(calc(100% - 32px), 760px);
  }

  .identity {
    gap: 12px;
    margin-top: 44px;
  }

  .avatar {
    width: 56px;
    height: 56px;
  }

  .identity-copy h1 {
    font-size: 26px;
  }

  .identity-copy .role {
    font-size: 13px;
  }

  .identity-copy .intro {
    margin-top: 10px;
    font-size: 14px;
  }

  .work {
    margin-top: 50px;
  }

  .work-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 3px;
    padding: 12px 2px;
  }

  .work-logo {
    grid-row: 1 / span 2;
  }

  .work-name {
    grid-column: 2;
  }

  .work-category {
    grid-column: 3;
    grid-row: 1;
  }

  .work-description {
    grid-column: 2 / -1;
  }

  .experience {
    margin-top: 52px;
    padding-bottom: 64px;
  }

  .experience-list li {
    grid-template-columns: 104px 1fr;
    font-size: 13px;
  }
}

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