/* === RESET / BASE === */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #111;
  background: #fafafa;
}

/* === LAYOUT === */
.site-title {
  display: block;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-title:hover {
  color: #111;
}

main {
  max-width: 38rem;
  margin: 2rem auto 4rem;
  padding: 0 1.25rem;
}

/* === WORK PAGE === */
.work-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1.5rem;
}

.audio-player {
  display: block;
  width: 100%;
  margin-block: 1.5rem;
}

.work-prose p { margin: 0 0 1rem; }
.work-prose p:last-child { margin-bottom: 0; }

/* === INDEX PAGE === */
.work-index { list-style: none; margin: 0; padding: 0; }
.work-index li { margin-bottom: 0.75rem; }
.work-index a { color: #111; text-decoration: none; }
.work-index a:hover { text-decoration: underline; }

/* === PRINT SHEET (SCREEN PREVIEW) === */
.print-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.qr-cell {
  text-align: center;
  padding: 0.75rem;
}

.qr-cell svg {
  width: 100%;
  height: auto;
  max-width: 12rem;
}

.qr-cell-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.qr-cell-url {
  font-size: 0.75rem;
  font-family: monospace;
  color: #666;
  word-break: break-all;
}

/* === @media print === */
@media print {
  .site-title {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  main {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .print-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .qr-cell {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
