@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: only light;
  --page-lavender: #c5a8f1;
  --page-ink: #1c112b;
  --page-accent: #563580;
  --panel: #17131f;
  --text: #f4f3ed;
  --muted: #aaa3b5;
  --lime: #b991ff;
  --border: #30283e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-lavender);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0px;
  color: var(--page-ink);
  font-family: "DM Sans", sans-serif;
  background: var(--page-lavender);
}

button, input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a, input, summary {
  -webkit-tap-highlight-color: transparent;
}

button, summary {
  cursor: pointer;
}

button {
  color: inherit;
}

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline-offset: 5px;
  outline: 2px solid var(--lime);
}

header {
  height: 94px;
  max-width: 1440px;
  margin: auto;
  padding: 0px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.3px;
}

.brand span {
  color: var(--lime);
}

nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: rgb(201, 204, 195);
}

.cart-button {
  background: none;
  border: 1px solid rgb(69, 73, 63);
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 12px;
}

.cart-button #cartCount {
  color: rgb(17, 17, 17);
  padding: 3px 6px;
  margin-left: 12px;
  border-radius: 4px;
  background: var(--lime);
}

main {
  overflow: hidden;
}

main :is(button, a, summary):focus-visible {
  outline-color: var(--page-accent);
}

.picker-panel h1 .lime {
  color: var(--page-accent);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(50px, 5.8vw, 85px);
  line-height: 1.02;
  letter-spacing: -5px;
  margin: 26px 0px;
}

h1 em {
  font-style: normal;
  color: var(--lime);
}

p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: rgb(25, 13, 45);
  font-weight: 700;
  font-size: 13px;
  border: 0px;
  border-radius: 6px;
  padding: 17px 23px;
  transition: transform 0.2s, background 0.2s;
  background: var(--lime);
}

.primary:hover {
  background: rgb(209, 181, 255);
  transform: translateY(-2px);
}

.text-link {
  font-size: 12px;
  font-weight: 600;
}

.text-link span {
  margin-left: 12px;
}

h2 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 16px 0px 24px;
}

.faq {
  --faq-cream: #fff4de;
  --faq-ink: #28163d;
  width: min(90%, 760px);
  margin: 0 auto;
  overflow: visible;
  padding: clamp(32px, 7vw, 92px) 0 clamp(56px, 9vw, 104px);
}

.faq h1 {
  margin: 0 0 clamp(23px, 4vw, 48px);
  text-align: center;
  color: var(--faq-ink);
  font: italic 700 clamp(32px, 5vw, 54px) / 1.05 "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.faq-list {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.faq details {
  border: 2px solid var(--faq-ink);
  border-radius: 16px;
  background: var(--faq-cream);
  box-shadow: 0 5px 0 var(--faq-ink);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.faq details[open],
.faq details:has(summary:active) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--faq-ink);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px clamp(14px, 4vw, 24px);
  list-style: none;
  color: var(--faq-ink);
  font: italic 700 clamp(16px, 2.5vw, 20px) / 1.25 "Space Grotesk", sans-serif;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:focus-visible {
  outline: 2px solid var(--faq-ink);
  outline-offset: -6px;
  border-radius: 13px;
}

.faq-mark {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  height: 18px;
  color: var(--faq-ink);
}

.faq-mark::before, .faq-mark::after {
  content: "";
  grid-area: 1 / 1;
  width: 13px;
  height: 2px;
  background: currentColor;
}

.faq-mark::after {
  transform: rotate(90deg);
}

.faq details[open] .faq-mark::after {
  display: none;
}

.faq details p {
  margin: 0;
  padding: 0 clamp(14px, 4vw, 24px) 20px;
  max-width: 64ch;
  color: #49365e;
  font-size: 14px;
  line-height: 1.65;
}

.faq details[open] p {
  animation: faq-answer-in 180ms ease-out;
}

@keyframes faq-answer-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

footer {
  max-width: 1440px;
  margin: auto;
  padding: 30px 6% 50px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 11px;
}

footer > span {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}

dialog {
  background: rgb(26, 18, 37);
  border: 1px solid rgb(89, 64, 111);
  border-radius: 15px;
  color: var(--text);
  padding: 35px;
  width: min(480px, 100% - 32px);
  max-height: 90vh;
  overflow: auto;
}

dialog::backdrop {
  background: rgba(5, 7, 5, 0.737);
  backdrop-filter: blur(8px);
}

dialog h2 {
  font-size: 32px;
  letter-spacing: -1.5px;
}

dialog p {
  font-size: 12px;
}

.bag-drawer {
  --bag-ink: #20132d;
  --bag-muted: #5c496c;
  --bag-line: #d8c3ef;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 470px);
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 2px solid var(--bag-ink);
  border-radius: 0;
  background: #faf4ff;
  color: var(--bag-ink);
  box-shadow: -16px 0 42px #180d2966;
  grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 500ms cubic-bezier(.2, .55, .3, 1), opacity 500ms cubic-bezier(.2, .55, .3, 1),
    display 500ms allow-discrete, overlay 500ms allow-discrete;
}

.bag-drawer[open] {
  display: grid;
  opacity: 1;
  transform: translateX(0);
}

.bag-drawer:not([open]),
.bag-drawer:not([open])::backdrop {
  pointer-events: none;
}

.bag-drawer::backdrop {
  background: #180d297d;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 250ms ease, display 500ms allow-discrete, overlay 500ms allow-discrete;
}

.bag-drawer[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .bag-drawer[open] {
    opacity: 0;
    transform: translateX(100%);
  }

  .bag-drawer[open]::backdrop {
    opacity: 0;
  }
}

html:has(.bag-drawer[open]) {
  overflow: hidden;
}

.bag-drawer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 12px clamp(14px, 4vw, 22px);
  border-bottom: 2px solid var(--bag-ink);
  background: var(--page-lavender);
}

.bag-drawer-header h2 {
  margin: 0;
  font-size: 26px;
  font-style: italic;
  letter-spacing: -0.04em;
}

.bag-drawer-header .lime {
  color: var(--page-accent);
}

.bag-dismiss,
.bag-drawer-actions .primary {
  border: 2px solid var(--bag-ink);
  background: #fffaff;
  color: var(--bag-ink);
  box-shadow: 0 3px 0 var(--bag-ink);
}

.bag-dismiss {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border-radius: 11px;
  font-size: 24px;
  line-height: 1;
}

.bag-drawer button:focus-visible {
  outline-color: var(--page-accent);
}

.bag-drawer-items {
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(14px, 4vw, 22px);
}

.bag-empty,
.bag-item {
  margin: 0;
  padding: 13px;
  border: 1px solid var(--bag-line);
  border-radius: 13px;
  background: #fffaff;
}

.bag-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.bag-item-sticker {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--bag-ink);
  border-radius: 11px;
  background: #dac2ff;
  box-shadow: 1px 2px 0 var(--bag-ink);
  transform: rotate(-3deg);
}

.bag-item-sticker img {
  filter: brightness(0);
}

.bag-item-details {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bag-item-details strong {
  font-size: 14px;
}

.bag-item-details > span,
.bag-item-details p,
.bag-empty {
  color: var(--bag-muted);
  font-size: 12px;
}

.bag-item-details p {
  margin: 0;
  overflow-wrap: anywhere;
}

.bag-item-actions {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.bag-item-actions b {
  font-size: 14px;
}

.bag-item-actions button {
  min-height: 30px;
  padding: 0 2px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--page-accent);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bag-drawer-footer {
  padding: 12px clamp(14px, 4vw, 22px) calc(15px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--bag-ink);
  background: #f0e5fd;
}

.bag-drawer-footer .order-minimum {
  margin: 0 0 8px;
  color: var(--page-accent);
}

.bag-drawer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 12px;
}

.bag-drawer-total {
  display: grid;
  gap: 1px;
  font-size: 12px;
  color: var(--bag-muted);
}

.bag-drawer-total b {
  color: var(--bag-ink);
  font-size: 23px;
  line-height: 1.2;
}

.bag-drawer-actions .primary {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 16px;
  font-style: italic;
}

.bag-drawer-actions .primary:not(:disabled):hover {
  background: var(--page-lavender);
}

@media (max-width: 550px) {
  .bag-drawer {
    width: 100%;
    border-left: 0;
  }
}

.close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  border: 0px;
  font-size: 26px;
  color: var(--muted);
}

label {
  display: block;
  font-size: 11px;
  margin: 20px 0px 13px;
  color: rgb(193, 174, 207);
}

input {
  width: 100%;
  background: rgb(15, 10, 23);
  border: 1px solid rgb(75, 52, 95);
  border-radius: 6px;
  padding: 14px;
  color: var(--text);
  margin-top: 9px;
  outline: none;
}

input:focus {
  border-color: var(--lime);
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0px;
  padding-top: 20px;
  font-size: 12px;
  border-top: 1px solid var(--border);
}

.order-total b {
  font-size: 26px;
  font-family: "Space Grotesk";
}

#confirmation .order-total {
  gap: 16px;
}

.confirmation-reference {
  min-width: 0;
  overflow-wrap: anywhere;
}

.confirmation-reference small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.muted {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  margin-top: 13px;
}

.order-minimum {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.order-minimum:empty {
  display: none;
}

.checkout-dialog {
  --checkout-ink: #28163d;
  --checkout-muted: #604c70;
  --checkout-paper: #fff4de;
  --checkout-white: #fffdf6;
  --checkout-inset: clamp(14px, 4vw, 28px);
  width: min(540px, 100% - 24px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 2px solid var(--checkout-ink);
  border-radius: 20px;
  background: var(--checkout-paper);
  color: var(--checkout-ink);
  box-shadow: 0 6px 0 var(--checkout-ink);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.checkout-dialog::backdrop {
  background: #28163d91;
  backdrop-filter: blur(4px);
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--checkout-inset);
  border-bottom: 2px solid var(--checkout-ink);
  background: var(--page-lavender);
}

.checkout-header h2 {
  margin: 0;
  font: italic 700 clamp(23px, 6vw, 38px) / 1.08 "Space Grotesk", sans-serif;
  letter-spacing: -.045em;
}

.checkout-header .lime {
  color: var(--page-accent);
}

.checkout-header .close {
  position: static;
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--checkout-ink);
  border-radius: 10px;
  background: var(--checkout-white);
  color: var(--checkout-ink);
  box-shadow: 0 3px 0 var(--checkout-ink);
  font: 700 23px / 1 sans-serif;
}

.checkout-content {
  padding: 18px var(--checkout-inset) 24px;
}

.checkout-order {
  border: 2px solid var(--checkout-ink);
  border-radius: 14px;
  background: var(--checkout-white);
  overflow: hidden;
}

.checkout-order .cart-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  font-size: 14px;
}

.checkout-order .cart-item + .cart-item {
  border-top: 1px dashed #9b87ae;
}

.checkout-item-sticker .picker-sticker-art {
  min-height: 40px;
  margin: 1px 0 0;
  border: 1.5px solid var(--checkout-ink);
  background-color: var(--sticker-paper);
  box-shadow: 1px 2px 0 var(--checkout-ink);
  transform: rotate(-5deg);
}

.checkout-item-sticker .picker-sticker-plate {
  max-width: 21px;
}

.checkout-item-sticker .picker-sticker-spark {
  inset: 3px 3px auto auto;
  width: 7px;
  height: 7px;
}

.checkout-item-detail,
.checkout-target {
  display: block;
  margin-top: 3px;
  color: var(--checkout-muted);
  font-size: 12px;
  line-height: 1.4;
}

.checkout-target {
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 2px;
}

.checkout-target svg {
  flex: none;
}

.checkout-target span {
  min-width: 0;
  overflow: hidden;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-dialog .checkout-target:focus-visible {
  outline: 2px solid #6944a2;
  outline-offset: 2px;
}

.checkout-line-price {
  white-space: nowrap;
}

.checkout-order .order-total {
  margin: 0;
  padding: 9px 14px;
  border-top: 2px solid var(--checkout-ink);
  background: #eaddfa;
  font-size: 14px;
  font-weight: 700;
}

.checkout-order #checkoutTotal {
  font-size: clamp(23px, 5vw, 31px);
  letter-spacing: -.045em;
}

.checkout-dialog #checkoutAvailability {
  margin: 14px 0 0;
  color: var(--checkout-muted);
  font-size: 14px;
  line-height: 1.5;
}

.checkout-dialog label,
.checkout-dialog #squarePayment > p:first-child {
  margin: 16px 0 8px;
  color: var(--checkout-ink);
  font: 700 14px / 1.35 "Space Grotesk", sans-serif;
}

.checkout-dialog #email {
  margin-top: 6px;
  padding: 10px 12px;
  border: 2px solid var(--checkout-ink);
  border-radius: 10px;
  background: var(--checkout-white);
  color: var(--checkout-ink);
  font: 500 16px / 1.2 "DM Sans", sans-serif;
}

.checkout-dialog #email::placeholder,
.checkout-dialog #squareStatus {
  color: var(--checkout-muted);
}

.checkout-dialog :is(button, input):focus-visible {
  outline: 2px solid #6944a2;
  outline-offset: 2px;
}

.checkout-dialog .primary {
  justify-content: center;
  min-height: 46px;
  margin-top: 8px;
  padding: 9px 14px;
  border: 2px solid var(--checkout-ink);
  border-radius: 11px;
  background: var(--page-lavender);
  color: var(--checkout-ink);
  box-shadow: 0 4px 0 var(--checkout-ink);
  font: italic 700 16px / 1.2 "Space Grotesk", sans-serif;
}

.checkout-dialog #squareRetryLoad {
  margin: 0 0 4px;
  background: var(--checkout-white);
}

.checkout-dialog .primary:hover {
  transform: none;
}

.checkout-dialog :is(.close, .primary):not(:disabled):active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--checkout-ink);
}

dialog .primary {
  width: 100%;
}

.apple-pay-button:not([hidden]) {
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-style: white;
  -apple-pay-button-type: plain;
  width: 100%;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
}

#applePayNative[hidden], #applePayScan[hidden] {
  display: none;
}

#applePayScan:not([hidden]) {
  display: block;
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 44px;
  --apple-pay-button-border-radius: 6px;
  --apple-pay-button-box-sizing: border-box;
}

#checkoutDialog.wallet-scan-in-progress {
  visibility: hidden;
}

.wallet-panel:not([hidden]) {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 12px;
  border: 2px solid var(--checkout-ink);
  border-radius: 12px;
  background: var(--page-lavender);
  color: var(--checkout-ink);
  box-shadow: 0 3px 0 var(--checkout-ink);
}

.wallet-panel h3 {
  margin: 0;
  font: italic 700 17px / 1.2 "Space Grotesk", sans-serif;
}

.wallet-preview-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallet-preview-buttons button {
  min-height: 44px;
  padding: 8px;
  border: 2px solid var(--page-ink);
  border-radius: 9px;
  background: #fff4de;
  box-shadow: 0 2px 0 var(--page-ink);
  font-weight: 700;
}

.wallet-preview-buttons button:focus-visible {
  outline-color: var(--page-accent);
}

#walletPreviewStatus {
  margin: 0;
  color: var(--page-ink);
  font-size: 12px;
  line-height: 1.4;
}

#googlePayTest:not([hidden]) {
  height: 44px;
}

.lime {
  color: var(--lime);
}

.payment-preview {
  margin: 14px 0 8px;
  padding: 13px;
  border: 1px solid var(--checkout-ink);
  border-radius: 11px;
  background: var(--checkout-white);
  font-size: 14px;
  font-weight: 700;
}

.payment-preview span { display: block; margin-top: 5px; color: var(--checkout-muted); font-size: 12px; font-weight: 500; }
.payment-preview span[hidden], #squareRetryLoad[hidden] { display: none; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  color: rgb(33, 17, 47);
  border-radius: 7px;
  padding: 13px 22px;
  z-index: 5;
  pointer-events: none;
  font-size: 12px;
  transition: 0.2s;
  background: var(--lime);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0px);
}

.primary:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 1000px) {
h1 {
  letter-spacing: -3px;
}

.text-link {
  font-size: 10px;
}
}

@media (max-width: 700px) {
header {
  height: 76px;
}

nav {
  display: none;
}

.brand {
  font-size: 23px;
}

h2 {
  font-size: 35px;
}

footer {
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  margin-left: auto;
}

footer > span {
  width: 100%;
  margin: 0px;
}
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
