@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;500;600&display=swap');

:root { color: #2b2823; background: #f3ece0; font-family: Inter, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem max(5vw, 1rem); }
header img { width: clamp(8rem, 17vw, 13rem); display: block; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); font-size: .9rem; }
a { color: inherit; text-underline-offset: .3em; }
img { max-width: 100%; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; line-height: .96; margin: 0 0 .35em; }
h1 { font-size: clamp(3.9rem, 8vw, 8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.7rem, 5vw, 5rem); letter-spacing: -.035em; }
p { line-height: 1.7; max-width: 35ch; }
.hero, .piece, .process { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.intro, .product-copy, .process div { padding: clamp(1.5rem, 6vw, 6rem); }
.hero-knit { display: block; width: 100%; height: clamp(32rem, 65vw, 48rem); object-fit: cover; object-position: center 38%; }
.button { display: inline-block; padding: .9rem 1.2rem; color: #fffaf1; background: #46573a; border: 1px solid #46573a; text-decoration: none; font: inherit; cursor: pointer; }
.button:disabled { opacity: .65; cursor: default; }
.piece { padding: clamp(1rem, 5vw, 5rem); }
.product-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #e6dac6; }
.gallery { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.gallery button, select { border: 1px solid #7a6350; color: inherit; background: transparent; padding: .65rem .8rem; font: inherit; }
.gallery button { cursor: pointer; }
.gallery button[aria-pressed="true"] { color: #fffaf1; background: #554337; }
form { display: grid; gap: .7rem; max-width: 21rem; margin-top: 1.5rem; }
output { font-size: 1.35rem; }
.note, #cart-summary { margin: 0; font-size: .9rem; }
.process { background: #e6dac6; }
.process img { display: block; width: 100%; max-height: 38rem; object-fit: contain; padding: clamp(1rem, 4vw, 3.5rem); }
footer { border-top: 1px solid #7a6350; font-size: .9rem; }
:focus-visible { outline: 2px solid #6e4c5e; outline-offset: 4px; }
@media (max-width: 700px) {
  .hero, .piece, .process { grid-template-columns: 1fr; }
  .hero-knit { height: min(110vw, 34rem); }
  .product-copy { padding-inline: 0; }
  footer { flex-wrap: wrap; }
}

.hero-visual { position: relative; min-width: 0; }
.hero-sketch {
  position: absolute;
  bottom: clamp(.75rem, 3vw, 2rem);
  right: clamp(.75rem, 3vw, 2rem);
  width: clamp(8.5rem, 37%, 16rem);
  margin: 0;
  padding: .55rem;
  background: #f3ece0;
  box-shadow: 0 .25rem 1rem #2b28232b;
}
.hero-sketch a, .hero-sketch img { display: block; width: 100%; }
.hero-sketch img { max-height: 14rem; object-fit: contain; }
.hero-sketch figcaption { padding: .45rem .15rem .1rem; font-size: .875rem; }
