:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #141820;
  --muted: #4a5568;
  --border: #e2e4df;
  --accent: #1a2744;
  --accent-hover: #243352;
  --max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  /* Match compact sticky header pattern (e.g. girigoapp / autoresearch-style rails) */
  padding: 0.32rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.brand img {
  height: 20px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  padding-bottom: 4rem;
}

.hero {
  padding: 2.75rem 1.25rem 2.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.tag-row {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero .dek {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}

.meta-line {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

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

.article h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.article h2:first-of-type {
  margin-top: 0;
}

.article p {
  margin: 0 0 1rem;
  color: var(--text);
}

.article .lead {
  font-size: 1.05rem;
}

.update-box {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

.update-box strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

hr.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.list-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.list-block ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.list-block li {
  margin-bottom: 0.35rem;
}

.two-col-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

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

.site-footer p {
  margin: 0 0 0.5rem;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 3.25rem;
    padding-bottom: 2.75rem;
  }
}
