:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #000000;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --soft: #71717a;
  --line: #27272a;
  --line-strong: #3f3f46;
  --media-bg: #050505;
  --radius: 8px;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-rounded: "SF Pro Rounded", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.label {
  margin: 0 0 8px;
  color: var(--soft);
  font-family: var(--font-rounded);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dossier {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}

.avatar-wrap {
  width: 104px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--media-bg);
  overflow: hidden;
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.identity h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-rounded);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.04;
  font-weight: 700;
  overflow-wrap: anywhere;
}

dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.9rem;
}

dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.description {
  margin-top: 22px;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
}

.description p {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 22px;
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--media-bg);
  overflow: hidden;
}

.gallery img,
.gallery video {
  width: 100%;
  display: block;
  background: var(--media-bg);
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery video {
  max-height: 520px;
}

.archive,
.not-found main {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 40px 0;
}

.archive h1,
.not-found h1 {
  margin: 0 0 24px;
  font-family: var(--font-rounded);
  font-size: clamp(2.1rem, 8vw, 4.8rem);
  line-height: 1;
}

.archive-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.archive-list > p {
  margin: 16px 0 0;
  color: var(--muted);
}

.archive-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.archive-item span {
  font-weight: 600;
}

.archive-item small {
  color: var(--muted);
}

@media (min-width: 680px) {
  .dossier {
    padding-top: 42px;
  }

  .hero {
    grid-template-columns: 148px 1fr;
    gap: 24px;
    padding-bottom: 26px;
  }

  .avatar-wrap {
    width: 148px;
  }

  dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
