:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #e7e7e2;
  --accent: #0f766e;
  --accent-soft: #ecfdf5;
  --max-width: 760px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(252, 252, 251, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.site-title {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
  text-decoration: none;
}

main {
  padding: 3rem 0 4rem;
}

.hero {
  padding: 1rem 0 2rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h2,
.post-header h2 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.hero-text {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1rem;
}

.post-list {
  margin-top: 2rem;
}

.post-list h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.post-card h3 {
  margin: 0.2rem 0 0.4rem;
  line-height: 1.3;
}

.post-card p {
  margin: 0.4rem 0;
}

.post,
.page {
  background: var(--surface);
}

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

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

.post-content h2,
.post-content h3,
.post-content h4 {
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p,
.post-content ul,
.post-content ol {
  margin: 1rem 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-content blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.post-content pre,
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.post-content pre {
  overflow-x: auto;
  padding: 1rem;
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: justify;
  text-justify: inter-word;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding-top: 2rem;
  }
}
