:root {
  --paper: #fbfaf8;
  --ink: #111111;
  --muted: #6b6864;
  --line: #d9d6d1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem 1.75rem;
}

.logo-link { display: block; width: min(480px, 84vw); }

.logo { width: 100%; }

#nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }

#nav a {
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.25rem;
}

#nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Opening photos, side by side like the original homepage */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
}

.diptych img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1rem 0;
}

.section.narrow { max-width: 680px; }

h2 {
  margin: 0 0 1.5rem;
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.bio { margin: 0; text-align: center; }

/* Music */
#music { text-align: center; }

.players { display: grid; gap: 1rem; }

.players:not(:empty) { margin-bottom: 1.5rem; }

.players iframe { display: block; width: 100%; border: 0; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--ink);
  font-size: 1.15rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.button:hover { background: var(--ink); color: var(--paper); }

.button[hidden] { display: none; }

/* Photos */
.gallery {
  columns: var(--cols, 3);
  column-gap: 0.75rem;
}

.gallery.few { max-width: 900px; margin: 0 auto; }

.gallery button {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  break-inside: avoid;
}

.gallery img { width: 100%; }

/* Contact */
.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a { text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  margin-top: 4.5rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

/* Full-screen photo viewer */
.viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 10, 0.96);
}

.viewer[open] { display: flex; align-items: center; justify-content: center; }

.viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.viewer-btn {
  position: absolute;
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  font: 400 2rem/1 Georgia, serif;
  cursor: pointer;
}

.viewer-btn:focus-visible { outline-color: #fff; }

.viewer-close { top: 0.75rem; right: 0.75rem; }

.viewer-prev { left: 0.75rem; top: calc(50% - 24px); }

.viewer-next { right: 0.75rem; top: calc(50% - 24px); }

.viewer-btn[hidden] { display: none; }

@media (max-width: 600px) {
  body { font-size: 1.2rem; }
  .site-header { padding-top: 1.5rem; }
  .section { padding-top: 3.5rem; }
  .gallery { column-gap: 0.5rem; }
  .gallery button { margin-bottom: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
