/*
Theme Name: Clay Clay
Description: Rosa ateljétema för Clay Clay och WooCommerce.
Version: 2.0.0
Requires PHP: 7.4
Text Domain: clay-clay
*/
@font-face {
  font-family: "Fraunces";
  src: url("assets/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #faf6e9;
  --ink: #25213a;
  --blue: #303fc0;
  --pink: #f5b1cd;
  --orange: #ff7738;
  --yellow: #f7e68c;
  --line: #30233a33;
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.45 var(--body); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  width: min(100% - 36px, 1200px);
  min-height: 72px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.wordmark {
  font: 820 clamp(25px, 4vw, 35px)/1 var(--display);
  letter-spacing: -0.07em;
  text-decoration: none;
}
.site-header .wordmark { color: var(--blue); }
.site-header nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 32px); }
.shop-link { font-weight: 750; text-decoration: none; }
.bag {
  border: 1px solid var(--blue);
  border-radius: 100px;
  padding: 6px 7px 6px 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}
.bag span {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
}

.hero {
  width: min(100% - 36px, 1200px);
  margin: 20px auto 0;
  background: var(--pink);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(12px, 3vw, 42px);
  padding: clamp(20px, 4.3vw, 64px);
  align-items: center;
}
.hero-copy { padding: 0 0 4px; }
.hero h1 {
  color: var(--blue);
  font: 850 clamp(88px, 12vw, 170px)/.81 var(--display);
  letter-spacing: -.058em;
}
.hero h1 span { color: var(--blue); }
.hero-copy p { margin: 26px 0 17px; max-width: 28ch; font-size: clamp(16px, 2vw, 23px); font-weight: 650; }
.button, .product-action {
  border: 0;
  padding: 11px 15px;
  min-height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}
.button-orange { color: var(--ink); background: var(--orange); }
.hero-arrow { display: block; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-6deg); }
.hero-photo { position: relative; margin: 0 10px 10px 0; }
.hero-photo img {
  height: clamp(300px, 43vw, 520px);
  border-radius: 48% 48% 18px 18px / 38% 38% 18px 18px;
  object-fit: cover;
  object-position: 49% 50%;
}
.unique-stamp {
  position: absolute;
  right: -14px;
  bottom: -12px;
  display: grid;
  place-content: center;
  text-align: center;
  width: clamp(83px, 12vw, 125px);
  aspect-ratio: 1;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  font: 820 clamp(15px, 2vw, 22px)/.97 var(--display);
  transform: rotate(10deg);
}

.catalog { width: min(100% - 36px, 1200px); margin: clamp(35px, 7vw, 90px) auto; }
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 20px; }
.catalog h2, .dialog-header h2 {
  font: 810 clamp(45px, 7vw, 76px)/.95 var(--display);
  color: var(--blue);
  letter-spacing: -.07em;
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--blue);
  min-height: 44px;
  border-radius: 100px;
  padding: 9px 14px;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}
.filters button[aria-pressed="true"] { background: var(--blue); color: white; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }

img { max-width: 100%; }
.logo-image { display: block; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.site-header a { text-decoration: none; }
.site-footer { background: var(--blue); color: white; padding: 24px 0; }
.site-footer .wordmark { margin-bottom: 8px; }
.content { width: min(100% - 36px, 1200px); margin: 30px auto 64px; }
.content h1, .catalog h2 { color: var(--blue); }
.content img { width: auto; }
.content input, .content select, .content textarea { max-width: 100%; }
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 12px; margin: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none; width: auto; margin: 0; position: relative;
}
.woocommerce ul.products li.product a img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--pink); border-radius: 16px; margin-bottom: 10px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font: 720 clamp(17px, 2.5vw, 24px)/1.15 var(--display);
}
.woocommerce ul.products li.product .price { color: var(--ink); font-size: 15px; }
.woocommerce a.button, .woocommerce button.button,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--blue); color: white; border-radius: 100px; padding: 11px 14px;
  line-height: 1.25;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--ink); color: white;
}
.lh-sold {
  position: absolute; top: 8px; right: 8px; background: var(--yellow);
  border-radius: 100px; font-weight: 800; padding: 6px 12px; transform: rotate(6deg);
}
@media (min-width: 800px) {
  .woocommerce ul.products, .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  }
}
@media (max-width: 660px) {
  .hero { grid-template-columns: 1fr; padding: 20px; }
  .hero h1 { font-size: clamp(64px, 15vw, 100px); }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .site-header .shop-link { display: none; }
  .site-footer .footer-inner { align-items: flex-start; flex-direction: column; }
}
