:root {
  --lf-paper: #f6f4ee;
  --lf-card: #ffffff;
  --lf-ink: #1d261f;
  --lf-muted: #536156;
  --lf-moss: #284b36;
  --lf-lime: #78984c;
  --lf-line: #dad5c6;
  --lf-tint: #ebf0e4;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lf-paper);
  color: var(--lf-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.65;
}

a {
  color: var(--lf-moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lf-lime);
}

.lf-skip {
  position: absolute;
  left: -9999px;
}

.lf-skip:focus {
  position: static;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--lf-moss);
  color: #fff;
}

.lf-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lf-top {
  border-bottom: 1px solid var(--lf-line);
  background: rgba(246, 244, 238, 0.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 20;
}

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

.lf-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--lf-ink);
}

.lf-brand small {
  display: block;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lf-muted);
}

.lf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.lf-nav a {
  text-decoration: none;
  color: var(--lf-muted);
  padding-bottom: 2px;
}

.lf-nav a[aria-current="page"] {
  color: var(--lf-moss);
  border-bottom: 2px solid var(--lf-moss);
  font-weight: 600;
}

.lf-hero {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.lf-kicker {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lf-moss);
  margin: 0 0 0.75rem;
}

.lf-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1.2rem;
  font-weight: 600;
}

.lf-lead {
  font-size: 1.1rem;
  color: var(--lf-muted);
  margin: 0;
  max-width: 58ch;
}

.lf-ledger {
  background: var(--lf-card);
  border: 1px solid var(--lf-line);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lf-ledger h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lf-muted);
  margin: 0 0 1rem;
}

.lf-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-top: 1px solid var(--lf-line);
  font-size: 0.9rem;
}

.lf-stat-row strong {
  color: var(--lf-moss);
  font-variant-numeric: tabular-nums;
}

.lf-section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--lf-line);
}

.lf-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lf-section-head h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
}

.lf-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lf-chip {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  border: 1px solid var(--lf-line);
  background: var(--lf-card);
  color: var(--lf-muted);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.lf-chip[aria-pressed="true"] {
  background: var(--lf-moss);
  border-color: var(--lf-moss);
  color: #fff;
}

.lf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.35rem;
}

.lf-card {
  background: var(--lf-card);
  border: 1px solid var(--lf-line);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lf-card[hidden] {
  display: none;
}

.lf-tag {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lf-moss);
  background: var(--lf-tint);
  align-self: flex-start;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
}

.lf-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
}

.lf-card p {
  margin: 0;
  color: var(--lf-muted);
  font-size: 0.96rem;
}

.lf-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--lf-card);
  border: 1px solid var(--lf-line);
  border-radius: 8px;
  overflow: hidden;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.lf-table th, .lf-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--lf-line);
}

.lf-table th {
  background: var(--lf-tint);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lf-moss);
}

.lf-prose {
  max-width: 68ch;
  padding: 2.5rem 0;
}

.lf-prose h1 {
  font-size: 2.2rem;
  line-height: 1.18;
  margin-top: 0;
}

.lf-footer {
  border-top: 1px solid var(--lf-line);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  color: var(--lf-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 780px) {
  .lf-hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
}
