:root {
  --text-primary: rgba(0, 0, 0, 0.92);
  --text-secondary: rgba(0, 0, 0, 0.52);
  --icon: rgba(0, 0, 0, 0.36);
  --border: rgba(0, 0, 0, 0.12);
  --fill: rgba(0, 0, 0, 0.06);
  --accent: #17766f;
  --on-accent: #ffffff;
  --background: #ffffff;
  --shot-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 0 10px 22px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11 11 5M6 5h5v5' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='6' height='6' rx='1.5'/%3E%3Cpath d='M10 4H5.5A1.5 1.5 0 0 0 4 5.5V10'/%3E%3C/g%3E%3C/svg%3E");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-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;
}

@media (prefers-contrast: more) {
  :root {
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.76);
    --icon: rgba(0, 0, 0, 0.84);
    --border: rgba(0, 0, 0, 0.52);
    --fill: rgba(0, 0, 0, 0.14);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.56);
    --icon: rgba(255, 255, 255, 0.36);
    --border: rgba(255, 255, 255, 0.14);
    --fill: rgba(255, 255, 255, 0.08);
    --accent: #5fbfae;
    --on-accent: #161514;
    --background: #161514;
    --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 16px 32px rgba(0, 0, 0, 0.55);
  }
}

@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --icon: rgba(255, 255, 255, 0.84);
    --border: rgba(255, 255, 255, 0.56);
    --fill: rgba(255, 255, 255, 0.18);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  max-width: 644px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  background-color: var(--background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 360px) {
  body {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }
}

::selection {
  background-color: var(--accent);
  color: var(--on-accent);
}

ul {
  list-style: none;
}

b,
h2 {
  font-weight: 500;
}

small,
p {
  color: var(--text-secondary);
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.48s ease-out;
}

a:active,
.links a.pressed {
  color: var(--accent);
  transition-duration: 0s;
}

a.external:active::after {
  background-color: var(--accent);
  transition-duration: 0s;
}

@media (hover: hover) {
  a:hover {
    color: var(--accent);
    transition-duration: 0s;
  }

  a.external:hover::after {
    background-color: var(--accent);
    transition-duration: 0s;
  }
}

a.external {
  --link-icon: var(--arrow);
}

a[href^="mailto:"] {
  --link-icon: var(--copy);
}

a.external::after {
  content: "";
  display: inline-block;
  position: relative;
  top: 3px;
  width: 16px;
  height: 16px;
  margin: 0 1px;
  background-color: var(--icon);
  mask: var(--link-icon) no-repeat center;
  -webkit-mask: var(--link-icon) no-repeat center;
  transition: background-color 0.48s ease-out;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 27px 0 17px;
}

header p {
  color: var(--text-primary);
  font-weight: 500;
}

header p:last-child {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

header small {
  font-weight: 400;
}

header time {
  padding-left: 4px;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 4px;
  padding-top: 28px;
}

.links li {
  position: relative;
}

.copy-status {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 4px;
  padding: 0 6px;
  border-radius: 4px;
  background-color: var(--fill);
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.48s ease-out, visibility 0s 0.48s;
}

.copy-status.shown {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

@media (pointer: coarse) {
  .links a::before,
  .project b a::before {
    content: "";
    position: absolute;
    inset: -12px -8px;
  }

  .project b a {
    position: relative;
  }
}

@media (max-width: 359px) {
  header {
    gap: 12px;
  }

  .links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: 20px;
    row-gap: 10px;
  }
}

.links a.external::after {
  top: 0;
  margin: 0;
}

.links kbd {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .links a.external::after {
    display: none;
  }

  .links kbd {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 4px;
    background-color: var(--fill);
    color: var(--icon);
    font-size: 10px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    transition: color 0.48s ease-out;
  }

  .links a:hover kbd,
  .links a.pressed kbd {
    color: var(--accent);
    transition-duration: 0s;
  }

  .links kbd {
    position: relative;
  }

  .links kbd::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    mask: var(--link-icon) no-repeat center / 14px;
    -webkit-mask: var(--link-icon) no-repeat center / 14px;
    opacity: 0;
  }

  .links a:hover kbd {
    color: transparent;
  }

  .links a:hover kbd::after {
    opacity: 1;
  }
}

.intro {
  padding-top: 28px;
}

.intro p {
  padding: 6px 0 5px;
  text-wrap: pretty;
}

@media (min-width: 800px) {
  .intro {
    padding: 56px 0 16px;
  }
}

.cv {
  padding: 17px 0 40px;
}

@media (min-width: 800px) {
  .cv {
    padding: 29px 0 40px;
  }
}

.cv > h2 {
  margin: 28px 0 16px;
}

.cv > ul > li {
  padding: 6px 0 16px;
  color: var(--text-secondary);
}

.cv b {
  display: block;
  color: var(--text-primary);
}

.cv a {
  color: inherit;
}

@media (hover: hover) {
  .cv a:hover {
    color: var(--accent);
  }
}

.cv > ul > li.project {
  display: grid;
  gap: 16px;
}

.cv > ul > li.project + li.project {
  margin-top: 12px;
}

.project p {
  padding: 8px 0;
}

@media (max-width: 559px) {
  .cv > ul > li.project {
    gap: 12px;
  }

  .cv > ul > li.project + li.project {
    margin-top: 24px;
  }

  .project p {
    padding: 2px 0 8px;
  }
}

@media (min-width: 560px) {
  .cv > ul > li.project {
    grid-template-columns: 244px 1fr;
    gap: 24px;
  }

  .project .shot {
    aspect-ratio: auto;
  }
}

.project b {
  margin-bottom: 2px;
}

.project a.external::after {
  background-color: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .project a.external::after {
    opacity: 0;
    transition-property: background-color, opacity;
  }

  .project:hover a.external::after,
  .project:focus-within a.external::after {
    opacity: 1;
    transition-duration: 0s;
  }
}

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--fill);
  outline: 1px solid var(--border);
  outline-offset: -1px;
}

.shot img {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shot-shadow);
}

@media (hover: hover) and (pointer: fine) {
  .shot img {
    filter: grayscale(1);
    transition: filter 0.48s ease-out;
  }

  .project:hover .shot img,
  .project:focus-within .shot img {
    filter: grayscale(0);
  }
}

.shot img.closer {
  width: 120%;
}

footer {
  padding: 17px 0 27px;
}