:root {
  color-scheme: light;
  --cream: #f7f2e8;
  --ink: #232b2a;
  --rose: #813450;
  --header-height: 76px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #a3476a; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.06; }
h2 { font-size: clamp(2.55rem, 5.5vw, 5.7rem); letter-spacing: -.055em; }
em { font-weight: inherit; }
p { margin: 0; }
.wrap { width: min(1190px, calc(100% - 100px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; inset: .75rem auto auto .75rem; padding: .65rem 1rem; background: var(--cream); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.eyebrow { font-size: .69rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }

.header {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: var(--header-height);
  padding: 0 clamp(1.25rem, 4.5vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--cream);
  border-bottom: 1px solid #dbd5ca;
}
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; text-decoration: none; font: 1.22rem/1.15 var(--serif); }
.brand-mark { display: block; width: 38px; height: 38px; overflow: hidden; }
.brand-mark img { width: 56px; height: 56px; object-fit: contain; transform: translate(-9px, -2px); }
.surname { display: block; margin-top: .35rem; font: 600 .56rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.header nav { display: flex; align-items: center; gap: clamp(.75rem, 2.6vw, 2.5rem); font-size: .88rem; }
.header nav a { text-underline-offset: .33rem; text-decoration-color: transparent; }
.header nav a:is(:hover, [aria-current]) { text-decoration-color: currentColor; }
.header-contact { padding: .55rem .9rem; border: 1px solid #aa9b95; border-radius: 40px; white-space: nowrap; }
.header-contact span { margin-left: .32rem; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(770px, calc(100svh - var(--header-height)));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff8ec;
  background: #241b25;
}
.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/roza.webp") 70% 50% / cover no-repeat, url("assets/flowers.webp") center / cover no-repeat;
  transform: scale(var(--hero-scale, 1));
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #170f19db 0%, #17121aa3 33%, #140f190e 68%), linear-gradient(0deg, #170d1980, transparent 42%);
}
.hero-copy { padding-block: clamp(4rem, 9vh, 7rem); }
.hero .eyebrow { color: #f5dfcd; }
.hero h1 { margin: .65rem 0 1.4rem; max-width: 9ch; font-size: clamp(4.4rem, 9.7vw, 9.7rem); letter-spacing: -.073em; line-height: .97; }
.hero h1 em { color: #f3b7ce; }
.hero-description { max-width: 34ch; margin-bottom: 2rem; color: #fbf1e6; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 1.3rem; border: 1px solid currentColor; border-radius: 30px; padding: .66rem 1.18rem; font-size: .88rem; text-decoration: none; transition: background-color .18s, color .18s; }
.button-light { color: #fff7eb; }
.button-light:hover { background: #fff7eb; color: #372232; border-color: #fff7eb; }
.button-dark { color: var(--ink); }
.button-dark:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.index { padding-block: clamp(3.8rem, 9vw, 7.6rem); }
.index-intro { display: flex; gap: 1.25rem; align-items: end; justify-content: space-between; margin-bottom: 2.4rem; }
.index-intro h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.index-intro p { max-width: 31ch; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.6vw, 2.5rem); }
.chapter-tile { display: block; text-decoration: none; }
.tile-picture, .tile-picture img { display: block; width: 100%; height: 100%; }
.tile-picture { aspect-ratio: 1.45; height: auto; overflow: hidden; border-radius: 50% 50% 0 0 / 72% 72% 0 0; background: #ded3bf; }
.tile-picture img { transition: transform .55s ease; }
.chapter-tile:is(:hover, :focus-visible) img { transform: scale(1.06); }
.tile-label { display: flex; justify-content: space-between; align-items: center; gap: .35rem; padding: .9rem .2rem .68rem; border-bottom: 1px solid #bcaea8; font: clamp(.92rem, 2.1vw, 1.55rem)/1.25 var(--serif); }
.tile-label span { color: var(--rose); }

.chapter { padding-block: clamp(3.8rem, 9vw, 9rem); }
.chapter-relationships { background: #e3edf0; }
.chapter-tradition { background: #eee8dc; }
.chapter-art { background: #342630; color: #fff7ec; }
.chapter-layout { display: grid; align-items: center; grid-template-columns: .84fr 1.16fr; gap: clamp(2rem, 6vw, 6rem); }
.chapter-layout.reverse { grid-template-columns: 1.16fr .84fr; }
.reverse .chapter-copy { order: 1; }
.chapter-copy h2 { margin-block: .65rem 1.15rem; }
.chapter-copy h2 em, .about h2 em { color: var(--rose); }
.chapter-art .chapter-copy h2 em { color: #f0b9ce; }
.chapter-copy p:not(.eyebrow), .about p:not(.eyebrow) { max-width: 38ch; margin-bottom: 1.5rem; }
.scene { margin: 0; min-width: 0; }
.scene img {
  aspect-ratio: 1.29;
  border-radius: 49% 49% 2px 2px / 48% 48% 2px 2px;
  clip-path: inset(var(--crop, 0%) 0 0 round 48% 48% 0 0 / 44% 44% 0 0);
  object-position: var(--scene-position, center);
  transform: translateY(var(--shift, 0px));
}
.chapter-relationships .scene { --scene-position: 56% center; }
.scene figcaption { margin-top: .75rem; font-size: .8rem; }
.gallery { margin-top: clamp(3rem, 8vw, 6rem); }
.gallery h3 { margin-bottom: 1.5rem; font-size: clamp(1.75rem, 3vw, 2.65rem); }
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.6rem); }
.artwork { position: relative; display: block; overflow: hidden; border: 1px solid #ffffff5c; }
.artwork img { aspect-ratio: 3 / 4; transition: transform .4s ease; }
.artwork:is(:hover, :focus-visible) img { transform: scale(1.05); }
.artwork span { position: absolute; inset: auto .6rem .6rem auto; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #1e181de6; color: white; }

.about { padding-block: clamp(4rem, 9vw, 8rem); display: grid; grid-template-columns: .62fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.about-photo { aspect-ratio: .84; border-radius: 50% 50% 3px 3px / 48% 48% 3px 3px; }
.about h2 { margin: .65rem 0 1.2rem; font-size: clamp(2rem, 4.8vw, 4.7rem); }
.text-link { text-underline-offset: .35em; }
.text-link span { margin-left: .4rem; }
.memory { padding-block: 4.5rem; text-align: center; background: #eadfe5; }
.memory h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.memory p { margin: 1rem 0 1.3rem; }
.footer { background: #232b2a; color: #fff6ea; padding-block: 3.8rem 1.7rem; }
.footer h2 { margin-bottom: .6rem; font-size: clamp(2.6rem, 5vw, 4.5rem); }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
.footer address { display: grid; gap: .45rem; justify-items: end; font-style: normal; }
.footer address a { overflow-wrap: anywhere; text-underline-offset: .2em; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1rem; border-top: 1px solid #fff5e84f; padding-top: 1.3rem; margin-top: 2.5rem; font-size: .8rem; }

.lightbox { width: min(95vw, 850px); max-height: 95dvh; margin: auto; padding: 1.5rem; border: 1px solid #93818a; background: #211a20; color: #fff7ec; }
.lightbox::backdrop { background: #170f16dd; }
.lightbox figure { margin: 0; }
.lightbox img { height: min(65dvh, 680px); object-fit: contain; }
.lightbox figcaption { margin: .8rem 0; text-align: center; font-size: .92rem; }
.lightbox button { min-width: 44px; min-height: 44px; border: 1px solid #af99a6; border-radius: 50%; color: inherit; background: #30252e; }
.close-lightbox { position: absolute; top: .65rem; right: .65rem; font-size: 1.45rem; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; }

@media (max-width: 700px) {
  :root { --header-height: 66px; }
  .wrap { width: calc(100% - 2.5rem); }
  .header { padding-inline: 1.05rem; }
  .brand { gap: .35rem; font-size: .98rem; }
  .brand-mark { width: 30px; height: 31px; }
  .brand-mark img { width: 46px; height: 46px; transform: translate(-8px, -2px); }
  .surname { font-size: .48rem; }
  .header nav { gap: .7rem; font-size: .76rem; }
  .header-about { display: none; }
  .header-contact { padding: .4rem .6rem; }
  .header-contact span { display: none; }
  .hero { min-height: min(760px, calc(100svh - var(--header-height))); align-items: end; }
  .hero-image { background-position: 72% center; }
  .hero::before { background: linear-gradient(0deg, #170f19f5 0%, #221229ba 45%, #170f190d 88%); }
  .hero-copy { padding-block: 7rem 3rem; }
  .hero h1 { font-size: clamp(3.55rem, 12vw, 6rem); }
  .hero-description { font-size: .94rem; }
  .index-intro { display: block; margin-bottom: 1.4rem; }
  .index-intro p { margin-top: .65rem; }
  .chapter-grid { gap: .65rem; }
  .tile-picture { aspect-ratio: 1; }
  .tile-label { font-size: .9rem; min-height: 4rem; }
  .chapter-layout, .chapter-layout.reverse, .about, .footer-content { grid-template-columns: 1fr; }
  .reverse .chapter-copy { order: 0; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-photo { max-width: 310px; }
  .footer address { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
