/* ===========================================================
   ARCHIVE INDEX — Cover (the cabinet room)
   =========================================================== */

body {
  background:
    radial-gradient(120% 90% at 50% -10%, #22345A 0%, transparent 55%),
    linear-gradient(180deg, #0F1830 0%, #0A1120 100%);
  min-height: 100vh;
}

.cabinet-room {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 40px;
  position: relative;
}

.room-header {
  text-align: center;
  margin-bottom: 44px;
  animation: rise 0.7s var(--ease) both;
}

.room-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 14px;
}

.room-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 48px);
  color: var(--paper);
  margin: 0;
  letter-spacing: -0.01em;
}

.room-title span {
  color: var(--brass-light);
  font-style: italic;
  font-weight: 400;
}

.room-sub {
  font-size: 15px;
  color: #AEB8CC;
  max-width: 460px;
  margin: 16px auto 0;
  line-height: 1.8;
}

.room-footnote {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: #5C6B87;
  margin-top: 40px;
  text-align: center;
}

/* --- The cabinet: a grid of drawer fronts --- */

.cabinet {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 200px));
  gap: 22px;
  padding: 26px;
  background: linear-gradient(180deg, var(--wood-soft), var(--wood));
  border-radius: 10px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.04),
    inset 0 -6px 18px rgba(0,0,0,0.5),
    var(--shadow-lift);
  animation: rise 0.8s var(--ease) both;
  animation-delay: 0.1s;
}

.drawer {
  --delay: 0s;
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: linear-gradient(180deg, var(--wood-soft) 0%, var(--wood) 100%);
  border-radius: var(--radius-md);
  padding: 18px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 10px 18px -10px rgba(0,0,0,0.6);
  transform: translateY(0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--delay) * 1);
  position: relative;
}

.drawer::before {
  /* wood plank seams */
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 4px;
  pointer-events: none;
}

.drawer:hover,
.drawer:focus-visible {
  transform: translateY(-8px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 20px 30px -14px rgba(0,0,0,0.7);
}

.drawer:active {
  transform: translateY(-2px) scale(0.98);
}

.drawer.is-primary {
  transform: translateY(-6px);
  background: linear-gradient(180deg, #24365F 0%, #0F1B38 100%);
}
.drawer.is-primary:hover,
.drawer.is-primary:focus-visible {
  transform: translateY(-12px);
}

.drawer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood);
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  padding: 6px 10px;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 2px 4px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.drawer-icon {
  width: 34px;
  height: 34px;
  color: var(--paper-line);
  opacity: 0.85;
}
.drawer.is-primary .drawer-icon { color: var(--brass-light); opacity: 1; }

.drawer-pull {
  width: 46px;
  height: 18px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  box-shadow: 0 2px 3px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.4);
}

.drawer-hint {
  font-size: 10.5px;
  color: #7C8AA6;
  letter-spacing: 0.04em;
}
.drawer.is-primary .drawer-hint {
  color: var(--brass-light);
  font-weight: 600;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .cabinet {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 14px;
    padding: 18px;
  }
  .drawer { padding: 14px 10px 16px; }
}
