@font-face { font-family: Fraunces; src: url(assets/fonts/fraunces.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Fraunces; src: url(assets/fonts/fraunces-italic.woff2) format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --ink: #221d19; --mute: #74685b; --paper: #f4efe6; --line: rgba(34, 29, 25, .14); --ease: cubic-bezier(.2, .9, .1, 1); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #e7e0d5; color: var(--ink); font: 15px/1.45 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
#stage { position: fixed; inset: 0; }
.rack-canvas { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

.top { position: fixed; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 32px; pointer-events: none; z-index: 3; }
.top > * { pointer-events: auto; }
.brand { font: italic 600 26px/1 Fraunces, Georgia, serif; text-decoration: none; letter-spacing: -.01em; }
.brand span { font: 400 13px Inter, sans-serif; color: var(--mute); font-style: normal; letter-spacing: .02em; }
#cats { display: flex; gap: 4px; background: rgba(244, 239, 230, .6); border: 1px solid var(--line); border-radius: 99px; padding: 4px; backdrop-filter: blur(10px); }
#cats button { border: 0; background: none; padding: 7px 14px; border-radius: 99px; font-size: 13px; color: var(--mute); transition: background .3s, color .3s; }
#cats button.on { background: var(--ink); color: var(--paper); }
#cats button:hover:not(.on) { color: var(--ink); }
.right { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.gh { text-decoration: none; color: var(--mute); }
.gh:hover { color: var(--ink); }
.bag { border: 1px solid var(--ink); background: none; border-radius: 99px; padding: 7px 14px; font-size: 13px; }
.bag b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 11px; transition: transform .5s var(--ease); }
.bag.bump b { transform: scale(1.45); }

.hero { position: fixed; left: 32px; top: 86px; z-index: 2; pointer-events: none; transition: opacity .6s, transform .8s var(--ease); max-width: 1100px; }
.hero h1 { margin: 0; font: 380 clamp(40px, 5.4vw, 92px)/.95 Fraunces, Georgia, serif; letter-spacing: -.035em; font-variation-settings: "opsz" 144, "SOFT" 50; }
.hero h1 em { font-weight: 300; color: #8a5a35; }
.hero p { margin: 14px 0 0 4px; color: var(--mute); max-width: 440px; text-wrap: balance; }
body.open .hero { opacity: 0; transform: translateY(-14px); }

.now { position: fixed; inset: auto 0 0 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding: 0 32px 24px; pointer-events: none; z-index: 2; transition: opacity .5s; }
.count { font: 300 15px Fraunces, serif; color: var(--mute); }
.count span:first-child { font-size: 34px; color: var(--ink); }
.count i { margin: 0 6px; font-style: normal; }
.label { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 22px 8px; border-radius: 16px; background: rgba(244, 239, 230, .72); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.label b { font: 500 20px Fraunces, serif; letter-spacing: -.01em; }
.label span { font-size: 13px; color: var(--mute); }
.hint { justify-self: end; text-align: right; font-size: 12px; color: var(--mute); }
body.open .now { opacity: 0; }

.sheet { position: fixed; z-index: 4; right: 28px; top: 50%; width: min(400px, 36vw); transform: translate(calc(100% + 40px), -50%); transition: transform .75s var(--ease); background: var(--paper); border-radius: 22px; padding: 28px 30px 26px; box-shadow: 0 30px 80px -20px rgba(40, 25, 10, .35), 0 0 0 1px var(--line); }
body.open .sheet { transform: translate(0, -50%); }
.sheet .x { border: 0; background: none; padding: 0; color: var(--mute); font-size: 13px; }
.sheet .x:hover { color: var(--ink); }
.kicker { margin: 22px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.sheet h2 { margin: 0; font: 400 44px/1 Fraunces, serif; letter-spacing: -.03em; }
.price { margin: 10px 0 0; font: 400 22px Fraunces, serif; }
.note { color: var(--mute); margin: 14px 0 18px; }
.row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 12px 0; border-top: 1px solid var(--line); }
.row > span:first-child { color: var(--mute); width: 64px; }
.row i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.fab { text-transform: capitalize; }
.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.sizes button { border: 1px solid var(--line); background: none; border-radius: 10px; padding: 10px 0; font-size: 13px; transition: background .25s, color .25s, border-color .25s; }
.sizes button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.add { width: 100%; border: 0; border-radius: 14px; padding: 16px; background: var(--ink); color: var(--paper); font-weight: 500; display: flex; justify-content: space-between; transition: transform .2s var(--ease), background .3s; }
.add:active, .add.press { transform: scale(.97); }
.add.done { background: #3f6b45; }
.ship { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--mute); }

.toast { position: fixed; left: 50%; top: 84px; z-index: 5; transform: translate(-50%, -20px); opacity: 0; transition: .5s var(--ease); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; font-size: 13px; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cursor { position: fixed; z-index: 9; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 1.5px solid rgba(34, 29, 25, .85); background: rgba(255, 255, 255, .18); pointer-events: none; transition: width .25s, height .25s, margin .25s; }
.cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: rgba(34, 29, 25, .9); }
.cursor.down { width: 20px; height: 20px; margin: -10px 0 0 -10px; }

@media (max-width: 900px) {
  .top { padding: 16px 18px; flex-wrap: wrap; gap: 10px; }
  #cats { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .gh { display: none; }
  .brand span { display: none; }
  .hero { left: 18px; right: 18px; top: 112px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 84px); }
  .hero p { font-size: 14px; }
  .now { padding: 0 18px 18px; grid-template-columns: auto 1fr; }
  .hint { display: none; }
  .label { justify-self: end; }
  .sheet { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; transform: translateY(calc(100% + 20px)); padding: 20px 22px; }
  body.open .sheet { transform: none; }
  .sheet h2 { font-size: 34px; }
  .note { margin: 8px 0 10px; }
  .kicker { margin-top: 12px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .sheet { padding: 16px 18px 16px; border-radius: 18px; }
  .sheet .note, .sheet .row, .sheet .ship { display: none; }
  .sheet .x { position: absolute; right: 18px; top: 18px; }
  .kicker { margin: 0 0 4px; font-size: 11px; }
  .sheet h2 { font-size: 30px; }
  .price { margin: 4px 0 0; font-size: 18px; }
  .sizes { padding: 12px 0; border-top: 0; }
  .sizes button { padding: 9px 0; }
  .add { padding: 14px 16px; }
}
