:root {
  color-scheme: dark;
  --bg: #161611;
  --paper: #eeead8;
  --muted: #aaa597;
  --rule: #454236;
  --accent: #e8ad60;
  --mono: "Courier New", monospace;
  font: 16px/1.5 system-ui, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--rule); }
.bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font: 700 16px var(--mono); white-space: nowrap; letter-spacing: .04em; }
.brand span { color: var(--accent); font-size: 24px; vertical-align: middle; margin-right: 6px; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--accent); }
.edition, .ledger, figcaption, .stock, .line span, .footer { font-family: var(--mono); }
.edition { color: var(--accent); border: 1px solid var(--rule); padding: 5px 9px; white-space: nowrap; font-size: 12px; }
.ledger { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; letter-spacing: .1em; margin: 29px 0 11px; }
.hero { display: grid; grid-template-columns: 1.24fr 1fr; border: 1px solid var(--rule); }
.specimen { margin: 0; display: flex; flex-direction: column; min-width: 0; background: #222019; border-right: 1px solid var(--rule); }
.photo { flex: 1; min-height: 420px; background: #211d17 url("assets/orb.webp") center / cover no-repeat; }
figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
figcaption span:first-child { color: var(--accent); }
.purchase { padding: clamp(24px, 4vw, 46px); background: #1d1c16; min-width: 0; }
.stock { display: flex; align-items: center; gap: 9px; color: #b7c58c; font-size: 12px; letter-spacing: .06em; }
.stock span { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.stock b { margin-left: auto; color: var(--muted); font-weight: normal; }
h1, h2 { font-family: Georgia, serif; font-weight: normal; }
h1 { margin: 16px 0 8px; font-size: clamp(44px, 6vw, 84px); line-height: .98; letter-spacing: -.065em; white-space: nowrap; }
h1 span { color: var(--accent); }
.intro { color: var(--muted); margin: 14px 0 24px; font-size: 14px; }
.line, .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.line { margin-bottom: 8px; font-size: 14px; }
.line span { color: var(--accent); }
.quantity { display: grid; grid-template-columns: 50px 1fr 50px; border: 1px solid var(--rule); }
.quantity button, .presets button, .close { background: transparent; border: 0; }
.quantity button { font-size: 22px; background: #26241b; }
.quantity button:hover:not(:disabled), .presets button:hover { color: var(--accent); }
.quantity button:disabled { opacity: .4; cursor: default; }
.quantity input { appearance: textfield; min-width: 0; text-align: center; background: var(--bg); padding: 9px; border: 0; border-inline: 1px solid var(--rule); font-family: var(--mono); }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 8px; }
.presets button { border: 1px solid var(--rule); padding: 5px 2px; font-size: 12px; color: var(--muted); }
.presets button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #32271b; }
.total { border-top: 1px solid var(--rule); margin-top: 22px; padding-block: 10px; }
.total span { color: var(--muted); font-size: 14px; }
output { font-family: var(--mono); font-size: 30px; font-weight: bold; }
.primary { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 15px; background: var(--accent); color: #21170d; border: 1px solid var(--accent); font-weight: 750; text-align: left; }
.primary:hover { background: #f5c17e; }
.note { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.delivery, .faq { border-top: 1px solid var(--rule); padding-block: 20px 26px; margin-top: 32px; }
h2 { font-size: 34px; margin: 0 0 16px; line-height: 1.12; }
.delivery ol { list-style: decimal-leading-zero; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; }
.delivery li { margin-left: 30px; padding-right: 22px; }
.delivery li::marker { color: var(--accent); font: 700 13px var(--mono); }
.delivery p, .faq p, dialog p { color: var(--muted); font-size: 14px; margin: 5px 0 0; }
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
details { border-bottom: 1px solid var(--rule); padding: 10px 0; }
summary { cursor: pointer; }
summary::marker { color: var(--accent); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--rule); padding-block: 18px; color: var(--muted); font-size: 12px; }
dialog { width: min(440px, calc(100% - 32px)); padding: 28px; background: #211f17; border: 1px solid var(--rule); color: var(--paper); }
dialog::backdrop { background: #080805c9; }
.close { position: absolute; top: 5px; right: 7px; width: 40px; height: 40px; font-size: 24px; }
dialog label { display: block; margin-top: 18px; }
dialog input { width: 100%; padding: 10px; background: var(--bg); border: 1px solid var(--rule); }
dialog .primary { margin-top: 16px; }
#receipt { overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 38px); }
  .hero { grid-template-columns: 1fr 1fr; }
  .photo { min-height: 0; }
  figcaption span:last-child, .wide { display: none; }
}
@media (max-width: 620px) {
  .bar { flex-wrap: wrap; gap: 6px 12px; padding-block: 10px; }
  nav { order: 2; width: 100%; justify-content: space-between; gap: 8px; }
  .ledger { font-size: 10px; letter-spacing: 0; margin-top: 18px; }
  .hero, .faq, .delivery ol { grid-template-columns: 1fr; }
  .specimen { border-right: 0; border-bottom: 1px solid var(--rule); }
  .photo { aspect-ratio: 1.5; }
  figcaption span:last-child { display: inline; }
  figcaption { padding: 8px 10px; font-size: 9px; }
  .delivery ol { gap: 14px; }
  .faq { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
