:root {
  --ink: #1b1a18;
  --muted: #6e6961;
  --paper: #f2eee7;
  --card: #fbf9f5;
  --line: #d9d1c6;
  --accent: #e15a3f;
  --dark: #242724;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(42, 34, 25, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  width: min(1440px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: .18em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-family: Georgia, serif; font-size: 20px; letter-spacing: 0; }
.header-link { font-size: 14px; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid currentColor; }

.hero {
  width: min(1440px, calc(100% - 48px));
  min-height: 710px;
  margin: 0 auto;
  padding: 76px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: clamp(50px, 7vw, 120px);
  align-items: center;
}
.eyebrow { margin: 0 0 18px; text-transform: uppercase; font-size: 12px; font-weight: 750; letter-spacing: .16em; color: var(--accent); }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
h1 { max-width: 700px; font-size: clamp(54px, 6.4vw, 102px); line-height: .93; }
.hero-text { max-width: 610px; margin: 30px 0 32px; color: var(--muted); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 25px; border-radius: 999px; background: var(--ink); color: white; text-decoration: none; font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.primary-action:hover { transform: translateY(-2px); background: var(--accent); }
.hero-stats { display: flex; gap: 34px; margin: 48px 0 0; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { font-family: Georgia, serif; font-size: 30px; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: 12px; }
.hero-collage { position: relative; min-height: 540px; }
.hero-photo { position: absolute; margin: 0; overflow: hidden; background: #ddd5ca; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { inset: 20px 10% 20px 19%; border-radius: 48% 48% 22px 22px; transform: rotate(1.5deg); }
.hero-photo-top { width: 34%; aspect-ratio: 1; top: 0; left: 0; border-radius: 50%; transform: rotate(-5deg); }
.hero-photo-bottom { width: 36%; aspect-ratio: 4 / 3; right: 0; bottom: 0; border-radius: 20px; transform: rotate(5deg); }

.catalog { padding: 96px max(24px, calc((100% - 1440px) / 2)); background: var(--card); border-radius: 40px 40px 0 0; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: 40px; align-items: end; margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(44px, 5vw, 74px); line-height: 1; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.65; }
.album-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 46px; }
.album-card { min-height: 168px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: inherit; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.album-card:hover, .album-card[aria-pressed="true"] { transform: translateY(-3px); border-color: var(--ink); background: #fff; }
.album-card-index { color: var(--muted); font-size: 12px; }
.album-card strong { font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.album-card span:last-child { color: var(--muted); font-size: 12px; }
.filters { position: sticky; z-index: 4; top: 12px; display: flex; gap: 8px; width: fit-content; max-width: 100%; margin: 0 auto 24px; padding: 7px; overflow-x: auto; background: rgba(242, 238, 231, .88); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(18px); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: white; }
.gallery-status { margin: 26px 0 18px; color: var(--muted); font-size: 13px; text-align: center; }
.gallery { columns: 4 250px; column-gap: 14px; }
.gallery-item { position: relative; width: 100%; margin: 0 0 14px; padding: 0; overflow: hidden; break-inside: avoid; border: 0; border-radius: 14px; background: #e5ded5; cursor: zoom-in; }
.gallery-item img { width: 100%; height: auto; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.gallery-item::after { content: attr(data-label); position: absolute; right: 9px; bottom: 9px; padding: 6px 9px; border-radius: 999px; background: rgba(22, 20, 18, .72); color: white; font-size: 10px; opacity: 0; transform: translateY(5px); transition: .25s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item:hover::after { opacity: 1; transform: none; }
.gallery-error { padding: 50px; text-align: center; color: var(--muted); }

footer { min-height: 190px; padding: 58px max(24px, calc((100% - 1440px) / 2)); display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; background: var(--dark); color: #f5f0e8; }
footer p { color: #aaa69f; font-size: 13px; text-align: center; }
footer > a:last-child { font-size: 13px; text-decoration: none; }
.footer-brand .brand-mark { background: #f5f0e8; color: var(--dark); }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: white; }
.lightbox::backdrop { background: rgba(15, 14, 13, .94); backdrop-filter: blur(14px); }
.lightbox-frame { width: 100%; height: 100%; display: grid; grid-template-columns: 78px minmax(0, 1fr) 78px; align-items: center; padding: 50px 18px 22px; }
.lightbox figure { min-width: 0; height: 100%; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox-image-wrap { min-height: 0; display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 105px); border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 14px 2px 0; color: #c7c2ba; font-size: 12px; }
.lightbox-close, .lightbox-arrow { border: 0; color: white; background: rgba(255,255,255,.09); cursor: pointer; }
.lightbox-close { position: fixed; z-index: 2; top: 16px; right: 18px; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1; }
.lightbox-arrow { width: 48px; height: 48px; justify-self: center; border-radius: 50%; font-size: 20px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-collage { min-height: 520px; }
  .section-heading { grid-template-columns: 1fr; }
  .album-strip { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}
@media (max-width: 600px) {
  .site-header, .hero { width: min(100% - 30px, 1440px); }
  .site-header { height: 76px; }
  .header-link { font-size: 12px; }
  .hero { min-height: 0; padding: 42px 0 62px; gap: 42px; }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-text { margin-top: 24px; }
  .hero-stats { gap: 22px; margin-top: 34px; }
  .hero-collage { min-height: 370px; }
  .hero-photo-main { inset: 5px 8% 8px 18%; border-radius: 44% 44% 18px 18px; }
  .catalog { padding: 68px 15px; border-radius: 28px 28px 0 0; }
  .section-heading { margin-bottom: 30px; }
  .album-strip { display: flex; overflow-x: auto; margin-right: -15px; padding-right: 15px; scrollbar-width: none; }
  .album-card { min-width: 190px; min-height: 145px; }
  .filters { margin-left: 0; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; border-radius: 9px; }
  footer { min-height: 210px; }
  .lightbox-frame { grid-template-columns: 52px minmax(0, 1fr) 52px; padding-inline: 2px; }
  .lightbox-arrow { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
