:root {
  --paper: #f6f0df;
  --paper-warm: #fbf7ec;
  --ink: #2d2a22;
  --muted-ink: #68604d;
  --line: #cabc9f;
  --line-dark: #897d63;
  --leaf: #586949;
  --shadow: 0 18px 42px rgba(70, 57, 34, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.8), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(156, 136, 93, 0.12), transparent 18rem),
    linear-gradient(90deg, rgba(92, 72, 38, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(92, 72, 38, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(110deg, transparent 0 30%, rgba(255, 255, 255, 0.25) 38%, transparent 46%),
    repeating-linear-gradient(15deg, rgba(77, 62, 35, 0.025) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) 0 26px;
  text-align: center;
}

.kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 7px 18px;
  border-block: 1px solid var(--line-dark);
  color: var(--leaf);
  font-size: 0.82rem;
  font-variant-caps: small-caps;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: #1f1d18;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 0.92;
}

.intro {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--muted-ink);
  font-size: 1rem;
  line-height: 1.7;
}

.content {
  padding-bottom: 72px;
}

.collection {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 12px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.section-kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 5px 14px;
  border-block: 1px solid rgba(137, 125, 99, 0.64);
  color: var(--leaf);
  font-size: 0.78rem;
  font-variant-caps: small-caps;
}

h2 {
  margin: 0;
  color: #242017;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
}

.gallery {
  width: 100%;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: 22px;
}

.seasons-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  columns: initial;
}

.plate {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  padding: 10px 10px 14px;
  break-inside: avoid;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 252, 241, 0.72)),
    var(--paper-warm);
  border: 1px solid rgba(123, 106, 76, 0.38);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.plate::after {
  position: absolute;
  inset: 7px;
  z-index: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(126, 109, 79, 0.2);
  border-radius: 3px;
}

.plate a {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  outline-offset: 5px;
}

.plate a:focus-visible {
  outline: 2px solid var(--leaf);
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
  background: #f7f1e5;
  transition: transform 220ms ease, filter 220ms ease;
}

.plate:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.012);
}

.plate figcaption {
  position: relative;
  z-index: 1;
  margin: 12px 4px 0;
  color: var(--muted-ink);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 14px;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(251, 247, 236, 0.22), transparent 34rem),
    rgba(29, 25, 18, 0.82);
  backdrop-filter: blur(5px);
}

.lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(246, 240, 223, 0.96);
  border: 1px solid rgba(202, 188, 159, 0.75);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.lightbox-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid rgba(137, 125, 99, 0.35);
  background: rgba(251, 247, 236, 0.84);
}

.lightbox-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.lightbox-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(104, 96, 77, 0.42);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  cursor: pointer;
  font: 700 1rem/1 Georgia, "Times New Roman", serif;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
  border-color: var(--leaf);
  outline: none;
  background: #f4ecd9;
}

.lightbox-stage {
  display: block;
  overflow: auto;
  padding: 14px;
  overscroll-behavior: contain;
  text-align: center;
  touch-action: none;
}

.lightbox-image {
  display: block;
  width: auto;
  margin: 0 auto;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 112px);
  background: #f7f1e5;
  box-shadow: 0 16px 46px rgba(70, 57, 34, 0.28);
  user-select: none;
}

@media (min-width: 640px) {
  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .intro {
    font-size: 1.1rem;
  }

  .gallery {
    columns: 2;
  }

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

  .lightbox {
    padding: 22px;
  }

  .lightbox-toolbar {
    padding: 12px 14px;
  }

  .lightbox-stage {
    padding: 22px;
  }

  .lightbox-image {
    max-width: calc(100vw - 92px);
    max-height: calc(100vh - 134px);
  }
}

@media (min-width: 1040px) {
  h1 {
    font-size: 6.6rem;
  }

  h2 {
    font-size: 3.1rem;
  }

  .intro {
    font-size: 1.18rem;
  }

  .gallery {
    columns: 3;
    column-gap: 28px;
  }

  .plate {
    margin-bottom: 28px;
  }
}

@media (min-width: 1380px) {
  .gallery {
    columns: 4;
  }

  .seasons-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .plate img {
    transition: none;
  }

  .plate:hover img {
    transform: none;
  }
}
