/* Peaceful Rabbit: brand tokens match claude/brand-basics.md */
:root {
  --lavender: #D0B0FF;
  --purple: #6A4C9C;
  --purple-text: #5A3F8A;
  --tint: #F2EAFE;
  --ink: #1F1B24;
  --muted: #5E5868;
  --bg: #FBFAF8;
  --photo: #ECE8E1;
  --line: #E7E2EC;
  --white: #FFFFFF;
  --radius: 24px;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--purple-text); }
a:hover { color: var(--ink); }
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 38px); }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.tint { background: var(--tint); }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-text); margin-bottom: 12px; }
.lede { color: var(--muted); font-size: 20px; max-width: 560px; }
.muted { color: var(--muted); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.head-row p { color: var(--muted); max-width: 600px; margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn-primary { background: var(--purple); color: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { color: var(--white); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-secondary { background: var(--white); color: var(--ink); }
.btn-secondary:hover { background: var(--tint); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.announce { background: var(--purple); color: var(--white); text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 72px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 700; font-size: 15px; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--purple); }
.main-nav a.nav-build { color: var(--purple-text); }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--purple); color: var(--white); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); }
.cart-count[hidden] { display: none; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 64px 0 80px; }
.hero > div { flex: 1 1 440px; min-width: 0; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 32px; }
.hero-photo { flex: 1 1 420px; min-width: 0; border-radius: 28px; overflow: hidden; border: 2px solid var(--ink); background: var(--photo); aspect-ratio: 4 / 3.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Grids and cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.moment-card { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; border-radius: var(--radius); background: var(--tint); border: 2px solid var(--ink); color: var(--ink); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.moment-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.moment-card .display { font-size: 21px; font-weight: 600; }
.moment-card span:last-child { color: var(--muted); font-size: 15px; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card.tinted { background: var(--tint); }
.card-photo { aspect-ratio: 1 / 1; background: var(--photo); overflow: hidden; display: block; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.card-body .brand { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body .actions { margin-top: auto; padding-top: 12px; }
.price { font-weight: 800; font-size: 18px; }
.price s { font-weight: 500; color: var(--muted); font-size: 15px; margin-left: 6px; }

/* Filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px 24px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); color: var(--white); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }

/* Tips */
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tips li { background: var(--white); border-radius: 20px; padding: 22px 24px; display: flex; gap: 16px; border: 2px solid var(--ink); }
.tips .step-num { flex: 0 0 auto; margin: 0; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { flex: 1 1 360px; min-width: 0; }

/* Product page */
.product { display: flex; flex-wrap: wrap; gap: 48px; padding: 48px 0 80px; }
.product .photo { flex: 1 1 420px; min-width: 0; border-radius: 28px; overflow: hidden; border: 2px solid var(--ink); background: var(--photo); aspect-ratio: 1 / 1; }
.product .photo img { width: 100%; height: 100%; object-fit: cover; }
.product .info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.breadcrumb { font-size: 15px; padding-top: 24px; }
.inside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.inside-list li { display: flex; align-items: center; gap: 12px; }
.inside-list img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--line); background: var(--photo); }

/* Builder */
.builder { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding: 32px 0 80px; }
.builder-main { flex: 999 1 560px; min-width: 0; }
.builder-side { flex: 1 1 320px; min-width: 0; position: sticky; top: 112px; }
.box-panel { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 4px 4px 0 var(--ink); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot { aspect-ratio: 1 / 1; border-radius: 16px; border: 2px dashed #A99CC0; background: var(--tint); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: var(--muted); font-weight: 800; font-family: var(--display); font-size: 22px; }
.slot.filled { border: 2px solid var(--ink); background: var(--photo); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot-remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.box-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.box-lines li { display: flex; justify-content: space-between; gap: 12px; }
.box-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 20px; border-top: 2px solid var(--line); padding-top: 12px; }
.progress { font-weight: 800; color: var(--purple-text); }
.pick-card { position: relative; }
.pick-card.picked { outline: 4px solid var(--purple); outline-offset: -2px; }
.pick-badge { position: absolute; top: 12px; left: 12px; background: var(--purple); color: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13px; }
.suggest { background: var(--tint); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.suggest .chips { margin: 12px 0 0; }
textarea, input[type="text"], input[type="email"] { width: 100%; font: inherit; color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; background: var(--white); resize: vertical; }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(31, 27, 36, .45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--bg); border-left: 2px solid var(--ink); z-index: 50; display: flex; flex-direction: column; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 2px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { padding: 18px 20px; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.line { display: flex; gap: 12px; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; }
.line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--photo); flex: 0 0 auto; }
.line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line-info .name { font-weight: 800; }
.line-info .sub { font-size: 14px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); cursor: pointer; font-size: 16px; }
.link-btn { background: none; border: none; padding: 8px 0; color: var(--purple-text); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; align-self: flex-start; }
.subtotal { display: flex; justify-content: space-between; font-weight: 800; font-size: 19px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.error { color: #A3262A; font-weight: 700; font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 60; }

/* Footer */
.site-footer { background: var(--ink); color: #EEEAF3; margin-top: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; font-size: 15px; }
.site-footer a { color: #EEEAF3; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer .display { font-size: 24px; color: var(--white); }
.site-footer p { color: #C9C2D3; margin-top: 8px; }

.prose { max-width: 720px; }
.prose p, .prose li { color: var(--muted); font-size: 18px; }
.prose h2 { margin: 40px 0 12px; font-size: 28px; }
.prose p + p { margin-top: 14px; }

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .logo img { height: 56px; }
  .main-nav { order: 3; width: 100%; gap: 0 18px; font-size: 14px; }
  .builder-side { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Sold out */
.card.sold-out .card-photo img { filter: grayscale(.7); opacity: .75; }
.soldout-badge { background: var(--ink); z-index: 1; }
.card { position: relative; }
