:root {
  --ink: #263040;
  --muted: #5f6d7c;
  --cream: #fffaf0;
  --sun: #ffd46b;
  --coral: #ee8059;
  --teal: #2c8d8a;
  --sky: #e5f4f5;
  --line: #dce4df;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: #166b71; text-underline-offset: 0.18em; }
a:hover { color: #0c4f57; }
.button-link { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; }
.button-link:hover { background: #166b71; color: #fff; }

.site-header { background: #fffdf8; border-bottom: 1px solid var(--line); }
.site-header__inner, .site-main, .site-footer { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand__mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--coral); color: white; }
.primary-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 0.9rem; }
.primary-nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
.primary-nav a[aria-current="page"] { color: #a64931; text-decoration: underline; }

.site-main { padding: 3rem 0 4rem; }
.page-intro { max-width: 46rem; margin-bottom: 2rem; }
.page-intro h1 { margin: 0 0 0.35rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.page-intro p { margin: 0; color: var(--muted); font-size: 1.15rem; }
.hero { padding: clamp(2rem, 6vw, 5rem); border-radius: 1.5rem; background: linear-gradient(135deg, var(--sky), #fff1c9); }
.hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 7vw, 4.7rem); line-height: 0.98; margin: 0; }
.hero p { max-width: 40rem; font-size: 1.2rem; }
.content-section { margin-top: 3.5rem; }
.content-section__header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.content-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.content-filters a { border: 1px solid var(--line); border-radius: 999px; color: var(--ink); padding: .4rem .85rem; text-decoration: none; }
.content-filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.content-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.card { padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 0.25rem 0.75rem rgb(38 48 64 / 5%); }
.character-card { border-top: 0.35rem solid var(--character-accent, var(--coral)); }
.card h2, .card h3 { margin: 0.25rem 0 0.5rem; line-height: 1.2; }
.card p { margin: 0.45rem 0; }
.eyebrow { margin: 0; color: #a64931; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.muted { color: var(--muted); }
.card img { display: block; width: calc(100% + 2.6rem); max-height: 15rem; margin: -1.3rem -1.3rem 1rem; border-radius: 1rem 1rem 0 0; object-fit: cover; }
.product-detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.product-detail__image { display: block; width: 100%; max-height: 34rem; border-radius: 1rem; object-fit: cover; }
.gallery-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; align-items: start; }
.gallery-detail__image { margin: 0; }
.gallery-detail__image img { display: block; width: 100%; max-height: 42rem; border-radius: 1rem; object-fit: cover; }
.gallery-detail__image figcaption { margin-top: 0.75rem; color: var(--muted); }
.destination-hero { max-width: 50rem; }
.destination-hero figcaption { margin-top: 0.75rem; color: var(--muted); }
.empty-state { padding: 1.25rem; border-left: 0.3rem solid var(--sun); background: #fff5d9; }
.site-footer { padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 700px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; }
  .primary-nav { justify-content: flex-start; }
  .site-main { padding-top: 2rem; }
  .product-detail, .gallery-detail { grid-template-columns: 1fr; gap: 1rem; }
}
