/* Iowa Cards and Collectibles
   Colors and sizes are set once here, then used everywhere below. */
:root {
  --navy: #1C2B45;   /* headlines, logo, borders */
  --cream: #F6EFDF;  /* page background */
  --paper: #FBF7EC;  /* card and section surfaces */
  --brick: #A8392B;  /* buttons and small labels */
  --brass: #B88A2E;  /* thin rules and borders only, never text */
  --slate: #2E3445;  /* body text */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --gutter: 20px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 780px; }

.section {
  padding: 64px 0;
  border-top: 1px solid var(--brass);
}
.section-paper { background: var(--paper); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 2px solid var(--navy);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo-link { display: block; flex-shrink: 1; min-width: 0; }
.logo { height: 44px; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brick); color: var(--cream); border-color: var(--brick); }
.btn-primary:hover { background: #8F2F23; border-color: #8F2F23; color: var(--cream); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--cream); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero h1 { max-width: 18ch; }
.label {
  display: inline-block;
  color: var(--brick);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brass);
}
.lead { font-size: 1.15rem; max-width: 40em; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(28, 43, 69, 0.06);
}
.section-paper .card { background: var(--cream); }

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: 64px; }
.step::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brick);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
}
.step::after {
  content: "";
  position: absolute;
  top: 37px;
  left: 70px;
  right: 24px;
  height: 1px;
  background: var(--brass);
}

/* ---------- What it costs ---------- */
.intro { max-width: 46em; }
.tables {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--cream);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  padding-bottom: 10px;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--brass);
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th {
  color: var(--brick);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--navy);
}
tbody th { font-weight: 500; }
td { text-align: right; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
thead th:last-child { text-align: right; }
.note { max-width: 46em; }

/* ---------- Bulk + paid ---------- */
.pair { display: grid; gap: 20px; }
.pair h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--brick);
}

/* ---------- Recent sales ---------- */
.sales-grid {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sale { padding: 12px; display: flex; flex-direction: column; }
.sale-frame {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border: 1px solid var(--navy);
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 12px;
}
.sale-frame img { width: 100%; height: 100%; object-fit: cover; }
.sale-frame .placeholder {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  text-align: center;
  padding: 8px;
}
.sale-title {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--slate);
  margin: 0 0 8px;
}
.sale-price {
  margin-top: auto;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--navy); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 14px 0;
  font-weight: 600;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; margin: 0; max-width: 40em; }

/* ---------- Intake ---------- */
.form-frame {
  margin: 24px 0;
  background: var(--paper);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 16px;
}
.form-frame iframe { display: block; width: 100%; border: 0; min-height: 560px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 2px solid var(--navy);
  padding: 48px 0 40px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brass);
}
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-block; padding: 6px 0; font-weight: 500; }
.small { font-size: 0.875rem; }
.nowrap { white-space: nowrap; }

/* ---------- 404 page ---------- */
.notfound { padding: 80px 0 96px; }
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .btn-small { padding: 10px 20px; font-size: 1rem; }
  .tables { grid-template-columns: 1fr 1fr; align-items: start; }
  .sales-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .logo { height: 56px; }
  .hero { padding: 88px 0 104px; }
  .section { padding: 88px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pair { grid-template-columns: 1fr 1fr; }
  .card { padding: 32px; }
  .step { padding-top: 72px; }
  .step::before { left: 32px; top: 24px; }
  .step::after { left: 78px; right: 32px; top: 41px; }
  .sale { padding: 14px; }
}

/* Respect people who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
