:root {
  color-scheme: light;
  --paper: #f5f0e7;
  --cream: #fff9f0;
  --ink: #2d211c;
  --muted: #64544b;
  --wine: #6f282e;
  --deep: #31191a;
  --rule: #d6c8b9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
button, select { font: inherit; }
section[id], .price-block { scroll-margin-top: 1rem; }

.shell { width: min(100% - clamp(2rem, 9vw, 9rem), 84rem); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  z-index: 2;
  inset: 1rem auto auto 1rem;
  background: var(--cream);
  padding: .75rem 1rem;
}

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--wine); font: 1.14rem/.98 var(--serif); text-decoration: none; }
.brand-mark { position: relative; display: inline-block; width: 1.82rem; height: 1.82rem; border: 1px solid currentColor; }
.brand-mark::before { content: ''; position: absolute; inset: .31rem; border: 1px solid currentColor; border-radius: 55% 45% 52% 48%; transform: rotate(-22deg); }
.masthead nav { display: flex; gap: clamp(.85rem, 3vw, 2.7rem); }
.masthead nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .95rem; text-decoration: none; }
.masthead nav a:hover, .price-nav a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: .22em; }

.hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(2rem, 5vw, 6rem); padding-block: clamp(2.5rem, 6.4vw, 6.5rem) clamp(3.5rem, 6.8vw, 7rem); }
.eyebrow { font-size: .875rem; line-height: 1.35; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.hero-location { display: flex; gap: .75rem; align-items: center; color: var(--wine); }
.hero-location::before { content: ''; width: 1.8rem; border-top: 1px solid currentColor; }
.hero h1 { margin-top: .22em; font-size: clamp(3.7rem, 7.25vw, 8rem); letter-spacing: -.06em; line-height: .94; }
.hero h1 em { color: var(--wine); font-weight: 400; }
.hero-description { max-width: 27rem; margin-top: 1.65rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.21rem); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; margin-top: 1.75rem; }
.button { display: inline-flex; min-height: 3.1rem; padding: .76rem 1.2rem; align-items: center; justify-content: center; background: var(--wine); color: var(--cream); border: 1px solid var(--wine); font-weight: 600; text-decoration: none; }
.button:hover { background: #532027; border-color: #532027; }
.button:focus-visible { outline-color: var(--wine); }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--wine); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-figure { min-width: 0; }
.hero-image { aspect-ratio: 1 / 1.055; overflow: hidden; background: #652d26; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero figcaption { padding-top: .65rem; font-size: .875rem; color: var(--muted); text-align: right; }

.gallery { background: var(--deep); color: var(--cream); }
.gallery-inner, .prices { padding-block: clamp(3.6rem, 7.7vw, 7.25rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.1rem 2.5rem; }
.section-head h2, .contact h2 { margin-top: .13em; font-size: clamp(2.65rem, 5.65vw, 6rem); letter-spacing: -.064em; line-height: .99; }
.gallery .eyebrow { color: #e2a58e; }
.gallery-note { max-width: 16rem; color: #edc8ba; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(1rem, 2.55vw, 2.5rem); margin-top: clamp(2rem, 4.2vw, 4rem); }
.gallery-item:nth-child(2) { margin-top: clamp(1rem, 3.5vw, 3rem); }
.gallery-item figcaption { margin-top: .9rem; font: clamp(1.08rem, 2.2vw, 1.65rem)/1.22 var(--serif); }
.art-link { display: block; position: relative; overflow: hidden; background: #5b352f; }
.art-link img { aspect-ratio: .82; object-fit: cover; }
.art-plus { position: absolute; right: .8rem; bottom: .8rem; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--cream); color: var(--deep); font: 1.6rem/1 var(--sans); }
.art-link:hover .art-plus { background: var(--wine); color: var(--cream); }

.prices .eyebrow { color: var(--wine); }
.price-note { max-width: 27rem; color: var(--muted); }
.price-note p + p { margin-top: .25rem; }
.catalogue { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr); gap: 2.4rem clamp(1.5rem, 5vw, 5rem); margin-top: clamp(2rem, 5vw, 4rem); }
.catalogue-side { align-self: start; position: sticky; top: 1.5rem; }
.size-filter label { display: block; margin-bottom: .45rem; font-weight: 650; }
.size-filter select { appearance: none; width: 100%; max-width: 16rem; min-height: 3rem; padding: .65rem 2.35rem .65rem .75rem; border: 1px solid #b79788; border-radius: 0; background: var(--cream); color: var(--ink); cursor: pointer; }
.size-filter { position: relative; max-width: 16rem; }
.size-filter::after { content: ''; position: absolute; right: 1rem; bottom: 1.23rem; width: .5rem; height: .5rem; border: solid var(--wine); border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.price-nav { display: grid; margin-top: 1.3rem; }
.price-nav a { display: flex; align-items: center; min-height: 2.8rem; border-bottom: 1px solid var(--rule); line-height: 1.2; text-decoration: none; }
.price-block { margin-bottom: clamp(1.8rem, 4vw, 4rem); }
.price-block:last-child { margin-bottom: 0; }
.price-block h3 { padding: .82rem 1.15rem; color: var(--cream); background: var(--wine); font-size: clamp(1.38rem, 2.4vw, 2.1rem); line-height: 1.13; }
.price-block table { table-layout: fixed; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: #faf5ed; }
.price-block th, .price-block td { text-align: right; padding: .57rem 1.15rem; border-bottom: 1px solid var(--rule); }
.price-block :is(th, td):first-child { width: 27%; text-align: left; }
.price-block thead th { padding-block: .65rem; background: #ede3d6; color: var(--muted); font-size: .875rem; font-weight: 650; line-height: 1.3; }
.price-block tbody th { font-weight: 600; }
.price-block td { white-space: nowrap; }
.price-block tbody tr:nth-child(even) { background: #f5ede2; }
.empty-size { padding: 1rem 1.15rem; background: #faf5ed; color: var(--muted); }

.contact { background: var(--wine); color: var(--cream); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr); align-items: center; gap: 1.65rem 3.5rem; padding-block: clamp(3.25rem, 6vw, 6rem); }
.contact p:not(.eyebrow) { max-width: 37rem; margin-top: 1rem; color: #fae4da; }
.contact .eyebrow { color: #fae4da; }
.contact-actions { align-items: flex-start; flex-direction: column; justify-self: end; margin-top: 0; }
.contact .text-link { color: var(--cream); }
.button-light { background: var(--cream); color: var(--wine); border-color: var(--cream); }
.button-light:is(:hover, :focus-visible) { background: #f6dac8; border-color: #f6dac8; outline-color: var(--cream); }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; min-height: 4.4rem; color: var(--muted); font-size: .9rem; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .2em; }

.lightbox { border: 0; padding: 1rem; width: min(100% - 1rem, 42rem); max-height: calc(100% - 1rem); margin: auto; background: var(--deep); color: var(--cream); }
.lightbox::backdrop { background: rgb(30 13 13 / 86%); }
.lightbox img { width: auto; height: auto; max-height: 69vh; max-width: 100%; margin-inline: auto; object-fit: contain; }
.lightbox figcaption { text-align: center; margin-block: .65rem; font: 1.23rem/1.2 var(--serif); }
.lightbox button { padding: .45rem .85rem; min-height: 2.75rem; background: var(--deep); color: var(--cream); border: 1px solid #f1c7b0; cursor: pointer; }
.lightbox button:hover { background: var(--wine); }
.lightbox .lightbox-close { position: absolute; top: .55rem; right: .55rem; min-width: 2.75rem; border-radius: 50%; font-size: 1.65rem; line-height: 1; }
.lightbox-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 760px) {
  .masthead-inner { min-height: 4.35rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .hero-image { aspect-ratio: 1 / 1.075; }
  .hero h1 { font-size: clamp(3.25rem, 11vw, 5.75rem); }
  .hero-description, .hero-actions { margin-top: 1.15rem; }
  .section-head { align-items: start; flex-direction: column; }
  .gallery-note { max-width: 31rem; }
  .gallery-item:nth-child(2) { margin-top: 0; }
  .catalogue { grid-template-columns: minmax(0, 1fr); }
  .catalogue-side { position: static; }
  .price-nav { display: flex; flex-wrap: wrap; column-gap: 1.1rem; }
  .price-block thead th, .price-block tbody :is(th, td) { padding-inline: .7rem; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-actions { justify-self: start; flex-direction: row; align-items: center; }
}

@media (max-width: 520px) {
  .brand { gap: .4rem; font-size: 1rem; }
  .brand-mark { width: 1.45rem; height: 1.45rem; }
  .brand-mark::before { inset: .26rem; }
  .masthead nav { gap: .72rem; }
  .masthead nav a { font-size: .875rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem .85rem; }
  .gallery-item:first-child { grid-column: 1 / -1; }
  .gallery-item:first-child img { aspect-ratio: 1.22; object-position: 50% 58%; }
  .art-plus { right: .5rem; bottom: .5rem; width: 2.3rem; height: 2.3rem; }
  .price-block h3 { padding-inline: .72rem; }
}

@media (max-width: 370px) {
  .masthead-inner { flex-wrap: wrap; gap: 0; padding-top: .65rem; }
  .masthead nav { flex-basis: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: arrive .65s ease-out both; }
  .hero-figure { animation: arrive .8s .06s ease-out both; }
  .art-link img { transition: transform .45s ease; }
  .art-link:hover img { transform: scale(1.045); }
  .lightbox[open] { animation: appear .24s ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(13px); } }
  @keyframes appear { from { opacity: 0; } }
}

@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-image img {
      animation: hero-drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes hero-drift { from { transform: scale(1.04); } to { transform: translateY(3%) scale(1.07); } }
  }
}

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