@font-face {
  font-family: Bezzani;
  src: url(assets/P052-Roman.otf);
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf4ef;
  --blush: #f1e1db;
  --ink: #36252a;
  --muted: #674c52;
  --marsala: #743b49;
  --deep: #4a2531;
  --line: #cfb1b0;
  --serif: Bezzani, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
::selection { background: var(--marsala); color: white; }
:focus-visible { outline: 2px solid var(--marsala); outline-offset: 4px; }
a { color: inherit; text-underline-offset: .25em; }
button { cursor: pointer; color: inherit; font: inherit; }
button:disabled { opacity: .55; cursor: default; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font: 400 1rem/1.02 var(--serif); letter-spacing: -.035em; }
h2 { font-size: clamp(2.45rem, 4.8vw, 4.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2.05rem); }
.wrap { width: min(90%, 1360px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; left: 1rem; top: 1rem; padding: .65rem; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: none; }
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 83px;
  border-bottom: 1px solid var(--line);
}
.brand { justify-self: start; padding-block: .6rem; }
.brand img { width: clamp(105px, 12vw, 154px); }
.top nav { display: flex; gap: clamp(1rem, 4vw, 3rem); }
.top nav a, .plain { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.top nav a:hover, .plain:hover { text-decoration: underline; }
.plain { border: 0; background: transparent; gap: .55rem; padding: .25rem .1rem; }
#open-bag { justify-self: end; }
#count { border: 1px solid var(--line); border-radius: 50%; min-width: 1.6rem; text-align: center; font-size: .85rem; }
.edition { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); padding-block: clamp(2.5rem, 5vw, 5.25rem); }
.collection-name { color: var(--marsala); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 650; margin-bottom: 1rem; }
.edition h1 { font-size: clamp(3.3rem, 6.7vw, 6rem); line-height: .94; }
.edition em { color: var(--marsala); }
.intro-text { color: var(--muted); max-width: 32ch; margin: 1.4rem 0 1.55rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: var(--marsala);
  color: white;
  border: 1px solid var(--marsala);
  border-radius: 100px;
  text-decoration: none;
  padding: .65rem 1.35rem;
  transition: background .2s ease;
}
.button:hover:not(:disabled) { background: var(--deep); }
.edition-visual {
  display: grid;
  background: var(--blush);
  padding: clamp(.5rem, 1vw, .8rem);
  border: 1px solid var(--line);
  border-radius: 48% 48% 1.5rem 1.5rem / 25% 25% 1.5rem 1.5rem;
  box-shadow: 0 14px 34px #6b38461a;
}
.edition-visual img {
  width: 100%;
  height: clamp(315px, 32vw, 485px);
  object-fit: cover;
  object-position: 52% center;
  border-radius: 48% 48% .5rem .5rem / 28% 28% .5rem .5rem;
  animation: arrive .65s ease-out both;
}
.featured {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 64px;
  padding: .6rem clamp(.5rem, 2vw, 1.25rem);
  border: 0;
  border-radius: .6rem;
  background: transparent;
  color: var(--deep);
  text-align: left;
}
.featured-copy { display: grid; gap: .2rem; font-size: .85rem; color: var(--muted); }
.featured-copy strong { color: var(--deep); font: 1.45rem/1.1 var(--serif); }
.featured-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border: 1px solid var(--marsala);
  border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.featured:hover .featured-icon { background: var(--deep); color: white; }
.catalog { padding-block: 2rem clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem 1.5rem; margin-bottom: 1.65rem; }
.demo { color: var(--muted); font-size: .875rem; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.65rem); }
.product-card { border: 1px solid var(--line); border-radius: 1.2rem; overflow: hidden; background: #fff9f5; display: flex; flex-direction: column; align-items: flex-start; }
.product-card img { width: 100%; aspect-ratio: 1.18; object-fit: cover; border-bottom: 1px solid var(--line); }
.product-card h3 { margin: .9rem .85rem .3rem; }
.product-card p { margin: 0 .85rem .75rem; color: var(--muted); }
.product-card .button { background: transparent; color: var(--deep); border-color: var(--line); margin: auto .85rem .85rem; padding-inline: .8rem; font-size: .875rem; }
.product-card .button:hover { background: var(--blush); }
.moments { background: var(--deep); color: var(--paper); padding-block: clamp(2.8rem, 6vw, 6rem); }
.moment-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(1.5rem, 6vw, 6rem); align-items: center; }
.moment-grid h2 + p { margin: .75rem 0 1.2rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices button { min-height: 44px; border-radius: 100px; border: 1px solid #c18e99; background: transparent; padding: .4rem .85rem; }
.choices button[aria-pressed=true], .choices button:hover { background: var(--paper); color: var(--deep); }
.moments :focus-visible, footer :focus-visible { outline-color: var(--paper); }
.recommendation { padding: .5rem; border: 1px solid #a97381; border-radius: 1.35rem; }
.recommendation img, dialog img { width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: .9rem; }
.rec-copy { padding: .9rem .7rem .4rem; }
.rec-copy p { margin: .45rem 0 .8rem; }
.rec-copy .button { background: var(--paper); border-color: var(--paper); color: var(--deep); }
.rec-copy .button:hover:not(:disabled) { background: var(--blush); }
footer { background: var(--deep); color: var(--paper); padding-block: 1.5rem; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; border-top: 1px solid #a97381; padding-top: 1.35rem; }
.foot img { width: 115px; }
dialog { width: min(92vw, 580px); max-height: 90dvh; border: 1px solid var(--line); border-radius: 1.4rem; padding: 1.35rem; background: var(--paper); color: var(--ink); overflow: auto; }
dialog::backdrop { background: #321922b0; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .85rem; }
.dialog-head h2 { font-size: 2.45rem; }
dialog p { margin: .85rem 0; }
dialog ul { padding: 0; list-style: none; }
.bag-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; border-bottom: 1px solid var(--line); padding: .8rem 0; }
.quantity { display: flex; align-items: center; gap: .45rem; }
.quantity button { border: 1px solid var(--line); border-radius: 50%; background: transparent; min-width: 44px; min-height: 44px; }
.quantity button:hover { background: var(--blush); }
@keyframes arrive { from { opacity: .72; } to { opacity: 1; } }
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .top { min-height: 68px; gap: .35rem; }
  .top nav { justify-content: center; font-size: .85rem; }
  .top nav a:last-child { display: none; }
  #open-bag { font-size: .85rem; gap: .25rem; }
  .edition, .moment-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .edition { padding-block: 1.95rem 2rem; }
  .edition h1 { font-size: clamp(3.25rem, 10vw, 4.7rem); }
  .edition h1 br { display: none; }
  .intro-text { margin: .8rem 0 1rem; }
  .edition-visual img { height: clamp(235px, 65vw, 375px); }
}
@media (max-width: 350px) {
  .brand img { width: 86px; }
  .edition h1 { font-size: 2.8rem; }
  .product-card h3, .product-card p { margin-inline: .55rem; }
  .product-card .button { margin-inline: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
