@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #102b45;
  --muted: #4b6072;
  --blue: #075a91;
  --blue-dark: #07436e;
  --line: #d5e1e9;
  --ice: #f1f7fa;
  --white: #fff;
  --serif: "Instrument Serif", Georgia, serif;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.5 "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1377b4; outline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .65rem 1rem;
  transform: translateY(-150%);
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { transform: none; }
.wrap { width: min(100% - 7.5rem, 81rem); margin-inline: auto; }
.icon { display: block; width: 1.2rem; height: 1.2rem; stroke-width: 1.6; }

.header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brands { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.pierre-logo { width: 86px; flex: none; }
.pepperone-logo { width: 72px; flex: none; }
.brand-rule { height: 30px; width: 1px; background: var(--line); }
.header nav { display: flex; gap: clamp(1.4rem, 3.5vw, 3.25rem); }
.header nav a { font-size: .92rem; font-weight: 600; text-decoration: none; }
.header nav a:hover, .hero-contact:hover, .footer a:hover { color: var(--blue); text-decoration: underline; }
.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .45rem .65rem .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 4rem;
  background: var(--white);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}
.cart-trigger:hover { border-color: var(--blue); }
.count {
  display: grid;
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding-inline: .32rem;
  place-items: center;
  background: var(--ice);
  color: var(--blue-dark);
  border-radius: 2rem;
  font-size: .8rem;
}

.hero {
  padding-block: clamp(1.5rem, 3.55vw, 3.15rem);
  background: radial-gradient(ellipse at 15% 0%, #fff 0%, transparent 58%), #edf5fa;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: stretch;
}
.hero-copy {
  align-self: center;
  padding: 2rem clamp(1.25rem, 3vw, 3.25rem) 2rem 0;
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: var(--blue-dark);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .135em;
  text-transform: uppercase;
}
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.hero-eyebrow span { height: 1px; width: 18px; background: #7296b3; }
.hero h1, .catalog h2, .how h2, .contact h2, dialog h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.021em;
}
.hero h1 {
  margin: .95rem 0 1.35rem;
  font-size: clamp(3.9rem, 5.7vw, 5.55rem);
  line-height: .92;
}
.hero h1 em { color: var(--blue); }
.hero-description { max-width: 27rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.17rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; margin-top: 1.8rem; }
.hero-contact { color: var(--ink); font-size: .93rem; font-weight: 700; text-underline-offset: .28em; }
.hero-visual { min-width: 0; overflow: hidden; border-radius: .35rem 4.5rem .35rem .35rem; background: #104375; }
.hero-visual img { width: 100%; height: 100%; aspect-ratio: 1.4; object-fit: cover; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .62rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  color: inherit;
  background: transparent;
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.hero-actions .button { padding-inline: 1.5rem; min-height: 51px; }
.button-accent { background: var(--blue); color: var(--white); }
.button-accent:hover { background: var(--blue-dark); }
.button-outline { border-color: #a8bccb; color: var(--ink); }
.button-outline:hover { border-color: var(--blue); background: var(--ice); }

.catalog { padding-block: clamp(3.25rem, 6vw, 5.4rem); }
.catalog-heading { display: grid; grid-template-columns: 1.55fr 1fr; align-items: end; gap: 1.25rem 2rem; }
.catalog h2, .how h2, .contact h2 { font-size: clamp(3rem, 5vw, 5rem); line-height: .97; margin-top: .55rem; }
.catalog-heading > p { color: var(--muted); max-width: 31rem; justify-self: end; padding-bottom: .35rem; }
.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 1.85rem .95rem;
  padding-block: .85rem;
  border-block: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter, .color-chip, .gallery-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--white);
  color: var(--ink);
  padding: .42rem .9rem;
  font-size: .875rem;
  font-weight: 650;
}
.filter:hover, .color-chip:hover, .gallery-chip:hover { border-color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.color-chip[aria-pressed="true"], .gallery-chip[aria-pressed="true"] {
  background: #e6f2f9;
  color: var(--blue-dark);
  border-color: var(--blue);
}
.search {
  display: flex;
  align-items: center;
  flex: 0 0 min(16rem, 100%);
  gap: .55rem;
  min-height: 42px;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  color: var(--muted);
}
.search:focus-within { outline: 2px solid var(--blue); }
.search input { width: 100%; min-width: 0; padding: .5rem 0; border: 0; color: var(--ink); background: transparent; font-size: .9rem; }
.search input:focus { outline: none; }
#results { color: var(--muted); font-size: .875rem; margin-bottom: .9rem; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .45rem; }
.product-card:hover { border-color: #a1b8ca; }
.product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.17;
  padding: 1rem;
  overflow: hidden;
  border: 0;
  background: radial-gradient(ellipse at 52% 38%, #fff 15%, #f2f7fb 83%);
}
.product-card:nth-child(4n+1) .product-image { background: radial-gradient(ellipse at 52% 38%, #fff 15%, #f7f2f3 84%); }
.product-card:nth-child(4n+3) .product-image { background: radial-gradient(ellipse at 52% 38%, #fff 15%, #edf5f1 84%); }
.product-image:focus-visible { outline-offset: -4px; }
.product-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .25s ease;
}
.product-image:hover img { transform: scale(1.045); }
.card-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: .95rem 1.02rem 1.05rem; }
.product-meta { color: var(--blue-dark); font-size: .8125rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.card-info h3 { margin: .2rem 0 .28rem; font-size: 1.06rem; line-height: 1.25; }
.card-info h3 button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.card-info h3 button:hover { text-decoration: underline; text-underline-offset: .18em; }
.variant-text { color: var(--muted); font-size: .875rem; margin-bottom: .8rem; }
.card-info .button {
  width: 100%;
  min-height: 41px;
  margin-top: auto;
  padding-inline: .78rem;
  justify-content: space-between;
  border-color: var(--line);
  color: var(--blue-dark);
}
.card-info .button:hover { background: var(--ice); border-color: var(--blue); }
.catalog-more { display: flex; justify-content: center; margin-top: 1.65rem; }
.catalog-more:has(:only-child[hidden]) { display: none; }
.no-results { grid-column: 1 / -1; padding: 2rem 1rem; background: var(--ice); text-align: center; }
.no-results p { margin: .45rem 0 .9rem; color: var(--muted); }

.how { background: var(--ice); border-block: 1px solid var(--line); }
.how-inner { display: grid; grid-template-columns: .8fr 1.65fr; align-items: center; gap: 2.5rem; padding-block: 3.5rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: flex-start; gap: 1rem; padding-block: .9rem; }
.steps li + li { border-top: 1px solid var(--line); }
.step-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #dcecf6;
  color: var(--blue-dark);
  font-weight: 700;
}
.steps h3 { font-size: 1.02rem; margin-bottom: .12rem; }
.steps p { color: var(--muted); }
.contact { padding-block: clamp(3rem, 5.5vw, 5.25rem); }
.contact-panel {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.6rem, 5.3vw, 4.9rem);
  color: var(--white);
  background: radial-gradient(ellipse at 80% 110%, #185989 0%, transparent 68%), #102c48;
  border-radius: .35rem 3.5rem .35rem .35rem;
}
.contact-panel .eyebrow, .contact-panel em { color: #c8e9ff; }
.contact-copy > p:last-child { color: #e3eff7; margin-top: 1rem; max-width: 26rem; }
.contact-actions { border-left: 1px solid #7591a8; padding-left: clamp(1.25rem, 3vw, 3rem); }
.contact-actions h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.contact-actions h3 span { display: block; color: #cce0ee; font-size: .875rem; font-weight: 400; }
.contact-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem 0;
  text-decoration: none;
  font-weight: 700;
}
.contact-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.contact-link small { display: block; color: #e0edf6; font-size: .875rem; font-weight: 400; overflow-wrap: anywhere; }
.contact-selection { border-color: #aecbde; margin-top: .8rem; }
.contact-selection:hover { background: var(--white); color: var(--ink); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer img { width: 76px; }
.footer a:last-child { font-weight: 700; text-underline-offset: .22em; }

dialog {
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .75rem;
  box-shadow: 0 24px 90px #0b253a35;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #091d30a6; }
.product-dialog { width: min(58rem, 100% - 2rem); max-height: calc(100dvh - 2rem); }
.close-button {
  position: absolute;
  z-index: 1;
  top: .75rem;
  right: .75rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}
.close-button:hover { background: var(--ice); }
.detail-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; }
.detail-media { display: grid; align-content: center; padding: 1.4rem; background: var(--ice); }
.detail-picture { display: grid; place-items: center; min-height: 18rem; background: var(--white); border-radius: .45rem; padding: .85rem; }
.detail-picture img { width: 100%; height: 17rem; object-fit: contain; }
.detail-info { padding: 2.7rem 1.55rem 1.55rem; min-width: 0; }
.detail-info h2, .cart-header h2 { font-size: clamp(2.6rem, 4.2vw, 3.8rem); line-height: .97; margin-block: .35rem .65rem; }
.detail-copy, .detail-note, #cart-subtitle, #quote-help { color: var(--muted); }
.detail-info dl { display: grid; grid-template-columns: max-content 1fr; gap: .32rem 1rem; margin-block: 1rem; font-size: .875rem; }
.detail-info dt { font-weight: 700; }
.detail-info dd { margin: 0; }
.detail-info fieldset { margin: 1rem 0; padding: 0; min-width: 0; border: 0; }
.detail-info legend { font-weight: 700; margin-bottom: .4rem; font-size: .9rem; }
.detail-colors, .detail-gallery { display: flex; flex-wrap: wrap; gap: .4rem; }
.detail-gallery { margin-top: .65rem; }
.add-detail { display: flex; gap: .7rem; align-items: end; flex-wrap: wrap; }
.add-detail label { display: grid; gap: .2rem; color: var(--muted); font-size: .86rem; font-weight: 700; }
.qty { width: 6rem; min-height: 43px; padding: .4rem; border: 1px solid #9fb3c4; border-radius: .34rem; color: var(--ink); background: var(--white); }
.detail-note { margin-top: .8rem; font-size: .82rem; }

.cart-dialog {
  width: min(31rem, 100%);
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: .75rem 0 0 .75rem;
  padding: 1.35rem;
}
.cart-header { padding-right: 2rem; margin-bottom: 1rem; }
.cart-items { display: grid; gap: .75rem; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: .75rem; padding: .7rem; border: 1px solid var(--line); border-radius: .45rem; }
.cart-item img { width: 100%; height: 68px; object-fit: contain; }
.cart-item h3 { font-size: 1rem; }
.cart-item p { margin-block: .2rem .4rem; color: var(--muted); font-size: .85rem; }
.cart-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.cart-controls label { color: var(--muted); font-size: .875rem; }
.link-button { min-height: 40px; border: 0; background: transparent; color: var(--blue-dark); font-weight: 700; font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
.link-button:hover { color: var(--ink); }
.cart-empty { padding: 1.1rem; border-radius: .45rem; background: var(--ice); }
.cart-empty p { margin-bottom: .7rem; }
.quote-notes { margin-top: 1rem; }
.quote-notes label { color: var(--ink); font-weight: 700; }
.quote-notes label span { color: var(--muted); font-weight: 400; font-size: .875rem; }
.quote-notes textarea { width: 100%; margin-top: .35rem; padding: .6rem; color: var(--ink); border: 1px solid #9fb3c4; border-radius: .4rem; resize: vertical; }
.quote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .65rem; }
#quote-help, #copy-quote { grid-column: 1 / -1; justify-self: center; }
#quote-help { font-size: .83rem; text-align: center; }
.toast {
  position: fixed;
  z-index: 8;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(25rem, 100% - 2.5rem);
  padding: .7rem 1rem;
  border-radius: .5rem;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 23px #102b4535;
}
.toast:empty { clip-path: inset(50%); }

@media (max-width: 1100px) {
  .wrap { width: min(100% - 4.5rem, 81rem); }
  .hero h1 { font-size: clamp(3.65rem, 6.1vw, 4.9rem); }
  .toolbar { flex-wrap: wrap; }
  .search { flex: 0 1 18rem; }
}

@media (max-width: 900px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-block: 1.75rem; }
  .hero-visual { border-top-right-radius: 2.75rem; }
  .hero h1 { font-size: clamp(3.25rem, 8vw, 4.75rem); }
  .hero-copy { padding-block: 1rem; }
  .hero-description { line-height: 1.5; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 62px; gap: .55rem; }
  .header nav { display: none; }
  .brands { gap: .6rem; }
  .pierre-logo { width: 68px; }
  .pepperone-logo { width: 60px; }
  .brand-rule { height: 27px; }
  .hero { padding: 1.65rem 0 1rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.35rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.3rem, 11vw, 5.3rem); margin: .65rem 0 .85rem; }
  .hero-description { max-width: 25rem; }
  .hero-actions { margin-top: 1rem; gap: .65rem 1rem; }
  .hero-actions .button { min-height: 44px; padding-inline: 1rem; }
  .hero-visual img { aspect-ratio: 1.64; }
  .catalog { padding-block: 2.65rem; }
  .catalog-heading { grid-template-columns: 1fr; gap: .75rem; }
  .catalog-heading > p { justify-self: start; padding: 0; }
  .toolbar { margin-top: 1.15rem; gap: .65rem; }
  .search { flex-basis: 100%; order: -1; }
  .filter { min-height: 38px; padding-inline: .68rem; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .product-image { padding: .65rem; }
  .card-info { padding: .65rem; }
  .card-info h3 { font-size: .98rem; }
  .card-info .button { font-size: .82rem; padding-inline: .5rem; }
  .card-info .button .icon { width: .9rem; flex: none; }
  .how-inner { padding-block: 2.25rem; grid-template-columns: 1fr; gap: .9rem; }
  .how h2 br { display: none; }
  .contact-panel { grid-template-columns: 1fr; gap: 1.35rem; }
  .contact-actions { border-left: 0; border-top: 1px solid #7591a8; padding: 1.05rem 0 0; }
  .footer { flex-wrap: wrap; }
  .footer p { order: 1; width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { padding: .85rem; }
  .detail-picture { min-height: 0; }
  .detail-picture img { height: 12rem; }
  .detail-info { padding: 1rem; }
}

@media (max-width: 370px) {
  .cart-label { display: none; }
  .hero-eyebrow { font-size: .75rem; }
  .quote-actions { grid-template-columns: 1fr; }
}

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