@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --ink: #2c2025;
  --muted: #67545b;
  --berry: #a52e58;
  --pink: #ee8fac;
  --blush: #f9e4ea;
  --tan: #f2e2d3;
  --paper: #fffbf8;
  --line: #e9d8d7;
  --display: Fraunces, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.5 "DM Sans", Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
button, select, input, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.notice { padding: 7px 16px; text-align: center; color: white; background: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.nav { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { width: min(1280px, calc(100% - 56px)); min-height: 72px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { object-fit: contain; flex: none; }
.brand strong { display: block; font: 650 22px/1 var(--display); }
.brand small { display: block; margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav nav { display: flex; gap: clamp(12px, 3vw, 30px); align-items: center; font-weight: 700; font-size: 13px; }
.nav-link { text-decoration: none; }
.nav-link:hover { text-decoration: underline; }
.bag-button { border: 0; border-radius: 40px; background: var(--ink); color: white; padding: 9px 13px; min-height: 44px; white-space: nowrap; }
.bag-button span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 4px; margin-left: 4px; border-radius: 20px; background: var(--blush); color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.03fr 1fr; background: var(--blush); }
.hero-copy { width: min(600px, 100%); justify-self: end; align-self: center; padding: 58px clamp(25px, 5.2vw, 76px) 62px 28px; }
.eyebrow { margin: 0; color: var(--berry); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { font-size: 16px; line-height: 1; margin-right: 4px; }
.hero h1 { margin: 15px 0 20px; font: 650 clamp(43px, 5.5vw, 83px)/.99 var(--display); letter-spacing: -.06em; }
.hero h1 em { color: var(--berry); font-weight: 600; }
.hero-copy > p:not(.eyebrow) { max-width: 425px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 25px; }
.button { display: inline-flex; min-height: 46px; justify-content: center; align-items: center; gap: 12px; border: 1px solid var(--berry); border-radius: 40px; padding: 10px 19px; background: var(--berry); color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: #872345; }
.text-link { padding-block: 12px; color: var(--berry); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.hero-art { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 390px; padding: 24px 24px 37px; background-color: #f5e5d6; background-image: repeating-linear-gradient(90deg, #e6a3af30 0 20px, transparent 20px 40px), repeating-linear-gradient(0deg, #e6a3af30 0 20px, transparent 20px 40px); overflow: hidden; text-decoration: none; }
.hero-art::before { content: ""; position: absolute; z-index: -1; width: min(65%, 355px); aspect-ratio: 1; border-radius: 50%; background: #fff8ef; }
.hero-print { width: clamp(198px, 23vw, 306px); padding: 5px; border-radius: 12px; background: white; box-shadow: 0 13px 30px #764b513b; transform: rotate(4deg); transition: transform .2s; }
.hero-art:hover .hero-print { transform: rotate(1deg); }
.hero-print img { display: block; width: 100%; height: auto; border-radius: 8px; }
.hero-doodle { position: absolute; color: var(--berry); font: 500 62px/1 Georgia, serif; }
.hero-doodle.star { top: 19%; left: 14%; transform: rotate(-14deg); }
.hero-doodle.heart { right: 12%; bottom: 22%; transform: rotate(18deg); }
.art-label { position: absolute; bottom: 22px; left: 50%; width: max-content; max-width: 92%; transform: translateX(-50%) rotate(-3deg); border: 1px solid #e4bcc6; border-radius: 40px; background: white; padding: 7px 13px; font-size: 12px; font-weight: 700; }
.art-label span { margin-left: 4px; color: var(--berry); }
.ribbon { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(16px, 5vw, 66px); padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fff7ee; font-size: 13px; font-weight: 700; }
.ribbon b { margin-right: 4px; color: var(--berry); font-size: 16px; }

#shop, #how { scroll-margin-top: 78px; }
.catalog { padding-block: 70px 62px; }
.section-head { text-align: center; }
h2 { margin: 10px 0; font: 600 clamp(32px, 4.7vw, 54px)/1.06 var(--display); letter-spacing: -.045em; }
.section-head > p:last-child { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 25px 0 17px; }
.filters button { border: 1px solid #d9c1c6; border-radius: 40px; min-height: 44px; background: white; color: var(--ink); padding: 8px 16px; font-size: 13px; font-weight: 700; }
.filters button:hover { background: var(--blush); }
.filters button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.result-count { color: var(--muted); margin-bottom: 11px; font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.card-art { position: relative; min-height: 139px; display: grid; place-items: center; background: var(--art, var(--tan)); }
.card-art::after { content: "✧"; position: absolute; inset: auto 16% 14% auto; color: var(--berry); font-size: 25px; opacity: .65; }
.card-art-photo::after { content: none; }
.card-art-photo img { display: block; width: 100%; height: auto; }
.art-icon { display: grid; place-items: center; width: 81px; aspect-ratio: 1; margin-top: 16px; border-radius: 50%; background: #fffaf5; color: var(--berry); font: 42px/1 Georgia, serif; box-shadow: 0 5px #74505c12; }
.badge { position: absolute; top: 10px; left: 10px; border-radius: 24px; padding: 4px 8px; background: #fffaf5; color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 15px; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.card h3 { margin: 0; font: 650 20px/1.15 var(--display); }
.price { color: var(--berry); font-size: 14px; font-weight: 700; white-space: nowrap; }
.contents { color: var(--muted); margin: 8px 0; font-size: 13px; }
.photo-caption { color: var(--muted); margin: 0 0 9px; font-size: 12px; }
.designs { margin: 0 0 12px; font-size: 13px; }
.options { margin-top: auto; }
.options label { display: block; margin: 9px 0 4px; font-size: 12px; font-weight: 700; }
.options input, .options select, textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #cdb5bc; border-radius: 9px; color: var(--ink); background: white; font-size: 16px; }
.options input[aria-invalid="true"] { border-color: var(--berry); }
.options select { padding-right: 22px; }
.hint, .error { margin: 5px 0 0; font-size: 12px; line-height: 1.4; }
.hint { color: var(--muted); }
.error { color: var(--berry); font-weight: 700; }
.error:empty { margin: 0; }
.add, .secondary-button { width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid #ce91a4; border-radius: 9px; background: white; color: var(--berry); font-weight: 700; }
.add:hover, .secondary-button:hover { background: var(--blush); }
.catalog-note { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: 13px; }

.story { background: var(--tan); }
.story-inner { padding-block: 53px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.story-inner > div:first-child > p:last-child { margin: 15px 0 0; color: var(--muted); max-width: 440px; }
.story-card { padding: clamp(20px, 4vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.story-card h3 { margin: 0; font: 650 24px/1.2 var(--display); }
.story-card ol { list-style: none; counter-reset: steps; margin: 16px 0; padding: 0; }
.story-card li { position: relative; counter-increment: steps; padding-left: 43px; margin: 13px 0; }
.story-card li::before { position: absolute; left: 0; content: counter(steps); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blush); color: var(--berry); font-weight: 700; }
.story-card li span { display: block; color: var(--muted); font-size: 13px; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.story-card .small-note { margin: 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 26px; color: var(--muted); font-size: 13px; }
.footer strong { color: var(--ink); }

.bag { width: min(100%, 470px); height: 100dvh; max-height: none; max-width: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.bag[open] { display: flex; flex-direction: column; }
.bag::backdrop { background: #2c202570; }
.bag-top, .bag-bottom { padding: 14px 21px; background: white; }
.bag-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.bag-top h2 { margin: 0; font-size: 33px; }
.bag-top h2 span { color: var(--berry); }
.close { width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: var(--blush); color: var(--ink); font-size: 26px; line-height: 1; }
.bag-scroll { overflow: auto; flex: 1; padding: 17px 21px; }
.bag-item { padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.item-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.item-row h3 { margin: 0; font: 650 19px/1.2 var(--display); }
.item-row strong { white-space: nowrap; }
.item-detail { color: var(--muted); margin: 5px 0; font-size: 13px; overflow-wrap: anywhere; }
.item-actions { display: flex; align-items: center; gap: 9px; }
.quantity { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; }
.quantity button, .remove { min-height: 42px; border: 0; color: var(--ink); background: transparent; }
.quantity button { width: 44px; font-size: 19px; }
.quantity span { min-width: 20px; text-align: center; }
.remove { text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.bag fieldset { margin: 21px 0 14px; padding: 0; border: 0; }
.bag legend { padding: 0; margin-bottom: 7px; font-weight: 700; }
.choice { display: flex; gap: 9px; align-items: start; margin-bottom: 7px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.choice:has(input:checked) { border-color: #ce91a4; background: var(--blush); }
.choice input { accent-color: var(--berry); margin-top: 5px; }
.choice small { display: block; color: var(--muted); }
.totals { border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 9px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.bag details summary { min-height: 44px; display: list-item; padding: 10px 0; font-size: 13px; font-weight: 700; }
.bag details textarea { display: block; resize: vertical; }
.bag .secondary-button { width: auto; padding-inline: 13px; }
.bag-bottom { border-top: 1px solid var(--line); }
.bag-bottom .button { width: 100%; }
.bag-bottom p { margin: 6px 0 0; text-align: center; }
.toast { position: fixed; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); border-radius: 40px; background: var(--ink); color: white; padding: 10px 16px; font-size: 13px; pointer-events: none; text-align: center; }
.toast:empty { padding: 0; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-heading { flex-wrap: wrap; gap: 3px 7px; }
}

@media (max-width: 730px) {
  .shell, .nav-inner { width: calc(100% - 32px); }
  .nav-link { display: none; }
  .nav-inner { min-height: 64px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: clamp(16px, 3.8vw, 21px); }
  .brand small { font-size: clamp(6px, 1.6vw, 9px); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { justify-self: center; padding: 43px 20px 35px; }
  .hero h1 { font-size: clamp(46px, 10vw, 68px); }
  .hero-art { min-height: 0; padding-block: 16px 27px; }
  .hero-print { width: clamp(153px, 36vw, 218px); }
  .art-label { bottom: 12px; }
  .ribbon { font-size: 11px; }
  .catalog { padding-block: 46px 42px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .story-inner { grid-template-columns: 1fr; padding-block: 38px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .card-art { min-height: 110px; }
  .art-icon { width: 65px; font-size: 34px; }
  .card-body { padding: 15px 16px 16px; }
  .filters button { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-print { transition: none; }
}
