@import url("fonts.css");

:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --ivory: #faf8f2;
  --forest: #263d32;
  --pine: #354e40;
  --ink: #26392f;
  --muted: #565e51;
  --stroke: #dcd9ca;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
body:has(.lightbox[open]) { overflow: hidden; }
figure, h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #996330; outline-offset: 5px; }
.skip { position: fixed; top: .75rem; left: 1rem; z-index: 3; transform: translateY(-160%); padding: .5rem 1rem; background: var(--ivory); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 112px, 1312px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--stroke); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font: 600 1.72rem/1 var(--serif); white-space: nowrap; }
.brand-icon { display: block; flex: 0 0 auto; width: 4rem; height: auto; }
nav { display: flex; align-items: center; gap: clamp(1.2rem, 3.2vw, 3rem); }
nav a { font-size: .92rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .35rem; text-decoration-color: transparent; transition: text-decoration-color .2s ease; }
nav a:hover { text-decoration-color: currentColor; }
.hero { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); align-items: center; gap: clamp(2rem, 4vw, 5rem); padding-block: 4.1rem 5.2rem; }
.hero-copy { padding-block: .5rem; }
.eyebrow { font-size: .84rem; font-weight: 700; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.hero-location { color: var(--pine); margin-bottom: 1.38rem; }
.hero-location span { margin-inline: .12em; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(3.55rem, 6.7vw, 6.65rem); line-height: .87; letter-spacing: -.052em; }
h1 span { display: block; font-size: .68em; letter-spacing: -.028em; margin-bottom: .19em; }
.intro { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.17rem); max-width: 25rem; margin-top: 1.7rem; }
.notice { display: flex; gap: .84rem; align-items: flex-start; width: fit-content; margin-top: 2rem; padding: 1.02rem 1.2rem 1.04rem 1rem; border: 1px solid #e1d3b9; border-radius: .55rem; background: #f1e8d6; color: #4b3b26; }
.notice-icon { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; margin-top: .11rem; flex: 0 0 auto; color: #76512c; }
.notice strong { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.notice p { font-size: .88rem; line-height: 1.45; margin-top: .18rem; }
.hero-figure { border-radius: 7rem .65rem .65rem .65rem; overflow: hidden; background: #c9cdb6; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 1.32; display: block; object-fit: cover; object-position: center; }
.gallery-section { padding-block: 4.45rem 4.8rem; background: var(--ivory); border-block: 1px solid var(--stroke); }
.section-header { margin-bottom: 1.85rem; }
h2 { font-size: clamp(2.85rem, 5.5vw, 4.65rem); letter-spacing: -.045em; line-height: .95; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.85rem, 1.8vw, 1.6rem); row-gap: 1.6rem; }
.gallery figure { grid-column: span 3; }
.gallery .gallery-featured { grid-column: span 4; }
.photo-link { display: block; overflow: hidden; border-radius: .55rem; background: #ddd7c3; }
.photo-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .28s ease; }
.gallery-featured .photo-link img { aspect-ratio: 3 / 2; }
.gallery-featured .photo-link img[src$="vhod.webp"] { object-position: center 70%; }
.gallery-winter .photo-link img { object-position: 70% center; }
.photo-link:hover img { transform: scale(1.045); }
figcaption { font-size: .88rem; font-weight: 700; margin-top: .6rem; }
.location-section { background: var(--forest); color: #f7f4e9; padding-block: 4.35rem; }
.location { display: grid; grid-template-columns: minmax(14rem, .73fr) minmax(0, 1.27fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.location h2 { margin-bottom: 1.2rem; }
address { font-style: normal; font-size: 1.125rem; line-height: 1.55; }
.map-link { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #aeb8a9; border-radius: .45rem; padding: .63rem .9rem; margin-top: 1.6rem; font-size: .9rem; font-weight: 700; text-decoration: none; transition: color .2s, background-color .2s; }
.map-link:hover { color: var(--forest); background-color: var(--ivory); }
.map-frame { display: block; border: 0; border-radius: .65rem; background: #dbe1cf; width: 100%; height: 20rem; }
footer { background: #1c3027; color: #eeeede; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding-block: 1.25rem; font-size: .85rem; }
.footer-inner a { text-underline-offset: .2rem; }
.lightbox { width: min(94vw, 57rem); max-height: 93dvh; padding: 1rem 1.2rem; border: 1px solid #596659; border-radius: .75rem; color: var(--ivory); background: #1b2c24; }
.lightbox::backdrop { background: rgb(15 23 19 / 85%); }
.lightbox-tools, .lightbox-navigation { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.lightbox-tools { margin-bottom: .7rem; }
.lightbox-tools p { font-weight: 700; }
.lightbox-image { display: block; width: 100%; height: min(65dvh, 37rem); object-fit: contain; }
.lightbox-navigation { margin-top: .7rem; }
.lightbox button { display: inline-grid; place-items: center; border: 1px solid #aeb8a9; border-radius: .35rem; cursor: pointer; color: inherit; background: transparent; min-height: 2.75rem; padding: .26rem .65rem; }
.lightbox button:hover { color: var(--forest); background-color: var(--ivory); }
.lightbox-close { width: 2.75rem; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 72px); }
  .hero { padding-block: 3rem 3.75rem; gap: 2.4rem; }
  .hero-figure { border-top-left-radius: 5.6rem; }
  .hero-figure img { aspect-ratio: 1.02; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 42px); }
  .header-inner { min-height: 69px; }
  .brand { font-size: 1.4rem; gap: .45rem; }
  .brand-icon { width: 2.6rem; }
  nav { gap: .9rem; }
  nav a { font-size: .86rem; }
  .hero { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2.2rem 2.7rem; }
  .hero-copy { padding-block: 0; }
  .hero-location { margin-bottom: 1rem; }
  h1 { font-size: clamp(3.5rem, 12vw, 5.9rem); }
  .intro { margin-top: 1.3rem; }
  .notice { margin-top: 1.42rem; }
  .hero-figure { border-top-left-radius: 4rem; }
  .hero-figure img { aspect-ratio: 1.36; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
  .gallery figure, .gallery .gallery-featured { grid-column: span 1; }
  .gallery .gallery-winter { grid-column: span 2; }
  .section-header { margin-bottom: 1.35rem; }
  .gallery-section, .location-section { padding-block: 2.85rem; }
  .location { grid-template-columns: 1fr; gap: 1.5rem; }
  .location h2 { margin-bottom: .95rem; }
  .map-frame { height: 17rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: .5rem; }
  .brand-icon { width: 2.1rem; }
  .brand { font-size: 1.25rem; }
  nav { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
