:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #23211d;
  --muted: #6d675f;
  --line: #d9d0c3;
  --accent: #2f6f73;
  --accent-dark: #1d4d50;
  --warm: #a85f3f;
  --shadow: 0 18px 55px rgba(39, 34, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 92vh;
  background: linear-gradient(180deg, rgba(247, 245, 239, 0.62), rgba(247, 245, 239, 1)),
    url("../img/099.jpg") center 18% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 208, 195, 0.8);
}

.topbar a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar a:hover {
  background: rgba(47, 111, 115, 0.11);
}

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 42px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 9vw, 6.8rem);
}

.hero-copy p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: #3f3a34;
  font-size: 1.15rem;
}

.hero-photo {
  margin: 0;
  border: 1px solid rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.summary-band,
.timeline-section,
.gallery-section {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-grid article {
  min-height: 150px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-grid span {
  display: block;
  color: var(--accent-dark);
  font-size: 1.45rem;
  font-weight: 850;
}

.summary-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.timeline-list {
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 124px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 32px;
  padding: 0 0 44px;
}

.entry::before {
  content: "";
  position: absolute;
  left: 118px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px var(--bg);
}

.entry-year {
  color: var(--accent-dark);
  font-size: 1.1rem;
  font-weight: 850;
}

.entry-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(39, 34, 28, 0.08);
}

.entry-card h3 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.entry-card p {
  margin: 14px 0 0;
  color: #443f38;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 5px 9px;
  border: 1px solid rgba(47, 111, 115, 0.3);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.image-tile,
.gallery-tile {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-tile img,
.gallery-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #e7e0d5;
}

.image-tile:hover img,
.gallery-tile:hover img {
  filter: saturate(1.08) contrast(1.04);
}

.full-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
}

.gallery-tile {
  position: relative;
}

.gallery-tile span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(35, 33, 29, 0.72);
  color: #fffdf8;
  font-size: 0.72rem;
  font-weight: 800;
}

.lightbox {
  width: min(94vw, 1120px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #13110f;
  color: #fffdf8;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(19, 17, 15, 0.75);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #0d0c0b;
}

.lightbox p {
  margin: 0;
  padding: 12px 16px 16px;
  color: #ece2d4;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  color: #13110f;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero-photo {
    transform: none;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-list::before {
    left: 8px;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 34px;
  }

  .entry::before {
    left: 2px;
  }

  .entry-card {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .topbar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
