:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6b78;
  --paper: #fffdf8;
  --band: #f4f7f2;
  --line: #d8ded4;
  --green: #28745f;
  --teal: #0d6f7d;
  --gold: #d8941d;
  --red: #bf4b42;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.hero {
  background: linear-gradient(180deg, #fffdf8 0%, #eef5ef 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 2rem;
  max-width: 860px;
}

.eyebrow {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  margin: 0 0 0.85rem;
}

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

.lede {
  max-width: 64ch;
  color: #3c4955;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--ink);
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 4.5rem) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head p {
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.05);
}

.post-card a {
  color: var(--ink);
  text-decoration: none;
}

.post-card p {
  color: var(--muted);
  margin: 0.6rem 0 1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  color: #42515d;
  background: #fafbf7;
  font-size: 0.82rem;
  font-weight: 650;
}

.band {
  background: var(--band);
  border-block: 1px solid var(--line);
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
  min-height: 96px;
}

.site-footer {
  background: var(--ink);
  color: #dbe3e4;
  padding: 2rem 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: white;
}

.article-wrap {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.article-body h2 {
  margin-top: 2.1rem;
}

.article-body pre {
  overflow: auto;
  background: #111a20;
  color: #ecf6f4;
  padding: 1rem;
  border-radius: 8px;
}

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.article-body :not(pre) > code {
  background: #edf3ef;
  padding: 0.08rem 0.28rem;
  border-radius: 5px;
}

.article-body blockquote {
  border-left: 4px solid var(--gold);
  margin-left: 0;
  padding-left: 1rem;
  color: #4b5863;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 0.55rem;
  text-align: left;
}

.article-body th {
  background: var(--band);
}

@media (max-width: 820px) {
  .post-grid,
  .topic-list {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav {
    align-items: start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
