/* Yard Checked — review draft, Nov 2026 */
:root {
  --bg: #f3eee4;
  --bg-deep: #e8e0d2;
  --ink: #1c1915;
  --muted: #5c564c;
  --faint: #8a8276;
  --paper: #fffdf8;
  --line: #d4cbbd;
  --corten: #9c4221;
  --corten-dark: #7a3016;
  --steel: #2f4c5c;
  --steel-soft: #3d6478;
  --ok: #2d5a3d;
  --warn: #8a5a12;
  --shadow: 0 1px 2px rgba(28, 25, 21, 0.06), 0 8px 24px rgba(28, 25, 21, 0.06);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --max: 72rem;
  --text: 40rem;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--steel); text-underline-offset: 0.15em; }
a:hover { color: var(--corten); }
:focus-visible { outline: 3px solid var(--corten); outline-offset: 2px; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.prose { width: min(var(--text), 100%); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--corten); }
.logo:hover { color: var(--ink); }

nav { display: flex; flex-wrap: wrap; gap: 0.15rem 1rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

.disclose-bar {
  background: var(--steel);
  color: #f4efe6;
  font-size: 0.9rem;
  padding: 0.45rem 0;
}
.disclose-bar a { color: #fff; }
.disclose-bar p { margin: 0; }

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(156, 66, 33, 0.08), transparent 60%),
    var(--bg);
}
.kicker {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--corten);
  margin: 0 0 0.6rem;
}
h1, h2, h3, h4 { font-family: var(--serif); letter-spacing: -0.025em; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; margin: 0 0 0.8rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.4rem 0 0.8rem; }
h3 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0 0 1.4rem; }
.meta { color: var(--faint); font-size: 0.92rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--corten-dark); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Cards / grid */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link { font-weight: 700; text-decoration: none; }
.num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--corten);
  margin: 0 0 0.3rem;
}

/* Content pages */
main { padding: 2rem 0 4rem; }
.page-head { margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

article p { margin: 0 0 1rem; }
article ul, article ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
article li { margin: 0.3rem 0; }
article li + li { margin-top: 0.35rem; }

.callout {
  background: var(--paper);
  border-left: 4px solid var(--corten);
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
  border-radius: 0 10px 10px 0;
}
.callout.warn { border-left-color: var(--warn); background: #fbf6ea; }
.callout.ok { border-left-color: var(--ok); background: #f1f6f2; }
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.7rem 0.85rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--bg-deep); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
caption { text-align: left; font-size: 0.88rem; color: var(--muted); padding: 0.6rem 0.85rem; caption-side: bottom; }

/* Dealer listings */
.listing {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
.listing h3 { margin: 0 0 0.35rem; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-deep);
  color: var(--steel);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin: 0 0.25rem 0.4rem 0;
}
.badge.yard { background: #e4eee7; color: var(--ok); }
.badge.delivery { background: #eee6d8; color: var(--warn); }
.dl { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.25rem 0.8rem; margin: 0.6rem 0 0; }
.dl dt { color: var(--faint); font-size: 0.88rem; }
.dl dd { margin: 0; }
.checked { font-size: 0.88rem; color: var(--muted); margin: 0.8rem 0 0; }
.sources { font-size: 0.9rem; color: var(--muted); }
.sources h2 { font-size: 1.2rem; }

/* Calculator */
.calc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  margin: 1.2rem 0 1.6rem;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem 1rem;
}
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.25rem; }
input[type="number"], select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.hint { font-size: 0.85rem; color: var(--faint); font-weight: 400; display: block; margin-top: 0.15rem; }
.results { margin-top: 1.2rem; }
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.result-row strong { font-family: var(--serif); font-size: 1.25rem; }
.result-row.best { background: #f1f6f2; margin: 0 -1.3rem; padding: 0.7rem 1.3rem; }
.aff-slot {
  display: inline-block;
  margin: 0.2rem 0.3rem 0.2rem 0;
  padding: 0.45rem 0.8rem;
  border: 1.5px dashed var(--corten);
  border-radius: 999px;
  color: var(--corten-dark);
  background: #faf4ef;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  pointer-events: none;
}
.aff-note { font-size: 0.88rem; color: var(--muted); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: #ebe4d8;
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}
footer a { color: var(--ink); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0.25rem 0; }
.draft-tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .dl dt { margin-top: 0.35rem; }
  nav { width: 100%; }
}
