@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --line: #d8d8d8;
  --text: #111111;
  --muted: #5f5f5f;
  --accent: #111111;
  --display: Palatino, "Palatino Linotype", "Book Antiqua", serif;
  --mono-sans: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono-sans);
}

body {
  min-height: 100vh;
}

.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor input,
.has-custom-cursor textarea {
  cursor: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #111111;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-100px, -100px);
  opacity: 0;
  transition: opacity 120ms ease;
  margin-left: -6px;
  margin-top: -6px;
}

.cursor-dot.is-visible {
  opacity: 1;
}

.landing-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.landing-shell {
  display: grid;
  gap: 18px;
  justify-items: start;
  width: fit-content;
  margin: 0 auto;
}

.landing-title {
  font-size: clamp(1.9rem, 3.8vw, 3.05rem);
  line-height: 0.94;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
}

.landing-page-didot .landing-title {
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
}

.landing-link {
  justify-self: start;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 72px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nav {
  display: inline-block;
  margin: 0 0 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

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

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-family: var(--display);
}

h2 {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono-sans);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--mono-sans);
}

.lede,
.muted {
  color: var(--muted);
}

.lede {
  font-size: 0.94rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: none;
}

.archive-page,
.artifact-page {
  margin: 0 auto;
  padding: 32px 20px 80px;
  font-family: var(--mono-sans);
}

.page-header {
  max-width: 760px;
  margin-left: 16px;
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-intro {
  max-width: 44ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.archive-page .page-intro {
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.artifact-header,
.artifact-section {
  margin-left: 16px;
  margin-right: 16px;
}

.artifact-section {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.artifact-section strong,
.meta-list strong {
  font-weight: 400;
  color: var(--text);
}

.section-stack {
  display: grid;
  gap: 1.35rem;
}

.section-head {
  display: grid;
  gap: 0.25rem;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.unit-card {
  display: grid;
  gap: 1rem;
  text-decoration: none;
}

.unit-card img,
.artifact-grid img {
  width: 100%;
  border-radius: 0;
  background: white;
  border: 1px solid var(--line);
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.artifact-figure {
  display: grid;
  gap: 0.9rem;
}

.artifact-figure h3 {
  margin-left: 2px;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  gap: 24px;
  justify-content: center;
  margin: 40px 0 0;
  width: 100%;
}

.artifact-card {
  display: grid;
  justify-items: center;
  padding: 20px;
  text-align: center;
}

.artifact-link {
  display: grid;
  justify-items: center;
  width: 100%;
}

.artifact-link:hover {
  text-decoration: none;
}

.artifact-card img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 16px;
  border: 0;
  background: transparent;
}

.artifact-grid img {
  border: 0;
  background: transparent;
}

.artifact-card code {
  display: inline-block;
  color: var(--muted);
  font-family: var(--mono-sans);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.meta-column {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  min-width: 0;
}

.meta-group {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding-top: 0.2rem;
  min-width: 0;
}

.meta-column .meta-group + .meta-group {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.meta-group h3 {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  padding-bottom: 0.2rem;
}

.meta-list div,
.meta-list span,
.meta-list strong {
  font-size: 14px;
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: anywhere;
}

.meta-group > div > span:first-child {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.meta-list div {
  padding-bottom: 0.35rem;
}

.meta-list code,
.code {
  font-family: var(--mono-sans);
  font-size: 0.92rem;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .archive-page,
  .artifact-page {
    padding-top: 24px;
  }

  .page-header {
    margin-left: 8px;
  }

  .artifact-header,
  .artifact-section {
    margin-left: 8px;
    margin-right: 8px;
  }

  #gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: stretch;
  }

  .artifact-card {
    width: 100%;
  }

  .artifact-link {
    width: 100%;
  }

  .artifact-card img {
    width: min(100%, 320px);
    height: auto;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .landing-shell {
    width: min(100%, fit-content);
  }
}
