:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1f16;
  --muted: #5b6a58;
  --accent: #2e6b3e;
  --border: #dfe5db;
  --card-bg: #f6f8f4;
  --max-width: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14170f;
    --fg: #eef2ea;
    --muted: #a9b6a2;
    --accent: #7fd18f;
    --border: #2a2f24;
    --card-bg: #1b2016;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

header {
  border-bottom: 1px solid var(--border);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
}

.site-title span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  padding: 0;
  margin: 0.75rem 0 0;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

h1 {
  font-size: 2rem;
  margin-top: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--fg);
  display: block;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--accent);
}

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

.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.placeholder {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: inherit;
}

footer p {
  margin: 0.35rem 0;
}

/* Links that leave the site open in a new tab; a small arrow marks them.
   The arrow is decorative ("/ ''" gives it empty alt text); each link also
   carries visually hidden text saying it opens in a new tab. */
a[target="_blank"]::after {
  content: "\2009\2197";
  content: "\2009\2197" / "";
  font-size: 0.85em;
  text-decoration: none;
  display: inline-block;
}
