@font-face {
  font-family: 'MPLUS Rounded';
  src: url('fonts/mplusrounded-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'MPLUS Rounded';
  src: url('fonts/mplusrounded-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'MPLUS Rounded';
  src: url('fonts/mplusrounded-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dmsans.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --milk: #fff8f1;
  --paper: #ffffff;
  --ink: #232447;
  --ink-soft: #5f6184;
  --berry: #e0577b;
  --berry-deep: #c33d62;
  --mint: #34a894;
  --butter: #ffd76e;
  --line: #ecdfd3;
  --line-firm: #d9c8b8;
  --shadow: 0 10px 30px rgba(35, 36, 71, .09);
  --shadow-lift: 0 18px 44px rgba(35, 36, 71, .16);
  --squircle: 24px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .patch-word, .bolt-head, .num-big {
  font-family: 'MPLUS Rounded', 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin: 0 0 16px; }
h3 { font-size: 1.24rem; margin: 0 0 10px; }

p { margin: 0 0 16px; }

a { color: var(--berry-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.smallcap {
  font-family: 'MPLUS Rounded', sans-serif;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--berry-deep);
  margin: 0 0 12px;
}

.stitch-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'MPLUS Rounded', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.stitch-btn {
  background: var(--berry);
  color: #fff;
  box-shadow: 0 6px 0 var(--berry-deep);
}
.stitch-btn:hover { background: var(--berry-deep); text-decoration: none; transform: translateY(2px); box-shadow: 0 4px 0 var(--berry-deep); }
.ghost-btn {
  background: transparent;
  color: var(--ink);
  border: 2px dashed var(--line-firm);
}
.ghost-btn:hover { border-color: var(--ink); text-decoration: none; background: #fff; }

.ribbon {
  background: var(--ink);
  color: #efe7ff;
  font-size: .82rem;
  letter-spacing: .04em;
  text-align: center;
  padding: 8px 12px;
}

.shopfront {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 248, 241, .93);
  backdrop-filter: blur(9px);
  border-bottom: 2px dashed var(--line-firm);
}
.shop-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}
.patch { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.patch:hover { text-decoration: none; }
.patch-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--berry);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'MPLUS Rounded', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: inset 0 0 0 2px rgba(255, 248, 241, .55);
}
.patch-word {
  font-size: 1.42rem;
  color: var(--ink);
  letter-spacing: .01em;
  line-height: 1;
}
.patch-sub {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.aisleway { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.aisleway a {
  color: var(--ink);
  font-weight: 500;
  font-size: .96rem;
  padding: 8px 13px;
  border-radius: 999px;
}
.aisleway a:hover { background: #fff; text-decoration: none; }
.aisleway a.on { background: var(--ink); color: #fff; }

.shop-tools { display: flex; align-items: center; gap: 8px; }
.sift-btn, .pouch-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 2px dashed var(--line-firm);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  padding: 0;
}
.sift-btn:hover, .pouch-btn:hover { border-color: var(--ink); background: #fff; }
.pouch-btn { display: none; }
.pouch-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 2px 0;
  border-radius: 2px;
}

.sift {
  display: none;
  border-top: 2px dashed var(--line-firm);
  background: var(--milk);
  padding: 18px 0 24px;
}
body.sift-open .sift { display: block; }
.sift-input {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 13px 18px;
  border-radius: 16px;
  border: 2px solid var(--line-firm);
  background: #fff;
  color: var(--ink);
}
.sift-input:focus { outline: none; border-color: var(--berry); }
.sift-hits { display: grid; gap: 8px; margin-top: 14px; }
.sift-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.sift-hit:hover { text-decoration: none; border-color: var(--berry); }
.sift-hit img { width: 46px; height: 46px; object-fit: contain; }
.sift-hit-text { display: flex; flex-direction: column; }
.sift-hit-name { color: var(--ink); font-weight: 500; font-size: .93rem; }
.sift-hit-meta { color: var(--ink-soft); font-size: .8rem; }
.sift-empty { color: var(--ink-soft); margin: 8px 0 0; }

.curtain { padding: 58px 0 46px; }
.curtain-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}
.curtain p.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 46ch; }
.curtain-acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.heap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.heap-cell {
  background: var(--paper);
  border-radius: var(--squircle);
  border: 2px dashed var(--line-firm);
  padding: 14px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.heap-cell img { height: 148px; width: auto; object-fit: contain; }
.heap-cell:nth-child(1) { transform: rotate(-2deg); }
.heap-cell:nth-child(2) { transform: rotate(1.5deg); margin-top: 22px; }
.heap-cell:nth-child(3) { transform: rotate(1deg); margin-top: -10px; }
.heap-cell:nth-child(4) { transform: rotate(-1.5deg); margin-top: 12px; }

.band { padding: 62px 0; }
.band-paper { background: var(--paper); border-top: 2px dashed var(--line-firm); border-bottom: 2px dashed var(--line-firm); }
.band-ink { background: var(--ink); color: #efe9ff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .smallcap { color: var(--butter); }
.band-ink p { color: #cfc9e8; }

.sect-top { max-width: 62ch; margin-bottom: 30px; }
.sect-top p { color: var(--ink-soft); }

.bin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bin-card {
  background: var(--paper);
  border: 2px dashed var(--line-firm);
  border-radius: var(--squircle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bin-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--berry); }
.bin-shot { height: 132px; display: grid; place-items: center; }
.bin-shot img { max-height: 132px; width: auto; object-fit: contain; }
.bin-name { font-family: 'MPLUS Rounded', sans-serif; font-weight: 700; font-size: 1.16rem; color: var(--ink); }
.bin-note { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.bin-count {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--berry-deep);
}

.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mochi {
  background: var(--paper);
  border: 2px dashed var(--line-firm);
  border-radius: var(--squircle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mochi:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--berry); }
.mochi-shot {
  height: 190px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.mochi-shot img { max-height: 190px; width: auto; object-fit: contain; }
.mochi-name {
  font-family: 'MPLUS Rounded', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.32;
}
.mochi-teaser { font-size: .88rem; color: var(--ink-soft); margin: 0 0 12px; }
.mochi-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
}
.mochi-cost { font-family: 'MPLUS Rounded', sans-serif; font-weight: 700; font-size: 1.14rem; color: var(--ink); }
.mochi-series {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--berry-deep);
  background: #fdeef2;
  border-radius: 999px;
  padding: 4px 10px;
}

.rate { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .84rem; color: var(--ink-soft); }
.pip { color: #d8d2c6; font-size: .95rem; letter-spacing: .5px; }
.pip.lit { color: var(--butter); }

.workroom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 34px; }
.work-item { border-top: 3px solid var(--butter); padding-top: 16px; }
.work-num {
  font-family: 'MPLUS Rounded', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--butter);
  display: block;
  margin-bottom: 8px;
}
.work-item h3 { font-size: 1.08rem; }
.work-item p { font-size: .93rem; margin: 0; }

.sizecard { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--squircle); overflow: hidden; box-shadow: var(--shadow); }
.sizecard th, .sizecard td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sizecard th { background: #fdeef2; font-family: 'MPLUS Rounded', sans-serif; font-weight: 700; color: var(--ink); }
.sizecard tr:last-child td { border-bottom: none; }

.ledger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ledger-cell {
  background: var(--paper);
  border: 2px dashed var(--line-firm);
  border-radius: var(--squircle);
  padding: 22px;
  text-align: center;
}
.num-big { font-size: 2.4rem; color: var(--berry); display: block; line-height: 1; margin-bottom: 8px; }
.ledger-cell p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.parlor { display: grid; gap: 12px; max-width: 860px; }
.parlor details {
  background: var(--paper);
  border: 2px dashed var(--line-firm);
  border-radius: 18px;
  padding: 4px 20px;
}
.parlor details[open] { border-style: solid; border-color: var(--berry); }
.parlor summary {
  cursor: pointer;
  font-family: 'MPLUS Rounded', sans-serif;
  font-weight: 700;
  font-size: 1.03rem;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.parlor summary::-webkit-details-marker { display: none; }
.parlor summary::after { content: '+'; color: var(--berry); font-size: 1.4rem; line-height: 1; }
.parlor details[open] summary::after { content: '\2013'; }
.parlor details p { margin: 0 0 16px; color: var(--ink-soft); font-size: .96rem; }

.keepsake { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.keep-card {
  background: var(--paper);
  border-radius: var(--squircle);
  border: 2px dashed var(--line-firm);
  padding: 24px;
}
.keep-card h3 { color: var(--ink); }
.keep-card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

.postscript { max-width: 78ch; }
.postscript p { color: var(--ink-soft); font-size: .97rem; }

.trail { font-size: .85rem; color: var(--ink-soft); padding: 20px 0 0; }
.trail a { color: var(--ink-soft); }
.trail span { margin: 0 7px; opacity: .6; }

.crown { padding: 34px 0 30px; }
.crown p { color: var(--ink-soft); max-width: 68ch; }

.vitrine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 26px 0 10px;
  align-items: start;
}
.vitrine-shot {
  background: var(--paper);
  border: 2px dashed var(--line-firm);
  border-radius: var(--squircle);
  padding: 28px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.vitrine-shot img { max-height: 430px; width: auto; object-fit: contain; }
.vitrine h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.claim {
  background: var(--paper);
  border: 2px solid var(--line-firm);
  border-radius: var(--squircle);
  padding: 22px;
  margin: 22px 0;
}
.claim-cost { font-family: 'MPLUS Rounded', sans-serif; font-weight: 700; font-size: 2.05rem; color: var(--ink); line-height: 1; }
.claim-note { font-size: .84rem; color: var(--ink-soft); margin: 8px 0 16px; }
.claim .stitch-btn { width: 100%; justify-content: center; }
.fineprint { font-size: .76rem; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.5; }

.quirk-band { margin: 12px 0 0; }
.quirk { border-top: 2px dashed var(--line); padding: 18px 0; }
.quirk h3 { font-size: 1.06rem; margin-bottom: 6px; }
.quirk p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.specsheet { margin: 8px 0 0; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  color: var(--ink-soft);
}
.spec-row:last-child { border-bottom: none; }

.litter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.zine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.leaf {
  background: var(--paper);
  border: 2px dashed var(--line-firm);
  border-radius: var(--squircle);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.leaf:hover { text-decoration: none; border-color: var(--berry); box-shadow: var(--shadow-lift); }
.leaf h3 { color: var(--ink); margin: 0; }
.leaf p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.longread { max-width: 74ch; }
.longread h2 { margin-top: 36px; }
.longread h3 { margin-top: 26px; }
.longread ul, .longread ol { color: var(--ink-soft); padding-left: 22px; }
.longread li { margin-bottom: 8px; }

.plate {
  background: var(--paper);
  border: 2px dashed var(--line-firm);
  border-radius: var(--squircle);
  padding: 32px;
  max-width: 78ch;
}
.plate table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.plate th, .plate td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .93rem; }
.plate th { background: #fdeef2; font-family: 'MPLUS Rounded', sans-serif; }

.lost-band { padding: 90px 0; text-align: center; }
.lost-code { font-family: 'MPLUS Rounded', sans-serif; font-weight: 700; font-size: 5.5rem; color: var(--berry); line-height: 1; }

.underlay { background: var(--ink); color: #cfc9e8; padding: 54px 0 26px; margin-top: 70px; }
.under-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.underlay h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.underlay a { color: #cfc9e8; font-size: .93rem; }
.underlay a:hover { color: #fff; }
.under-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.under-blurb { font-size: .92rem; color: #b4aed4; max-width: 34ch; }
.under-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.under-mark .patch-word { color: #fff; }
.under-line {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #9d97bf;
}
.hoist-btn {
  background: transparent;
  border: 2px dashed rgba(255, 255, 255, .3);
  color: #cfc9e8;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: 'MPLUS Rounded', sans-serif;
  font-size: .82rem;
}
.hoist-btn:hover { border-color: #fff; color: #fff; }

@media (max-width: 1000px) {
  .bin, .shelf, .litter, .ledger, .workroom { grid-template-columns: repeat(2, 1fr); }
  .keepsake, .zine { grid-template-columns: 1fr; }
  .under-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .aisleway {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--milk);
    border-bottom: 2px dashed var(--line-firm);
    flex-direction: column;
    padding: 12px 22px 20px;
    gap: 2px;
  }
  body.pouch-out .aisleway { display: flex; }
  .pouch-btn { display: grid; }
  .shop-inner { grid-template-columns: auto 1fr; position: relative; }
  .shop-tools { justify-self: end; }
  .curtain-grid, .vitrine { grid-template-columns: 1fr; gap: 30px; }
  .curtain { padding: 40px 0 34px; }
  .band { padding: 46px 0; }
  .underlay { margin-top: 50px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .bin, .shelf, .litter, .ledger, .workroom, .under-grid { grid-template-columns: 1fr; }
  .heap { grid-template-columns: 1fr 1fr; }
  .heap-cell img { height: 106px; }
  .heap-cell { padding: 10px; }
  .plate { padding: 22px; }
  .vitrine-shot { padding: 18px; }
  .vitrine-shot img { max-height: 320px; }
  .curtain-acts .stitch-btn, .curtain-acts .ghost-btn { width: 100%; justify-content: center; }
  .lost-code { font-size: 4rem; }
}
