@import url("/tokens.css");

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 28px; }

.label {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

header.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 980px;
}
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.logo span { color: var(--accent); }

nav.links { display: flex; gap: 28px; }
nav.links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
nav.links a:hover { color: var(--ink); }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 780px) {
  .nav-burger { display: flex; }
  nav.links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 20px;
  }
  nav.links a { padding: 10px 0; border-top: 1px solid var(--line); }
  nav.links a:first-child { border-top: none; }
  .nav-toggle:checked ~ nav.links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

article.post {
  padding: 64px 0 96px;
}
article.post .label { margin-bottom: 16px; }
article.post h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 640px;
}
article.post .dek {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
}
article.post .meta {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
article.post .body {
  margin-top: 40px;
  font-size: 17px;
  color: var(--ink);
}
article.post .body h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
article.post .body p { margin-bottom: 18px; color: var(--ink-soft); }
article.post .body p strong { color: var(--ink); }
article.post .body ul, article.post .body ol {
  margin: 0 0 18px 20px;
  color: var(--ink-soft);
}
article.post .body li { margin-bottom: 8px; }
article.post .callout {
  margin-top: 8px;
  padding: 20px 24px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  color: var(--ink-soft);
}
article.post .cta-block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
article.post .cta-block p { color: var(--ink-soft); margin-bottom: 16px; }
.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 3px;
  transition: background 0.15s ease;
}
.cta:hover { background: var(--accent-dim); }

.index-list { margin-top: 40px; }
.index-item {
  display: block;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.index-item:last-child { border-bottom: 1px solid var(--line); }
.index-item h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.index-item p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
}
.index-item:hover h2 { color: var(--accent); }

footer {
  padding: 32px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--ink);
  color: #9aa0a6;
  border-top: 1px solid #2a2e33;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px; max-width: 980px; margin: 0 auto; padding: 0 28px; }
.footer-inner .sep { color: #4a5158; }

@media (max-width: 600px) {
  article.post .meta { margin-top: 12px; }
}
