:root {
  color-scheme: light;
  --cream: #fdf5e7;
  --berry: #981f49;
  --berry-dark: #761637;
  --ink: #362324;
  --muted: #745e58;
  --line: #dfc9bf;
  --rose: #f6e7df;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 400 15px/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; }
.shell { width: min(100% - 88px, 1400px); margin-inline: auto; }

.site-header {
  height: 98px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 6px;
  color: var(--berry);
}
.brand { width: 158px; display: inline-block; }
.site-header nav, .back-to-top { font-size: 14px; font-weight: 700; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); }
.site-header nav a:hover, .back-to-top:hover { text-decoration: underline; text-underline-offset: 5px; }
.bag-toggle {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 7px 6px 16px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}
.bag-toggle:hover { border-color: var(--berry); }
.bag-toggle span { min-width: 27px; min-height: 27px; padding-inline: 4px; display: grid; place-items: center; border-radius: 30px; background: var(--berry); color: var(--cream); font-size: 12px; }

.offer-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 8px 14px 8px 19px;
  border-radius: 13px;
  background: var(--berry);
  color: var(--cream);
  font-size: 14px;
}
.offer-banner p { display: flex; align-items: baseline; gap: 10px; }
.offer-banner p strong { padding-right: 10px; border-right: 1px solid rgb(253 245 231 / .45); }
.offer-banner button { min-height: 34px; padding: 4px 11px; border: 1px solid rgb(253 245 231 / .55); border-radius: 99px; background: transparent; color: inherit; font-weight: 700; white-space: nowrap; }
.offer-banner button:hover { background: var(--cream); color: var(--berry); }
.offer-banner button:focus-visible { outline-color: var(--cream); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(490px, 43vw, 650px);
  border-radius: 24px;
  overflow: hidden;
  background: var(--rose);
}
.hero-copy { align-self: center; padding: clamp(35px, 6.5vw, 104px); }
.eyebrow { font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--berry); }
.hero h1 { margin: 20px 0 24px; color: var(--berry); font: 400 clamp(58px, 7.05vw, 114px)/.89 var(--serif); letter-spacing: -.027em; }
.hero h1 em { font-weight: 400; }
.hero-description { max-width: 290px; margin-bottom: 28px; color: #624842; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.55; }
.button {
  min-height: 49px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
}
.button span { font-size: 19px; line-height: 1; }
.button-primary { background: var(--berry); color: var(--cream); }
.button-primary:hover { background: var(--berry-dark); }
.hero-visual {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(90deg, rgb(255 246 237 / .12), transparent 55%, rgb(112 84 66 / .04)),
    linear-gradient(180deg, #ccb9ab, #cfbdb0 32%, #d0beb2 78%, #d0beb3);
}
.hero-visual > img {
  position: absolute;
  inset: auto 0 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin-inline: auto;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent),
    linear-gradient(180deg, transparent, #000 2.5%);
  mask-composite: intersect;
}
.hero-float { position: absolute; }
.hero-float-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgb(152 31 73 / .14);
  border-radius: 15px;
  background: var(--cream);
  box-shadow: 0 8px 26px rgb(59 23 32 / .19);
  text-align: left;
  line-height: 1.25;
  color: var(--berry);
}
.hero-float-card:hover { background: var(--rose); }
.hero-float-card:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.hero-float-card strong, .hero-float-card small { display: block; }
.hero-float-card strong { font-size: 13px; }
.hero-float-card small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.hero-float-offer { top: clamp(25px, 4.7vw, 69px); left: clamp(14px, 2.4vw, 34px); }
.hero-float-yarn { flex: none; width: 33px; height: 33px; border-radius: 50%; background: var(--rose) url("assets/hooksie-yarn-hook.svg") center / 22px no-repeat; }
.hero-float-arrow { display: grid; place-items: center; flex: none; width: 25px; height: 25px; border-radius: 50%; background: var(--rose); }
.hero-visual figcaption { --float-rise: -9px; --float-delay: .17s; inset: auto clamp(14px, 2.4vw, 34px) clamp(13px, 2.45vw, 35px) auto; }
.hero-visual.is-floating .hero-float { animation: hero-drift 2.25s ease-in-out 2; animation-delay: var(--float-delay, 0s); }
body:has(dialog[open]) .hero-visual.is-floating .hero-float, .hero-visual.is-floating .hero-float:focus-within { animation-play-state: paused; }
@keyframes hero-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--float-rise, -8px)); }
}

.collection { padding: 74px 0 85px; scroll-margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.section-heading h2, dialog h2 { color: var(--berry); font: 400 clamp(40px, 5.3vw, 75px)/.95 var(--serif); letter-spacing: -.02em; }
.section-heading p { color: var(--muted); white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 37px 18px; }
.product-image-button { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--rose); }
.product-image { aspect-ratio: 2 / 3; object-fit: contain; }
.product-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 14px; padding: 12px 1px 0; }
.product-caption h3 { font-size: clamp(15px, 1.5vw, 20px); font-weight: 700; line-height: 1.2; }
.product-name { padding: 0; text-align: left; border: 0; background: transparent; }
.product-name:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 4px; }
.product-caption .price { color: var(--berry); font-size: clamp(13px, 1.25vw, 17px); font-weight: 700; white-space: nowrap; }
.product-color { margin-top: 3px; font-size: 13px; color: var(--muted); }

.offer-feature {
  margin-bottom: clamp(38px, 5vw, 76px);
  scroll-margin-top: 24px;
  padding: clamp(44px, 6vw, 88px) 22px;
  border-radius: 24px;
  background: linear-gradient(113deg, var(--berry-dark), #a22f58);
  color: var(--cream);
  text-align: center;
}
.offer-feature .eyebrow { color: inherit; }
.offer-feature h2 { margin: 15px 0 16px; font: 400 clamp(43px, 6.2vw, 87px)/.94 var(--serif); letter-spacing: -.02em; }
.offer-feature h2 em { font-weight: 400; }
.offer-feature p:not(.eyebrow) { max-width: 350px; margin: 0 auto 23px; }
.offer-shop-button { background: var(--cream); color: var(--berry-dark); }
.offer-shop-button:hover { background: var(--rose); }
.offer-shop-button:focus-visible { outline-color: var(--cream); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.about, .faq, .newsletter, .site-footer { scroll-margin-top: 24px; }
.about {
  padding: clamp(30px, 5vw, 64px);
  border-radius: 24px;
  background: var(--rose);
  text-align: center;
}
.about h2, .faq h2, .newsletter h2 {
  color: var(--berry);
  font: 400 clamp(48px, 6.4vw, 94px)/.92 var(--serif);
  letter-spacing: -.02em;
}
.about h2 { margin: 13px 0 18px; }
.about p:not(.eyebrow) { max-width: 390px; margin-inline: auto; color: var(--muted); }
.text-link { display: inline-block; margin-top: 16px; color: var(--berry); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover { color: var(--berry-dark); }

.faq { width: min(100%, 780px); margin-inline: auto; padding: clamp(56px, 7vw, 97px) 0; }
.faq h2 { text-align: center; font-size: clamp(41px, 5.2vw, 69px); margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 63px; padding: 12px 2px; list-style: none; cursor: pointer; color: var(--ink); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--berry); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 18px 2px; color: var(--muted); }
.faq details a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }

.newsletter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 52px;
  padding: clamp(27px, 5.5vw, 74px);
  border-radius: 24px;
  background: var(--berry);
  color: var(--cream);
}
.newsletter::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18% -4% -28% auto;
  width: 48%;
  background: url("assets/hooksie-yarn-hook.svg") center right / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .13;
  pointer-events: none;
}
.newsletter h2 { color: inherit; font-size: clamp(44px, 5.4vw, 76px); margin-bottom: 22px; }
.newsletter-description { max-width: 268px; margin: 0 0 30px; }
.newsletter form {
  width: min(100%, 390px);
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  background: var(--cream);
}
.newsletter input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 99px;
  padding: 10px 4px 10px 13px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.newsletter input::placeholder { color: var(--muted); }
.newsletter form button { padding: 9px 14px; border: 0; border-radius: 99px; background: var(--berry-dark); color: var(--cream); font-weight: 700; white-space: nowrap; }
.newsletter form button:disabled { opacity: .65; cursor: wait; }
.newsletter form :focus-visible { outline-offset: 0; }
.newsletter-status { min-height: 22px; margin-top: 8px; font-size: 13px; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) repeat(2, minmax(130px, .8fr)) minmax(200px, 1fr);
  gap: 24px;
  padding: 36px 0 91px;
  border-top: 1px solid var(--line);
  color: var(--berry);
}
.site-footer .brand { width: 145px; }
.footer-brand, .footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand { gap: 16px; }
.footer-links h2 { margin: 0 0 3px; font-size: 14px; color: var(--ink); }
.footer-links a { font-size: 14px; color: var(--berry); }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-link { display: flex; align-items: center; gap: 7px; }
.contact-link svg { width: 17px; height: 17px; flex: none; }
.footer-number { white-space: nowrap; }

.whatsapp-float, .floating-bag {
  position: fixed;
  z-index: 2;
  bottom: max(22px, env(safe-area-inset-bottom));
  border: 1px solid var(--cream);
  border-radius: 99px;
  box-shadow: 0 5px 22px rgb(76 26 40 / .19);
  background: var(--berry);
  color: var(--cream);
}
.whatsapp-float { right: max(22px, env(safe-area-inset-right)); display: grid; place-items: center; width: 58px; height: 58px; }
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover, .floating-bag:hover { background: var(--berry-dark); }
.floating-bag:not([hidden]) { left: 50%; transform: translateX(-50%); display: flex; align-items: center; min-height: 55px; padding: 8px 15px; gap: 12px; font-size: 13px; font-weight: 700; }
.floating-bag > span:first-child { padding-right: 12px; border-right: 1px solid rgb(253 245 231 / .45); }

dialog { border: 0; color: var(--ink); background: var(--cream); }
dialog::backdrop { background: rgb(49 22 25 / .52); }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--berry); font-size: 23px; line-height: 1; }
.icon-button:hover { background: var(--rose); }
.offer-dialog { width: min(510px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border-radius: 26px; overflow: auto; text-align: center; }
.offer-header { position: relative; isolation: isolate; overflow: hidden; padding: 49px 22px 28px; background: var(--berry); color: var(--cream); }
.offer-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35% -15% -40% 42%;
  background: url("assets/hooksie-yarn-hook.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .12;
  transform: rotate(-8deg);
  pointer-events: none;
}
.offer-header .eyebrow, .offer-header h2 { color: inherit; }
.offer-header h2 { margin: 10px 0 14px; font-size: clamp(45px, 10vw, 68px); }
.offer-header h2 em { font-weight: 400; }
.offer-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; }
.offer-close:focus-visible { outline-color: var(--cream); outline-offset: 3px; }
.offer-details { display: grid; gap: 13px; padding: 22px; }
.offer-ticket { padding: 15px; border: 1px dashed var(--berry); border-radius: 13px; background: var(--rose); }
.offer-ticket strong { color: var(--berry); font-size: 20px; }
.offer-ticket p { margin: 5px auto 0; max-width: 360px; color: var(--muted); font-size: 14px; }
.offer-dismiss { justify-self: center; min-height: 35px; border: 0; background: transparent; color: var(--berry); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }















.bag-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; }
.bag-dialog[open] { display: flex; flex-direction: column; }
.bag-header { display: flex; justify-content: space-between; align-items: center; padding: 23px; border-bottom: 1px solid var(--line); }
.bag-header h2 { font-size: 49px; }
.bag-content { flex: 1; overflow: auto; padding: 0 23px; }
.empty-bag { padding: 25px 0; }
.bag-item { display: grid; grid-template-columns: 72px 1fr auto; align-items: start; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-item img { aspect-ratio: 2 / 3; object-fit: contain; border-radius: 7px; }
.bag-item h3 { font-size: 15px; }
.bag-item strong { white-space: nowrap; color: var(--berry); }
.quantity { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.quantity button { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.quantity button:hover { background: var(--rose); }
.bag-footer { display: grid; gap: 10px; padding: 16px 23px 21px; border-top: 1px solid var(--line); }
.bag-summary { display: grid; gap: 4px; }
.bag-price-row:not([hidden]) { display: flex; justify-content: space-between; gap: 12px; }
.bag-discount, .bag-total { color: var(--berry); }
.bag-total { margin-top: 3px; padding-top: 6px; border-top: 1px solid var(--line); font-weight: 700; }
.bag-offer-progress { border-radius: 8px; padding: 7px 9px; background: var(--rose); color: var(--berry); font-size: 13px; }
.bag-footer .button { width: 100%; }
.bag-order-link[hidden] { display: none; }
.bag-footer:has(.bag-order-link:not([hidden])) .bag-continue { min-height: 41px; border-color: var(--line); background: transparent; color: var(--berry); }
.bag-footer:has(.bag-order-link:not([hidden])) .bag-continue:hover { background: var(--rose); }

@media (max-width: 1120px) {
  .hero-float-offer { top: auto; bottom: clamp(72px, 10vw, 94px); }
}

@media (max-width: 980px) {
  .shell { width: calc(100% - 48px); }
  .site-header { height: 82px; }
  .hero-copy { padding-inline: clamp(24px, 5vw, 57px); }
  .hero h1 { font-size: clamp(51px, 8.1vw, 82px); }
}

@media (max-width: 760px) {
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 30px); }
  .site-header { height: 71px; padding: 0; }
  .site-header nav { display: none; }
  .brand { width: 126px; }
  .bag-toggle { grid-column: 3; }
  .offer-banner { padding: 7px 9px 7px 12px; font-size: 12px; }
  .offer-banner p { display: grid; gap: 1px; }
  .offer-banner p strong { padding: 0; border: 0; }
  .hero { grid-template-columns: 1fr; border-radius: 18px; }
  .hero-copy { padding: 40px 26px 35px; }
  .hero h1 { font-size: clamp(57px, 13vw, 79px); margin: 15px 0 15px; }
  .hero-description { margin-bottom: 20px; }
  .hero-visual { aspect-ratio: 5 / 6; }
  .hero-visual figcaption { inset: auto 62px 11px auto; }
  .hero-float-card { gap: 6px; padding: 7px 8px; border-radius: 12px; }
  .hero-float-card strong { font-size: 12px; }
  .hero-float-card small { font-size: 11px; }
  .hero-float-yarn { width: 28px; height: 28px; background-size: 19px; }
  .hero-float-offer { bottom: 70px; left: 10px; }
    .collection { padding: 52px 0; }
  .section-heading { margin-bottom: 15px; padding-bottom: 12px; }
  .section-heading h2 { font-size: clamp(34px, 8vw, 46px); }
  .section-heading p { font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 11px; }
  .product-card { display: flex; flex-direction: column; }
  .product-image-button { border-radius: 10px; }
  .product-caption { flex: 1; display: grid; gap: 4px; padding-top: 8px; }
  .product-caption .price { align-self: end; }
  .offer-feature { border-radius: 18px; }
  .about { border-radius: 18px; }
  .newsletter { grid-template-columns: 1fr; gap: 5px; margin-bottom: 35px; border-radius: 18px; }
  .newsletter-description { margin: 0; font-size: 14px; }
  .newsletter::after { inset: -5% -30% 28% auto; width: 96%; }
  .site-footer { gap: 23px 18px; padding-top: 28px; }
  .site-footer .brand { width: 116px; }
  .whatsapp-float { right: max(14px, env(safe-area-inset-right)); width: 51px; height: 51px; }
  .whatsapp-float, .floating-bag { bottom: max(15px, env(safe-area-inset-bottom)); }
  .floating-bag:not([hidden]) { min-height: 48px; left: max(15px, env(safe-area-inset-left)); transform: none; }
  .contact-link { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual.is-floating .hero-float { animation: none; }
  html { scroll-behavior: auto; }
}
