:root {
  --ink: #0a0a0a;
  --muted: #7d8187;
  --edge: #ebebea;
  --paper: #ffffff;
  --vinyl: #101010;
  --groove: #272727;
  color-scheme: light;
  font-family: "PingFang SC", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::-webkit-scrollbar { width: 0; height: 0; }

main { min-height: 100dvh; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.docs-records {
  width: min(100%, 1320px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 40px 20px 64px;
  transition: opacity .36s ease, transform .42s cubic-bezier(.16, 1, .3, 1);
}

.docs-records[data-leaving="true"] {
  opacity: 0;
  transform: scale(.99);
  pointer-events: none;
}

.signature-header {
  display: flex;
  align-self: center;
  justify-content: center;
  width: fit-content;
  margin: 0 0 clamp(32px, 6vh, 72px);
}

.signature {
  display: block;
  width: clamp(120px, 11vw, 156px);
  height: clamp(86px, 8vw, 112px);
  object-fit: contain;
  opacity: 0;
  animation: signature-in .72s cubic-bezier(.16, 1, .3, 1) .14s forwards;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2.75vw, 40px);
  align-items: start;
}

.record-card {
  --disc-size: min(100%, 280px);
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.record-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; border-radius: 8px; }

.record-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--disc-size);
  aspect-ratio: 1;
  opacity: 0;
  transform: translateY(56px);
  animation: card-rise .72s cubic-bezier(.16, 1, .3, 1) var(--arrival) forwards;
}

.record-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 3.2%, rgba(255,255,255,.065) 3.45% 3.75%, transparent 4.05% 5.8%),
    repeating-radial-gradient(circle at 50% 50%, #1d1d1d 0 1.6%, #111 1.85% 3.7%),
    radial-gradient(circle at 50% 50%, #343434 0 2%, #191919 2.4% 34%, #101010 34.5% 100%);
  box-shadow: 0 18px 34px rgba(0,0,0,.18), 0 5px 10px rgba(0,0,0,.15), inset 0 0 0 1px rgba(255,255,255,.08), inset 8px 8px 20px rgba(255,255,255,.025), inset -15px -18px 35px rgba(0,0,0,.42);
  transform: rotate(var(--entry-rotation)) scale(.74);
  animation: disc-settle 1.05s cubic-bezier(.16, 1, .3, 1) var(--arrival) forwards;
  will-change: transform;
}

.record-disc::before,
.record-disc::after {
  position: absolute;
  inset: 8%;
  z-index: 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: inherit;
  content: "";
}

.record-disc::after { inset: 15%; border-color: rgba(255,255,255,.045); }

.disc-spectrum {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 50%;
  opacity: .78;
  background:
    conic-gradient(from 203deg, transparent 0deg, rgba(255,255,255,.09) 11deg, transparent 27deg, transparent 139deg, rgba(255,255,255,.11) 150deg, transparent 169deg, transparent 268deg, rgba(255,255,255,.055) 279deg, transparent 294deg),
    linear-gradient(132deg, transparent 0 47%, rgba(255,255,255,.11) 49.25%, transparent 51%);
  mix-blend-mode: screen;
}

.disc-glint {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 13%;
  width: 25%;
  height: 8%;
  border-radius: 999px;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.2), transparent);
  filter: blur(3px);
  transform: rotate(-38deg);
}

.disc-label {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 41%;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 34%, rgba(255,255,255,.8), transparent 19%),
    radial-gradient(circle at center, #0a0a0a 0 5.5%, transparent 5.9%),
    #efe7d8;
  color: #28231e;
  box-shadow: inset 0 0 0 1px rgba(40,35,30,.1), 0 0 0 1px rgba(0,0,0,.24);
}

.disc-label::before {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(40,35,30,.26);
  border-radius: 50%;
  content: "";
}

.disc-label strong {
  position: absolute;
  top: 31%;
  font: 700 clamp(7px, .7vw, 10px)/1 Georgia, "Times New Roman", serif;
}

.disc-label em {
  position: absolute;
  bottom: 29%;
  font: italic 700 clamp(6px, .58vw, 8px)/1 Georgia, "Times New Roman", serif;
}

.disc-label i {
  position: relative;
  z-index: 2;
  width: 5%;
  aspect-ratio: 1;
  border: 1px solid #413c36;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px #28231e;
}

.label-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.label-ring text {
  fill: #4a4239;
  font-family: inherit;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .62px;
}

.record-caption {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 280px);
  min-height: 24px;
  margin-top: 18px;
  padding: 0 4px 4px;
  color: var(--ink);
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 500;
  line-height: 24px;
  letter-spacing: .015em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .24s ease, transform .32s cubic-bezier(.16, 1, .3, 1);
}

.caption-rule {
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  display: block;
  width: auto;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1) .08s;
}

.record-card:hover .record-disc,
.record-card:focus-visible .record-disc { animation: vinyl-spin 7.2s linear infinite; box-shadow: 0 30px 56px rgba(0,0,0,.28), 0 10px 22px rgba(0,0,0,.20), inset 0 0 0 1px rgba(255,255,255,.1), inset 8px 8px 20px rgba(255,255,255,.025), inset -15px -18px 35px rgba(0,0,0,.42); }

.record-card:hover .record-caption,
.record-card:focus-visible .record-caption { opacity: 1; transform: translateY(0); }

.record-card:hover .caption-rule,
.record-card:focus-visible .caption-rule { transform: scaleX(1); }

.record-card[data-opening="true"] .record-disc { animation: opening-spin .55s cubic-bezier(.16, 1, .3, 1) forwards; }

.opening-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes signature-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-rise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: translateY(0); } }
@keyframes disc-settle { 0% { transform: rotate(var(--entry-rotation)) scale(.74); } 72% { transform: rotate(calc(var(--entry-rotation) * -.08)) scale(1.022); } 100% { transform: rotate(0) scale(1); } }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
@keyframes opening-spin { to { transform: rotate(115deg) scale(1.035); } }

@media (max-width: 960px), (hover: none) {
  .docs-records { justify-content: flex-start; }
  .record-grid { grid-template-columns: repeat(2, 240px); justify-content: center; gap: 40px clamp(24px, 8vw, 72px); }
  .record-caption { opacity: 1; transform: none; }
  .caption-rule { transform: scaleX(1); }
  .record-card:active .record-disc { transform: scale(.98); }
  .record-card:hover .record-disc { animation: none; }
}

@media (max-width: 520px) {
  .docs-records { padding: 32px 20px 40px; }
  .signature-header { margin-bottom: 36px; }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .record-card { --disc-size: min(100%, 165px); }
  .record-caption { min-height: 24px; margin-top: 14px; padding: 0 4px 4px; font-size: 16px; line-height: 24px; }
  .record-harness .record-caption { width: max-content; max-width: none; font-size: 15px; overflow: visible; }
  .opening-status { margin-top: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .signature, .record-stage { opacity: 1; transform: none; }
  .record-disc { transform: none; }
}
