:root {
  --paper: #fbf8f2;
  --surface: #fffdf9;
  --ink: #252128;
  --muted: #625b63;
  --plum: #52345b;
  --plum-dark: #382140;
  --rose: #f1d8dc;
  --blue: #dce8f0;
  --butter: #eee6ca;
  --line: #ded8cf;
  --font-body: "Nunito", "Trebuchet MS", Arial, sans-serif;
  --font-display: "Fredoka", "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #9c879c var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
::selection { color: white; background: var(--plum); }
button, input, select { font: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #8f6795; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }

.site-header { min-height: 78px; padding: 0 clamp(20px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -.04em; }
.wordmark img { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.wordmark-dot { color: #b15472; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.nav-link, .cart-link { font-size: .9rem; font-weight: 700; text-decoration: none; }
.nav-link { color: var(--muted); }
.nav-link:hover, .nav-link.active { color: var(--plum); text-decoration: underline; text-underline-offset: 5px; }
.cart-link { display: inline-flex; align-items: center; gap: 9px; }
.cart-disabled { color: #827a83; cursor: not-allowed; }
.cart-count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; padding: 0 6px; color: white; background: var(--plum); border-radius: 50%; font-size: .75rem; font-variant-numeric: tabular-nums; }

main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1fr .83fr; align-items: center; gap: clamp(36px, 8vw, 108px); padding: clamp(50px, 7vw, 88px) clamp(8px, 4vw, 52px) clamp(58px, 8vw, 100px); }
.hero-copy { max-width: 540px; }
.hero h1, .cart-heading h1, .detail-copy h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5.15rem); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 { position: relative; }
.hero h1 .hero-emphasis { color: #9a4963; }
.typing-reserve { display: block; visibility: hidden; }
.typing-line { position: absolute; inset: 0; }
.typing-caret { display: inline-block; width: .075em; height: .85em; margin-left: .07em; border-radius: 2px; background: currentColor; vertical-align: -.04em; animation: typing-caret-blink 1s steps(2, start) infinite; }
@keyframes typing-caret-blink { to { opacity: 0; } }
.hero-description { max-width: 420px; margin: 24px 0 12px; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 11px 19px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-weight: 700; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-dark { color: white; background: var(--plum); }
.button-dark:hover:not(:disabled) { background: var(--plum-dark); }
.hero-side-link { color: var(--plum); font-size: .85rem; font-weight: 700; }
.hero-art { position: relative; margin: 0; }
.hero-art img { display: block; width: 100%; max-height: 460px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; border: 1px solid #d5cec4; border-radius: 50%; }
.photo-caption { margin: 9px 0 0; color: var(--muted); font-size: .73rem; }

.shop-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 4px 18px; border-bottom: 1px solid var(--line); }
.shop-intro h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.025em; }
.category-bar { display: flex; gap: 8px; padding: 18px 0 25px; overflow-x: auto; scrollbar-width: thin; }
.filter-chip { flex: 0 0 auto; min-height: 38px; padding: 7px 14px; border: 1px solid #cfc5d0; border-radius: 4px; color: #514858; background: transparent; font-size: .8rem; font-weight: 700; cursor: pointer; }
.filter-chip:hover { border-color: var(--plum); }
.filter-chip.selected { border-color: var(--plum); color: white; background: var(--plum); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; padding-bottom: 76px; }
.product-card { min-width: 0; }
.product-image { position: relative; display: grid; aspect-ratio: 1 / 1.07; place-items: center; overflow: hidden; text-decoration: none; background: #f0ebe5; }
.product-photo { position: absolute; inset: 0; display: block; overflow: hidden; }
.product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease, transform .35s ease; }
.product-photo .photo-hover { transform-origin: var(--hover-origin, center); }
.product-photo .photo-primary { opacity: 1; }
.product-photo .photo-hover { opacity: 0; }
.product-image:hover .photo-hover, .product-image:focus-visible .photo-hover { opacity: 1; }
.product-image:hover .photo-primary, .product-image:focus-visible .photo-primary { opacity: 0; }
.product-image:hover .photo-hover, .product-image:focus-visible .photo-hover { transform: scale(var(--hover-scale, 1.28)); }
.accent-lilac { background: #e8e0ed; }
.accent-peach { background: #f1e0d4; }
.accent-butter { background: var(--butter); }
.accent-rose { background: var(--rose); }
.accent-blue { background: var(--blue); }
.image-arrow { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: #fffdf0; font-size: 1.1rem; opacity: 0; transition: opacity .18s ease; }
.product-image:hover .image-arrow, .product-image:focus-visible .image-arrow { opacity: 1; }
.art-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--plum); }
.placeholder-sparkle { font-size: 3rem; opacity: .75; }
.placeholder-mark { width: 88px; height: 88px; display: grid; place-items: center; border: 2px solid rgba(89,60,97,.28); border-radius: 50%; font: 600 1.65rem var(--font-display); }
.placeholder-caption { margin-top: 6px; font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-card-body { padding: 12px 2px 0; }
.product-category { margin: 0 0 5px; color: #6e496f; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin: 0; font-size: 1.22rem; line-height: 1.2; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { color: var(--plum); text-decoration: underline; }
.product-subtitle { min-height: 42px; margin: 8px 0 9px; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--plum); font-size: .83rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--plum-dark); }

.about-section { margin: 0; padding: clamp(24px, 5vw, 54px); background: #eee6f0; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px clamp(20px, 6vw, 88px); border-top: 1px solid var(--line); background: #f0eaf1; }
.footer-wordmark { font: 600 1.2rem var(--font-display); text-decoration: none; }
.site-footer p { margin: 0; color: var(--muted); font-size: .82rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--plum); font-size: .8rem; font-weight: 700; }

.page-main { min-height: calc(100vh - 168px); padding-top: 22px; padding-bottom: 80px; }
.breadcrumbs { display: flex; gap: 10px; margin: 0 0 25px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: var(--plum); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); align-items: center; gap: clamp(36px, 7vw, 86px); max-width: 1040px; margin: 0 auto; }
.about-copy { grid-column: 1; grid-row: 1; max-width: 640px; }
.about-copy h1, .about-copy h2 { margin: 0 0 18px; font-size: clamp(2.7rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; }
.about-copy p { max-width: 60ch; margin: 0 0 18px; color: #48404d; font-size: 1rem; }
.about-copy .about-lede { color: var(--plum); font-size: 1.12rem; font-weight: 700; line-height: 1.45; }
.about-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.about-profile { grid-column: 2; grid-row: 1; width: min(100%, 360px); aspect-ratio: 1; justify-self: end; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--blue); }
.about-profile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-instagram { max-width: 1120px; margin: 68px auto 80px; overflow: hidden; }
.about-marquee { position: relative; overflow: hidden; }
.about-marquee-track { display: flex; width: max-content; animation: about-marquee 58s linear infinite; will-change: transform; }
.about-marquee:hover .about-marquee-track { animation-play-state: paused; }
.about-marquee-controls { position: absolute; z-index: 2; top: 44px; right: 0; left: 0; height: clamp(220px, 25vw, 290px); display: flex; align-items: center; justify-content: space-between; padding: 0 9px; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.about-marquee:hover .about-marquee-controls, .about-marquee:focus-within .about-marquee-controls { opacity: 1; }
.about-marquee-control { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d9d1c8; border-radius: 50%; color: var(--ink); background: #fffdf4ed; font-size: 1.7rem; line-height: 1; cursor: pointer; pointer-events: auto; box-shadow: 0 2px 8px #30263320; }
.about-marquee-control:hover { color: white; background: var(--plum); }
.about-marquee-group { display: flex; gap: 14px; padding-right: 14px; }
.instagram-post-card { flex: 0 0 clamp(220px, 25vw, 290px); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.instagram-post-link { display: flex; height: 100%; flex-direction: column; color: var(--ink); text-decoration: none; }
.instagram-post-link:hover { text-decoration: none; }
.instagram-post-card:hover { border-color: #b9a8bd; }
.instagram-post-link:focus-visible { outline: 3px solid #8f6795; outline-offset: -3px; }
.instagram-post-header { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: .75rem; font-weight: 800; }
.instagram-post-header img { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.instagram-post-platform { margin-left: auto; color: var(--muted); font-size: .65rem; font-weight: 600; }
.instagram-post-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.instagram-post-description { display: block; min-height: 70px; padding: 11px 12px 14px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.instagram-post-description strong { margin-right: 4px; color: var(--ink); }
@keyframes about-marquee { to { transform: translateX(-50%); } }
@media (hover: none) { .about-marquee-controls { opacity: 1; } }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .85fr); align-items: start; gap: clamp(32px, 7vw, 90px); max-width: 1080px; margin: 0 auto; }
.detail-gallery { min-width: 0; }
.detail-gallery-stage { position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; overflow: hidden; background: #f0ebe5; }
.gallery-main-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid #d9d1c8; border-radius: 50%; color: var(--ink); background: #fffdf4; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.gallery-arrow:hover:not(:disabled) { color: white; background: var(--plum); }
.gallery-arrow:disabled { cursor: default; opacity: .45; }
.gallery-previous { left: 12px; }
.gallery-next { right: 12px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; color: var(--ink); background: #fffdf4e8; font-size: .72rem; font-variant-numeric: tabular-nums; }
.gallery-thumbnails { display: flex; gap: 8px; padding: 11px 2px 4px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 64px; width: 64px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); background: #f0ebe5; cursor: pointer; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-current { border: 2px solid var(--plum); }
.detail-copy { padding: 15px 0; }
.detail-copy .eyebrow { margin-bottom: 10px; color: #6e496f; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.detail-copy h1 { font-size: clamp(2.35rem, 4vw, 3.4rem); }
.detail-subtitle { margin: 13px 0 15px; color: var(--muted); }
.price-note { margin: 0 0 23px; color: var(--plum); font-size: .85rem; font-weight: 700; }
.option-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.field-label { display: grid; gap: 7px; font-size: .78rem; font-weight: 700; }
.field-label select, .quantity-stepper { width: 100%; min-height: 46px; border: 1px solid #cfc5d0; border-radius: 4px; color: var(--ink); background: var(--surface); }
.field-label select { padding: 0 12px; }
.quantity-field { display: grid; gap: 7px; }
.quantity-stepper { display: grid; grid-template-columns: 44px 1fr 44px; overflow: hidden; }
.quantity-stepper button { border: 0; color: var(--plum); background: transparent; font-size: 1.25rem; cursor: pointer; }
.quantity-stepper input { width: 100%; min-width: 0; border: 0; text-align: center; background: transparent; appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button { appearance: none; }
.add-button { grid-column: 1 / -1; width: 100%; margin-top: 5px; }
.form-message { grid-column: 1 / -1; min-height: 22px; margin: -9px 0 0; color: #356343; font-size: .82rem; font-weight: 700; }
.detail-description { margin: 19px 0 10px; padding-top: 17px; border-top: 1px solid var(--line); color: #4f4851; font-size: .87rem; }
.product-sources { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 15px 0 0; }
.product-sources a { color: var(--plum); font-size: .79rem; font-weight: 700; text-underline-offset: 4px; }
.back-link { margin-top: 9px; }

.cart-main { max-width: 1050px; }
.cart-heading { margin: 30px 0 28px; }
.cart-heading h1 { font-size: clamp(2.7rem, 5vw, 4rem); }
.cart-heading-count { color: #765879; font: 400 .48em var(--font-body); vertical-align: middle; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 50px; }
.cart-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 75px 60px; align-items: center; gap: 17px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row > img, .cart-art { width: 92px; height: 92px; object-fit: cover; }
.cart-art { display: grid; place-items: center; color: var(--plum); font: 600 2rem var(--font-display); }
.cart-item-info h2 { margin: 0 0 5px; font: 500 1.2rem/1.2 var(--font-display); }
.cart-item-info .product-category { margin-bottom: 4px; }
.cart-choices { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: .74rem; }
.cart-quantity { display: grid; gap: 4px; color: var(--muted); font-size: .72rem; }
.cart-quantity input { width: 66px; height: 36px; padding: 4px 8px; border: 1px solid #cfc5d0; background: white; }
.remove-button, .clear-cart { padding: 4px 0; border: 0; color: var(--plum); background: none; font-size: .72rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-summary { position: sticky; top: 20px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.cart-summary h2 { margin: 0 0 18px; font: 500 1.5rem var(--font-display); }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--muted); font-size: .8rem; }
.summary-total { margin-top: 3px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.summary-total span:last-child { text-align: right; }
.checkout-note { margin: 12px 0; color: var(--muted); font-size: .75rem; }
.checkout-button { width: 100%; margin: 4px 0 10px; cursor: not-allowed; opacity: .58; }
.clear-cart { display: block; margin: 0 auto; }
.continue-link { margin-top: 20px; }
.empty-state { max-width: 510px; margin: 80px auto; padding: 38px 24px; border: 1px dashed #bcb0bf; text-align: center; background: var(--surface); }
.empty-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--plum); background: #e8e0ed; font-size: 1.6rem; }
.empty-state h1, .empty-state h2 { margin: 0 0 10px; font: 500 1.8rem var(--font-display); }
.empty-state p { margin: 0 auto 20px; color: var(--muted); font-size: .9rem; }
.add-button:disabled { cursor: not-allowed; opacity: .62; transform: none; }
.checkout-soon { max-width: 620px; margin: clamp(70px, 14vh, 150px) auto; text-align: center; }
.checkout-soon h1 { margin: 0 0 12px; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.05; }
.checkout-soon p { margin: 0 0 24px; color: var(--muted); }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { gap: 35px; }
}
@media (max-width: 700px) {
  .site-header { min-height: 68px; padding: 0 18px; }
  .wordmark { font-size: 1rem; }
  .wordmark img { width: 36px; height: 36px; }
  .main-nav { gap: 15px; }
  .nav-link { display: inline-flex; }
  main { width: min(100% - 32px, 560px); }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 48px 2px 56px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.4rem); }
  .hero-art img { max-height: 430px; }
  .about-layout { grid-template-columns: 1fr; gap: 26px; }
  .about-copy { grid-column: 1; grid-row: 2; }
  .about-profile { grid-column: 1; grid-row: 1; width: min(68vw, 300px); justify-self: center; }
  .about-section { padding: 22px; }
  .about-instagram { margin-top: 50px; margin-bottom: 54px; }
  .instagram-post-card { flex-basis: clamp(250px, 76vw, 340px); }
  .shop-intro { align-items: start; flex-direction: column; gap: 5px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 13px; }
  .product-image { aspect-ratio: 1 / 1.08; }
  .product-card h3 { font-size: 1.08rem; }
  .product-subtitle { min-height: 0; font-size: .74rem; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; padding: 22px 20px; }
  .site-footer p { order: 3; flex-basis: 100%; }
  .product-detail { grid-template-columns: 1fr; gap: 25px; }
  .detail-gallery-stage { max-height: 560px; }
  .detail-copy { padding-top: 0; }
  .cart-layout { grid-template-columns: 1fr; gap: 25px; }
  .cart-summary { position: static; }
  .cart-row { grid-template-columns: 68px minmax(0,1fr) 58px; gap: 11px; }
  .cart-row > img, .cart-art { width: 68px; height: 68px; }
  .cart-quantity { grid-column: 2; grid-row: 2; display: flex; align-items: center; }
  .remove-button { grid-column: 3; grid-row: 2; justify-self: end; }
}
@media (max-width: 390px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .option-form { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 58px minmax(0,1fr) 52px; }
  .cart-row > img, .cart-art { width: 58px; height: 58px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .about-marquee { overflow: visible; }
  .about-marquee-track { display: block; width: auto; transform: none; }
  .about-marquee-controls { display: none; }
  .about-marquee-group:not([aria-hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; width: 100%; padding: 0; }
  .instagram-post-card { width: 100%; }
  .about-marquee-group[aria-hidden="true"] { display: none; }
}
