:root {
  --bg: #0b0b0d;
  --surface: #161618;
  --border: #2a2a2e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ef4444;
  --accent-soft: rgba(239, 68, 68, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
header.site .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  /* Fallback styling for text logo if image fails */
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
header.site img.logo {
  /* Subtle border keeps the icon crisp on the dark background */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
header.site .name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 700;
}
h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  font-weight: 600;
  color: var(--text);
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

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

ul { padding-left: 22px; }
li { margin: 6px 0; }

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

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}
.grid a.card {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.grid a.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}
.grid .card .title {
  font-weight: 600;
  margin-bottom: 4px;
}
.grid .card .desc {
  color: var(--muted);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: var(--muted); }

.contact {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 500;
  margin-top: 8px;
}
.contact:hover { text-decoration: none; background: rgba(239, 68, 68, 0.18); }
