/* Texas Land Tracker — shared styles, no build step required */
:root {
  --paper: #f3eee4;
  --paper-2: #fffdf8;
  --ink: #1c1a16;
  --muted: #5a554b;
  --pine: #1a332c;
  --pine-2: #2a5348;
  --moss: #3d6b5c;
  --clay: #8b4730;
  --rule: #d5ccba;
  --rule-strong: #b7ad98;
  --link: #1b4a40;
  --chip: #e4eee8;
  --chip-soon: #eee8dc;
  --focus: #1a332c;
  --shadow: 0 1px 2px rgba(28, 26, 22, 0.06), 0 8px 24px rgba(28, 26, 22, 0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--clay); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--pine);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip-link:focus { top: 0.75rem; }

.masthead {
  background: var(--pine);
  color: #f4efe6;
  border-bottom: 4px solid var(--clay);
}

.masthead-inner,
.wrap,
.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.masthead-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.05rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
  line-height: 1.2;
}

.wordmark span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9d9d2;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.nav a {
  color: #f4efe6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #e2b39f;
}

.hero {
  padding: 2.4rem 0 1.4rem;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 650;
  margin: 0 0 0.55rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  margin: 0 0 0.7rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 1.1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.meta-row time,
.stamp {
  font-variant-numeric: tabular-nums;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.84rem;
  text-decoration: none;
  color: var(--ink);
}

.toc a:hover {
  border-color: var(--pine-2);
  color: var(--pine);
}

section {
  margin: 0 0 2.4rem;
}

h2 {
  font-size: 1.7rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule-strong);
}

h3 {
  font-size: 1.2rem;
  margin: 1.35rem 0 0.45rem;
}

p { margin: 0 0 0.9rem; }

.note,
.callout {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--pine-2);
  padding: 0.9rem 1rem;
  margin: 0 0 1.15rem;
  box-shadow: var(--shadow);
}

.note p:last-child,
.callout p:last-child { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  margin: 0 0 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
  font-size: 0.86rem;
  line-height: 1.45;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--rule);
}

th {
  background: var(--pine);
  color: #f4efe6;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:nth-child(even) td { background: #f8f5ee; }

td.date { font-variant-numeric: tabular-nums; }
td.acres, td.status, td.source { overflow-wrap: anywhere; }
th:nth-child(1), td:nth-child(1) { width: 14%; }
th:nth-child(2), td:nth-child(2) { width: 16%; }
th:nth-child(3), td:nth-child(3) { width: 16%; }
th:nth-child(4), td:nth-child(4) { width: 10%; }
th:nth-child(5), td:nth-child(5) { width: 10%; }
th:nth-child(6), td:nth-child(6) { width: 18%; }
th:nth-child(7), td:nth-child(7) { width: 16%; }

caption {
  text-align: left;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0 0 0.55rem;
  caption-side: bottom;
}

.projects {
  display: grid;
  gap: 0.9rem;
}

.project {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem 0.85rem;
  box-shadow: var(--shadow);
}

.project h3 { margin-top: 0; }

.project .where {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.2rem;
}

ul.plain,
ol.plain {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

ul.plain li,
ol.plain li { margin: 0 0 0.4rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.stat {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
}

.stat .fig {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
}

.stat .lbl {
  font-size: 0.82rem;
  color: var(--muted);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem 1.25rem;
}

.links-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.links-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links-grid li { margin: 0 0 0.4rem; }

.disclaimer {
  background: #efe6d4;
  border: 1px solid #d8c9a8;
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
}

.disclaimer p:last-child { margin-bottom: 0; }

.site-footer {
  background: var(--pine);
  color: #d5e0db;
  padding: 1.5rem 0 2rem;
  font-size: 0.88rem;
  margin-top: 1rem;
}

.site-footer a { color: #f4efe6; }

.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem;
  margin: 0 0 2rem;
}

.county-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1rem 1.05rem 1.05rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 8.5rem;
}

.county-card:hover {
  border-color: var(--pine-2);
  color: inherit;
}

.county-card strong {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  background: var(--chip);
  color: var(--pine);
}

.badge.soon {
  background: var(--chip-soon);
  color: var(--muted);
}

.home-about {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .masthead-inner { padding: 0.9rem 0; }
  .hero { padding-top: 1.6rem; }
  .home-about { grid-template-columns: 1fr; }
  .table-wrap { margin-inline: -0.25rem; }
}

.period-label {
  font-size: 0.88rem;
  color: var(--muted);
  margin: -0.35rem 0 0.85rem;
}

.see-all {
  margin: 0.7rem 0 0;
}

.month-buys {
  margin: 0 0 2.1rem;
}

.month-buys .table-wrap { margin-bottom: 0.4rem; }

@page { size: letter; margin: 0.6in; }

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .masthead, .site-footer { background: #fff; color: #000; border: 0; }
  .masthead { border-bottom: 2px solid #000; }
  .wordmark, .nav a, .site-footer a { color: #000; }
  .toc, .skip-link { display: none; }
  .hero { padding-top: 0.8rem; }
  .table-wrap, .project, .stat, .note, .disclaimer, .county-card { box-shadow: none; }
  table { min-width: 0 !important; font-size: 8.2pt; }
  th, td { padding: 0.35rem 0.4rem; }
  td.date { white-space: normal; }
  a { color: inherit; }
}
