:root {
  --bg: #0b0b0b;
  --text: #7f7f7f;
  --text-hover: #2a2a2a;
  --max-width: 550px;
  --rule: rgba(255, 255, 255, 0.17);
  --space-1: 8px;
  --space-2: 16px;
  --space-5: 40px;
  --space-15: 120px;
  --space-16: 137px;
  --space-17: 165px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  position: relative;
  font-weight: 400;
}

  body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 3px 3px, 2px 2px, 4px 4px;
  opacity: 0.35;
  z-index: 0;
}

* {
  font-weight: 400;
}

.page {
  width: min(var(--max-width), calc(100% - 2.8rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  text-align: left;
  display: grid;
  gap: 0;
  position: relative;
  z-index: 1;
}

.site-head {
  max-width: var(--max-width);
  margin-top: 20vh;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-link {
  display: block;
  text-align: left;
  margin: 0 0 0.6rem;
}

.wordmark {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.09em;
  text-transform: none;
}

.tiny-nav {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.45rem 0 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: #9a9a9a;
  /* width: 100%; */
}

.tiny-nav a {
  text-decoration: none;
}

.top-links {
  margin: 0.55rem 0 0;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.top-links a {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  transition: color 140ms ease;
}

.top-links svg {
  width: 24px;
  height: 24px;
  transition: stroke 140ms ease, fill 140ms ease;
}

.top-links .icon-stroke svg {
  stroke: currentColor;
  fill: none;
}

.top-links .icon-fill svg {
  fill: currentColor;
  stroke: none;
}

.top-links .icon-image img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) brightness(0.9);
  transition: filter 140ms ease;
}

.top-links a:hover .icon-image img,
.top-links .icon-image:hover img {
  filter: grayscale(1) brightness(1);
}

.top-links a:hover {
  color: var(--text-hover);
}

.rule {
  height: 1px;
  background: var(--rule);
  width: 100%;
  margin: var(--space-2) 0 0;
}

.gap-large {
  margin-top: var(--space-15);
}

#writing.section {
  margin-top: var(--space-16);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 140ms ease;
}

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

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

a:focus-visible {
  outline: 1px solid var(--text-hover);
  outline-offset: 2px;
}

h2 {
  margin: 0 0 0.7rem;
  margin-bottom: var(--space-1);
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  position: relative;
}


p {
  margin: 0;
  max-width: 52ch;
}

.bio {
  margin: var(--space-1) 0 0;
  display: grid;
  gap: var(--space-1);
}

.section {
  margin: 0;
  position: relative;
}

.section + .section {
  margin-top: var(--space-15);
}

#projects {
  margin-top: var(--space-17);
}

.spot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.spot-list li {
  margin-left: 48px;
  display: grid;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.4s ease;
  position: relative;
}

.spot-list li.is-dimmed {
  opacity: 1;
}

.spot-list li a {
  color: var(--text);
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.spot-list li a > span + span {
  margin-left: var(--space-1);
}

.project-inline {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-1);
  width: 100%;
  justify-content: flex-start;
}

.project-inline a {
  display: inline;
  width: auto;
  justify-content: initial;
}

.project-inline__links {
  display: inline-flex;
  gap: var(--space-1);
}

.project-inline__meta-link + .project-inline__meta-link {
  margin-left: -54px;
}
 
.project-inline__year {
  margin-left: auto;
} 

.project-title {
  pointer-events: none;
  cursor: default;
}

.item-desc {
  margin: 0;
  color: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 46ch;
  cursor: text;
  transition: color 140ms ease;
}

.detail-meta {
  margin: 0;
  color: #9a9a9a;
  font-size: 13px;
}

.detail-body {
  margin-top: var(--space-2);
  max-width: 46ch;
  line-height: 1.4;
}

.detail-shell {
  margin-top: var(--space-1);
}

.site-footer {
  margin-top: var(--space-5);
  text-align: center;
}

.footer-note {
  margin: 0 auto;
  font-size: 11px;
  color: #8e8e8e;
}

.spot-list li:hover:not(:has(.project-external:hover)),
.spot-list li:hover:not(:has(.project-external:hover)) .item-desc,
.spot-list li:hover:not(:has(.project-external:hover)) a:not(.project-external) {
  color: #cfcfcf;
}

.project-inline .project-external:hover,
.project-inline .project-external:focus-visible {
  color: #cfcfcf;
}

.muted-list {
  color: var(--text);
}

@media (max-width: 780px) {
  .page {
    width: calc(100% - 1.5rem);
  }

  .spot-list li {
    gap: 0.7rem;
  }
}
