/* Self-hosted OFL fonts and the pieces shared by home and product pages. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/cormorant-garamond-latin-wght-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/cormorant-garamond-latin-wght-italic.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/jost-latin-wght-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122;
}
:root {
  --serif: 'Cormorant Garamond', 'CA Frecce', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'CA Frecce', 'Helvetica Neue', Arial, sans-serif;
  --ca-space: clamp(72px, 9vw, 136px);
}
h1,
h2,
h3 {
  font-weight: 500;
}
/* Shared pieces */
.ca-eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ca-button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 34px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.4s var(--ease);
}
.ca-button:hover {
  background: #2d5247;
}
.ca-link {
  display: inline-block;
  padding-bottom: 6px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition:
    background-size 0.6s var(--ease),
    color 0.3s;
}
.ca-link:hover {
  color: var(--gold);
  background-size: 35% 1px;
}
.ca-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.ca-head h2 {
  margin: 0;
  font-size: clamp(36px, 3.8vw, 56px);
  line-height: 1.02;
}
/* Product cards */
.ca-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 64px) clamp(16px, 2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ca-card a {
  position: relative; /* contains WooCommerce's absolute screen-reader price text inside scrolling rows */
  display: block;
  text-decoration: none;
}
.ca-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.12;
  margin-bottom: 18px;
  background: var(--soft);
  overflow: hidden;
}
.ca-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 7%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition:
    opacity 0.7s var(--ease),
    transform 1.1s var(--ease);
}
.ca-card-alt {
  opacity: 0;
}
.ca-card h3 {
  margin: 0 0 4px;
  font-size: clamp(22px, 1.8vw, 27px);
  line-height: 1.15;
}
.ca-price {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.ca-cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Minimal motion, only when the visitor allows it */
[data-reveal].reveal-ready {
  transform: translateY(14px);
  transition-duration: 1s;
}
[data-reveal].reveal-ready.is-visible {
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .ca-card a:hover img {
    transform: scale(1.04);
  }
}
@media (hover: hover) {
  .ca-card a:hover .has-alt img:first-child {
    opacity: 0;
  }
  .ca-card a:hover .ca-card-alt {
    opacity: 1;
  }
}
@keyframes ca-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@media (max-width: 900px) {
  .ca-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .ca-cards {
    gap: 32px 14px;
  }
  .ca-card-media {
    margin-bottom: 12px;
  }
  .ca-card h3 {
    font-size: 20px;
  }
}
