:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #626765;
  --paper: #f7f7f4;
  --white: #ffffff;
  --line: #d9ded8;
  --forest: #27453f;
  --tomato: #b14d3d;
  --gold: #c79f56;
  --sky: #8aa6b7;
  --shadow: 0 18px 48px rgba(18, 25, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 11px;
  height: 11px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(199, 159, 86, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
}

.compact-header {
  color: var(--ink);
  background: rgba(247, 247, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.68));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(940px, calc(100% - 32px));
  padding: 110px 0 76px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(58px, 11vw, 146px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  display: grid;
  gap: 8px;
  width: min(680px, 100%);
  margin-top: 22px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.65;
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
}

.hero-splash {
  position: absolute;
  right: clamp(-92px, -6vw, -42px);
  bottom: clamp(30px, 3vw, 52px);
  z-index: 2;
  width: max-content;
  max-width: min(440px, 50vw);
  color: #ffd84b;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.16;
  text-align: center;
  text-shadow:
    2px 2px 0 #151515,
    -1px 2px 0 #151515,
    2px -1px 0 #151515,
    0 0 14px rgba(255, 216, 75, 0.3);
  transform: rotate(-14deg);
  transform-origin: center;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.hero-splash:hover {
  color: #ffe979;
  transform: rotate(-14deg) scale(1.06);
}

.hero-copy p {
  margin-bottom: 0;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.featured-section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 7vw, 96px);
}

.subpage {
  padding-top: 76px;
}

.page-hero {
  padding: clamp(62px, 10vw, 126px) clamp(18px, 7vw, 96px) clamp(34px, 6vw, 72px);
}

.compact-page-hero {
  padding-bottom: 28px;
}

.page-hero h1,
.about-page h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(46px, 8vw, 104px);
}

.page-hero > p:last-child,
.detail-head > p:last-child {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.section-head {
  width: min(840px, 100%);
  margin-bottom: clamp(34px, 6vw, 74px);
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--tomato);
}

.section-head > p:last-child,
.category-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.section-head > p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
}

.category-sections {
  display: grid;
  gap: clamp(48px, 7vw, 92px);
}

.category-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  padding-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

.category-head {
  position: sticky;
  top: 90px;
}

.category-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  color: var(--tomato);
  font-size: 14px;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.photo-card {
  grid-column: span 2;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.photo-card:nth-child(1) {
  grid-column: span 3;
}

.photo-card:nth-child(2) {
  grid-column: span 3;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #d7dbd4;
  box-shadow: var(--shadow);
}

.photo-card:nth-child(1) .photo-frame,
.photo-card:nth-child(2) .photo-frame {
  aspect-ratio: 16 / 11;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.photo-card:hover img {
  transform: scale(1.045);
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
}

.photo-meta strong {
  font-size: 16px;
  line-height: 1.25;
}

.photo-meta span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.photo-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
}

.album-list-section,
.album-detail-section,
.search-results {
  padding: 0 clamp(18px, 7vw, 96px) clamp(58px, 8vw, 112px);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.album-card,
.search-result-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.album-cover,
.search-thumb {
  display: block;
  overflow: hidden;
  background: #d7dbd4;
}

.album-cover {
  aspect-ratio: 4 / 3;
}

.album-cover img,
.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.album-card:hover img,
.search-result-card:hover img {
  transform: scale(1.04);
}

.album-card-copy {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.album-card-copy strong {
  font-size: 22px;
  line-height: 1.2;
}

.album-card-copy span,
.album-card-copy small {
  color: var(--muted);
  line-height: 1.6;
}

.detail-head {
  max-width: 860px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.text-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--tomato);
  font-weight: 800;
}

.about-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: center;
  padding: clamp(58px, 9vw, 126px) clamp(18px, 7vw, 96px);
}

.about-page-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #d7dbd4;
}

.about-page-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-page-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.contact-item span {
  color: var(--tomato);
  font-weight: 800;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(780px, 100%);
  margin-top: 28px;
}

.search-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.search-form input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(39, 69, 63, 0.12);
}

.primary-search-button {
  min-height: 48px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  padding: 0 18px;
  color: var(--white);
  background: var(--forest);
  font-weight: 800;
  cursor: pointer;
}

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

.search-result-card {
  grid-template-columns: 150px minmax(0, 1fr);
  box-shadow: none;
}

.search-thumb {
  aspect-ratio: 4 / 3;
}

.search-result-card > span:last-child {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
}

.search-result-card small {
  color: var(--tomato);
  font-weight: 800;
}

.search-result-card strong {
  font-size: 18px;
}

.search-result-card em {
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 14px 20px;
  color: var(--forest);
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: var(--forest);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 22px;
  background: rgba(8, 10, 10, 0.92);
}

.lightbox.is-open {
  display: grid;
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  color: var(--white);
}

.lightbox figcaption span {
  color: rgba(255, 255, 255, 0.62);
}

.lightbox button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  font-size: 28px;
}

.lightbox-prev,
.lightbox-next {
  width: 54px;
  height: 72px;
  font-size: 46px;
}

@media (max-width: 960px) {
  .category-block {
    grid-template-columns: 1fr;
  }

  .category-head {
    position: static;
  }

  .album-grid,
  .search-result-grid,
  .about-page {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero-content {
    padding: 92px 0 62px;
  }

  .hero-splash {
    right: 50%;
    bottom: -42px;
    max-width: min(310px, 86vw);
    transform: translateX(50%) rotate(-9deg);
  }

  .hero-splash:hover {
    transform: translateX(50%) rotate(-9deg) scale(1.04);
  }

  .hero-copy {
    margin-top: 56px;
  }

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

  .photo-card,
  .photo-card:nth-child(1),
  .photo-card:nth-child(2) {
    grid-column: auto;
  }

  .photo-frame,
  .photo-card:nth-child(1) .photo-frame,
  .photo-card:nth-child(2) .photo-frame {
    aspect-ratio: 4 / 5;
  }

  .photo-meta {
    display: block;
  }

  .photo-meta span {
    display: block;
    margin-top: 5px;
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 16px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 56px;
    font-size: 34px;
  }

  .search-form,
  .search-result-card {
    grid-template-columns: 1fr;
  }

  .search-thumb {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

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

  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    bottom: 18px;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }

  .lightbox figcaption {
    display: block;
  }

  .lightbox figcaption span {
    display: block;
    margin-top: 6px;
  }
}
