:root {
  --bg: #fafaf5;
  --surface: #ffffff;
  --text: #102622;
  --muted: #64716c;
  --border: #e2eae3;
  --brand: #188b57;
  --brand-deep: #0e6343;
  --warn-bg: #fff6e8;
  --warn-border: #e6c98a;
  --warn-text: #6b4e12;
  --max: 42rem;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 1rem;
}

a {
  color: var(--brand-deep);
}

a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner,
.main,
.site-footer .footer-inner {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

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

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

.main {
  padding: 1.5rem 0 3rem;
}

.draft-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.draft-banner strong {
  display: block;
  margin-bottom: 0.25rem;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}

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

p,
li {
  color: var(--text);
}

.lead,
.muted,
.meta {
  color: var(--muted);
}

.meta {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.todo {
  display: inline-block;
  background: #fde8e6;
  color: #8a241c;
  border: 1px solid #efc2bc;
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  font-size: 0.85em;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.75rem 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

th {
  background: #e7f4ea;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  td {
    border: none;
    padding: 0.25rem 0.75rem;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  text-decoration: none;
}
