/* Minimal baseline styling. Replace freely — nothing in the build depends on these
   class names except that templates emit them. */

:root {
  --fg: #16181d;
  --fg-muted: #5b6270;
  --bg: #ffffff;
  --accent: #1f5fbf;
  --border: #e2e5ea;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e8ec;
    --fg-muted: #a0a7b4;
    --bg: #14161a;
    --accent: #7fa9ee;
    --border: #2a2e36;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.site-brand {
  display: inline-flex;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--fg);
}

/* width/height are on the <img> so the browser reserves the right space before the
   file loads; height here drives the rendered size and width follows the aspect. */
.site-brand img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 100%;
}

@media (max-width: 30rem) {
  .site-brand img {
    height: 2rem;
  }
}

.site-header nav ul,
.site-footer nav ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

.hero {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin-bottom: 0.25rem;
}

.tagline {
  margin-top: 0;
  color: var(--fg-muted);
  font-size: 1.125rem;
}

.summary {
  color: var(--fg-muted);
}

.entry-list {
  padding: 0;
  list-style: none;
}

.entry-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.entry-list p {
  margin: 0.25rem 0 0;
  color: var(--fg-muted);
}

.entry-fields dt {
  font-weight: 600;
  text-transform: capitalize;
}

.entry-fields dd {
  margin: 0 0 0.75rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  text-align: left;
}

code {
  padding: 0.1em 0.3em;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border-radius: 3px;
  font-size: 0.9em;
}

.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.env-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
