:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #5f6863;
  --subtle: #eef2ef;
  --surface: #ffffff;
  --surface-alt: #f7f8f3;
  --line: #d8ded8;
  --accent: #116a67;
  --accent-dark: #0b4745;
  --amber: #c47724;
  --rose: #a64d58;
  --shadow: 0 18px 48px rgba(22, 32, 29, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface-alt);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--surface-alt);
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.6rem 0.8rem;
  color: var(--surface);
  background: var(--accent-dark);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 243, 0.94);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--surface);
  background: var(--accent-dark);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
}

.nav-links a {
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-dark);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0 1.4rem;
  margin-bottom: 1rem;
}

.page-heading {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 0.55rem;
  font-size: 2.6rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-heading h1 {
  max-width: none;
  font-size: 3.6rem;
}

h2 {
  margin-bottom: 0.25rem;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.68rem 0.9rem;
  color: var(--ink);
  background: var(--surface);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(22, 32, 29, 0.05);
}

.button.primary {
  border-color: var(--accent-dark);
  color: var(--surface);
  background: var(--accent-dark);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin: 0 0 2.4rem;
  background: var(--surface);
}

.stat {
  padding: 1.1rem;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-section {
  padding: 1.25rem 0 2rem;
}

.section-heading {
  margin-bottom: 1rem;
}

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

.item-card {
  min-height: 13rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(22, 32, 29, 0.04);
}

.item-card p {
  color: var(--muted);
  line-height: 1.55;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.item-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
  color: var(--accent-dark);
  background: var(--subtle);
  font-size: 0.78rem;
  font-weight: 750;
}

.report-card .small-text {
  color: var(--rose);
  font-size: 0.9rem;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  color: var(--muted);
  background: var(--surface);
}

.toolbar {
  margin: 1.5rem 0 1rem;
}

.search-field {
  display: grid;
  gap: 0.45rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.search-field input {
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 500;
}

.project-layout,
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(240px, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
}

.panel h2,
.panel h3 {
  margin-bottom: 0.7rem;
}

.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.6;
}

.panel ul {
  padding-left: 1.2rem;
}

.report-section {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 1.4rem;
}

.report-meta {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.report-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}

.report-meta strong {
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.3rem 1.2rem 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-nav,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .dashboard-head,
  .project-layout,
  .report-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    max-width: none;
    font-size: 2.25rem;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}
