/* ---------- base ---------- */
:root {
  --ink: #201f1c;
  --ink-soft: #6b6660;
  --paper: #fdfcfa;
  --paper-soft: #f2efe9;
  --line: #e5e0d6;
  --accent: #9c3048;
  --accent-soft: #f6e8ea;
  --max: 1200px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 24px -12px rgba(32, 31, 28, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav--transparent:not(.nav--scrolled) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav--transparent:not(.nav--scrolled) .nav-brand,
.nav--transparent:not(.nav--scrolled) .nav-links a { color: #fff; }
.nav--transparent:not(.nav--scrolled) .nav-toggle span { background: #fff; }

.nav-inner {
  max-width: var(--max); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-brand {
  font-size: 1.02rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  position: relative;
  color: var(--ink-soft); text-decoration: none; font-size: 0.86rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -20px;
  height: 2px; background: var(--accent);
}
@media (max-width: 760px) { .nav-links a[aria-current="page"]::after { display: none; } }
.nav-insta { display: inline-flex; align-items: center; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--ink);
    transition: transform 0.2s ease;
  }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 24px; width: 100%; text-align: center; color: var(--ink-soft); }
  .nav--transparent:not(.nav--scrolled) .nav-links a { color: var(--ink-soft); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 480px;
  display: grid; place-items: center; overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.35), rgba(20, 18, 16, 0.15) 40%, rgba(20, 18, 16, 0.55));
}
.hero-content {
  position: relative; z-index: 1; text-align: center; color: #fff;
  padding: 0 24px;
  animation: rise 0.7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 10px; letter-spacing: 0.01em; font-weight: 700;
}
.hero-content p {
  margin: 0 0 32px; font-size: 0.9rem; letter-spacing: 0.3em;
  text-transform: uppercase; opacity: 0.9; font-weight: 600;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 32px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
main .btn { background: var(--accent); color: #fff; }
main .btn:hover { background: var(--ink); }
.hero .btn { background: #fff; color: var(--ink); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.btn--small { padding: 9px 22px; font-size: 0.78rem; }

/* ---------- page head ---------- */
.page-head {
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 24px 8px;
}
.page-head--narrow { max-width: 868px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.page-lede { color: var(--ink-soft); margin: 10px 0 0; font-size: 1.05rem; }

/* ---------- gallery ---------- */
.gallery {
  max-width: var(--max); margin: 0 auto; padding: 44px 24px 88px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.gallery-item {
  display: block; aspect-ratio: 4 / 5;
  position: relative; border-radius: 10px; overflow: hidden;
  text-decoration: none; background: var(--paper-soft);
  box-shadow: 0 1px 2px rgba(32, 31, 28, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover, .gallery-item:focus-visible {
  box-shadow: var(--shadow); transform: translateY(-2px);
}
.gallery-item img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 32px 14px 12px;
  background: linear-gradient(transparent, rgba(10, 10, 14, 0.78));
  color: #fff; font-size: 0.8rem; line-height: 1.4;
  opacity: 0; transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 8, 10, 0.94);
  display: grid; place-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img {
  max-width: 92vw; max-height: 80vh; width: auto; height: auto;
  border-radius: 4px;
  cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none;
  transition: transform 0.2s ease;
}
.lightbox img.zoomed { cursor: zoom-out; }
.lightbox figcaption { color: #cfcfd6; font-size: 0.9rem; margin-top: 12px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 16px;
  opacity: 0.75; transition: opacity 0.15s ease;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 12px; right: 16px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- instagram (styled after the original Smash Balloon feed) ---------- */
.insta {
  max-width: min(45%, 580px);
  margin: 0 auto; padding: 48px 0 90px;
}
@media (max-width: 900px) { .insta { max-width: 86%; } }
.insta-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; text-decoration: none; color: var(--ink);
}
.insta-avatar { border-radius: 50%; }
.insta-head-text h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #111; }
.insta-head:hover .insta-head-text h3 { color: var(--accent); }
.insta-bio { margin: 4px 0 0; color: #555; font-size: 0.85rem; line-height: 1.45; }
.insta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 760px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .insta-grid { grid-template-columns: 1fr; } }
.insta-grid a {
  display: block; position: relative; aspect-ratio: 1;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 10px 15px -8px rgba(0, 0, 0, 0.24), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.insta-grid a:hover img { transform: scale(1.04); }
.insta-type-icon {
  position: absolute; top: 8px; right: 8px;
  color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

/* ---------- about ---------- */
.about { max-width: 820px; margin: 0 auto; padding: 24px 24px 90px; }
.about-nav {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 8px 0 40px;
}
.about-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.about-nav a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.about-section { padding-top: 48px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.about-section + .about-section { border-top: 1px solid var(--line); }
.about-section h2 {
  font-size: 1.2rem; letter-spacing: 0.04em;
  color: var(--ink); margin: 0 0 20px;
}

/* ---------- timeline (about entries) ---------- */
.timeline-group {
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); margin: 32px 0 6px;
}
.timeline-row {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.timeline-row:last-child { border-bottom: 0; }
.timeline-year {
  color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.timeline-text { color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 560px) {
  .timeline-row { grid-template-columns: 1fr; gap: 4px; }
  .timeline-year { color: var(--accent); }
}

/* ---------- news ---------- */
.news { max-width: 780px; margin: 0 auto; padding: 24px 24px 90px; }
.news-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: 0; }
.news-item--no-image { grid-template-columns: 1fr; }
.news-item-image {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; box-shadow: 0 1px 2px rgba(32, 31, 28, 0.06);
}
.news-item-date {
  display: block; color: var(--accent); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.news-item-body h2 { font-size: 1.15rem; margin: 0 0 10px; }
.news-item-text { color: var(--ink-soft); line-height: 1.6; }
.news-item-text p { margin: 0 0 12px; }
.news-empty { color: var(--ink-soft); padding: 24px 0; }
@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-item-image { aspect-ratio: 16 / 9; }
}

/* ---------- contact ---------- */
.contact {
  max-width: var(--max); margin: 0 auto; padding: 40px 24px 90px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 60px;
}
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
.contact-form { display: grid; gap: 18px; }
.contact-form label {
  display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink);
}
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper-soft); color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.contact-status { color: var(--ink-soft); font-size: 0.9rem; margin: 0; min-height: 1.4em; }
.contact-side h2 { font-size: 1.1rem; margin: 0 0 10px; }
.contact-side p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper-soft); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 26px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink-soft); font-size: 0.88rem;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink-soft); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
