:root {
  --bg: #1a1b1d;
  --main: #039942;
  --accent: #83f5b2;
  --text: #f2f2f2;
  --muted: #858b93;
  --mono: ui-monospace, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0M0 0V48' fill='none' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='1' stroke-dasharray='3 5'/%3E%3C/svg%3E")
    center top / 48px 48px var(--bg);
  font: 1rem/1.55 var(--mono);
}

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

a,
a:visited {
  color: var(--text);
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 3px;
}

#page {
  --page-pad-x: 1.25rem;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--page-pad-x) 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tile {
  position: relative;
  z-index: 1;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.cover-wrap {
  width: 100%;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  line-height: 0;
}

#cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
}

#photo {
  --photo-size: clamp(7rem, 28vw, 160px);
  width: var(--photo-size);
  aspect-ratio: 1;
  height: auto;
  margin-top: calc(var(--photo-size) / -2);
  margin-left: 0.35rem;
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 10px -5px var(--accent);
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

.identity {
  min-width: 0;
  margin-top: 0.75rem;
  padding-left: 0.35rem;
}

#name {
  font-size: clamp(1.35rem, 5.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

#name .first,
#name .last {
  display: inline;
  font-size: inherit;
}

#name .last {
  font-weight: 600;
}

.role {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2rem;
}

.about {
  flex: 1 1 18rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#bio {
  max-width: 38rem;
  text-wrap: pretty;
}

#bio em {
  font-style: normal;
  color: var(--accent);
}

#location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--muted);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.link-text {
  overflow-wrap: anywhere;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 40rem;
}

.projects h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.45rem;
  row-gap: 0.15rem;
  margin-bottom: 0.45rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.project h3 a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.project-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 3px;
}

.project-icon--github {
  border-radius: 0;
}

.project-status-sep,
.project-status {
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}

.project-status--short {
  display: none;
}

.project p {
  text-wrap: pretty;
}

@media (max-width: 40rem) {
  .cover-wrap {
    width: calc(100% + (2 * var(--page-pad-x)));
    max-width: none;
    margin-left: calc(-1 * var(--page-pad-x));
    border-radius: 0;
  }

  .project-status--full {
    display: none;
  }

  .project-status--short {
    display: inline;
  }
}
