@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
}

.eyebrow,
.cat,
.tag,
.price {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

/* Active page underline */
.site-menu a {
  position: relative;
}

.site-menu a.active {
  color: var(--blue);
}

.site-menu a.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -8px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
}

/* Mobile active underline */
@media (max-width: 800px) {
 .site-menu a.active::after { left: 8px; right: auto; bottom: 4px; width: 42px; }
}

.product-title { cursor: pointer; transition: color .2s ease; }
.product-title:hover, .product-title:focus { color: var(--blue); outline: none; }
.product-title:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.product-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(4,26,37,.72); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.product-modal[aria-hidden="false"] { opacity: 1; visibility: visible; }
.product-modal__card { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 26px; width: min(620px,100%); padding: 30px; border-radius: 20px; background: #fff; box-shadow: 0 25px 70px rgba(0,0,0,.28); transform: translateY(12px); transition: transform .2s ease; }
.product-modal[aria-hidden="false"] .product-modal__card { transform: translateY(0); }
.product-modal__close { position: absolute; top: 9px; right: 14px; border: 0; background: transparent; color: var(--ink); font-size: 2rem; cursor: pointer; }
.product-modal__image { display: grid; place-items: center; min-height: 180px; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg,#dff4fb,#dedbf6); color: var(--blue); font-size: 3rem; font-weight: 900; }
.product-modal__image img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.product-modal__content { align-self: center; }
.product-modal__content h2 { margin-bottom: 10px; }
.product-modal__content > p:not(.eyebrow) { color: var(--muted); }
@media (max-width: 560px) { .product-modal__card { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; } .product-modal__image,.product-modal__image img { min-height: 130px; height: 130px; } .product-modal__enquire { width: 100%; } }

/* On phones, show the Live readout/visual before the headline copy. */
@media (max-width: 800px) {
  .hero-grid { display: flex; flex-direction: column; }

/* Mobile hero order:
   Live readout first, headline/content second */
@media (max-width: 800px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-visual {
    order: -1;
    width: 100%;
  }

  .hero-copy {
    order: 2;
    width: 100%;
  }
}

