/* The Downsizing Hub — public site. Plain CSS, no build step. */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f1ede4;
  --text: #1f1d1a;
  --muted: #5f5a52;
  --border: #e2ddd2;
  --accent: #2f5d50;      /* deep green */
  --accent-text: #ffffff;
  --accent-soft: #e3eee9;
  --urgent: #a3361f;
  --live: #2f7d4f;
  --preview: #8a6d1d;
  --closed: #6b6760;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 14px rgb(0 0 0 / .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513; --surface: #201f1c; --surface-alt: #1b1a18; --text: #f1eee8;
    --muted: #b3ada3; --border: #34322e; --accent: #7fbfa9; --accent-text: #10201b;
    --accent-soft: #233631; --urgent: #f08a70; --live: #7fd19e; --preview: #e3c66d;
    --closed: #a7a29a; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161513; --surface: #201f1c; --surface-alt: #1b1a18; --text: #f1eee8;
  --muted: #b3ada3; --border: #34322e; --accent: #7fbfa9; --accent-text: #10201b;
  --accent-soft: #233631; --urgent: #f08a70; --live: #7fd19e; --preview: #e3c66d;
  --closed: #a7a29a; --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.6 var(--font);
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 750; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.6rem; margin-top: 1.5em; }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 0 48px; }
.section.alt { background: var(--surface-alt); }
.muted { color: var(--muted); }
.urgent { color: var(--urgent); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.brand svg { color: var(--accent); }
nav a { margin-left: 20px; color: var(--text); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: .95rem; }
.site-footer p { margin: .25em 0; }

/* Hero */
.hero { background: var(--accent-soft); padding: 56px 0; }
.hero .lead { font-size: 1.25rem; max-width: 36em; color: var(--muted); }

/* Buttons + forms */
.button {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  border: 0; border-radius: var(--radius); padding: 12px 22px; font: 600 1rem var(--font);
  text-decoration: none; cursor: pointer; min-height: 48px;
}
.button.secondary { background: var(--surface); color: var(--accent); border: 2px solid var(--accent); }
.button.wide { width: 100%; }
.button:disabled { opacity: .6; cursor: not-allowed; }
input[type=search], select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); min-height: 48px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.filters input[type=search] { flex: 1 1 260px; }

/* Cards + grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.auctions { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-alt); }
.card-media.square { aspect-ratio: 1; }
/* Show the whole item in cards (tall phone photos would otherwise be cropped to a slice). */
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px 16px 16px; }
.card-body p { margin: .2em 0; }
.placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .95rem; }
.badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; background: var(--surface); color: var(--text);
}
.badge-live { background: var(--live); color: var(--bg); }
.badge-preview { background: var(--preview); color: var(--bg); }
.badge-closed { background: var(--closed); color: var(--bg); }
.price { font-weight: 600; }
.empty { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; font-size: 1.15rem; }
.steps span { color: var(--muted); }

/* Sale page */
.sale-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 24px 0 32px; }
.crumbs { font-size: .95rem; color: var(--muted); margin: 0 0 12px; }
.notice { background: #fff4cf; color: #5a4300; padding: 10px 14px; border-radius: var(--radius); }
.facts, .specs { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 16px 0; }
.facts dt, .specs dt { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd, .specs dd { margin: 0; font-weight: 600; }
.prose { max-width: 42em; }
.pickup { background: var(--accent-soft); border-radius: var(--radius); padding: 4px 20px 8px; max-width: 42em; }
.pickup h2 { font-size: 1.2rem; margin-top: .8em; }

/* Item page */
.item-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
/* Whole photo, any shape (tall phone shots included), scaled to fit; never cropped. */
.gallery-main { background: var(--surface-alt); border-radius: var(--radius); overflow: hidden; height: min(72vh, 680px); display: flex; align-items: center; justify-content: center; }
.gallery-main img, .gallery-main video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery-main.placeholder { height: auto; aspect-ratio: 4 / 3; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--surface-alt); cursor: pointer; }
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-alt); }
.play { display: grid; place-items: center; height: 100%; font-size: 1.4rem; color: var(--text); }
.auction-label { color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.bid-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0 24px; box-shadow: var(--shadow); }
.bid-box p { margin: .2em 0; }
.big-price { font-size: 2rem; font-weight: 700; }
.auction-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 24px; font-weight: 600; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .item-layout { grid-template-columns: 1fr; }
  nav a { margin: 0 16px 0 0; }
  .hero { padding: 36px 0; }
}

/* Questionnaire */
.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: .9rem; }
.inquiry-form { margin-top: 24px; }
.form-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 8px; margin-bottom: 20px; }
.form-step h2 { display: flex; align-items: center; gap: 10px; margin-top: 0; font-size: 1.35rem; }
.step-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font: 700 1rem var(--font); }
.field { margin-bottom: 18px; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=number], .field select, .field textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); min-height: 48px;
}
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--bg); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
.req { color: var(--urgent); }
.error { color: var(--urgent); margin: 4px 0 0; font-size: .95rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--urgent); }
.form-error { background: #fde8e3; color: #6b1d0c; border-radius: var(--radius); padding: 10px 16px; margin-bottom: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }

/* Bidding */
.win { color: var(--live); font-weight: 700; }
.lose { color: var(--urgent); font-weight: 700; }
.status-line { min-height: 1.4em; margin: .4em 0; }
.bid-form label { display: block; font-weight: 600; margin-top: 10px; }
.bid-input { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.bid-input span { font-size: 1.4rem; font-weight: 700; }
.bid-input input { flex: 1; font: 700 1.4rem var(--font); padding: 8px 12px; border: 2px solid var(--border); border-radius: var(--radius); min-height: 52px; background: var(--bg); color: var(--text); }
.bid-message { min-height: 1.4em; margin: .6em 0 0; }
.history { margin-top: 14px; }
.history summary { cursor: pointer; font-weight: 600; }
.history ol { padding-left: 1.2em; margin: .5em 0; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background-color: var(--accent-soft); } 100% { background-color: transparent; } }
.bid-table { display: grid; gap: 8px; }
.bid-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.right { text-align: right; }
.inline { display: inline; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .bid-row { grid-template-columns: 1fr auto; } .bid-row > :last-child { grid-column: 1 / -1; text-align: left; } }


/* ===================================================================
   v2: modern look (header, hero, doors, services, band, footer)
   =================================================================== */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { min-height: 68px; }
.brand { font-family: var(--font); font-size: 1.15rem; letter-spacing: -0.01em; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.main-nav a { margin: 0; font-size: .98rem; }
.nav-cta { background: var(--accent); color: var(--accent-text) !important; padding: 8px 16px; border-radius: 999px; font-weight: 650; }
.nav-cta:hover { filter: brightness(1.08); }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }

.hero { position: relative; isolation: isolate; color: #fff; padding: clamp(72px, 12vw, 140px) 0 clamp(120px, 14vw, 170px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center 40% / cover no-repeat; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(18 24 22 / .72) 0%, rgb(18 24 22 / .55) 45%, rgb(18 24 22 / .82) 100%); }
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; margin-bottom: 16px; }
.hero .eyebrow { color: #cfe7de; }
.hero-lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: rgb(255 255 255 / .9); max-width: 40em; margin: 0; }

.doors-wrap { margin-top: clamp(-110px, -10vw, -80px); position: relative; z-index: 2; padding-bottom: 24px; }
.doors { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.door { display: flex; flex-direction: column; gap: 8px; background: var(--surface); color: var(--text); text-decoration: none;
  border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px; box-shadow: 0 10px 30px rgb(0 0 0 / .10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.door:hover, .door:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 40px rgb(0 0 0 / .14); border-color: var(--accent); }
.door h2 { margin: 6px 0 0; font-size: 1.45rem; }
.door p { color: var(--muted); margin: 0; flex: 1; }
.door-cta { margin-top: 10px; font-weight: 700; color: var(--accent); }
.door-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; }
.door-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0; }
.service-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 28px; }
.service { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 22px 18px; }
.service h3 { font-size: 1.12rem; margin: 0 0 6px; }
.service p { color: var(--muted); margin: 0; font-size: 1rem; }

.band { background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #000) 100%); color: var(--accent-text); padding: 44px 0; }
.band.rounded { border-radius: 20px; padding: 32px; margin-top: 32px; }
.band-inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.band h2 { color: inherit; margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.band p { margin: 0; max-width: 40em; opacity: .92; }
.button.light { background: #fff; color: #1f2b27; }
.center { text-align: center; }

.page-hero { position: relative; isolation: isolate; color: #fff; padding: clamp(56px, 9vw, 96px) 0; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(18 24 22 / .85), rgb(18 24 22 / .55)); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); max-width: 18em; }
.page-hero .eyebrow { color: #cfe7de; }

.services-page { max-width: 860px; }
.svc-block { padding: 26px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.svc-block h2 { font-size: 1.5rem; margin-bottom: 8px; }
.svc-block p { margin: 0 0 8px; color: var(--text); }
.ticks { margin: 8px 0 0; padding-left: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin: 4px 0; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips span { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }

.site-footer { background: #1d2422; color: #d9dfdc; border-top: 0; padding: 48px 0 24px; margin-top: 48px; }
.site-footer a { color: #d9dfdc; text-decoration: none; display: block; margin: 6px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #a3aca8; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-brand { font-weight: 800; font-size: 1.15rem; color: #fff; margin: 0 0 6px; }
.footer-h { font-weight: 700; color: #fff; margin: 0 0 8px; }
.footer-base { border-top: 1px solid #2e3734; margin-top: 28px; padding-top: 18px; font-size: .9rem; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 4px 14px; font-size: .95rem; }
  .doors-wrap { margin-top: -70px; }
}

.thumb { position: relative; }
.play.overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.3rem;
  text-shadow: 0 1px 4px rgb(0 0 0 / .7); background: rgb(0 0 0 / .18); }
.updated-note { background: #fff4cf; color: #5a4300; border-radius: 8px; padding: 6px 10px; font-size: .95rem; display: inline-block; }
.mfa-steps li { margin: 10px 0; }
.qr { background: #fff; padding: 12px; border-radius: 12px; width: 232px; margin: 12px 0; }
.qr svg { width: 100%; height: auto; display: block; }
.secret { font-size: 1.05rem; letter-spacing: .08em; background: var(--surface-alt); padding: 4px 8px; border-radius: 6px; }

/* Lots inside an auction */
.section-title { margin: 8px 0 14px; }
.lot-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; font-weight: 600; }

/* Lot card photo collage: 1 item = one whole photo; 2-4 items = a tiled peek at what's inside. */
.collage { display: grid; gap: 2px; overflow: hidden; }
.collage img { position: static; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.collage-1 img { position: absolute; inset: 0; object-fit: contain; }
.collage-2 { grid-template-columns: 1fr 1fr; }
.collage-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage-3 img:first-child { grid-row: span 2; }
.collage-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* Save this item */
.save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -8px 0 20px; }
.save-row form { margin: 0; }
.save-button { display: inline-block; background: var(--surface); color: var(--accent); border: 2px solid var(--accent);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.save-button.saved { background: var(--accent); color: var(--bg); }
