/* ==========================================================================
   Lot & Gavel
   One stylesheet for every page. Colours, type and spacing live in :root.
   ========================================================================== */

:root {
  /* Paper and ink */
  --paper: #F5F2EC;
  --paper-2: #ECE7DD;
  --plate: #E7E1D4;
  --card: #FBF9F5;
  --ink: #171715;
  --body: #3A3833;
  --muted: #625E56;
  --rule: #D7D1C4;
  --field: #8C8577;

  /* Brand */
  --green: #1F3A2E;
  --green-dark: #152920;
  --oxblood: #7A2E2A;
  --error: #A12A1F;

  /* On dark backgrounds */
  --on-dark: #F5F2EC;
  --on-dark-body: #D5D8CF;
  --on-dark-muted: #AEB4A9;
  --on-dark-rule: rgba(245, 242, 236, .2);

  /* Ledger card */
  --ledger-paper: #FBF8F1;
  --ledger-ink: #1F3A2E;
  --ledger-muted: #5D6058;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.band-green :focus-visible, .site-footer :focus-visible, .announce :focus-visible { outline-color: var(--on-dark); }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--paper); }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section.pt-0 { padding-top: 0; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em; text-wrap: balance;
}
h1 { font-size: clamp(46px, 6vw, 88px); line-height: 0.98; }
h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; }
h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }

.label {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.lede { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.6; max-width: 33em; color: var(--body); }
.intro { max-width: 34em; color: var(--body); }
.lede a, .def-row dd a { color: var(--green); }
.muted { color: var(--muted); }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 1px; line-height: 1;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-sans); font-size: 21px; font-weight: 800; font-stretch: 125%; letter-spacing: .02em;
}
.wordmark:hover { color: var(--ink); }
.wordmark .amp {
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-stretch: 100%;
  font-size: 1.5em; line-height: .5; letter-spacing: 0; color: var(--oxblood); margin: 0 1px;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--green); color: var(--on-dark); }
.btn-primary:hover { background: var(--green-dark); color: var(--on-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--green); }
.btn-light:hover { background: #FFFFFF; color: var(--green-dark); }
.btn-outline-light { border-color: rgba(245, 242, 236, .55); color: var(--on-dark); background: transparent; }
.btn-outline-light:hover { border-color: var(--on-dark); color: var(--on-dark); background: rgba(245, 242, 236, .08); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--green); color: var(--on-dark); font-size: 13.5px; }
.announce-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 8px; padding-bottom: 8px; }
.announce a { color: var(--on-dark); margin-left: 4px; text-decoration: underline; }
.announce a:hover { color: #FFFFFF; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 236, .95);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { height: 72px; display: flex; align-items: center; gap: 36px; }
.header-inner .wordmark { margin-right: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.menu-icon { position: relative; display: block; width: 18px; height: 10px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.menu-icon::before { top: 1px; }
.menu-icon::after { top: 7.5px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .header-inner { height: 64px; gap: 16px; }
  .wordmark { font-size: 19px; }
  .js .menu-toggle { display: inline-flex; }
  .nav { display: none; }
  .js .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 4px var(--gutter) 24px; box-shadow: 0 24px 40px rgba(23, 23, 21, .08);
  }
  .nav a { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--green); }
  .nav .nav-cta {
    display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 20px;
    background: var(--green); color: var(--on-dark); border: 0;
    font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  }
  .nav .nav-cta:hover { color: var(--on-dark); background: var(--green-dark); }
}
@media (max-width: 520px) { .header-cta { display: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px); align-items: center;
  padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(64px, 7vw, 112px);
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { max-width: 10.5em; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); } }

.hero-visual { position: relative; }
.hero-plate { aspect-ratio: 1 / 1; }
.hero-plate img { padding: 5% 4% 5% 6%; object-position: 82% 42%; }
.hero-caption {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 6px 16px; flex-wrap: wrap;
  padding: 14px 0 0 calc(min(280px, 50%) + 8px); font-size: 14px; color: var(--muted); text-align: right;
}
.hero-caption strong { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--ink); }
.hero-visual .ledger-card {
  position: absolute; left: -28px; bottom: 22px; width: min(280px, 50%);
  transform: rotate(-2.5deg);
  box-shadow: 0 22px 44px rgba(23, 23, 21, .16), 0 2px 6px rgba(23, 23, 21, .08);
}
@media (max-width: 960px) { .hero-visual { max-width: 560px; margin-left: 28px; } }
@media (max-width: 520px) {
  .hero-visual { margin-left: 12px; }
  .hero-visual .ledger-card { left: -12px; bottom: 12px; width: 60%; font-size: 11px; padding: 12px 14px 14px; gap: 4px; }
  .hero-visual .ledger-title { font-size: 18px; }
  .hero-caption { padding-left: calc(60% + 4px); font-size: 13px; }
  .hero-caption strong { font-size: 18px; }
}

/* ---------- Forms ---------- */
.signup { display: flex; flex-direction: column; gap: 12px; max-width: 540px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.tab {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 0 12px; font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.field-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field-label .optional { font-weight: 400; color: var(--muted); }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row input { flex: 1 1 240px; width: auto; }

.signup input[type="email"], .signup select,
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--field); border-radius: 0; background: var(--card); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 128px; padding: 14px 16px; resize: vertical; }
.signup select, .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23171715' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.signup input:focus, .signup select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--error) !important; }

.seller-only { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.seller-only[hidden] { display: none; }
.hint { font-size: 14.5px; color: var(--muted); }
.fine-print { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.fine-print a { color: inherit; }
.form-status { font-size: 15px; font-weight: 500; }
.form-status.is-error { color: var(--error); }
.form-status:empty { display: none; }

.signup-done {
  display: flex; gap: 14px; align-items: flex-start; max-width: 540px;
  border: 1px solid var(--rule); background: var(--card); padding: 22px 24px;
}
.signup-done svg { flex: none; margin-top: 4px; color: var(--green); }
.signup-done strong { display: block; font-family: var(--font-display); font-size: 25px; font-weight: 500; line-height: 1.15; color: var(--ink); margin-bottom: 4px; }
.signup-done span { font-size: 15px; color: var(--muted); }

/* Spam trap */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Seller application */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--field); background: var(--card); font-size: 14.5px; color: var(--ink); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.form-foot .fine-print { flex: 1 1 260px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Plates (illustrations and, later, photography) ---------- */
.plate {
  position: relative; overflow: hidden; background: var(--plate); aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
}
.plate img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.plate.plate-photo img { object-fit: cover; padding: 0; }
.plate-tag {
  position: absolute; top: 14px; left: 16px; z-index: 1;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.plate-tag-right { left: auto; right: 16px; }
.plate-stamp {
  display: inline-flex; align-items: center; gap: 6px; color: var(--green);
}
.plate-stamp svg { width: 12px; height: 12px; }

/* ---------- Ledger card ---------- */
.ledger-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--ledger-paper); color: var(--ledger-ink); border: 1px solid var(--ledger-ink);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.45;
  padding: 16px 18px 18px;
}
.ledger-card::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(31, 58, 46, .3); pointer-events: none; }
.ledger-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--ledger-ink);
  font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.ledger-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.1; margin-bottom: 4px; }
.ledger-rows { display: flex; flex-direction: column; gap: 5px; }
.ledger-row { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 5px; border-bottom: 1px dotted rgba(31, 58, 46, .35); }
.ledger-row > :first-child { color: var(--ledger-muted); }
.ledger-row > :last-child { text-align: right; }
.ledger-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger-auth, .ledger-auth > :first-child { color: var(--oxblood); }

.ledger-card-lg { width: 100%; max-width: 460px; padding: 26px 28px 24px; font-size: 13.5px; gap: 8px; }
.ledger-card-lg::before { inset: 4px; }
.ledger-card-lg .ledger-head { font-size: 11.5px; padding-bottom: 10px; }
.ledger-card-lg .ledger-title { font-size: 32px; margin-bottom: 8px; }
.ledger-card-lg .ledger-rows { gap: 8px; }
.ledger-card-lg .ledger-row { padding-bottom: 8px; }
.ledger-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--ledger-ink); }
.ledger-foot p { font-size: 11px; letter-spacing: .04em; color: var(--ledger-muted); }
.seal { width: 84px; height: 84px; flex: none; transform: rotate(-8deg); }

.ledger-stage {
  display: flex; justify-content: center; align-items: center;
  background: var(--plate); padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 64px);
}
.ledger-stage .ledger-card { box-shadow: 0 24px 48px rgba(23, 23, 21, .14), 0 2px 6px rgba(23, 23, 21, .06); }

/* ---------- Categories ---------- */
.categories { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; }
.category-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px; background: var(--rule); margin: 0 -24px; list-style: none;
}
.category { background: var(--card); padding: 28px 24px 30px; }
.category p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.category .category-name { font-family: var(--font-display); font-size: 25px; font-weight: 500; line-height: 1.1; color: var(--ink); margin-bottom: 8px; }
@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -16px; }
  .category { padding: 22px 16px 24px; }
  .category .category-name { font-size: 22px; }
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .label { margin-bottom: 18px; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px clamp(48px, 7vw, 112px); }
.process-intro { align-self: start; position: sticky; top: 128px; display: flex; flex-direction: column; gap: 22px; }
.steps { list-style: none; border-top: 1px solid var(--ink); }
.step {
  display: grid; grid-template-columns: 56px minmax(0, 190px) minmax(0, 1fr);
  gap: 8px 28px; padding: 30px 0 32px; border-bottom: 1px solid var(--rule);
}
.step-no { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 8px; }
.step h3 { font-size: 30px; }
.step p { color: var(--body); }
@media (max-width: 960px) {
  .process { grid-template-columns: minmax(0, 1fr); }
  .process-intro { position: static; }
}
@media (max-width: 700px) {
  .step { grid-template-columns: 44px minmax(0, 1fr); }
  .step p { grid-column: 2; }
}

/* ---------- Bands and splits ---------- */
.band-card { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-plate { background: var(--paper-2); border-top: 1px solid var(--rule); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 112px); align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

.record-list {
  list-style: none; width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px;
  border-top: 1px solid var(--rule);
}
.record-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink); }
@media (max-width: 520px) { .record-list { grid-template-columns: minmax(0, 1fr); } }

/* Green band */
.band-green { background: var(--green); color: var(--on-dark-body); }
.band-green h2, .band-green h3 { color: var(--on-dark); }
.band-green .label { color: var(--on-dark-muted); }
.band-green a:not(.btn) { color: var(--on-dark); }
.band-green a:not(.btn):hover { color: #FFFFFF; }

.sell-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(48px, 7vw, 112px); align-items: start; }
.sell-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (max-width: 960px) { .sell-grid { grid-template-columns: minmax(0, 1fr); } }

/* Rate card */
.rate-card { border-top: 1px solid var(--ink); }
.rate-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.rate-row dt { font-size: 15px; color: var(--body); }
.rate-row dd { font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.1; color: var(--ink); text-align: right; }
.rate-row dd small { display: block; margin-top: 4px; font-family: var(--font-sans); font-size: 13px; line-height: 1.4; color: var(--muted); }
.rate-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.band-green .rate-card { border-top-color: var(--on-dark); }
.band-green .rate-row { border-bottom-color: var(--on-dark-rule); }
.band-green .rate-row dt { color: var(--on-dark-body); }
.band-green .rate-row dd { color: var(--on-dark); }
.band-green .rate-row dd small, .band-green .rate-note { color: var(--on-dark-muted); }
@media (max-width: 480px) {
  .rate-row { grid-template-columns: minmax(0, 1fr); }
  .rate-row dd { text-align: left; }
}

/* ---------- Catalogue ---------- */
.catalogue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.lot { display: flex; flex-direction: column; gap: 18px; }
.lot-body { display: flex; flex-direction: column; gap: 3px; }
.lot-top {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.lot-maker { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.lot-name { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.12; color: var(--ink); }
.lot-detail { font-size: 14px; color: var(--muted); }
.lot-price { margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.lot-source { font-size: 13px; color: var(--muted); }
.catalogue-note { margin-top: 40px; font-size: 13.5px; color: var(--muted); }
.catalogue-note a, .intro a { color: var(--green); }
@media (max-width: 1100px) { .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .catalogue { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Waitlist band ---------- */
.waitlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(48px, 7vw, 112px); align-items: end; }
.waitlist-copy { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 960px) { .waitlist { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--rule); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px clamp(48px, 7vw, 112px); align-items: end; }
.page-hero h1 { margin-top: 18px; font-size: clamp(46px, 5.6vw, 80px); }
.page-hero-aside { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (max-width: 900px) { .page-hero-inner { grid-template-columns: minmax(0, 1fr); } }

/* Two-column content row: heading left, content right */
.row { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: 32px clamp(48px, 7vw, 112px); }
.row + .row { margin-top: var(--section-y); }
.row-head { display: flex; flex-direction: column; gap: 18px; align-self: start; }
.row-head h2 { font-size: clamp(34px, 3.6vw, 50px); }
@media (min-width: 961px) { .row-head.is-sticky { position: sticky; top: 128px; } }
@media (max-width: 960px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* Check cards (authentication page) */
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.check-card { background: var(--card); padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 16px; }
.check-card h3 { font-size: 28px; }
.check-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-card li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55; }
.check-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--green); }
@media (max-width: 760px) { .check-grid { grid-template-columns: minmax(0, 1fr); } }

/* Grade list */
.grades { list-style: none; border-top: 1px solid var(--ink); }
.grade { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.grade .grade-name { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.grade-name small { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.grade p { font-size: 16px; }
.split-copy .def-list { width: 100%; }
.split-copy .def-row { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
@media (max-width: 600px) { .grade { grid-template-columns: minmax(0, 1fr); } }

/* Definition table (ledger fields, contacts) */
.def-list { border-top: 1px solid var(--ink); }
.def-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.def-row dt { font-weight: 600; color: var(--ink); }
.def-row dd { color: var(--body); }
@media (max-width: 600px) { .def-row { grid-template-columns: minmax(0, 1fr); } }

/* Guarantee panel */
.guarantee {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center;
  background: var(--card); border: 1px solid var(--green); padding: clamp(28px, 4vw, 48px);
}
.guarantee .seal { width: 112px; height: 112px; }
.guarantee h2 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 12px; }
.guarantee p + p { margin-top: 10px; }
@media (max-width: 640px) { .guarantee { grid-template-columns: minmax(0, 1fr); } }

/* Principles (about page) */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--ink); }
.principle { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.principle h3 { font-size: 27px; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Brand lists (sell page) */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--ink); }
.brand-group { padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.brand-group h3 { font-size: 25px; margin-bottom: 8px; }
.brand-group p { font-size: 15.5px; }
@media (max-width: 760px) { .brand-grid { grid-template-columns: minmax(0, 1fr); } }

/* Callout */
.rate-card + .note-box { margin-top: 28px; }
.note-box { background: var(--card); border-left: 2px solid var(--green); padding: 18px 22px; font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px clamp(48px, 7vw, 112px); }
.faq-nav { position: sticky; top: 128px; align-self: start; }
.faq-nav ul { list-style: none; border-left: 1px solid var(--rule); }
.faq-nav a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; font-size: 15px; color: var(--muted); text-decoration: none; }
.faq-nav a:hover { color: var(--ink); border-left-color: var(--ink); }
.faq-group + .faq-group { margin-top: 72px; }
.faq-group > h2 { font-size: clamp(32px, 3.4vw, 44px); padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--green); }
.faq-answer { padding-bottom: 26px; max-width: 44em; display: flex; flex-direction: column; gap: 12px; }
.faq-answer a { color: var(--green); }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-nav { position: static; }
  .faq-nav ul { display: flex; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .faq-nav a { border: 1px solid var(--rule); padding: 8px 14px; margin: 0; }
}

/* ---------- Prose (legal and long-form) ---------- */
.prose { color: var(--body); font-size: 17px; line-height: 1.7; }
.prose p, .prose ul, .prose ol, .prose .table-wrap, .prose .callout { margin-top: 1em; }
.prose h2 + p, .prose h2 + ul, .prose h3 + p, .prose h3 + ul, .prose h3 + ol { margin-top: .6em; }
.prose h2 { font-size: clamp(28px, 2.8vw, 34px); line-height: 1.1; }
.prose h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--ink); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--green); text-decoration: underline; }
.prose a:hover { color: var(--green-dark); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose .callout { background: var(--card); border-left: 2px solid var(--green); padding: 16px 20px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.prose td:first-child { color: var(--ink); font-weight: 500; }
.prose tbody th { font-size: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: normal; color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal-wrap {
  display: grid; grid-template-columns: 240px minmax(0, 760px); column-gap: clamp(48px, 6vw, 96px);
  padding-top: clamp(48px, 6vw, 88px); padding-bottom: var(--section-y);
}
.legal-head { grid-column: 1 / -1; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid var(--rule); }
.legal-head h1 { margin-top: 16px; font-size: clamp(44px, 5.4vw, 76px); }
.doc-meta { margin-top: 20px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.doc-meta a { color: var(--ink); }
.doc-meta .sep { margin: 0 12px; }
.legal-summary { grid-column: 2; grid-row: 2; background: var(--card); border: 1px solid var(--rule); padding: 26px 30px 28px; margin-bottom: 56px; }
.legal-summary h2 {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
.legal-summary ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.legal-summary li::marker { color: var(--green); }
.legal-summary a { color: var(--green); }
.toc { grid-column: 1; grid-row: 2 / span 2; align-self: start; position: sticky; top: 120px; }
.toc-title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.toc ol { list-style: none; border-left: 1px solid var(--rule); font-size: 14px; line-height: 1.4; }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--ink); }
.legal-body { grid-column: 2; grid-row: 3; }
.legal-body section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--rule); }
.legal-body section > h2:first-child { margin-top: 0; }
@media (max-width: 960px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr); }
  .legal-summary, .toc, .legal-body { grid-column: 1; grid-row: auto; }
  .toc { position: static; margin-bottom: 48px; }
  .legal-summary { margin-bottom: 40px; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; align-items: flex-start; }
.not-found .ledger-card { max-width: 380px; width: 100%; margin-bottom: 16px; transform: rotate(-1.5deg); box-shadow: 0 18px 40px rgba(23, 23, 21, .12); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B7B3A9; font-size: 15px; }
.site-footer a { color: #B7B3A9; text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer .wordmark { color: var(--on-dark); font-size: 20px; }
.site-footer .wordmark:hover { color: var(--on-dark); text-decoration: none; }
.site-footer .wordmark .amp { color: #C9877B; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px;
  padding-top: clamp(56px, 6vw, 80px); padding-bottom: 56px;
}
.footer-brand p { margin-top: 20px; max-width: 24em; }
.footer-heading {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 48px;
  padding-top: 24px; padding-bottom: 36px; border-top: 1px solid rgba(245, 242, 236, .14);
  font-size: 13px; color: #9E9A90;
}
.footer-disclaimer { max-width: 58em; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .link-arrow::after, .menu-icon::before, .menu-icon::after, .faq-item summary::after { transition: none; }
}

/* ---------- Print (also used to produce the PDFs in /docs) ---------- */
@media print {
  @page {
    size: Letter;
    margin: 20mm 18mm 22mm;
    @bottom-left { content: "Lot & Gavel, Inc.  |  lotandgavel.com"; font-family: "IBM Plex Mono", monospace; font-size: 7.5pt; color: #6B675E; }
    @bottom-right { content: "Page " counter(page) " of " counter(pages); font-family: "IBM Plex Mono", monospace; font-size: 7.5pt; color: #6B675E; }
  }
  html { scroll-padding-top: 0; }
  body { background: #FFFFFF; color: #222; font-size: 10pt; line-height: 1.5; }
  .announce, .nav, .header-actions, .site-footer, .toc, .skip-link, .doc-meta a, .doc-meta .sep { display: none !important; }
  .site-header { position: static; background: none; border-bottom: 1px solid #171715; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header-inner { height: auto; padding: 0 0 10pt; }
  .container { max-width: none; padding: 0; }
  .legal-wrap { display: block; padding: 0; }
  .legal-head { padding: 22pt 0 14pt; margin-bottom: 18pt; }
  .legal-head .label { font-size: 8pt; }
  .legal-head h1 { font-size: 30pt; margin-top: 6pt; }
  .doc-meta { margin-top: 8pt; font-size: 8.5pt; }
  .legal-summary { background: none; border: 1px solid #BBB; padding: 12pt 14pt; margin-bottom: 20pt; break-inside: avoid; }
  .legal-summary ul { font-size: 10pt; gap: 3pt; }
  .prose { font-size: 10pt; line-height: 1.5; }
  .prose h2, .legal-body h2 { font-size: 16pt; break-after: avoid; }
  .prose h3 { font-size: 10.5pt; break-after: avoid; }
  .legal-body section + section { margin-top: 14pt; padding-top: 12pt; }
  .prose a { color: #222; text-decoration: none; }
  .prose table { font-size: 8.5pt; }
  .prose tr { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .prose .callout { background: none; border-left: 2px solid #1F3A2E; }
}
