:root {
  color-scheme: light;
  --paper: #eee6d6;
  --paper-light: #f5efe4;
  --ink: #402d2b;
  --wine: #54252e;
  --wine-deep: #381a22;
  --gold: #a77a3c;
  --gold-light: #d4b775;
  --line: rgba(96, 63, 45, 0.25);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e4d7bd 0, var(--paper) 25rem, #f0e9de 100%);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.masthead {
  display: grid;
  padding: clamp(1.7rem, 3.5vw, 3.1rem) 1rem clamp(1.6rem, 3vw, 2.5rem);
  place-items: center;
}

.masthead-inner {
  display: grid;
  width: min(100%, 77rem);
  place-items: center;
}

.brand {
  display: grid;
  padding: 0.48rem;
  border: 1px solid rgba(129, 91, 47, 0.55);
  background: #d7bc72;
  box-shadow:
    0 0 0 0.4rem rgba(246, 237, 218, 0.72),
    0 0 0 0.48rem rgba(129, 91, 47, 0.32),
    0 15px 35px rgba(67, 44, 35, 0.18);
  animation: quiet-rise 8s ease-in-out infinite;
}

.brand img {
  display: block;
  width: clamp(13rem, 22vw, 18rem);
  height: auto;
}

.contact-section {
  display: grid;
  width: 100%;
  padding: clamp(1.7rem, 3.2vw, 2.8rem) max(1rem, calc((100vw - 77rem) / 2));
  border-top: 1px solid rgba(232, 204, 147, 0.45);
  border-bottom: 1px solid rgba(232, 204, 147, 0.45);
  color: #f6eedf;
  background: var(--wine);
  grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 0.9fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

.contact-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold-light);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-copy h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

.contact-copy > p:last-child {
  max-width: 48rem;
  margin: 0;
  color: #efe1cd;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.contact-details {
  display: grid;
  min-width: 0;
  padding-left: clamp(1.2rem, 2.4vw, 2.2rem);
  border-left: 1px solid rgba(235, 210, 166, 0.42);
  font-style: normal;
  gap: 0.45rem;
}

.contact-details a {
  width: fit-content;
  color: #ffe3ab;
  text-decoration-color: rgba(255, 227, 171, 0.45);
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: white;
  text-decoration-color: currentColor;
}

.contact-phone {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.2;
  white-space: nowrap;
}

.contact-email { font-size: 1.05rem; }

.contact-details p {
  margin: 0;
  color: #efe1cd;
  font-size: 1rem;
  line-height: 1.45;
}

.contact-details .contact-hours { color: #d7c3ad; }

.contact-location {
  display: grid;
  padding-top: 0.55rem;
  gap: 0.18rem;
}

.contact-location + .contact-location {
  margin-top: 0.3rem;
  border-top: 1px solid rgba(235, 210, 166, 0.25);
}

.contact-label {
  color: var(--gold-light);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.catalog {
  width: min(100%, 82rem);
  margin: 0 auto;
  padding: clamp(1.7rem, 3vw, 2.8rem) clamp(0.7rem, 2.8vw, 2.4rem) clamp(4rem, 7vw, 7rem);
}

.catalog-heading {
  display: grid;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(0.8rem, 2.5vw, 2rem);
  align-items: center;
}

.catalog-heading h2 {
  margin: 0;
  color: var(--wine);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.catalog-rule { height: 1px; background: var(--line); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 2.2vw, 2rem);
}

.icon-card {
  display: block;
  width: 100%;
  padding: clamp(0.42rem, 1vw, 0.85rem);
  border: 1px solid rgba(104, 70, 47, 0.33);
  border-radius: 0;
  outline: none;
  background: #e5d9bf;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 8px 25px rgba(73, 51, 43, 0.12);
  cursor: zoom-in;
  content-visibility: auto;
  contain-intrinsic-size: 300px 430px;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.icon-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #4c4033;
  box-shadow: 0 0 0 1px rgba(72, 48, 34, 0.16);
}

.icon-card:hover,
.icon-card:focus-visible {
  position: relative;
  z-index: 1;
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 16px 34px rgba(73, 51, 43, 0.24),
    0 0 25px rgba(203, 161, 78, 0.22);
  transform: translateY(-3px);
}

.site-footer {
  padding: clamp(2.2rem, 4vw, 3.8rem) 1rem max(2.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(235, 210, 166, 0.38);
  color: #f3e8d6;
  background: var(--wine-deep);
}

.footer-inner {
  display: grid;
  width: min(100%, 77rem);
  margin: 0 auto;
  grid-template-columns: minmax(11rem, 0.7fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

.footer-brand p {
  margin: 0 0 0.45rem;
  color: #ffe3ab;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.2;
}

.footer-brand span {
  color: #d7c3ad;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.footer-contacts {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem clamp(1rem, 2.3vw, 2.4rem);
  font-style: normal;
}

.footer-contacts h2 {
  margin: 0 0 0.25rem;
  grid-column: 1 / -1;
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.11em;
}

.footer-reach,
.footer-location {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.45rem;
}

.footer-contacts a {
  width: fit-content;
  color: #ffe3ab;
  font-size: 1rem;
  line-height: 1.45;
  text-decoration-color: rgba(255, 227, 171, 0.48);
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.footer-contacts a:hover,
.footer-contacts a:focus-visible {
  color: white;
  text-decoration-color: currentColor;
}

.footer-location span {
  color: var(--gold-light);
  font-size: 0.95rem;
}

.footer-location p {
  margin: 0;
  color: #e9dac7;
  font-size: 1rem;
  line-height: 1.45;
}

.viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #f7ecdb;
  background: rgba(29, 16, 20, 0.98);
}

.viewer::backdrop {
  background: rgba(29, 16, 20, 0.94);
  backdrop-filter: blur(10px);
}

.viewer-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(3.25rem, 7vw) 1fr minmax(3.25rem, 7vw);
  align-items: center;
}

.viewer-stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(2.9rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4rem);
  place-items: center;
}

.viewer-stage img {
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  box-shadow:
    0 28px 74px rgba(0, 0, 0, 0.62),
    0 0 40px rgba(218, 171, 67, 0.13);
}

.viewer-glow {
  position: absolute;
  width: min(64vw, 48rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(201, 162, 78, 0.07);
  filter: blur(70px);
  pointer-events: none;
}

.viewer-close,
.viewer-nav {
  z-index: 3;
  display: grid;
  border: 1px solid rgba(236, 205, 148, 0.35);
  border-radius: 999px;
  color: #ffe3ab;
  background: rgba(65, 31, 39, 0.8);
  cursor: pointer;
  place-items: center;
  transition: background 180ms ease, border-color 180ms ease;
}

.viewer-close:hover,
.viewer-nav:hover,
.viewer-close:focus-visible,
.viewer-nav:focus-visible {
  border-color: #ffe3ab;
  outline: none;
  background: #703640;
}

.viewer-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 200;
}

.viewer-nav {
  width: 2.75rem;
  height: 2.75rem;
  justify-self: center;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.viewer-counter {
  position: absolute;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 2;
  color: #d8c3aa;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

@keyframes quiet-rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (min-width: 48rem) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 80rem) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 47.99rem) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .contact-details {
    padding: 1rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(235, 210, 166, 0.42);
  }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-reach { grid-column: 1 / -1; }
}

@media (max-width: 38rem) {
  .masthead { padding: 1.3rem 1rem 1.6rem; }
  .brand img { width: min(52vw, 13rem); }
  .viewer-shell { grid-template-columns: 2.85rem 1fr 2.85rem; }
  .viewer-nav { width: 2.35rem; height: 2.35rem; font-size: 1.65rem; }
  .footer-contacts { grid-template-columns: 1fr; }
  .footer-reach { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand { animation: none; }
  .icon-card { transition: none; }
}
