:root {
  color-scheme: light;
  --ink: #211f1c;
  --muted: #635e58;
  --paper: #fbfaf7;
  --panel: #fff;
  --line: #e7e0d9;
  --orange: #f54809;
  --orange-dark: #b93207;
  --peach: #ffb491;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .63; }
:focus-visible { outline: 2px solid #c3380b; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(70rem, calc(100% - 4rem)); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset: .5rem auto auto .5rem;
  z-index: 5;
  transform: translateY(-140%);
  padding: .5rem .9rem;
  background: var(--panel);
}

.skip-link:focus { transform: none; }
.site-header { background: var(--panel); border-bottom: 1px solid #e9e4dd; }
.header-content, .footer-content {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark, .header-content nav, .product-top, .product-bottom {
  display: flex;
  align-items: center;
}
.wordmark { gap: .8rem; font-weight: 800; white-space: nowrap; }
.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.4rem;
  height: 2.3rem;
  border-radius: .55rem;
  background: #1e1c19;
  color: #fff;
  font: 850 1rem/1 system-ui, sans-serif;
  letter-spacing: -.09em;
  padding-right: .1em;
}
.wordmark-mark span {
  position: absolute;
  border-radius: 50%;
  width: .22rem;
  height: .22rem;
  background: var(--peach);
  right: .39rem;
  bottom: .43rem;
}

.header-content nav { gap: 1.65rem; font-size: .9rem; font-weight: 700; }
.products-link { color: var(--muted); }
.products-link:hover, .footer-content a:hover { color: var(--orange-dark); }
.order-link {
  border: 1px solid #ddd6ce;
  border-radius: .55rem;
  padding: .47rem .86rem;
  white-space: nowrap;
}
.order-link:hover { border-color: var(--orange); color: var(--orange-dark); }

.hero {
  overflow: hidden;
  color: #fff8ef;
  background: radial-gradient(ellipse at 83% 60%, #58301f 0%, #2b2420 44%, #1e1c1a 72%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  min-height: 26.25rem;
  align-items: center;
  gap: 2rem;
  padding-block: 2.8rem;
}

.hero-copy { position: relative; z-index: 1; }
.preview-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #ffc8ab;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.preview-label span { width: .42rem; height: .42rem; border-radius: 50%; background: #ff9b68; }
.hero h1 {
  margin-top: .7rem;
  font: 800 clamp(2.65rem, 5.8vw, 4.7rem)/1.13 var(--serif);
  letter-spacing: -.065em;
}

.hero h1 em { font-style: normal; color: #ffaf87; }
.hero-description { max-width: 27rem; margin: 1.05rem 0 1.5rem; color: #eadbd1; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid transparent;
  border-radius: .58rem;
  padding: .6rem 1.15rem;
  background: #ad2c05;
  color: #fff;
  font-size: .94rem;
  font-weight: 750;
  transition: background .16s ease, border-color .16s ease;
}
.primary:hover:not(:disabled) { background: #8d2410; }
.hero-button { background: #ffb18a; color: #24190f; }
.hero-button:hover:not(:disabled) { background: #ffc4a6; }
.hero-button:focus-visible { outline-color: #ffcfb6; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 19.5rem;
  isolation: isolate;
}
.hero-art::before, .hero-art::after {
  position: absolute;
  inset: 7% -6%;
  z-index: -1;
  content: "";
  border: 1px solid #ffb49145;
  border-radius: 50%;
  transform: rotate(-21deg);
}
.hero-art::after { inset: -1% 2%; transform: rotate(21deg); border-color: #ffb49132; }
.brand-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 21.25rem);
  aspect-ratio: 1.33;
  border: 1px solid #fdf6e9;
  border-radius: 1rem;
  background: #fbf5e8;
  box-shadow: 0 1.2rem 3.5rem #0c07065c;
  transform: rotate(-3deg);
}
.brand-card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

.catalog { padding-block: 3rem 3.5rem; scroll-margin-top: 1rem; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}
.section-heading h2, .order-content h2, .questions h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.3;
  font-weight: 820;
  letter-spacing: -.035em;
}
.section-heading p, .order-content p { margin-top: .38rem; color: var(--muted); }
.catalog-count { flex-shrink: 0; font-size: .87rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.catalog-state { padding: .95rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); }
.catalog-state .text-button { margin-inline-start: .6rem; }
.catalog-state.availability { margin-bottom: 1rem; }

.product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  padding: 1.22rem;
  border: 1px solid var(--line);
  border-radius: .83rem;
  background: var(--panel);
  box-shadow: 0 .25rem .85rem #3b2b1c05;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.product-card:hover { border-color: #e6b39b; box-shadow: 0 .5rem 1.4rem #3b2b1c0b; }
.product-top { justify-content: space-between; gap: .6rem; margin-bottom: .88rem; }
.product-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .64rem;
  background: #fae4d8;
  color: #8f2d14;
  font: 850 .94rem/1 system-ui, sans-serif;
  letter-spacing: -.035em;
}
.product-card:nth-child(3n+2) .product-mark { background: #eae9f6; color: #47437a; }
.product-card:nth-child(3n+3) .product-mark { background: #e1eee9; color: #275a4b; }
.product-category { color: var(--muted); font-size: .87rem; }
.product-name { font-size: 1.2rem; font-weight: 830; line-height: 1.37; overflow-wrap: anywhere; }
.product-variant { color: #882c13; font-size: .92rem; font-weight: 750; margin-top: .25rem; }
.product-description { color: var(--muted); margin: .37rem 0 1.1rem; font-size: .92rem; overflow-wrap: anywhere; }
.product-bottom { justify-content: space-between; gap: .8rem; margin-top: auto; border-top: 1px solid #eee8e2; padding-top: .85rem; }
.product-price { font: 800 1.4rem/1.2 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.product-button {
  padding: .5rem .74rem;
  border: 1px solid #ecc8b7;
  border-radius: .53rem;
  min-height: 2.75rem;
  background: #fff4ec;
  color: #84290e;
  font-size: .88rem;
  font-weight: 750;
}
.product-button:hover:not(:disabled) { background: #fee0d0; border-color: #de9b7c; }

.order-band { background: #f3ede6; border-block: 1px solid var(--line); scroll-margin-top: 1rem; }
.order-content { display: grid; grid-template-columns: 1fr minmax(0, 1.08fr); align-items: center; gap: 1.6rem; padding-block: 2.65rem; }
.lookup-form label, .form-field { display: grid; gap: .4rem; font-size: .9rem; font-weight: 720; }
.lookup-inputs { display: flex; gap: .55rem; margin-top: .4rem; }
input, select {
  min-width: 0;
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid #d7cec4;
  border-radius: .54rem;
  background: #fff;
  color: var(--ink);
  padding: .6rem .75rem;
  font-size: 1rem;
}
input::placeholder { color: #716861; }
.lookup-inputs .primary { flex-shrink: 0; }
.quantity-field select {
  appearance: none;
  padding-right: 1.8rem;
  background: linear-gradient(45deg, transparent 50%, #5c514a 50%) right 15px center / 5px 5px no-repeat,
              linear-gradient(135deg, #5c514a 50%, transparent 50%) right 10px center / 5px 5px no-repeat #fff;
}

.questions { padding-block: 2.6rem 3rem; }
.questions h2 { margin-bottom: .75rem; }
details { border-bottom: 1px solid var(--line); }
summary { padding-block: .8rem; font-weight: 720; cursor: pointer; }
details p { padding: 0 1rem .85rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-content { min-height: 4.1rem; }

dialog {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  border: 1px solid #e2d7cc;
  border-radius: .95rem;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 6rem #100a0650;
}
dialog::backdrop { background: #241d17a6; }
.dialog-content { position: relative; padding: 1.45rem; }
.close-button {
  position: absolute;
  top: .95rem;
  right: .95rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: .48rem;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}
.close-button:hover { background: #f5ebe1; }
.dialog-kicker { padding-right: 2.5rem; color: #8d340f; font-size: .88rem; font-weight: 720; }
dialog h2 { margin: .35rem 2.4rem .95rem 0; font-size: 1.55rem; line-height: 1.3; }
.checkout-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .82rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
}
.checkout-product p { color: var(--muted); font-size: .9rem; }
.checkout-product > strong { white-space: nowrap; }
.form-fields { display: grid; grid-template-columns: minmax(0, 1fr) 5.75rem; gap: .75rem; align-items: start; }
.field-help { color: var(--muted); font-size: .84rem; font-weight: 500; }
.total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  border-top: 1px solid var(--line);
  margin-top: .95rem;
  padding: .8rem 0;
  color: var(--muted);
  font-size: .94rem;
}
.total-line strong { color: var(--ink); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.form-error, .order-content .form-error { margin: .45rem 0 .75rem; color: #9b2d18; font-size: .92rem; }
.full-width { width: 100%; }
.receipt-status { padding: .65rem .8rem; border-radius: .5rem; background: #fff0dc; color: #754119; font-weight: 720; }
.receipt-status.paid { background: #e4f0e8; color: #23523b; }
.receipt-detail { margin: .8rem 0; }
.receipt-detail div { display: flex; justify-content: space-between; align-items: start; gap: .7rem; padding: .28rem 0; }
.receipt-detail dt { color: var(--muted); flex-shrink: 0; }
.receipt-detail dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.receipt-id {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .26rem .65rem;
  padding: .65rem .75rem;
  margin-bottom: .9rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fff;
  font-size: .9rem;
}
.receipt-id code { grid-column: 1 / -1; color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; user-select: all; }
.text-button { width: fit-content; border: 0; padding: .18rem 0; background: transparent; color: #932d10; font-size: .9rem; font-weight: 710; text-align: start; }
.text-button:hover { text-decoration: underline; }

@media (max-width: 54rem) {
  .hero-content { min-height: 23rem; gap: 1.25rem; }
  .hero-art { min-height: 16.4rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 37rem) {
  .shell { width: calc(100% - 2rem); }
  .header-content { min-height: 3.8rem; }
  .header-content nav, .wordmark { gap: .55rem; }
  .header-content .products-link { display: none; }
  .hero-content { min-height: auto; grid-template-columns: 1fr; gap: 1.2rem; padding-block: 2rem 1.8rem; }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.35rem); }
  .hero-description { margin-block: .8rem 1.05rem; }
  .hero-art { min-height: 9.8rem; }
  .brand-card { width: min(70%, 13.2rem); }
  .hero-art::before, .hero-art::after { inset: 4% 9%; }
  .catalog { padding-block: 2rem; }
  .section-heading { align-items: start; gap: .55rem; }
  .section-heading p { font-size: .94rem; }
  .section-heading .catalog-count { font-size: .84rem; margin-top: .3rem; }
  .product-grid, .order-content { grid-template-columns: 1fr; }
  .product-card { min-height: 14rem; }
  .order-content { padding-block: 1.9rem; gap: .9rem; }
  .questions { padding-block: 1.85rem 2.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
