@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', system-ui, sans-serif; background: #fff; color: #1a1a1a; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Layout ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Header / Nav ─── */
header { border-bottom: 1px solid #e8e8e8; position: sticky; top: 0; background: #fff; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.nav-logo { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.nav-logo img { height: 38px; width: auto; }
nav ul { list-style: none; display: flex; gap: 1.75rem; }
nav a { font-size: .85rem; font-weight: 500; color: #444; transition: color .2s; padding-bottom: 2px; }
nav a:hover { color: #1a1a1a; }
nav a.active { color: #1a1a1a; border-bottom: 2px solid #1a1a1a; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #1a1a1a; transition: .3s; }

/* ─── Footer ─── */
footer { border-top: 1px solid #e8e8e8; padding: 2.5rem 0; margin-top: 4rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .85rem; color: #666; text-align: center; }
.footer-inner a:hover { color: #1a1a1a; }
.footer-social { margin-top: .75rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .4rem; color: #666; font-size: .85rem; }
.footer-social a:hover { color: #1a1a1a; }

/* ─── Page header ─── */
.page-header { padding: 3rem 0 2rem; }
.page-header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.page-divider { border: none; border-top: 1px solid #e8e8e8; margin: 0 0 3rem; }

/* ─── Home slideshow ─── */
.home footer { margin-top: 0; }
.hero-show { position: relative; height: calc(100vh - 65px); height: calc(100svh - 65px); min-height: 420px; overflow: hidden; background: #1a1a1a; color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1); }
.hero-slide.on img, .hero-slide.was img { animation: hero-drift 9s ease-out forwards; }
@keyframes hero-drift { to { transform: scale(1.08); } }
.hero-show::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.6)); pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 4.25rem; z-index: 1; text-align: center; padding: 0 1.5rem; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-text h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.hero-text p { margin-top: .4rem; font-size: 1rem; opacity: .92; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 1.75rem; z-index: 1; display: flex; justify-content: center; gap: .5rem; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s, transform .3s; }
.hero-dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }
.hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition-duration: .01s; } .hero-slide.on img, .hero-slide.was img { animation: none; } }

/* ─── Gallery ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery-item { overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; background: #f0f0f0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ─── Lightbox ─── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox img[src=""] { visibility: hidden; }
.lightbox-close { position: absolute; top: 1.25rem; right: 1.75rem; color: #fff; font-size: 1.75rem; cursor: pointer; line-height: 1; opacity: .8; }
.lightbox-close:hover { opacity: 1; }

/* ─── Content sections ─── */
.content-section { margin-bottom: 3rem; }
.content-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; letter-spacing: -.01em; }
.content-section p { color: #444; max-width: 680px; }
.content-section p + p { margin-top: .75rem; }
.photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 1.5rem; }
.page-photos { grid-template-columns: repeat(4, 1fr); margin: 0 0 3rem; }
.page-photos[hidden] { display: none; }
.page-photos .gallery-item { border-radius: 4px; }

/* ─── Composer catalogue ─── */
.catalogue-heading { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #888; margin-bottom: 1rem; }
.catalogue { width: 100%; border-collapse: collapse; }
.catalogue th { text-align: left; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #999; padding: .5rem .75rem; border-bottom: 2px solid #e8e8e8; }
.catalogue td { padding: .75rem; border-bottom: 1px solid #f2f2f2; font-size: .9rem; color: #444; }
.catalogue tr:last-child td { border-bottom: none; }
.catalogue td:first-child { font-weight: 600; color: #1a1a1a; }
.catalogue td.year { color: #888; font-size: .8rem; width: 60px; }
.catalogue td.duration { color: #888; font-size: .8rem; width: 80px; }

/* ─── Music Tools ─── */
.tools-intro { max-width: 600px; color: #555; margin-bottom: 2rem; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.tool-card { border: 1px solid #e8e8e8; border-radius: 8px; padding: 1.25rem; transition: box-shadow .2s, border-color .2s; display: block; }
.tool-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: #ccc; }
.tool-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: .3rem; }
.tool-card p { font-size: .78rem; color: #888; margin: 0; }
.tool-icon { font-size: 1.4rem; margin-bottom: .6rem; }

/* ─── Polyphonium Press ─── */
.shop-intro { max-width: 620px; color: #555; margin-bottom: 2rem; }
.shop-intro strong { color: #1a1a1a; }
.order-note { background: #f8f8f8; border-left: 3px solid #e8e8e8; padding: 1rem 1.25rem; font-size: .85rem; color: #555; margin-bottom: 2.5rem; border-radius: 0 4px 4px 0; }
.order-note a { color: #1a1a1a; text-decoration: underline; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 2rem; }
.product-card { border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; }
.product-img { aspect-ratio: 3/2; background: #f5f5f5; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder { color: #ccc; font-size: .8rem; }
.product-info { padding: 1.25rem; }
.product-info h3 { font-size: 1rem; font-weight: 700; }
.product-meta { font-size: .8rem; color: #888; margin: .25rem 0 1.25rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 700; font-size: 1rem; }
.btn-buy { background: #1a1a1a; color: #fff; padding: .5rem 1.1rem; border-radius: 4px; font-size: .85rem; font-weight: 500; transition: background .2s; display: inline-block; }
.btn-buy:hover { background: #333; }

/* ─── Instagram ─── */
.instagram-intro { max-width: 600px; color: #555; margin-bottom: 2rem; }
.ig-profile { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ig-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #f0f0f0; }
.ig-profile-text { flex: 1; min-width: 220px; }
.ig-name { font-weight: 700; font-size: 1.1rem; }
.ig-name a { font-weight: 500; color: #666; font-size: .95rem; }
.ig-name a:hover { color: #1a1a1a; }
.ig-counts { display: flex; gap: 1.25rem; font-size: .85rem; color: #666; margin-top: .15rem; }
.ig-counts strong { color: #1a1a1a; font-weight: 600; }
.ig-bio { font-size: .85rem; color: #444; margin-top: .4rem; white-space: pre-line; max-width: 560px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #f0f0f0; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.04); }
.ig-caption { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem; background: linear-gradient(transparent 40%, rgba(0,0,0,.65)); color: #fff; font-size: .8rem; line-height: 1.45; opacity: 0; transition: opacity .25s; }
.ig-tile:hover .ig-caption, .ig-tile:focus-visible .ig-caption { opacity: 1; }
.ig-type { position: absolute; top: .6rem; right: .6rem; width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.ig-type svg { width: 100%; height: 100%; fill: #fff; }
.ig-skeleton { animation: ig-pulse 1.4s ease-in-out infinite; }
@keyframes ig-pulse { 50% { background: #e6e6e6; } }
.ig-more { text-align: center; margin-top: 1.5rem; font-size: .9rem; }
.ig-more a { color: #444; border-bottom: 1px solid #ccc; }
.ig-more a:hover { color: #1a1a1a; border-color: #1a1a1a; }
.ig-error { padding: 3rem; text-align: center; background: #f8f8f8; border-radius: 8px; color: #888; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .ig-skeleton { animation: none; } .ig-tile img { transition: none; } }

/* ─── Responsive ─── */
/* ─── Booking ─── */
.booking-intro { color: #444; max-width: 680px; margin-bottom: 2rem; }
.booking-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.booking-option { border: 1px solid #e8e8e8; border-radius: 6px; padding: 1.75rem; display: flex; flex-direction: column; align-items: flex-start; }
.booking-option h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.booking-option p { color: #555; margin-bottom: 1.5rem; flex: 1; }
.booking-btn { background: #1a1a1a; color: #fff; padding: .7rem 1.5rem; border-radius: 4px; font-weight: 500; border: 1px solid #1a1a1a; transition: background .2s, color .2s; }
.booking-btn:hover { background: #333; }
.booking-btn-light { background: #fff; color: #1a1a1a; }
.booking-btn-light:hover { background: #f3f3f3; }

@media (max-width: 860px) {
  nav ul { gap: 1.1rem; }
  nav a { font-size: .8rem; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  nav { position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e8e8e8; transform: scaleY(0); transform-origin: top; transition: transform .2s; }
  nav.open { transform: scaleY(1); }
  nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  nav ul li a { display: block; padding: .75rem 1.5rem; font-size: .95rem; border-bottom: none !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-row { grid-template-columns: 1fr; }
  .page-photos { grid-template-columns: repeat(2, 1fr); }
  .booking-options { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.9rem; }
  .hero-text p { font-size: .9rem; }
  .page-header h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .ig-profile { gap: 1rem; }
  .ig-avatar { width: 64px; height: 64px; }
  .ig-follow { width: 100%; text-align: center; }
  .ig-caption { display: none; }
}
