/* Clearout marketing site.
   Concept: the moving sale itself. A quilted moving-blanket blue band, a taped-up
   inventory sheet, and hand-written fluorescent price stickers are the one loud thing.
   Everything else is a plain white wall, heavy wide grotesk like printing on a moving box,
   and quiet running text. */
:root {
  --wall: #eef0f3;
  --paper: #ffffff;
  --ink: #151a33;
  --muted: #4f5674;
  --line: rgba(21, 26, 51, 0.14);
  --blanket: #263a73;
  --blanket-ink: #f3f5fb;
  --blanket-muted: #c3cbe6;
  --tape: rgba(232, 221, 176, 0.92);
  --go: #13774f;
  --go-ink: #ffffff;
  --st-orange: #ff7a1a;
  --st-yellow: #ffdf3d;
  --st-pink: #ff5c9d;
  --st-green: #3fd384;
  --stamp: #c8232c;
  --bubble-them: #e4e7ee;
  --bubble-me: #2f6bea;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;

  /* Type scale (perfect fourth from 17px) */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.4rem;
  --t-lg: 1.875rem;
  --t-xl: clamp(2.2rem, 4.5vw, 3.3rem);
  --t-hero: clamp(2.6rem, 7vw, 5.4rem);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --measure: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #121729; --paper: #1b2138; --ink: #e9ecf5; --muted: #a8afc9;
    --line: rgba(233, 236, 245, 0.14); --blanket: #1c2b5c; --blanket-ink: #f3f5fb;
    --blanket-muted: #b6bfdf; --tape: rgba(214, 203, 160, 0.85); --go: #34b67c; --go-ink: #08140f;
    --stamp: #ff5a5f; --bubble-them: #2a3150; --bubble-me: #3f7bf2; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #121729; --paper: #1b2138; --ink: #e9ecf5; --muted: #a8afc9;
  --line: rgba(233, 236, 245, 0.14); --blanket: #1c2b5c; --blanket-ink: #f3f5fb;
  --blanket-muted: #b6bfdf; --tape: rgba(214, 203, 160, 0.85); --go: #34b67c; --go-ink: #08140f;
  --stamp: #ff5a5f; --bubble-them: #2a3150; --bubble-me: #3f7bf2; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--st-orange); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Headings: wide and heavy, like printing on a carton */
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--t-hero); line-height: 0.98; font-weight: 850; font-variation-settings: "wdth" 125; }
h2 { font-size: var(--t-xl); line-height: 1.04; font-weight: 800; font-variation-settings: "wdth" 120; }
h3 { font-size: var(--t-md); line-height: 1.2; font-weight: 700; font-variation-settings: "wdth" 110; }
p { margin: 0; max-width: var(--measure); }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); }

/* ---------- Header ---------- */
.site-head { background: var(--blanket); color: var(--blanket-ink); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; font-variation-settings: "wdth" 115; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--go); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--blanket-muted); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blanket-ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.site-nav .btn { color: var(--go-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--go); color: var(--go-ink); border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-plain { background: transparent; color: inherit; border: 2px solid currentColor; }

/* ---------- Hero: the blanket and the sheet ---------- */
.hero {
  background: var(--blanket);
  color: var(--blanket-ink);
  /* quilted moving pad stitching */
  background-image:
    repeating-linear-gradient(45deg, transparent 0 46px, rgba(255,255,255,0.06) 46px 48px),
    repeating-linear-gradient(-45deg, transparent 0 46px, rgba(255,255,255,0.06) 46px 48px);
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center; padding-block: 56px 88px;
}
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero-copy .lede { color: var(--blanket-muted); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-cta small { color: var(--blanket-muted); font-size: var(--t-sm); }

/* The inventory sheet */
.sheet {
  position: relative;
  background: #fffef9;
  color: #1d2035;
  padding: 30px 26px 22px;
  border-radius: 2px;
  box-shadow: 0 22px 40px -18px rgba(5, 10, 30, 0.6);
  transform: rotate(1.2deg);
  min-width: 0;
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; top: -14px; width: 108px; height: 30px; background: var(--tape);
}
.sheet::before { left: 22px; transform: rotate(-4deg); }
.sheet::after { right: 22px; transform: rotate(3deg); }
.sheet-title { font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.15; }
.sheet-sub { font-size: var(--t-sm); color: #5a5f78; margin-top: 2px; }
.sheet ul { list-style: none; margin: 18px 0 0; padding: 0; }
.sheet li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid #e3e3dc; min-height: 64px; position: relative;
}
.item-name { font-weight: 600; min-width: 0; }
.item-meta { display: block; font-weight: 400; font-size: var(--t-sm); color: #6a6f86; }
.tag { position: relative; width: 100px; height: 58px; }
.sticker {
  position: absolute; inset: 0; margin: auto 0; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--f-hand); font-size: 1.12rem; color: #1d2035;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25); font-variant-numeric: tabular-nums;
}
.sticker.old { right: auto; transform: rotate(-10deg); }
.sticker.old::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 3px; background: #1d2035; transform: rotate(-18deg); border-radius: 2px; }
.sticker:only-child { left: auto; transform: rotate(-4deg); }
.sticker.new { left: auto; transform: translateY(3px) rotate(8deg); }
.s-orange { background: var(--st-orange); }
.s-yellow { background: var(--st-yellow); }
.s-pink { background: var(--st-pink); }
.s-green { background: var(--st-green); }
.sold-stamp {
  position: absolute; right: 2px; top: 50%; z-index: 2;
  transform: translateY(-50%) rotate(-9deg);
  border: 3px solid var(--stamp); color: var(--stamp); border-radius: 6px;
  padding: 0 10px; font-weight: 900; font-size: 1.05rem; letter-spacing: 0.12em;
  font-variation-settings: "wdth" 125; background: rgba(255,254,249,0.75);
}
.sheet-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 2px solid #1d2035; margin-top: 4px; padding-top: 12px; font-size: var(--t-sm); font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Load sequence: price drops slap on, then the sold stamps land. */
@media (prefers-reduced-motion: no-preference) {
  .js .sticker.new { animation: slap 0.38s cubic-bezier(.2,1.6,.4,1) both; animation-delay: var(--d, 0.8s); }
  .js .sold-stamp { animation: stamp 0.32s cubic-bezier(.3,1.5,.5,1) both; animation-delay: var(--d, 1.8s); }
  @keyframes slap { from { opacity: 0; transform: translate(22px, -26px) rotate(40deg) scale(1.5); } }
  @keyframes stamp { from { opacity: 0; transform: translateY(-50%) rotate(-9deg) scale(2.2); } }
}

/* ---------- Sections ---------- */
.band { padding-block: 88px; }
.band + .band { border-top: 1px solid var(--line); }
.band-paper { background: var(--paper); }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.stack { display: grid; gap: 18px; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding: 0; list-style: none; }
.platforms li { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: var(--t-sm); }

/* Listing card: what the photo turns into */
.listing { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 420px; justify-self: center; width: 100%; }
.band-paper .listing { background: var(--wall); }
.listing-photo { aspect-ratio: 4 / 3; max-width: 100%; background: linear-gradient(160deg, #8a6a4c, #4e3a2a); position: relative; }
.listing-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.listing-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.listing-price { font-size: 1.5rem; font-weight: 800; font-variation-settings: "wdth" 115; }
.listing-title { font-weight: 600; }
.listing-desc { color: var(--muted); font-size: 0.98rem; }
.listing-where { font-size: var(--t-sm); color: var(--muted); }

/* Text thread */
.phone {
  justify-self: center; width: 100%; max-width: 380px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 18px 14px 22px;
}
.phone-top { text-align: center; font-size: var(--t-sm); color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.phone-top strong { display: block; color: var(--ink); font-size: 1rem; }
.thread { display: grid; gap: 8px; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 0.95rem; line-height: 1.4; }
.msg.them { background: var(--bubble-them); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.me { background: var(--bubble-me); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.msg q { quotes: "\201C" "\201D"; font-style: italic; }
.stamp-time { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }

/* Day timeline: times are the sequence */
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.day li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.day li:last-child { border-bottom: 1px solid var(--line); }
.day time { font-weight: 800; font-variation-settings: "wdth" 120; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.day p { color: var(--muted); }
.day strong { color: var(--ink); display: block; font-weight: 650; }

/* Won't-do list: written on masking tape */
.never { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; }
.never li { display: grid; gap: 6px; min-width: 0; }
.never .strip {
  justify-self: start; background: var(--tape); color: #2a2516; font-family: var(--f-hand);
  font-size: 1.15rem; padding: 3px 14px 2px; transform: rotate(-1deg); line-height: 1.35;
}
.never li:nth-child(even) .strip { transform: rotate(0.8deg); }
.never p { color: var(--muted); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-hand); font-size: 1.3rem; background: var(--st-yellow); color: #1d2035;
}
.steps li:nth-child(2)::before { background: var(--st-pink); }
.steps li:nth-child(3)::before { background: var(--st-green); }
.steps p { color: var(--muted); }

/* Closing call */
.closer { background: var(--blanket); color: var(--blanket-ink); }
.closer .wrap { padding-block: 84px; display: grid; gap: 22px; justify-items: start; }
.closer p { color: var(--blanket-muted); }

/* Invite form */
.invite { display: grid; gap: 16px; max-width: 520px; width: 100%; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.closer .field input, .closer .field select { color: #151a33; background: #fff; border-color: transparent; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form-note { font-size: var(--t-sm); }
.form-status { font-weight: 600; }

/* Long-form pages */
.page-hero { background: var(--blanket); color: var(--blanket-ink); }
.page-hero .wrap { padding-block: 56px 64px; display: grid; gap: 18px; }
.page-hero .lede { color: var(--blanket-muted); }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
.prose { display: grid; gap: 16px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: var(--measure); }
.prose strong { color: var(--ink); }
.chapter { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.chapter > * { min-width: 0; }

.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.facts div { padding: 18px 20px 18px 0; display: grid; gap: 4px; align-content: start; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { padding-block: 40px; font-size: var(--t-sm); color: var(--muted); }
.site-foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .split, .chapter { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero .wrap { padding-block: 36px 64px; }
  .steps, .never, .facts { grid-template-columns: minmax(0, 1fr); }
  .band { padding-block: 64px; }
  .site-nav { gap: 16px; width: 100%; margin-left: 0; }
  .site-nav .btn { display: none; }
}
@media (max-width: 480px) {
  .sheet { padding: 26px 16px 18px; transform: rotate(0.6deg); }
  .tag { width: 88px; }
  .sold-stamp { font-size: 0.95rem; }
  .day li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
