:root {
  color-scheme: dark;
  --paper: #080808;
  --ink: #f5f2eb;
  --muted: #b7b0a8;
  --accent: #e9ac94;
  --rule: #41403d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
figure, p, h1 { margin: 0; }
img { display: block; max-width: 100%; }
main, footer { width: min(calc(100% - 2 * clamp(18px, 4vw, 64px)), 1120px); margin-inline: auto; }
.hero { width: min(100%, 580px); margin-inline: auto; padding-top: clamp(18px, 3vw, 44px); }
.cover img { width: 100%; height: auto; }
.intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-top: 16px; }
h1 { font-family: "Bodoni 72", Didot, Georgia, serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.download { font-size: .78rem; color: var(--muted); padding-block: 8px; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #292927;
  font-size: .8rem;
  font-style: normal;
}
.location { color: var(--muted); }
.contact .instagram { color: var(--muted); }
.contact .email { overflow-wrap: anywhere; }
.contact .phone, .contact .instagram { text-align: right; }
.contact a { padding-block: 4px; }
.book { padding-block: clamp(32px, 5vw, 64px); }
#series { display: grid; gap: clamp(28px, 5vw, 64px); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(10px, 2vw, 28px); width: min(100%, 920px); margin-inline: auto; }
.grid:has(.wide):has(.photo:nth-child(2)) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.photo { display: block; min-width: 0; border: 0; padding: 0; background: none; cursor: zoom-in; }
.photo:only-child { grid-column: 1 / -1; width: min(100%, 850px); justify-self: center; }
.photo img { width: 100%; height: auto; }
.photo:hover img { filter: brightness(.9); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
.brand { font-weight: 600; letter-spacing: .04em; }
.brand span { color: var(--accent); }
dialog { box-sizing: border-box; padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); width: min(calc(100% - 24px), 1100px); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: #080808ed; }
.viewer { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; align-items: center; padding: 10px; }
.viewer img { width: 100%; height: min(70dvh, 800px); object-fit: contain; }
.viewer button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); color: var(--ink); font: 24px/1 system-ui, sans-serif; cursor: pointer; }
.viewer .close { grid-column: 1 / -1; justify-self: end; }
.viewer p { grid-column: 1 / -1; text-align: center; font-size: .8rem; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 480px) {
  .intro { gap: 2px 14px; padding-top: 10px; }
  .grid, .grid:has(.wide):has(.photo:nth-child(2)) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .viewer { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 5px; padding: 6px; }
  .viewer button { width: 32px; height: 32px; }
}
