:root {
  color-scheme: light;
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --ink: #2b1d21;
  --muted: #64565a;
  --berry: #932b4d;
  --berry-deep: #751c3a;
  --blue: #185a70;
  --line: #e6d9d2;
  --serif: 'DM Serif Text', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: #efd4dc; color: var(--berry-deep); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
.wrap { width: min(100% - 88px, 1184px); margin-inline: auto; }

.skip-link { position: absolute; top: .7rem; left: .7rem; padding: .55rem .9rem; border-radius: .45rem; background: white; color: var(--blue); z-index: 2; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-layout { min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; font: 400 1.25rem/1.02 var(--serif); }
.brand img { width: 72px; height: auto; mix-blend-mode: multiply; }
.brand-city { display: block; margin-top: 3px; color: var(--blue); font: 700 .76rem/1.1 var(--sans); }
.main-nav, .site-footer nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.7rem); }
.main-nav a, .site-footer nav a { font-weight: 650; font-size: .94rem; text-underline-offset: .34em; text-decoration: none; }
.main-nav a:hover, .main-nav [aria-current], .site-footer nav a:hover, .site-footer nav [aria-current] { color: var(--berry); text-decoration: underline; }
.header-phone { justify-self: end; border: 1px solid #bc8796; color: var(--berry-deep); padding: .55rem 1rem; border-radius: 999px; font-size: .94rem; font-weight: 700; text-decoration: none; }
.header-phone:hover { background: #f8e9ee; }
.phone-short { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(3rem, 6.2vw, 6.55rem); padding-block: clamp(3.75rem, 6vw, 5.55rem); }
.hero h1 { font-size: clamp(3.1rem, 5.15vw, 4.74rem); line-height: 1.005; letter-spacing: -.042em; }
.hero h1 span { color: var(--berry); white-space: nowrap; }
.hero p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.19rem); margin-top: 1.45rem; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; margin-top: 1.85rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .66rem; min-height: 49px; padding: .63rem 1.21rem; border: 1px solid transparent; border-radius: 999px; text-align: center; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.primary { color: white; background: var(--berry); }
.primary:hover { background: var(--berry-deep); }
.secondary { color: var(--berry-deep); background: var(--paper); border-color: #cba7b2; }
.secondary:hover { background: #f8e8ed; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--blue); font-weight: 700; text-underline-offset: .22em; }
.text-link:hover { color: var(--berry-deep); }
.hero-photo { position: relative; padding: .6rem; border: 1px solid #e9d6c8; border-radius: 1.65rem; background: #fffaf4; box-shadow: 0 16px 42px #482c2114; }
.hero-photo img { width: 100%; height: auto; border-radius: 1.13rem; }

.home-collection { background: var(--paper); border-block: 1px solid var(--line); padding-block: 3.5rem 4.8rem; scroll-margin-top: 1rem; }
.home-collection h2 { font-size: clamp(2.5rem, 4.3vw, 3.7rem); letter-spacing: -.035em; margin-bottom: 1.45rem; }
.collection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.collection-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.35rem; background: #fffaf5; text-decoration: none; transition: box-shadow .18s ease, border-color .18s ease; }
.collection-card:hover { border-color: #bc8796; box-shadow: 0 12px 32px #482c2110; }
.collection-photo { display: grid; place-items: center; height: clamp(13rem, 25vw, 21rem); background: #efe4d8; }
.tort-card .collection-photo { background: #e9e4db; }
.collection-photo img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.collection-details { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1.15rem 1.45rem 1.3rem; }
.collection-details h3 { font-size: clamp(1.65rem, 3.1vw, 2.29rem); letter-spacing: -.02em; }
.collection-details p { margin-top: .2rem; color: var(--blue); font-size: .97rem; font-weight: 650; }
.round-arrow { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #d7b8c2; color: var(--berry); font-size: 1.28rem; line-height: 1; transition: background-color .18s, color .18s; }
.collection-card:hover .round-arrow { background: var(--berry); color: white; }

.contact-wrap { padding-block: 4rem; }
.contact-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: center; padding: clamp(1.5rem, 4.4vw, 3.65rem); border: 1px solid #ecd6da; border-radius: 1.5rem; background: #f7e8eb; }
.contact-panel h2, .contact-panel h1 { color: var(--berry-deep); font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.04em; }
.contact-panel p { color: #594950; }
.contact-intro p { max-width: 33rem; margin-top: .65rem; }
.contact-intro .button { margin-top: 1.15rem; }
.contact-info { display: grid; gap: .63rem; align-content: start; border-left: 1px solid #dec1ca; padding-left: clamp(1rem, 4vw, 3rem); font-style: normal; }
.contact-info div { display: grid; }
.contact-info div > span { color: #62515a; font-size: .8rem; font-weight: 700; }
.contact-info a { width: fit-content; max-width: 100%; color: var(--blue); font-weight: 700; text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact-info a:hover { color: var(--berry-deep); }
.contact-info .text-link { margin-top: .2rem; }
.contact-only { min-height: 65vh; display: grid; align-items: start; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 1.45rem; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.5rem; }
.footer-brand { text-decoration: none; font: 400 1.15rem/1.17 var(--serif); color: var(--berry-deep); }

.gallery-page { padding-block: 3.8rem; }
.page-intro { max-width: 52rem; margin-bottom: 2.1rem; }
.page-intro h1 { font-size: clamp(3rem, 7vw, 5.3rem); line-height: 1; letter-spacing: -.044em; }
.page-intro p { margin-top: .8rem; max-width: 43rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.16rem); }
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .35rem 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.3rem; }
.gallery-tabs a { display: block; padding: .45rem .11rem .6rem; border-bottom: 3px solid transparent; text-decoration: none; color: var(--muted); font-weight: 700; }
.gallery-tabs a:hover { color: var(--berry); }
.gallery-tabs [aria-current] { color: var(--berry); border-color: var(--berry); }
.gallery-total { margin-bottom: .65rem; color: var(--muted); font-size: .89rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.gallery-grid li { min-width: 0; }
.gallery-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: .86rem; text-decoration: none; transition: box-shadow .18s ease, border-color .18s ease; }
.gallery-card:hover { border-color: #c194a2; box-shadow: 0 7px 20px #482c2115; }
.gallery-photo { position: relative; display: block; flex: none; width: 100%; aspect-ratio: 1.18; background: #efe7dd; }
.torts .gallery-photo { aspect-ratio: 1.05; }
.gallery-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.zoom-icon { position: absolute; right: .45rem; bottom: .45rem; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #fffdf8f2; color: var(--berry-deep); font-size: 1.35rem; line-height: 1; box-shadow: 0 1px 4px #29162030; }
.gallery-card:hover .zoom-icon { background: var(--berry); color: white; }
.gallery-caption { display: grid; align-content: start; gap: .19rem; padding: .62rem .76rem .72rem; line-height: 1.24; font-size: .94rem; font-weight: 700; overflow-wrap: anywhere; }
.gallery-caption small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.more-wrap { display: flex; justify-content: center; margin-block: 1.65rem 2.6rem; min-height: 1px; }

body:has(.lightbox[open]) { overflow: hidden; }
.lightbox { width: min(100% - 32px, 920px); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid #eaded7; border-radius: 1.2rem; background: var(--paper); color: var(--ink); overflow: auto; box-shadow: 0 24px 65px #28182160; }
.lightbox::backdrop { background: #21171ae5; }
.lightbox-content { position: relative; }
.lightbox-stage { display: grid; place-items: center; height: min(72dvh, 680px); padding: .55rem; background: #ecdfd7; touch-action: pan-y; }
.lightbox-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox button { display: grid; place-items: center; border-radius: 50%; border: 1px solid #d7b8c2; width: 44px; height: 44px; background: var(--paper); color: var(--berry-deep); cursor: pointer; font-size: 1.35rem; line-height: 1; }
.lightbox button:hover { background: #f7e4eb; }
.lightbox button:disabled { color: #8a7b7f; cursor: default; }
.lightbox-close { position: absolute; top: .78rem; right: .78rem; z-index: 1; font-size: 1.55rem !important; }
.lightbox-bar { display: grid; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: center; padding: .65rem .8rem; }
.lightbox-caption { display: grid; gap: .12rem; text-align: center; line-height: 1.32; }
.lightbox-caption span { color: var(--muted); font-size: .82rem; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 52px, 1184px); }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(2.875rem, 6.15vw, 4rem); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .header-layout { min-height: auto; grid-template-columns: minmax(0, 1fr) auto; column-gap: .65rem; row-gap: 0; padding-top: .45rem; }
  .brand { gap: .5rem; font-size: 1.04rem; }
  .brand img { width: 59px; }
  .brand-city { font-size: .7rem; }
  .header-phone { grid-column: 2; grid-row: 1; padding: .42rem .75rem; font-size: .87rem; }
  .phone-number { display: none; }
  .phone-short { display: inline; }
  .main-nav { grid-column: 1 / -1; gap: clamp(1rem, 6vw, 2rem); padding: .6rem 0 .55rem; }
  .main-nav a, .site-footer nav a { font-size: .86rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.4rem 2.7rem; }
  .hero h1 { max-width: 11em; font-size: clamp(2.25rem, 10.35vw, 3.65rem); letter-spacing: -.036em; }
  .hero p { margin-top: .85rem; }
  .hero-actions { margin-top: 1.1rem; gap: .6rem 1.05rem; }
  .hero-photo { border-radius: 1.1rem; padding: .42rem; max-width: 470px; }
  .hero-photo img { border-radius: .76rem; }
  .home-collection { padding-block: 2.2rem 2.7rem; }
  .home-collection h2 { margin-bottom: 1rem; }
  .collection-grid { grid-template-columns: 1fr; gap: 1rem; }
  .collection-photo { height: clamp(11rem, 59vw, 17rem); }
  .collection-details { padding: .85rem 1rem 1rem; }
  .contact-wrap { padding-block: 2.4rem; }
  .contact-panel { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-info { border-left: 0; border-top: 1px solid #dec1ca; padding: .9rem 0 0; }
  .site-footer nav { gap: 1rem; }
  .gallery-page { padding-block: 2.3rem; }
  .page-intro { margin-bottom: 1.35rem; }
  .gallery-tabs { gap: .7rem; }
  .gallery-tabs a, .gallery-total { font-size: .8rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .gallery-caption { padding-inline: .52rem; font-size: .88rem; }
  .zoom-icon { width: 28px; height: 28px; right: .28rem; bottom: .28rem; line-height: 1; }
  .lightbox { width: calc(100% - 18px); }
  .lightbox-stage { height: min(70dvh, 117vw, 560px); padding: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
