:root {
  --bg: #f7f4ef;
  --bg-card: #ffffff;
  --ink: #1c1a17;
  --muted: #6b6560;
  --accent: #8b3a2a;
  --accent-hover: #6e2d21;
  --border: #e4ddd3;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1120px;
  --radius: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
}

.page-narrow { max-width: 640px; margin: 0 auto; }
.page-narrow-sm { max-width: 420px; margin: 0 auto; }

.fp-banner {
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.6rem 0;
  text-align: center;
}
.fp-banner a { color: #fff; text-decoration: underline; margin-left: 0.5rem; }
.fp-banner a:hover { color: #f7f4ef; }

.fp-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.fp-tagline strong { color: var(--ink); }

.delivery-specs {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.delivery-specs-note {
  margin: 0 0 1rem;
}

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--safe-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.logo span { color: var(--accent); }

.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.2s;
  min-height: 44px;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-block { width: 100%; display: block; }

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-with-gallery {
  padding-top: 2rem;
}

.hero-with-gallery .hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 auto 2rem;
  max-width: 920px;
}

.hero-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  aspect-ratio: 4 / 5;
}

.hero-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hero-gallery-item:hover img {
  transform: scale(1.03);
}

.hero-with-gallery .hero-content {
  text-align: center;
}

.section { padding: 3rem 0; }
.section-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: normal;
  margin: 0 0 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.card-img {
  aspect-ratio: 4/3;
  background: #ece7df;
  overflow: hidden;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { padding: 1rem 1.1rem 1.25rem; }
.card-body h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  font-weight: normal;
}
.card-meta { font-size: 0.85rem; color: var(--muted); }

.placeholder-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: linear-gradient(135deg, #ece7df, #ddd5c8);
}

.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}

.filters input, .filters select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.85rem;
  color: var(--ink);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
}

.artwork-image {
  background: #ece7df;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.artwork-image img { width: 100%; display: block; }

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.license-option {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.license-option:has(input:checked) {
  border-color: var(--accent);
  background: #faf7f4;
}

.license-option input { margin-right: 0.5rem; }
.license-price { font-weight: 600; float: right; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-group-checkbox label.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  cursor: pointer;
}
.form-group-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.messages { list-style: none; padding: 0; margin: 1rem 0; }
.messages li {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.messages .success { background: #e8f5e9; color: #2e7d32; }
.messages .error { background: #ffebee; color: #c62828; }
.messages .warning { background: #fff8e1; color: #f57f17; }

.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-weight: normal; }
.prose ul { padding-left: 1.25rem; }

.license-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.license-table th, .license-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.license-table th { background: #faf7f4; font-weight: 600; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.table-scroll .license-table {
  min-width: 36rem;
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 calc(2.5rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-legal p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-grid h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: normal;
  margin: 0 0 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  background: #ece7df;
  color: var(--muted);
}

.badge-paid { background: #e8f5e9; color: #2e7d32; }
.badge-pending { background: #fff8e1; color: #f57f17; }

.stripe-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-compact {
  padding: 3rem 0 2rem;
}

.hero-compact h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-licensing {
  padding-top: 2rem;
}


.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.section-header .section-title {
  margin: 0;
}

.section-link {
  font-size: 0.95rem;
  white-space: nowrap;
}

.section-note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 52ch;
}

.catalog-update-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

.catalog-update-note strong {
  color: var(--ink);
}

.section-note .catalog-update-note {
  margin: 0;
}

.section-note.centered {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.licensing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
}

.licensing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.licensing-card-image {
  display: block;
  aspect-ratio: 4/3;
  background: #ece7df;
  overflow: hidden;
}

.licensing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.licensing-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.licensing-card-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: normal;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.licensing-card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.licensing-card-body h3 a:hover {
  color: var(--accent);
}

.licensing-location {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.licensing-tier {
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  flex: 1;
}

.licensing-cta {
  width: 100%;
  margin-top: auto;
}

.collections-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.collection-card {
  text-decoration: none;
  color: inherit;
}

.bands {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bands-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-steps .sidebar-box h3 {
  margin-top: 0;
}

.pilot-preview .section-header {
  align-items: end;
}

.pilot-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.pilot-panel {
  min-width: 0;
}

.pilot-image-slot {
  min-height: 230px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f5ef, #fff);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

.pilot-image-real {
  border-style: solid;
  padding: 0;
  overflow: hidden;
  background: #f8f5ef;
}

.pilot-image-real img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
  object-fit: cover;
}

.pilot-note {
  max-width: 780px;
}

input[type="file"] {
  background: #fff;
}

.band-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: normal;
  margin: 0 0 0.5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

.about-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.about-facts {
  margin: 0;
}

.about-facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.85rem;
}

.about-facts dt:first-child {
  margin-top: 0;
}

.about-facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.about-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.licence-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .licence-summary-grid {
    grid-template-columns: 1fr;
  }
}

.licence-buy h2,
.licence-not h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: normal;
  margin: 0 0 1rem;
}

.licence-buy ul,
.licence-not ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.licence-not {
  background: #faf7f4;
}

.artwork-story p {
  margin-bottom: 1rem;
}


.about-aside h3 {
  font-family: var(--serif);
  font-weight: normal;
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.artwork-placeholder {
  min-height: min(50vw, 400px);
}

.form-error {
  color: #c62828;
}

.artwork-title {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.25;
}

.sidebar-heading {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: normal;
  margin: 0 0 0.75rem;
}

.sidebar-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ——— Responsive: tablet & mobile ——— */

@media (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo toggle" "nav nav";
    align-items: center;
  }

  .logo { grid-area: logo; }

  .nav-toggle {
    display: flex;
    grid-area: toggle;
  }

  .nav {
    grid-area: nav;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav .btn-primary {
    width: 100%;
    margin-top: 0.75rem;
    justify-content: center;
  }

  .detail-layout {
    padding: 1.5rem 0;
    gap: 1.5rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-compact {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-link {
    white-space: normal;
  }

  .license-price {
    float: none;
    display: block;
    margin-top: 0.35rem;
  }

  .about-cta .btn {
    flex: 1 1 auto;
    min-width: min(100%, 12rem);
  }
}

@media (max-width: 600px) {
  .fp-banner {
    font-size: 0.8rem;
    line-height: 1.45;
    padding: 0.55rem 0;
    text-align: left;
  }

  .fp-banner .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .fp-banner a {
    margin-left: 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero-with-gallery .hero-gallery {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .hero-with-gallery .hero-gallery .hero-gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .hero-with-gallery .hero-gallery .hero-gallery-item:not(:first-child) {
    aspect-ratio: 1;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters input,
  .filters select,
  .filters .btn {
    width: 100%;
  }

  .form-group input,
  .form-group textarea,
  .form-group select,
  .filters input,
  .filters select {
    font-size: 16px;
  }

  .licensing-grid,
  .grid {
    gap: 1.25rem;
  }

  .licensing-card-body {
    padding: 1rem 1.1rem 1.25rem;
  }

  .sidebar-box {
    padding: 1.15rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .bands-inner {
    gap: 1.5rem;
  }

  .section-note {
    max-width: none;
  }

  .prose {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
  }

  .chip {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
}
