:root {
  --bg: #faf7f2;
  --ink: #1f1b16;
  --muted: #6e665c;
  --rule: #e4ddd2;
  --accent: #b5473a;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
a { color: inherit; }
header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 20px;
  text-align: center;
}
header .site-title {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: normal;
  letter-spacing: 0.02em;
}
header .site-title a { text-decoration: none; }
nav { margin-top: 14px; }
nav a {
  display: inline-block;
  margin: 0 14px;
  padding: 4px 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--ink); }
nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px 60px;
}
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--rule);
}

/* gallery */
.gallery {
  columns: 3 300px;
  column-gap: 28px;
}
.work {
  break-inside: avoid;
  margin: 0 0 32px;
}
.work a { display: block; text-decoration: none; }
.work img {
  display: block;
  width: 100%;
  height: auto;
  background: #e9e3da;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.08);
}
.work figcaption { margin-top: 10px; font-size: 15px; line-height: 1.4; }
.work .title { display: block; }
.work .detail { color: var(--muted); font-size: 14px; }
.sold { color: var(--accent); font-style: italic; }

/* lightbox */
dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  margin: 0;
}
dialog.lightbox::backdrop { background: rgba(20, 16, 12, .94); }
.lightbox figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #f2ede6;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.lightbox figcaption { margin-top: 14px; text-align: center; font-size: 16px; }
.lightbox figcaption .title { display: block; }
.lightbox figcaption .detail { color: #bfb5a8; font-size: 14px; }
.lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #f2ede6;
  font: 44px/1 Georgia, serif;
  padding: 20px 14px;
  cursor: pointer;
  opacity: .7;
}
.lightbox button:hover { opacity: 1; }
.lightbox .prev { left: 4px; }
.lightbox .next { right: 4px; }
.lightbox .close { top: 10px; right: 10px; transform: none; font-size: 32px; }

/* raps */
.tracks { list-style: none; padding: 0; margin: 0 auto; max-width: 680px; }
.tracks li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.tracks li:last-child { border-bottom: 0; }
.tracks .track-title { margin: 0 0 10px; font-size: 20px; font-weight: normal; }
.tracks .year { color: var(--muted); font-size: 15px; margin-left: 8px; }
.tracks audio { width: 100%; display: block; }

/* about */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 {
  font-weight: normal;
  font-size: 26px;
  letter-spacing: 0.02em;
  margin: 36px 0 12px;
}
.prose h1:first-child { margin-top: 10px; }
.prose p { margin: 0 0 18px; }
@media (max-width: 600px) {
  header { padding-top: 28px; }
  nav a { margin: 0 9px; }
  .gallery { column-gap: 18px; }
}
