/* Sports Card Valuations — site styles.
   Colors match the logo: deep green #1B4D2E with white, and a warm off-white page. */
:root {
  --green: #1b4d2e;
  --green-dark: #133921;
  --green-tint: #eef3ef;
  --ink: #1c1c1a;
  --muted: #5d5d58;
  --paper: #fbfaf7;
  --rule: #dcd7cb;
  --white: #ffffff;
  --display: "Bodoni Moda", "Bodoni MT", Didot, Georgia, serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--text);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--green); color: var(--white); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1;
  color: var(--white); text-decoration: none; letter-spacing: 0.2px;
}
.wordmark:hover { color: var(--white); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a {
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: var(--white); padding: 56px 0 72px; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08; margin: 0 0 20px; max-width: 16ch;
}
.hero h1:last-child { margin-bottom: 0; }
.hero p { font-size: 19px; max-width: 60ch; margin: 0; color: rgba(255, 255, 255, 0.88); }

/* ---------- Page sections ---------- */
main { padding-bottom: 64px; }
.section { padding: 56px 0 0; }
.page-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1; margin: 48px 0 8px;
}
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 0 0 8px; }
h2 {
  font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2;
  margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
h3 { font-size: 17px; margin: 0 0 6px; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 18px; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}

/* Four content types */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cell { background: var(--white); padding: 22px 22px 24px; }
.cell .num { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 10px; }
.cell p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Subscribe box */
.subscribe {
  background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--green);
  padding: 26px; display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 820px) { .subscribe { grid-template-columns: 1fr 1.1fr; } }
.subscribe h2 { border: 0; padding: 0; margin: 0 0 6px; }
.subscribe p { margin: 0; color: var(--muted); }
.subscribe iframe { width: 100%; height: 150px; border: 1px solid var(--rule); background: var(--white); }
.subscribe .fallback { font-size: 15px; color: var(--muted); }

/* Research list */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
h2 + .posts { border-top: 0; }
.post { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.post .date { font-size: 13px; color: var(--muted); letter-spacing: 0.3px; margin-bottom: 4px; }
.post a.title { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.25; text-decoration: none; color: var(--ink); }
.post a.title:hover { color: var(--green); text-decoration: underline; }
.post p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.empty { padding: 22px; background: var(--green-tint); border-left: 4px solid var(--green); color: var(--ink); }
.more { margin-top: 18px; font-weight: 600; }

/* Notice and list styles */
.callout { padding: 18px 22px; background: var(--green-tint); border-left: 4px solid var(--green); margin: 0 0 22px; max-width: 68ch; }
.callout p:last-child { margin-bottom: 0; }
.clean { padding-left: 20px; margin: 0 0 18px; }
.clean li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--white); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.site-footer .brand { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--green); text-decoration: underline; }
.notice { max-width: 90ch; margin: 0; }

/* Disclaimer page (long legal text) */
.legal { max-width: 75ch; font-size: 16px; }
.legal h3 { font-size: 18px; margin: 30px 0 8px; }
.legal table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--green-tint); }
.table-scroll { overflow-x: auto; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .wordmark { font-size: 22px; }
  .hero { padding: 40px 0 52px; }
  .hero p { font-size: 17px; }
}
