:root {
  --sleeve: #e9eef2;
  --ink: #1b2733;
  --ink-soft: #46586a;
  --binder: #22507a;
  --pocket: #ffffff;
  --holo: #2e8a7f;
  --rule: #c9d3dc;
  --head: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sleeve);
  color: var(--ink);
  font: 1rem/1.6 var(--body);
}

a { color: var(--binder); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--holo); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.preview {
  background: var(--ink);
  color: var(--pocket);
  font-size: 0.875rem;
  padding: 8px 0;
}
.preview p { margin: 0; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); margin: 0 0 16px; max-width: 14ch; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 12px; }
h3 { font-size: 1.125rem; margin: 0 0 4px; }

p { max-width: 64ch; }

/* hero: the copy, and an empty binder page beside it */
.hero {
  display: grid;
  gap: 40px;
  padding: 48px 0 56px;
  align-items: center;
}
.hero .lede { font-size: 1.125rem; color: var(--ink-soft); }

.binder-page {
  justify-self: center;
  width: min(100%, 330px);
  aspect-ratio: 63 / 88;
  background: var(--binder);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
}
.binder-page span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}
.binder-page span.filed {
  background: var(--pocket);
  border-color: var(--pocket);
  box-shadow: inset 0 0 0 3px var(--holo);
}

/* the three steps, which are a sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 52px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--binder);
  color: var(--binder);
  font: 600 1.125rem/32px var(--head);
  text-align: center;
}
.steps p { margin: 0; color: var(--ink-soft); }

section { padding: 40px 0; border-top: 1px solid var(--rule); }

/* the eBay demonstration panel */
.panel {
  background: var(--pocket);
  border: 2px solid var(--binder);
  border-radius: 8px;
  padding: 20px 16px;
}
.tier {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 2px dashed var(--holo);
  border-radius: 4px;
  font-weight: 600;
}

.listings { list-style: none; margin: 0; padding: 0; }
.listing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.listing-title { font-weight: 600; }
.listing-price { font-family: var(--head); font-size: 1.25rem; font-weight: 600; }
.listing-shipping, .listing-condition, .listing-seller { color: var(--ink-soft); font-size: 0.9375rem; }
.panel .note { margin: 12px 0 0; font-size: 0.875rem; color: var(--ink-soft); }

footer { padding: 32px 0 48px; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
footer ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer p { margin: 0; color: var(--ink-soft); }

/* privacy page */
.doc { padding: 40px 0; }
.doc h2 { margin-top: 32px; }

@media (min-width: 768px) {
  .hero { grid-template-columns: 1.3fr 1fr; padding: 72px 0 80px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 28px; }
  .listing {
    grid-template-columns: 2.4fr 1fr 1.2fr;
    grid-template-areas:
      "title price shipping"
      "condition seller seller";
    align-items: baseline;
  }
  .listing-title { grid-area: title; }
  .listing-price { grid-area: price; }
  .listing-shipping { grid-area: shipping; }
  .listing-condition { grid-area: condition; }
  .listing-seller { grid-area: seller; }
}
