:root {
  --background: #fbfaf7;
  --surface: #ffffff;
  --ink: #191714;
  --muted: #6f675f;
  --line: #e6dfd7;
  --accent: #6f4dff;
  --accent-soft: #eee9ff;
  --max-width: 760px;
  --wide-width: 1040px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(111, 77, 255, 0.08), transparent 34rem),
    var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

.site-header,
.site-footer {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

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

.site-title {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

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

main {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.hero {
  max-width: 820px;
  padding: 3rem 0 4rem;
}

.hero h1,
.post h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero p {
  max-width: 650px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.button-link {
  display: inline-block;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--surface);
  border-radius: 999px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

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

.section-heading {
  max-width: var(--max-width);
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.post-card {
  min-height: 18rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgba(48, 38, 22, 0.06);
}

.post-card h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

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

.post-card p:last-child {
  color: var(--muted);
}

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

.post-meta {
  margin: 1.25rem 0 3rem;
  color: var(--muted);
}

.post-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.post-body h2,
.post-body h3 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.post-body h2 {
  margin-top: 3rem;
  font-size: 2rem;
}

.post-body h3 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.post-body blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border-left: 0.25rem solid var(--accent);
  border-radius: 0.75rem;
  font-style: italic;
}

.post-body code,
.post-body pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.post-body code {
  padding: 0.08rem 0.28rem;
  background: var(--accent-soft);
  border-radius: 0.3rem;
  font-size: 0.9em;
}

.post-body pre {
  overflow: auto;
  padding: 1rem;
  background: #15130f;
  color: #f7efe2;
  border-radius: 0.9rem;
  font-size: 0.9rem;
}

.post-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.post-body hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.post-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

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

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .site-header {
    display: block;
  }

  .site-header p {
    margin-top: 0.6rem;
  }

  .site-nav {
    margin-top: 1rem;
  }

  .post-nav {
    display: grid;
  }
}
