:root {
  --paper: #fffaf3;
  --paper-2: #fcefee;
  --card: #ffffff;
  --ink: #4a3b45;
  --ink-soft: #7a6a74;
  --rust: #c2546f;
  --rust-dark: #a5435c;
  --pink: #f7c5d2;
  --sage: #b5e0c8;
  --mint-dark: #3f8a63;
  --mustard: #fbe29a;
  --blue: #b6d4f0;
  --lavender: #d8c6f0;
  --peach: #fdd5b8;
  --line: #f0e0dc;
  --radius: 6px;
  --shadow: 0 2px 6px rgba(46, 41, 36, .08), 0 8px 24px rgba(46, 41, 36, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", system-ui, sans-serif;
  --type: "Special Elite", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .6rem; }
h1 em { font-style: italic; color: var(--rust); }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.stamp-label {
  font-family: var(--type);
  color: var(--rust);
  font-size: .9rem;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.type { font-family: var(--type); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* Topbar & header */
.topbar {
  background: var(--pink);
  color: var(--ink);
  font-weight: 500;
  text-align: center;
  font-size: .85rem;
  padding: .45rem 16px;
}
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.logo { font-family: var(--serif); font-weight: 700; font-size: clamp(1rem, 4.5vw, 1.5rem); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--rust); }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--rust); transition: width .2s;
}
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.cart-btn {
  position: relative; background: none; border: none; color: var(--ink);
  padding: .5rem; display: grid; place-items: center;
}
.cart-count {
  position: absolute; top: 0; right: -2px;
  background: var(--rust); color: #fff; font-size: .7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.cart-count.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.4); } }
.lang-link {
  font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: .2rem .6rem;
}
.lang-link:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; background: none; border: none; padding: .5rem; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { padding: 4rem 0 5rem; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 1.2rem 0 2rem; max-width: 34rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-collage { position: relative; height: 420px; }
.paper { position: absolute; box-shadow: var(--shadow); padding: 1.2rem; }
.p1 {
  width: 62%; height: 64%; left: 6%; top: 8%; transform: rotate(-5deg);
  background: repeating-linear-gradient(transparent 0 27px, #bcd6ef 27px 28px), #fffdf8;
}
.p1 .type { display: block; margin-top: 1.4rem; font-size: 1.2rem; }
.p2 {
  width: 46%; height: 52%; right: 4%; top: 2%; transform: rotate(6deg);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.6) 0 2px, transparent 3px) 0 0 / 18px 18px,
    var(--sage);
}
.p3 {
  width: 44%; height: 22%; left: 0; bottom: 6%; transform: rotate(4deg);
  background: var(--mustard); display: grid; place-items: center;
  border: 2px dashed rgba(74,59,69,.3); outline: 6px solid var(--mustard);
}
.p4 {
  width: 48%; height: 40%; right: 6%; bottom: 0; transform: rotate(-3deg);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.45) 0 6px, transparent 6px 12px), var(--lavender);
  display: flex; align-items: flex-end;
}
.p4 .type { font-size: 1.1rem; }
.tape {
  position: absolute; width: 110px; height: 28px; opacity: .85;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 8px, transparent 8px 16px), var(--pink);
}
.t1 { top: -12px; left: 30%; transform: rotate(-4deg); }
.t2 { top: -12px; right: 18%; transform: rotate(8deg); background-color: var(--blue); }
.t3 { top: -14px; left: 10%; transform: rotate(-10deg); background-color: var(--mustard); }
.postmark {
  position: absolute; left: 52%; top: 50%; width: 110px; height: 110px;
  border: 3px double var(--rust); border-radius: 50%; color: var(--rust);
  display: grid; place-items: center; text-align: center;
  font-family: var(--type); font-size: .8rem; line-height: 1.2; transform: rotate(-14deg);
  opacity: .8; background: rgba(255, 250, 243, .5);
}

/* Perks */
.perks { background: linear-gradient(90deg, var(--blue), var(--lavender), var(--pink)); color: var(--ink); padding: 1.6rem 0; }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.perk { display: flex; flex-direction: column; text-align: center; }
.perk strong { font-family: var(--serif); font-size: 1.1rem; }
.perk span { font-size: .9rem; color: var(--ink-soft); }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head p:not(.stamp-label) { color: var(--ink-soft); }

/* Product visuals */
.visual {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center;
}
.visual .label {
  font-family: var(--type); background: #fdfaf3; padding: .4rem .9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.15); transform: rotate(-3deg); font-size: .95rem;
  max-width: 80%; text-align: center;
}
.visual .label::before { content: "✶ "; color: var(--rust); }
.pat-lines { background: repeating-linear-gradient(transparent 0 15px, rgba(255,255,255,.6) 15px 16px), var(--c); }
.pat-dots { background: radial-gradient(circle, rgba(255,255,255,.65) 0 2px, transparent 3px) 0 0 / 16px 16px, var(--c); }
.pat-grid {
  background:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px) 0 0 / 18px 18px, var(--c);
}
.pat-stripes { background: repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 10px, transparent 10px 20px), var(--c); }
.pat-lace {
  background:
    radial-gradient(circle at 50% 0, var(--card) 0 9px, transparent 10px) 0 calc(100% + 2px) / 22px 14px repeat-x,
    radial-gradient(circle, rgba(255,255,255,.8) 0 2.5px, transparent 3.5px) 0 0 / 14px 14px,
    radial-gradient(circle, rgba(255,255,255,.5) 0 5px, transparent 6px) 7px 7px / 14px 14px,
    var(--c);
}
.pat-check {
  background: conic-gradient(rgba(255,255,255,.4) 25%, transparent 0 50%, rgba(255,255,255,.4) 0 75%, transparent 0) 0 0 / 28px 28px, var(--c);
}

.badge {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--paper);
  font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 3px; letter-spacing: .03em;
}

/* Kits */
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.kit-card {
  background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s;
}
.kit-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.kit-card .visual { aspect-ratio: 16 / 11; }
.kit-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.kit-body h3 { font-size: 1.35rem; }
.kit-body p { color: var(--ink-soft); font-size: .95rem; }
.kit-body ul { list-style: none; font-size: .9rem; color: var(--ink-soft); }
.kit-body li::before { content: "– "; color: var(--rust); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .8rem; gap: .5rem; }
.price { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }

/* Filters & products */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter {
  background: transparent; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: .4rem 1rem; color: var(--ink); font-weight: 500; transition: .15s;
}
.filter:hover { background: rgba(46,41,36,.08); }
.filter.active { background: var(--ink); color: var(--paper); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-body .cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rust); font-weight: 700; }
.product-body h3 { font-size: 1.1rem; }
.product-body p { font-size: .88rem; color: var(--ink-soft); }
.add-btn {
  background: var(--rust); color: #fff; border: none; border-radius: var(--radius);
  padding: .55rem .9rem; font-weight: 700; font-size: .9rem; transition: background .15s;
}
.add-btn:hover { background: var(--rust-dark); }

/* Explain */
.explain { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.explain-card {
  position: relative; background: repeating-linear-gradient(transparent 0 29px, #bcd6ef 29px 30px), #fffdf8;
  padding: 2.5rem; box-shadow: var(--shadow); transform: rotate(-1deg);
}
.explain-card p { margin-top: .8rem; color: var(--ink-soft); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 1.2rem; }
.steps li { counter-increment: s; display: flex; gap: 1rem; align-items: baseline; }
.steps li::before {
  content: counter(s); flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 2px solid var(--rust); color: var(--rust); display: grid; place-items: center;
  font-family: var(--type); font-size: 1.1rem;
}

.styles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.styles li {
  background: var(--card); padding: 1.1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .92rem; color: var(--ink-soft); border-top: 5px solid var(--pink);
}
.styles li:nth-child(2) { border-color: var(--blue); }
.styles li:nth-child(3) { border-color: var(--mustard); }
.styles li:nth-child(4) { border-color: var(--sage); }
.styles strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: .2rem; }
@media (max-width: 420px) { .styles { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.about-text p:not(.stamp-label) { color: var(--ink-soft); margin-top: .8rem; }
.about-note {
  background: var(--mustard); padding: 2.2rem; transform: rotate(2deg); box-shadow: var(--shadow);
  font-size: 1.25rem; line-height: 1.5;
}

/* Newsletter */
.newsletter {
  background: radial-gradient(circle, rgba(255,255,255,.5) 0 2px, transparent 3px) 0 0 / 20px 20px, var(--pink);
  color: var(--ink); padding: 3.5rem 0;
}
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.newsletter p { color: var(--ink-soft); }
.newsletter-form { display: flex; gap: .6rem; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: var(--radius); border: none; font: inherit;
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact > div > p:not(.stamp-label) { color: var(--ink-soft); }
.contact-list { list-style: none; margin-top: 1.5rem; display: grid; gap: .4rem; }
.contact-form { display: grid; gap: 1rem; background: var(--card); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: .3rem; font-weight: 500; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus, .newsletter-form input:focus {
  outline: 2px solid var(--mustard); outline-offset: 1px;
}

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 3rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; }
.footer .logo span { color: var(--pink); }
.footer p { opacity: .75; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer-links a { text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(245,238,226,.15); padding-top: 1.5rem; font-size: .85rem; }

/* Cart drawer */
.overlay {
  position: fixed; inset: 0; background: rgba(46,41,36,.45); opacity: 0; pointer-events: none;
  transition: opacity .25s; z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%);
  background: var(--paper); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; box-shadow: -8px 0 30px rgba(0,0,0,.15);
}
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.4rem; }
.close-btn { background: none; border: none; font-size: 2rem; line-height: 1; color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: grid; gap: 1rem; align-content: start; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 3rem 0; font-family: var(--type); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; }
.cart-item .thumb { width: 64px; height: 64px; border-radius: 4px; }
.cart-item h4 { font-size: .95rem; font-weight: 700; }
.cart-item .unit { font-size: .85rem; color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.qty button {
  width: 26px; height: 26px; border: 1.5px solid var(--ink); background: none; border-radius: 4px;
  display: grid; place-items: center; font-weight: 700; color: var(--ink);
}
.remove { background: none; border: none; color: var(--ink-soft); font-size: .8rem; text-decoration: underline; }
.cart-foot { padding: 1.2rem 1.4rem 1.6rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; }
.shipping-note { font-size: .88rem; color: var(--mint-dark); font-weight: 500; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper); padding: .8rem 1.3rem; border-radius: var(--radius);
  z-index: 200; transition: transform .3s ease; max-width: calc(100% - 32px); text-align: center;
  box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .explain, .about, .newsletter-inner, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .hero-collage { height: 340px; }
  .kit-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .perks-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 300px; }
  .nav a { padding: 1rem 16px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 3.5rem 0; }
  .newsletter-form { flex-direction: column; }
  .explain-card { padding: 1.8rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .card-foot { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-collage { height: 280px; }
  .postmark { width: 84px; height: 84px; font-size: .65rem; }
}
