:root {
  color-scheme: light;
  --cream: #f6efe2;
  --paper: #fcf8ee;
  --ink: #243747;
  --rust: #973e2e;
  --muted: #5a5651;
  --rule: #d6c8b5;
  --green: #315743;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.55 system-ui, sans-serif; border-top: 4px solid var(--ink); }
body.shop { background: radial-gradient(#9f7b5510 .65px, transparent .8px) 0 0/5px 5px, var(--cream); }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
[hidden] { display: none !important; }
.shell { width: min(1060px, 100%); margin: auto; padding-inline: clamp(16px, 5vw, 48px); }
.masthead { background: var(--cream); border-bottom: 1px solid var(--rule); }
.shop .masthead { background: transparent; border: none; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; }
.shop .masthead-inner { padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 51px; height: 51px; border-radius: 50%; mix-blend-mode: multiply; }
.shop .brand img { width: 65px; height: 65px; }
.brand strong { display: block; color: var(--rust); font: 700 23px/1.05 var(--serif); }
.brand small { text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { font-weight: 650; font-size: 13px; }
.shop nav a { text-decoration: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.14; }
h1 { font-size: clamp(31px, 5.7vw, 54px); letter-spacing: -.04em; overflow-wrap: anywhere; }
h2 { font-size: clamp(23px, 3.5vw, 30px); letter-spacing: -.02em; margin-bottom: 8px; }
h3 { font-size: 19px; margin-top: 16px; }
p { margin-block: 9px; }
small { color: var(--muted); }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 7px 13px; border: 1px solid #af9c83; border-radius: 3px;
  background: var(--paper); color: var(--ink); text-decoration: none; font: 650 13px/1.25 system-ui, sans-serif;
}
button:hover, .button:hover { border-color: var(--ink); color: var(--ink); }
button:disabled { opacity: .58; }
.primary { background: var(--rust); color: #fff9ef; border-color: var(--rust); }
.primary:hover { color: #fff9ef; background: #762f23; border-color: #762f23; }
button.quiet { border-color: transparent; background: transparent; text-decoration: underline; padding-inline: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero { display: grid; grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); align-items: center; gap: clamp(22px, 5vw, 60px); padding-block: clamp(26px, 6vw, 56px); border-top: 1px solid var(--rule); }
.hero h1 { font-size: clamp(43px, 6.4vw, 74px); line-height: .98; }
.hero h1 em { display: block; color: var(--rust); }
.hero p { max-width: 31ch; margin: 19px 0; color: var(--muted); }
.hero-frame { padding: 6px; border: 1px solid var(--ink); background: var(--paper); }
.shop-photo { aspect-ratio: 3/2; background: #e3d4c1 url("collection.jpg") no-repeat 0 0/200% 200%; }
.shop-photo.denim { background-position: right top; }
.shop-photo.porcelain { background-position: left bottom; }
.shop-photo.leather { background-position: right bottom; }
.collection { border-top: 3px double var(--rule); padding-block: 22px 28px; }
.collection h2 { margin-bottom: 13px; }
.finds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
figcaption { margin-top: 7px; font: 700 clamp(16px, 2.3vw, 23px)/1.2 var(--serif); }
.shop-footer { border-top: 1px solid var(--rule); padding-block: 14px 25px; display: flex; gap: 6px 18px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.manage main { padding-block: clamp(20px, 4.7vw, 42px) 44px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.section-heading > div { min-width: 0; }
.section-heading p { margin-bottom: 0; }
.notice, .error { padding: 9px 13px; border-left: 3px solid; overflow-wrap: anywhere; }
.notice { margin: 0 0 12px; color: var(--green); background: #e4ebdf; }
.error { background: #f4e2d8; color: #762f23; }
.error p { margin-top: 0; }
.error .actions { margin-top: 8px; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-block: 1px solid var(--rule); margin-bottom: 24px; }
.totals > div { padding: 10px clamp(6px, 2.4vw, 24px); min-width: 0; }
.totals > div:first-child { padding-left: 0; }
.totals > div + div { border-left: 1px solid var(--rule); }
.totals dt { color: var(--muted); font-size: 12px; font-weight: 650; }
.totals dd { font: 700 clamp(18px, 3.8vw, 36px)/1.14 var(--serif); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--rule); padding: 8px 8px 8px 0; }
th { color: var(--muted); font-size: 12px; }
th:last-child, td:last-child { text-align: right; padding-right: 0; }
.item-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 2px; overflow-wrap: anywhere; }
.item-link small { display: block; }
.thumb { width: clamp(40px, 8vw, 64px); height: auto; aspect-ratio: 4/3; object-fit: cover; background: var(--cream); }
.status { white-space: nowrap; display: inline-block; font-size: 12px; border-radius: 16px; padding: 3px 8px; color: #77501d; background: #f2e7cf; }
.status.sold { color: var(--green); background: #e4ebdf; }
.profit { color: var(--green); font-weight: 700; }
.loss { color: var(--rust); font-weight: 700; }
.breadcrumbs { margin-bottom: 11px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px clamp(18px, 4vw, 40px); align-items: start; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.panel, .receipt { background: var(--cream); border: 1px solid var(--rule); padding: clamp(13px, 2.4vw, 21px); min-width: 0; }
.receipt { border-top: 3px solid var(--rust); }
.receipt h2 { padding-bottom: 9px; border-bottom: 1px solid var(--rule); }
.receipt dl > div, .receipt-total { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding-block: 4px; }
.receipt dd, .receipt-total strong, .receipt-total output { font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.receipt-total { border-top: 3px double var(--rule); margin-top: 7px; padding-top: 9px; }
.receipt-total strong, .receipt-total output { font: 700 clamp(24px, 4vw, 33px)/1 var(--serif); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(115px,100%),1fr)); gap: 8px; margin-block: 8px; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: #eee3d4; }
.fields { display: grid; gap: 11px; }
label { display: grid; align-content: start; gap: 4px; font-size: 14px; font-weight: 650; }
input, textarea, select { width: 100%; min-width: 0; max-width: 100%; padding: 8px 9px; background: #fffaf2; border: 1px solid #ad9e8b; border-radius: 3px; color: var(--ink); font: 400 16px/1.3 system-ui, sans-serif; }
input[aria-invalid="true"] { border-color: var(--rust); }
textarea { resize: vertical; }
input[type=file] { padding-inline: 4px; font-size: 13px; }
.money-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 10px; }
summary { font-weight: 650; margin-bottom: 7px; }
.form-footer { grid-column: 1/-1; border-top: 1px solid var(--rule); display: flex; justify-content: flex-end; padding-top: 13px; }
.sign-in { max-width: 470px; margin: 14px auto; }
.sign-in p { margin-bottom: 16px; }
@media (max-width: 650px) {
  .hero, .two-column { grid-template-columns: minmax(0,1fr); }
  .hero h1 { font-size: clamp(39px, 11vw, 57px); }
  .shop .brand img { width: 48px; height: 48px; }
}
@media (max-width: 380px) {
  .shop .masthead-inner { flex-wrap: wrap; }
  .finds { grid-template-columns: repeat(2,minmax(0,1fr)); }
  td, th { padding-right: 5px; }
  .status { font-size: 11px; padding-inline: 5px; }
}
