:root {
  --paper: #f3ebdc;
  --paper-deep: #e7d9c5;
  --ink: #20201d;
  --muted: #6e695f;
  --red: #b43a2f;
  --red-dark: #8d2e26;
  --green: #356454;
  --line: rgba(32, 32, 29, 0.18);
  --white: #fffdf8;
  --display: "Newsreader", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(71, 55, 32, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 4px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(180, 58, 47, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 235, 220, 0.92);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 35px;
  height: 35px;
  color: var(--paper);
  background: var(--red);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  place-items: center;
}

.quote-button {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 10px 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.quote-button:hover {
  color: var(--paper);
  background: var(--ink);
}

.quote-count {
  display: grid;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  place-items: center;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  min-height: 390px;
  padding: 42px clamp(24px, 8vw, 120px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  top: 9%;
  left: 4%;
  width: 75px;
  height: 22px;
  border: 1px solid rgba(32, 32, 29, 0.25);
  content: "SALE / 売ります";
  font-family: var(--mono);
  font-size: 9px;
  line-height: 20px;
  text-align: center;
  transform: rotate(-6deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 720px;
}

.hero .eyebrow {
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(58px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.8;
}

h1 em {
  color: var(--red);
  font-weight: 500;
}

.hero-intro {
  max-width: 515px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
}

.hero-intro strong {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-weight: 700;
}

.browse-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.browse-link span {
  font-size: 18px;
  transition: transform 160ms ease;
}

.browse-link:hover span {
  transform: translateY(4px);
}

.hero-art {
  position: relative;
  min-height: 330px;
  transform: scale(0.68);
  transform-origin: center right;
}

.sun {
  position: absolute;
  top: 3%;
  right: 9%;
  width: 315px;
  height: 315px;
  border-radius: 50%;
  background: #d9a83b;
  opacity: 0.82;
}

.box {
  position: absolute;
  display: flex;
  border: 2px solid var(--ink);
  background: #cfa66d;
  box-shadow: 12px 14px 0 rgba(32, 32, 29, 0.09);
}

.box::before {
  position: absolute;
  height: 34px;
  border: 2px solid var(--ink);
  background: rgba(245, 225, 181, 0.75);
  content: "";
}

.box-back {
  top: 25%;
  left: 4%;
  width: 245px;
  height: 220px;
  padding: 18px;
  align-items: end;
  font-family: var(--mono);
  font-size: 11px;
  transform: rotate(-5deg);
}

.box-back::before {
  top: -19px;
  right: 25px;
  left: 25px;
}

.box-front {
  right: 2%;
  bottom: 4%;
  width: 310px;
  height: 280px;
  padding: 30px;
  justify-content: space-between;
  align-items: end;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  transform: rotate(3deg);
}

.box-front::before {
  top: -19px;
  right: 35px;
  left: 35px;
}

.box-symbol {
  align-self: center;
  font-family: var(--sans);
  font-size: 74px;
}

.stamp {
  position: absolute;
  z-index: 3;
  top: 14%;
  right: 2%;
  display: grid;
  width: 74px;
  height: 74px;
  border: 3px double var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  transform: rotate(12deg);
  place-items: center;
}

.plant {
  position: absolute;
  z-index: 4;
  right: 52%;
  bottom: 1%;
  width: 110px;
  height: 200px;
}

.plant b {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 76px;
  height: 82px;
  border: 2px solid var(--ink);
  background: var(--red);
  clip-path: polygon(5% 0, 95% 0, 82% 100%, 18% 100%);
}

.plant i {
  position: absolute;
  bottom: 66px;
  left: 52px;
  width: 4px;
  height: 115px;
  background: var(--green);
  transform-origin: bottom;
}

.plant i::before {
  position: absolute;
  top: 4px;
  left: -25px;
  width: 28px;
  height: 58px;
  border-radius: 100% 0 100% 0;
  background: var(--green);
  content: "";
}

.plant i:nth-child(2) {
  height: 96px;
  transform: rotate(-30deg);
}

.plant i:nth-child(3) {
  height: 105px;
  transform: rotate(34deg);
}

.inventory-section {
  max-width: 1560px;
  margin: 0 auto;
  padding: 50px clamp(20px, 5vw, 72px) 100px;
}

.section-heading {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.how-it-works h2,
.drawer-header h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.inventory-meta {
  text-align: right;
}

.inventory-summary {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.negotiable-note {
  margin: 6px 0 0;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.pickup-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  gap: 11px;
  align-items: center;
}

.search-box svg,
.copy-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-box input {
  width: 100%;
  padding: 8px 0;
  border: 0;
  color: var(--ink);
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #8a8377;
}

.filters {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.filter {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.filter:hover,
.filter.is-active {
  color: var(--paper);
  background: var(--ink);
}

.filter-free:not(.is-active) {
  color: var(--red);
}

.filter-free::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #d9a83b;
  content: "";
  vertical-align: 1px;
}

.sort-control select {
  min-height: 38px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.catalog-sections {
  padding-top: 20px;
}

.catalog-section {
  padding: 38px 0 55px;
  border-top: 1px solid var(--ink);
}

.catalog-section-header {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 25px;
}

.catalog-section-header > span {
  padding-top: 8px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
}

.catalog-section-header h3 {
  margin-bottom: 3px;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.catalog-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 46px 22px;
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-margin-top: 90px;
}

.bundle-grid-group {
  position: relative;
  grid-column: span var(--bundle-count);
  min-width: 0;
  padding: 0;
}

.bundle-grid-group::before {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  content: "";
  pointer-events: none;
}

.bundle-grid-items {
  display: grid;
  grid-template-columns: repeat(var(--bundle-count), minmax(0, 1fr));
  gap: 22px;
}

.bundle-grid-group .item-card.is-free .item-visual {
  border: 1px solid rgba(32, 32, 29, 0.12);
  box-shadow: none;
}

.grid-bundle-callout {
  position: absolute;
  z-index: 5;
  top: -36px;
  right: 0;
  left: 0;
  display: flex;
  min-height: 32px;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 4px 7px;
  color: var(--red);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.grid-bundle-callout strong {
  font-size: 11px;
}

.grid-bundle-callout button {
  min-height: 27px;
  padding: 6px 12px;
  border: 0;
  color: var(--white);
  background: var(--red);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.grid-bundle-callout button:hover {
  background: var(--red-dark);
}

.grid-bundle-callout button:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

.item-visual {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 19px;
  overflow: hidden;
  border: 1px solid rgba(32, 32, 29, 0.12);
  background: var(--card-color);
  place-items: center;
}

.item-visual::before,
.item-visual::after {
  position: absolute;
  content: "";
}

.item-visual.has-image {
  background: #f7f5ef;
}

.item-visual.has-image::before,
.item-visual.has-image::after {
  display: none;
}

.item-visual img {
  width: 100%;
  height: 100%;
  padding: 7%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.item-card:hover .item-visual img {
  transform: scale(1.035);
}

.item-visual::before {
  top: 18%;
  left: 18%;
  width: 64%;
  height: 54%;
  border: 2px solid currentColor;
  border-radius: var(--shape-radius, 3px);
  opacity: 0.65;
  transform: rotate(var(--shape-rotate, -3deg));
}

.item-visual::after {
  right: 17%;
  bottom: 15%;
  width: 35%;
  height: 20%;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.35;
}

.category-mark {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.05em;
  opacity: 0.88;
}

.item-number {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  opacity: 0.7;
}

.item-card.is-sold .item-visual img,
.item-card.is-sold .category-mark {
  filter: grayscale(1);
  opacity: 0.35;
}

.item-card.is-sold .item-meta,
.item-card.is-sold .bundle-offer,
.item-card.is-sold .item-pairings,
.item-card.is-sold .item-actions {
  opacity: 0.48;
}

.sold-sticker {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  border: 3px double var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--muted);
  box-shadow: 0 0 0 2px var(--muted);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-9deg);
  place-items: center;
}

.item-card.is-free .item-visual {
  border: 2px solid var(--red);
  box-shadow: 7px 7px 0 rgba(180, 58, 47, 0.12);
}

.free-sticker {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: #e8bd4f;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  line-height: 0.9;
  text-transform: uppercase;
  transform: rotate(-8deg);
  transition: transform 180ms ease;
}

.free-sticker small {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.item-card.is-free:hover .free-sticker {
  transform: rotate(-3deg) scale(1.05);
}

.bundle-flag {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: #e8bd4f;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.item-meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 65px;
}

.item-title-wrap {
  min-width: 0;
}

.item-category {
  margin-bottom: 6px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-title {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.original-price {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.item-price {
  flex: 0 0 auto;
  margin: 1px 0 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.item-card.is-free .item-price {
  align-self: flex-start;
  padding: 5px 8px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-card.is-free .add-item {
  border-color: var(--red);
  color: var(--red);
}

.item-card.is-free .add-item:hover,
.item-card.is-free .add-item.is-selected {
  color: var(--white);
  background: var(--red);
}

.bundle-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  width: fit-content;
  margin: 11px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.35;
}

.bundle-offer span {
  flex: 0 0 auto;
  padding: 4px 6px;
  color: var(--ink);
  background: #e8bd4f;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bundle-offer.is-unlocked {
  color: var(--green);
  font-weight: 500;
}

.bundle-offer.is-unlocked span {
  color: var(--white);
  background: var(--green);
}

.item-pairings {
  display: flex;
  gap: 6px;
  min-height: 24px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.item-pairings::-webkit-scrollbar {
  display: none;
}

.item-pairings span,
.item-pairings a {
  flex: 0 0 auto;
  padding: 5px 7px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

.item-pairings span {
  padding-left: 0;
  color: var(--muted);
  text-transform: uppercase;
}

.item-pairings a {
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.item-pairings a:hover {
  border-color: var(--red);
  color: var(--red);
}

.item-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: auto;
  padding-top: 15px;
}

.add-item,
.view-item {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.add-item:hover,
.add-item.is-selected {
  color: var(--paper);
  background: var(--ink);
}

.add-item:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.view-item {
  width: 39px;
  border-color: var(--line);
  font-size: 16px;
}

.view-item:hover {
  border-color: var(--ink);
}

.empty-state {
  padding: 90px 20px;
  text-align: center;
}

.empty-state span,
.quote-empty span {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  place-items: center;
}

.empty-state h3,
.quote-empty h3 {
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
}

.empty-state p,
.quote-empty p {
  color: var(--muted);
  font-size: 12px;
}

.empty-state button,
.quote-empty button {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.how-it-works {
  padding: 110px clamp(24px, 8vw, 120px) 130px;
  color: var(--paper);
  background: var(--ink);
}

.how-it-works .eyebrow {
  color: #d96b5e;
}

.how-it-works h2 {
  margin-bottom: 70px;
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(243, 235, 220, 0.25);
  list-style: none;
}

.how-it-works li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 30px 36px 15px 0;
  border-right: 1px solid rgba(243, 235, 220, 0.25);
}

.how-it-works li + li {
  padding-left: 36px;
}

.how-it-works li:last-child {
  border-right: 0;
}

.how-it-works li span {
  grid-row: 1 / 3;
  color: #d96b5e;
  font-family: var(--mono);
  font-size: 10px;
}

.how-it-works li strong {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}

.how-it-works li p {
  margin: 0;
  color: #aaa69d;
  font-size: 12px;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 55px clamp(24px, 8vw, 120px);
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid rgba(243, 235, 220, 0.15);
}

footer > div {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-mark {
  color: #d96b5e;
  font-size: 22px;
  font-weight: 700;
}

footer p {
  margin: 0;
  color: #8f8b83;
  font-family: var(--mono);
  font-size: 9px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(20, 20, 18, 0.48);
  opacity: 0;
  transition: opacity 220ms ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.quote-drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(470px, 100%);
  height: 100dvh;
  padding: 34px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -20px 0 50px rgba(32, 32, 29, 0.18);
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
}

.drawer-header .eyebrow {
  margin-bottom: 8px;
}

.drawer-header h2 {
  font-size: 42px;
}

.icon-button {
  width: 39px;
  height: 39px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.drawer-help {
  margin: 24px 0 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.quote-items {
  flex: 1;
}

.quote-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.quote-item-mark {
  display: grid;
  width: 50px;
  height: 50px;
  background: var(--card-color);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  place-items: center;
}

.quote-item-info {
  min-width: 0;
}

.quote-item h3 {
  margin: 0 0 5px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-input {
  display: flex;
  align-items: center;
  width: fit-content;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.price-input input {
  width: 78px;
  padding: 4px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
}

.quote-bundle-free {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.quote-bundle-free span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 400;
}

.remove-item {
  padding: 5px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.quote-empty {
  margin: auto;
  padding: 65px 10px;
  text-align: center;
}

.quote-recommendations {
  padding: 22px 0 4px;
  border-bottom: 1px solid var(--line);
}

.quote-recommendations > p {
  margin-bottom: 11px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-recommendations > div {
  display: grid;
  gap: 7px;
}

.quote-recommendations button {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 7px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.quote-recommendations button:hover {
  border-color: var(--ink);
}

.quote-recommendations button > span {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: var(--card-color);
  font-family: var(--display);
  place-items: center;
}

.quote-recommendations img {
  width: 100%;
  height: 100%;
  padding: 3px;
  background: #f7f5ef;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.quote-recommendations b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-recommendations small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.quote-footer {
  position: sticky;
  bottom: -34px;
  margin: 20px -34px -34px;
  padding: 24px 34px 28px;
  border-top: 1px solid var(--ink);
  background: var(--white);
}

.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.quote-total span {
  font-size: 11px;
  font-weight: 700;
}

.quote-total strong {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
}

.quote-footer > p {
  min-height: 17px;
  margin-bottom: 15px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
}

.copy-button {
  display: flex;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  color: var(--white);
  background: var(--red);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--red-dark);
}

.copy-button svg {
  width: 17px;
}

.clear-list {
  display: block;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 80;
  bottom: 25px;
  left: 50%;
  padding: 12px 18px;
  color: var(--white);
  background: var(--green);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

body.drawer-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr 0.75fr;
    padding-inline: 7vw;
  }

  .hero-art {
    transform: scale(0.6);
    transform-origin: center right;
  }

  .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bundle-grid-group {
    grid-column: 1 / -1;
  }

  .bundle-grid-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bundle-count-2 .bundle-grid-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 55px 7vw 45px;
  }

  .hero-art {
    display: none;
  }

  .toolbar {
    grid-template-columns: 1fr auto;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bundle-grid-items,
  .bundle-count-2 .bundle-grid-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-it-works ol {
    grid-template-columns: 1fr;
  }

  .how-it-works li,
  .how-it-works li + li {
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(243, 235, 220, 0.25);
  }

  footer {
    gap: 35px;
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .site-header {
    min-height: 64px;
  }

  .wordmark {
    font-size: 19px;
  }

  .wordmark-mark {
    width: 31px;
    height: 31px;
    font-size: 15px;
  }

  .quote-button {
    padding-left: 14px;
  }

  .hero {
    padding: 48px 22px 38px;
  }

  .hero::before {
    display: none;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(48px, 14vw, 58px);
    line-height: 0.84;
  }

  .inventory-section {
    padding-top: 35px;
  }

  .section-heading {
    gap: 16px;
    align-items: start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .inventory-meta {
    text-align: left;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: space-between;
  }

  .sort-control select {
    width: 100%;
  }

  .catalog-sections {
    padding-top: 14px;
  }

  .catalog-section {
    padding: 30px 0 45px;
  }

  .catalog-section-header {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .item-grid {
    gap: 38px 12px;
  }

  .item-visual {
    max-width: 150px;
    margin-bottom: 14px;
  }

  .item-meta {
    display: block;
  }

  .item-title {
    min-height: 42px;
    font-size: 14px;
  }

  .item-price {
    margin-top: 8px;
  }

  .item-actions {
    padding-top: 11px;
  }

  .how-it-works {
    padding: 85px 24px 95px;
  }

  .how-it-works h2 {
    margin-bottom: 50px;
  }

  footer > div {
    align-items: start;
  }

  footer > div p {
    line-height: 1.6;
  }

  .quote-drawer {
    padding: 24px 20px;
  }

  .quote-footer {
    bottom: -24px;
    margin: 20px -20px -24px;
    padding: 22px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
