:root {
  color-scheme: light dark;
  --paper: light-dark(#faf8f1, #24251f);
  --ink: light-dark(#2e3028, #f4eee0);
  --red: light-dark(#a53e2b, #ff9b80);
  --rule: light-dark(#cec9bb, #666658);
  --muted: light-dark(#646459, #c1bdaf);
  --card: light-dark(#fffdf6, #2e3029);
  --inset: light-dark(#eee9de, #3d4035);
  --mono: ui-monospace, "Courier New", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
}
main {
  width: min(100% - 72px, 1030px);
  margin: auto;
}
.title,
.sectiontop {
  display: flex;
  align-items: center;
}
.sectiontop {
  justify-content: space-between;
}
svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symbols {
  display: none;
}
button {
  font: 600 13px system-ui;
  color: inherit;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: transparent;
  padding: 10px 15px;
  cursor: pointer;
}
button:hover {
  background: var(--inset);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b78040;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.6;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 0 38px;
  border-bottom: 3px double var(--rule);
}
.micro {
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 1.5px;
}
.red {
  color: var(--red);
}
.micro i {
  display: inline-block;
  width: 19px;
  border-top: 2px solid;
  margin: 0 6px 3px 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  font-size: clamp(60px, 7vw, 91px);
  line-height: 0.91;
  letter-spacing: -5px;
  font-weight: 500;
  margin: 20px 0;
}
h1 em {
  color: var(--red);
  font-weight: 400;
}
.hero p,
.sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.parcel {
  width: 37%;
  margin-right: 4%;
  transform: rotate(-3deg);
}
.sectiontop {
  min-height: 82px;
}
#tools {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
main { padding-bottom: 30px; }
.collection:not([hidden]) + #linked {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 8px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
}
.list-row a {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.list-row strong {
  display: block;
  font:
    500 22px Georgia,
    serif;
}
.list-row a:hover strong {
  text-decoration: underline;
}
.list-row a > span:last-child {
  color: var(--red);
}
.title {
  gap: 12px;
}
h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.2px;
}
#count {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 3px 9px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.primary:hover {
  background: light-dark(#853120, #ffb397);
}
#items {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.card {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
  min-width: 0;
}
.photo {
  position: relative;
  background: var(--inset);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card .photo:has(svg) {
  aspect-ratio: 1.2;
}
.card .photo img {
  width: 100%;
  height: auto;
  min-width: 0;
}
.product-layout .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo svg {
  width: 40px;
  height: 40px;
  color: var(--muted);
}
.details {
  padding: 20px;
}
.details h3 {
  font-size: 20px;
  margin: 7px 0;
}
.details {
  overflow-wrap: anywhere;
}
.open-product {
  font: inherit;
  text-align: left;
  border: 0;
  padding: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.open-product::after { content: ""; position: absolute; inset: 0; }
.open-product:hover { background: transparent; }
.card:hover h3, .card:focus-within h3 { color: var(--red); }
.details small { color: var(--muted); }
.remove { position: relative; display: block; margin-top: 12px; }
#product { width: min(680px, 93vw); padding: 16px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.product-layout .photo { aspect-ratio: 1; border-radius: 6px; }
.product-copy { padding: 24px 12px 16px 0; min-width: 0; overflow-wrap: anywhere; }
.product-copy h3 { margin: 20px 0 8px; font: 600 14px system-ui; }
#sellers { display: grid; gap: 6px; font-size: 14px; }
#sellers a {
  display: flex; justify-content: space-between; gap: 8px;
  border-radius: 6px; padding: 10px 12px; background: var(--inset);
  color: var(--red);
  text-decoration: none;
}
#sellers a:hover { text-decoration: underline; }
#sellers a::after { content: "↗"; }
.dismiss { position: absolute; z-index: 1; top: 8px; right: 8px; background: var(--card); border-radius: 50%; width: 34px; height: 34px; padding: 0; font-size: 21px; }
dialog {
  width: min(430px, 93vw);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 9px;
  color: var(--ink);
  padding: 32px;
  box-shadow: 0 10px 60px #302c2425;
}
dialog::backdrop {
  background: #29282066;
}
dialog h2 {
  margin: 14px 0;
}
.sign-in {
  max-width: 405px;
  margin: 12vh auto;
  padding: 30px;
  border: 1px solid var(--rule);
  border-radius: 9px;
}
.sign-in h1 {
  font-size: 36px;
  letter-spacing: -1.6px;
}
#close {
  position: absolute;
  right: 9px;
  top: 6px;
  border: none;
  font-size: 23px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  margin: 14px 0;
}
input,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 4px;
  border: 1px solid var(--rule);
  padding: 10px;
  background: var(--card);
  width: 100%;
}
textarea {
  resize: vertical;
}
.sub,
#message,
#notice {
  font-size: 14px;
}
#message:not(:empty),
#notice:not(:empty) {
  margin: 12px 0;
  color: var(--red);
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    width: calc(100% - 36px);
  }
  .hero {
    padding: 34px 0 26px;
    position: relative;
  }
  .parcel {
    position: absolute;
    width: 36%;
    right: -2%;
    top: 25%;
    margin: 0;
  }
  h1 {
    font-size: clamp(42px, 13vw, 62px);
    letter-spacing: -3px;
  }
  .hero p {
    font-size: 13px;
    max-width: 64%;
  }
  .product-layout { grid-template-columns: 1fr; gap: 0; }
  .product-layout .photo { aspect-ratio: 1.8; }
  .product-copy { padding: 0 6px 8px; }
  .sectiontop {
    min-height: 69px;
  }
  dialog {
    padding: 26px;
  }
}
