:root {
  --paper: #f7f7f3;
  --ink: #20231d;
  --muted: #6d7068;
  --line: #ced0c8;
  --white: #ffffff;
  --accent: #b84c35;
  --moss: #506551;
  --blue: #45677d;
  --butter: #e8bd55;
  --max-width: 1440px;
  --page-padding: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.home-view,
.product-view {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  padding: 0 var(--page-padding);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 650;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a,
.product-link,
.text-link,
.back-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-nav a:hover,
.product-link:hover,
.text-link:hover,
.back-link:hover {
  text-decoration: underline;
}

.header-note {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.hero {
  padding: clamp(28px, 5vw, 76px) var(--page-padding) clamp(70px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(480px, 1.25fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.hero-copy {
  padding-top: 16px;
}

.eyebrow,
.section-index,
.product-category,
.dialog-kicker {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8ch;
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.04;
}

.hero-description {
  max-width: 38ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #d8d6d0;
}

.hero-media img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 12px;
  background: rgba(244, 243, 239, 0.92);
  font-size: 11px;
}

.collection {
  padding: 0 var(--page-padding) clamp(80px, 10vw, 150px);
}

.crochet-hero {
  position: relative;
  min-height: calc(100svh - 118px);
  padding-block: clamp(34px, 5vw, 72px);
  grid-template-columns: 1fr;
  overflow: hidden;
}

.crochet-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 0;
  background: #e8e1d3;
}

.crochet-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 247, 243, 0.12);
}

.crochet-hero .hero-copy {
  position: relative;
  z-index: 1;
  width: min(46%, 560px);
  padding-top: 0;
}

.crochet-hero .hero-media img {
  min-height: 0;
  object-position: center;
}

.crochet-hero h1 {
  max-width: 7ch;
}

.intro-band {
  padding: clamp(70px, 9vw, 130px) var(--page-padding);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.6fr 1.15fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.intro-copy h2,
.craft-heading h2,
.gift-copy h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.16;
}

.intro-copy p,
.craft-heading p,
.gift-copy p {
  max-width: 42ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.intro-facts {
  border-top: 1px solid var(--line);
}

.intro-facts div {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 18px;
}

.intro-facts strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  font-weight: 400;
}

.intro-facts span {
  color: var(--muted);
  font-size: 12px;
}

.collection .section-index {
  margin-bottom: 10px;
}

.section-heading {
  padding: 26px 0 30px;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px) 20px;
}

.product-card {
  min-width: 0;
}

.product-link {
  display: block;
  min-width: 0;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #deddd8;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.025);
}

.product-number {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 11px;
}

.product-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 7px 10px;
  background: var(--moss);
  color: var(--white);
  font-size: 10px;
}

.product-info {
  padding-top: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
}

.product-info h3,
.product-info p {
  margin: 0;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
}

.product-info p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-price {
  grid-column: 2;
  grid-row: 1;
}

.collection-actions {
  margin-top: 46px;
  display: flex;
  justify-content: center;
}

.catalog-view {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: clamp(54px, 7vw, 96px) var(--page-padding) clamp(90px, 11vw, 150px);
}

.catalog-hero {
  padding-bottom: clamp(42px, 6vw, 74px);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.catalog-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.02;
}

.catalog-hero p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.catalog-toolbar {
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.craft {
  padding: clamp(80px, 10vw, 150px) var(--page-padding);
  background: #dce4db;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(50px, 9vw, 150px);
}

.craft-heading {
  align-self: start;
}

.craft-heading .section-index {
  color: #5a6c5b;
}

.craft-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid #93a193;
  list-style: none;
}

.craft-steps li {
  min-height: 132px;
  padding: 24px 0;
  border-bottom: 1px solid #aab5aa;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
}

.craft-steps li > span {
  color: #687b69;
  font-size: 11px;
}

.craft-steps h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.craft-steps p {
  max-width: 46ch;
  margin: 0;
  color: #586358;
  font-size: 13px;
}

.gift {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #b84935;
  color: var(--white);
}

.gift-media {
  min-height: 680px;
  overflow: hidden;
}

.gift-media img {
  height: 100%;
  object-fit: cover;
}

.gift-copy {
  padding: clamp(60px, 8vw, 120px);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.gift-copy .section-index,
.gift-copy p {
  color: #f4d9d1;
}

.gift-options {
  width: 100%;
  margin: 38px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gift-options span {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.gift-options span:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.button-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button-light:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.notes {
  padding: clamp(80px, 10vw, 145px) var(--page-padding);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.note-grid blockquote {
  min-height: 245px;
  margin: 0;
  padding: clamp(28px, 3vw, 44px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.note-grid p {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.5;
}

.note-grid cite {
  margin-top: 32px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.about {
  padding: clamp(68px, 9vw, 130px) var(--page-padding);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 8vw, 130px);
}

.about .section-index {
  color: #a9aaa5;
}

.about-copy p {
  max-width: 46ch;
  margin: 30px 0 0;
  color: #bebfba;
  font-size: 16px;
}

.about-values {
  align-self: end;
  border-top: 1px solid #464844;
}

.about-value {
  min-height: 74px;
  border-bottom: 1px solid #464844;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
}

.about-value span:first-child {
  color: #888a85;
  font-size: 11px;
}

.site-footer {
  min-height: 210px;
  padding: 52px var(--page-padding);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.footer-brand {
  margin-bottom: 22px;
}

.site-footer p,
.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-meta {
  display: flex;
  gap: 30px;
}

.product-view {
  padding: 30px var(--page-padding) 110px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(480px, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.detail-media {
  background: #deddd8;
}

.detail-media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-content {
  position: static;
  padding-top: 12px;
}

.detail-content h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
}

.detail-subtitle {
  max-width: 40ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.detail-price-row {
  margin-top: 38px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-price {
  font-size: 23px;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34814b;
}

.detail-buy {
  width: 100%;
  margin-top: 22px;
}

.detail-meta {
  margin: 32px 0 0;
}

.detail-meta-row {
  min-height: 55px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.detail-meta dt {
  color: var(--muted);
}

.detail-meta dd {
  margin: 0;
}

.safety-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-story {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 40px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

.detail-story h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 32px;
  font-weight: 400;
}

.detail-story .section-index {
  margin-bottom: 12px;
}

.detail-story p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.purchase-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 44px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.purchase-dialog::backdrop {
  background: rgba(17, 19, 17, 0.64);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 26px;
}

.purchase-dialog h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}

.purchase-dialog p {
  margin: 18px 0 30px;
  color: var(--muted);
}

.dialog-confirm {
  width: 100%;
}

.not-found {
  min-height: 60vh;
  padding: 80px var(--page-padding);
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 62px;
  font-weight: 400;
}

.not-found p {
  margin: 0 0 26px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .crochet-hero {
    min-height: calc(100svh - 104px);
    padding-block: 46px;
    align-items: flex-end;
  }

  .crochet-hero .hero-copy {
    order: initial;
    width: min(72%, 520px);
  }

  .crochet-hero-media::after {
    background: rgba(247, 247, 243, 0.38);
  }

  .crochet-hero .hero-media img {
    aspect-ratio: auto;
    object-position: 58% center;
  }

  .hero-copy {
    order: 2;
  }

  .hero-media {
    min-height: 0;
  }

  .hero-media img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-band,
  .craft,
  .gift,
  .about,
  .detail-story,
  .catalog-hero {
    grid-template-columns: 1fr;
  }

  .gift-media {
    min-height: 0;
  }

  .gift-media img {
    aspect-ratio: 4 / 3;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .note-grid blockquote {
    min-height: 190px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-content {
    position: static;
  }
}

@media (max-width: 560px) {
  .header-note {
    display: none;
  }

  .hero {
    gap: 28px;
    padding-bottom: 80px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 44px;
  }

  .crochet-hero .hero-copy {
    width: 100%;
  }

  .crochet-hero-media::after {
    background: rgba(247, 247, 243, 0.58);
  }

  .crochet-hero .hero-description {
    max-width: 30ch;
    color: #4e514b;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .about {
    padding-block: 70px;
  }

  .intro-band,
  .craft,
  .gift-copy,
  .notes {
    padding-block: 70px;
  }

  .intro-facts div {
    grid-template-columns: 82px 1fr;
  }

  .craft {
    gap: 50px;
  }

  .craft-steps li {
    min-height: 0;
  }

  .gift-media img {
    aspect-ratio: 1 / 1;
  }

  .site-footer {
    min-height: 250px;
    align-items: flex-start;
    flex-direction: column;
  }

  .purchase-dialog {
    padding: 38px 24px 26px;
  }

  .detail-content h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
