:root {
  --bg: #0e0e0d; --fg: #ecebe6; --muted: #8f8d86; --line: #2a2926; --accent: #d9b77e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --row: 260px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; line-height: 1.2; }
.muted { color: var(--muted); } .small { font-size: .875rem; }

.site-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 1.5rem clamp(1rem, 4vw, 3rem); }
.wordmark { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.site-header nav { display: flex; gap: 1.5rem; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--fg); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 3rem); color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 4rem; }

.hero { padding: 3rem clamp(1rem, 4vw, 3rem) 2rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); margin: 0; }
.tagline { color: var(--muted); margin: .5rem 0 0; font-size: 1.1rem; }

/* Justified rows: each tile grows in proportion to its aspect ratio. */
.grid { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 clamp(.5rem, 2vw, 1.5rem); }
.grid::after { content: ""; flex-grow: 999; }
.tile { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row)); overflow: hidden; background: #1a1a18; }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar); transition: opacity .3s, transform .6s; }
.tile:hover img { opacity: .85; transform: scale(1.015); }

.intro, .page-head { padding: 3rem clamp(1rem, 4vw, 3rem) 1.5rem; max-width: 46rem; }
.intro p, .prose p { font-size: 1.1rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button, button { display: inline-block; font: inherit; font-size: .9rem; padding: .6rem 1.1rem; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); text-decoration: none; cursor: pointer; border-radius: 2px; }
.button:hover, button:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.button.ghost { background: transparent; color: var(--fg); }
.crumb { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.crumb a { text-decoration: none; }

.albums { padding: 2rem clamp(1rem, 4vw, 3rem); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.album-card { text-decoration: none; display: grid; gap: .15rem; }
.album-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: .5rem; }
.album-title { font-family: var(--serif); font-size: 1.15rem; }
.album-count { color: var(--muted); font-size: .85rem; }

.photo-frame { margin: 0; padding: 0 clamp(.5rem, 2vw, 1.5rem); display: flex; justify-content: center; }
.photo-frame img { max-height: 86vh; width: auto; object-fit: contain; }
.photo-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 3rem; padding: 2rem clamp(1rem, 4vw, 3rem); max-width: 72rem; margin: 0 auto; }
.photo-info h1 { font-size: 2rem; margin: .3rem 0 .5rem; }
.caption { font-size: 1.1rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; font-size: .92rem; margin: 1.5rem 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.pager { display: flex; gap: 1.5rem; font-size: .9rem; }
.buy h2 { font-size: 1.25rem; margin: 0 0 .2rem; }
.buy h2:not(:first-child) { margin-top: 2rem; }
.buy-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.buy-label { font-size: .95rem; }
.terms { color: var(--muted); font-size: .8rem; margin-left: .35rem; }
.buy-row button { min-width: 5.5rem; }

.tier { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.tier h2 { font-size: 1.3rem; display: flex; justify-content: space-between; margin: 0 0 .25rem; }
.price { font-family: var(--sans); font-size: 1rem; color: var(--accent); }

@media (max-width: 760px) {
  :root { --row: 160px; }
  .photo-info { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-header nav { gap: 1rem; font-size: .8rem; }
}
