:root {
  color-scheme: light;
  --paper: #faf8f4;
  --white: #fffdf9;
  --ink: #241d23;
  --muted: #625861;
  --line: #e0d7d8;
  --wine: #4a2035;
  --wine-dark: #371527;
  --petal: #eedde7;
  --cream: #fff4e5;
  --serif: Baskerville, "Times New Roman", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a05374; outline-offset: 4px; }
.shell { width: min(82rem, calc(100% - 7rem)); margin-inline: auto; }

.skip {
  position: absolute;
  transform: translateY(-180%);
  background: var(--white);
  padding: .65rem 1rem;
  z-index: 2;
}
.skip:focus { transform: translateY(.5rem); }

.masthead, .admin-header { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 5.25rem;
  gap: 28px;
}
.brand { display: inline-flex; align-items: baseline; width: fit-content; gap: .3rem; color: var(--wine); white-space: nowrap; }
.brand strong { font: 700 2.25rem/.96 var(--serif); letter-spacing: -.055em; }
.brand span { font: italic 1.25rem/1 var(--serif); letter-spacing: -.025em; }

.shop-nav { display: flex; align-items: center; gap: 24px; }
.shop-nav a { font-size: .94rem; font-weight: 600; padding-block: .6rem; }
.shop-nav a:hover, .back-link:hover { color: var(--wine); text-decoration: underline; text-underline-offset: .25em; }
.languages { display: flex; justify-self: end; gap: 4px; }
.languages a { min-height: 2.55rem; display: grid; place-items: center; padding-inline: .6rem; font-size: .875rem; font-weight: 650; color: var(--muted); }
.languages a[aria-current], .languages a:hover { color: var(--wine); background: var(--petal); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  color: var(--cream);
  background: var(--wine);
  min-height: clamp(29rem, 43vw, 39rem);
}
.hero-copy {
  padding: clamp(2.8rem, 5vw, 5.75rem) clamp(1.5rem, 3.9vw, 4.5rem) clamp(2.8rem, 5vw, 5.75rem)
    max(3.5rem, calc((100vw - 82rem) / 2));
  align-self: center;
  min-width: 0;
}
.hero-kicker { color: var(--petal); font-size: 1rem; font-weight: 550; margin-bottom: 1rem; }
.hero h1 {
  font: 400 clamp(3.05rem, 5.7vw, 6.2rem)/.97 var(--serif);
  letter-spacing: -.055em;
  text-wrap: balance;
  max-width: 9.2ch;
}
:lang(fr) .hero h1 { font-size: clamp(2.8rem, 4.95vw, 5.1rem); max-width: 11ch; }
.hero-intro { color: #f7e5ed; max-width: 28rem; margin-top: 1.3rem; margin-bottom: 1.75rem; }
.hero-empty { grid-template-columns: minmax(0, 1fr); }
.hero-visual { position: relative; display: block; overflow: hidden; min-width: 0; background: var(--wine-dark); }
.hero-visual img { height: 100%; position: absolute; inset: 0; object-fit: contain; }
.hero-visual:focus-visible { outline-offset: -5px; z-index: 1; outline-color: var(--cream); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 650;
  text-align: center;
  line-height: 1.25;
}
.button-cream { background: var(--cream); color: var(--wine-dark); }
.button-cream:hover { background: var(--petal); }
.button-wine { background: var(--wine); color: var(--cream); }
.button-wine:hover { background: var(--wine-dark); }
.button-wine:disabled { opacity: .54; }
.button-outline { border-color: #b3a0ab; background: var(--white); color: var(--wine); }
.button-outline:hover { background: var(--petal); }

.collection { padding-block: clamp(3rem, 6vw, 6rem); scroll-margin-top: 1rem; }
.collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.45rem; }
.collection h2, .contact h2 {
  font: 400 clamp(2.55rem, 4.8vw, 4.55rem)/1 var(--serif);
  letter-spacing: -.055em;
}
.count { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button {
  padding: .55rem .9rem;
  background: transparent;
  min-height: 2.75rem;
  border: 1px solid #cfc2ca;
  font-weight: 600;
  font-size: .9rem;
}
.filters button:hover { border-color: var(--wine); }
.filters button[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.15rem; }
.product-card { display: block; min-width: 0; }
.card-photo { aspect-ratio: 4/5; background: #ede5e4; overflow: hidden; }
.card-photo img { height: 100%; object-fit: cover; object-position: center 42%; }
.card-photo img.wide-photo { object-fit: contain; }
.product-card:hover .card-copy h3 { text-decoration: underline; text-underline-offset: .18em; }
.card-copy { padding-top: .85rem; }
.card-copy h3 { font: 600 clamp(1.2rem, 1.8vw, 1.65rem)/1.1 var(--serif); overflow-wrap: anywhere; }
.card-copy span { display: inline-block; color: var(--muted); font-size: .84rem; margin-top: .34rem; }
.notice { padding: 2rem; color: var(--muted); grid-column: 1/-1; }

.contact {
  color: var(--cream);
  background: var(--wine-dark);
  scroll-margin-top: 0;
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 12rem); align-items: start; gap: 2rem; padding-block: 3.4rem; }
.contact h2 { font-size: clamp(2.45rem, 4.4vw, 4.2rem); }
.contact p { margin-block: .8rem 1.25rem; color: var(--petal); max-width: 34rem; }
.phone-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.phone {
  display: grid;
  gap: .14rem;
  padding: .62rem .88rem;
  border: 1px solid #a98e9e;
  min-width: 11.4rem;
}
.phone:hover { background: #63394e; border-color: var(--cream); }
.phone span { color: var(--petal); font-size: .86rem; }
.phone strong { font-weight: 650; white-space: nowrap; }
.qr { display: grid; gap: .65rem; align-items: start; justify-items: start; }
.qr img { background: #fff; width: min(10.5rem,100%); height: auto; aspect-ratio: 1; }
.qr figcaption { color: var(--petal); font-size: .9rem; }
.contact-bottom { border-top: 1px solid #6e4c61; padding-block: 1.15rem; color: var(--petal); font: italic 1.25rem/1 var(--serif); }

.detail, .detail-empty { padding-block: 1.75rem clamp(3.5rem,6vw,6rem); }
.back-link { display: inline-block; font-size: .95rem; font-weight: 650; color: var(--wine); margin-bottom: 1.5rem; text-decoration: underline; text-underline-offset: .2em; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6.6vw, 7rem); }
.gallery { min-width: 0; }
.detail-photo { aspect-ratio: 5/6; background: #eee7e5; }
.detail-photo img { height: 100%; object-fit: contain; }
.thumbnails { display: flex; gap: .65rem; overflow-x: auto; padding: .75rem .3rem .4rem; }
.thumbnails button { width: 4.7rem; flex: 0 0 auto; aspect-ratio: 1; padding: .15rem; background: var(--white); border: 1px solid var(--line); }
.thumbnails button[aria-pressed="true"] { border: 2px solid var(--wine); }
.thumbnails img { height: 100%; object-fit: contain; }
.detail-copy { align-self: start; padding-top: clamp(.5rem, 4vw, 3.2rem); min-width: 0; }
.detail-copy h1, .detail-empty h1 { font: 400 clamp(2.65rem, 5.2vw, 5.75rem)/.98 var(--serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.detail-category { color: var(--wine); display: inline-block; font-weight: 650; margin-bottom: .85rem; }
.detail-category:hover { text-decoration: underline; }
.detail-ref { margin-block: .95rem 1.1rem; color: var(--muted); }
.detail-ref strong { margin-inline-start: .35rem; color: var(--ink); }
.detail-intro { margin-block: 1.15rem 1.45rem; max-width: 28rem; color: var(--muted); }
.detail-empty p { margin-block: .5rem 1rem; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 3.4rem); }
  .hero-copy { padding-left: 1.7rem; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 4.1rem; gap: .52rem; }
  .brand strong { font-size: 1.82rem; }
  .brand span { font-size: 1rem; }
  .shop-nav { gap: .85rem; }
  .languages { gap: .18rem; }
  .shop-nav a, .languages a { font-size: .875rem; }
  .languages a { padding-inline: .35rem; }
  .hero { display: block; min-height: auto; }
  .hero-copy { padding: 2.1rem 1.15rem 2rem; }
  .hero h1, :lang(fr) .hero h1 { max-width: 13ch; font-size: clamp(2.9rem, 10.4vw, 4.45rem); text-wrap: initial; }
  .hero-kicker { margin-bottom: .65rem; }
  .hero-intro { margin-block: .85rem 1.25rem; }
  .hero-visual { aspect-ratio: 3 / 2; }
  .collection-heading { display: block; }
  .filters { margin-top: .85rem; }
  .filters button { padding-inline: .62rem; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem .7rem; }
  .card-copy { padding-top: .55rem; }
  .contact-grid { grid-template-columns: minmax(0,1fr); gap: 1.5rem; padding-block: 2.25rem; }
  .contact-bottom { padding-block: 1rem; }
  .detail-grid { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .detail, .detail-empty { padding-top: 1.1rem; }
  .detail-photo { aspect-ratio: 4/4.2; }
  .back-link { margin-bottom: .85rem; }
}

@media (max-width: 365px) {
  .masthead-inner { gap: .36rem; }
  .shop-nav { gap: .58rem; }
  .shop-nav a, .languages a { font-size: .82rem; }
  .brand { gap: .18rem; }
  .brand strong { font-size: 1.62rem; }
  .brand span { font-size: .95rem; }
}

.admin-login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.admin-login-panel {
  width: min(100%, 25rem);
  padding: clamp(1.15rem, 5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
}
.admin-login h1 { margin: 1.15rem 0 .75rem; font-size: 1.38rem; }
.admin-login label { display: block; margin-bottom: .3rem; font-weight: 600; }
.admin-login input {
  display: block;
  width: 100%;
  min-height: 2.62rem;
  color: var(--ink);
  background: white;
  border: 1px solid #bdadb5;
  padding: .42rem .65rem;
}
.admin-login form button { margin-top: .9rem; }
.admin-login-message { margin-top: .55rem; color: #8b2e45; }

.admin-setup-fields { margin-bottom: .8rem; }
.admin-setup-help { margin-top: .32rem; font-size: .88rem; color: var(--muted); }
