:root {
  --bg: #ffffff;
  --text: #1d1d17;
  --text-soft: rgba(29, 29, 23, 0.78);
  --text-muted: rgba(29, 29, 23, 0.45);
  --line: rgba(29, 29, 23, 0.12);
  --surface: rgba(29, 29, 23, 0.04);
  --art-bg: #f2f1ec;
  --icon: #000000;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Home */

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 640px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: flex;
  color: var(--icon);
  text-decoration: none;
  line-height: 0;
}

.social-link svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Document pages */

.doc {
  max-width: 688px;
  margin: 0 auto;
  padding: 48px 24px;
  line-height: 1.7;
}

.doc h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 20px;
}

.doc h2 {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 32px 0 0;
}

.doc p {
  margin: 16px 0;
  color: var(--text-soft);
}

.doc a:any-link {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.doc .back {
  margin-top: 40px;
  font-size: 15px;
}

.doc .back a:any-link {
  color: var(--text-muted);
}

.doc .back a:hover {
  color: var(--text);
}

.doc--wide {
  max-width: 1008px;
  line-height: 1.6;
}

.doc--wide h1 {
  margin-bottom: 16px;
}

.doc--wide p {
  margin: 0 0 24px;
}

/* Copyright registry */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.registry {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 14px;
}

.registry th,
.registry td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.registry th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--surface);
  white-space: nowrap;
}

.registry td {
  color: var(--text-soft);
}

.registry .title {
  color: var(--text);
  font-weight: 500;
}

.registry .art {
  width: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.registry .art button {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.registry .art img {
  display: block;
  width: 56px;
  height: 72px;
  object-fit: contain;
  object-position: center bottom;
  background: var(--art-bg);
  border-radius: 4px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[open] {
  display: flex;
}

.lightbox img {
  display: block;
  max-width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--art-bg);
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
