:root {
  --bg: #f5f5f3;
  --panel: #ffffff;
  --text: #161616;
  --muted: #666666;
  --line: #d9d9d4;
  --accent: #111111;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  text-decoration: underline;
}

.page-section a,
.post-content a,
.page-header a {
  color: #111111;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(17, 17, 17, 0.8);
  background: rgba(17, 17, 17, 0.04);
  padding: 0.04em 0.18em;
  border-radius: 0.2em;
}

.page-section a:hover,
.post-content a:hover,
.page-header a:hover {
  background: rgba(17, 17, 17, 0.08);
  text-decoration-thickness: 4px;
}

.intro a,
.home-section a,
.minimal-list a,
.site-header a,
.site-footer a {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-weight: 400;
}

.intro a:hover,
.home-section a:hover,
.minimal-list a:hover,
.site-header a:hover,
.site-footer a:hover {
  text-decoration: underline;
  background: transparent;
}

.page-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
}

.site-main {
  padding-top: 32px;
}

.intro,
.page-section,
.post-article,
.home-section {
  padding: 18px 0 32px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

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

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.action-links a {
  display: inline-block;
  border: 1px solid var(--text);
  padding: 8px 12px;
  font-size: 0.95rem;
}

.minimal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.minimal-list li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.minimal-list time {
  min-width: 110px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.page-header {
  padding: 12px 0 18px;
}

.post-header {
  margin-bottom: 26px;
}

.post-meta {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-content {
  font-size: 1.02rem;
}

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

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
  margin-bottom: 1.2rem;
}

.post-content a,
.page-section a,
.page-header a,
.intro a {
  color: #0f0f0f;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(17, 17, 17, 0.8);
}

.post-content a:hover,
.page-section a:hover,
.page-header a:hover,
.intro a:hover {
  color: #000000;
  text-decoration-thickness: 3px;
}

.post-content ul,
.post-content ol {
  padding-left: 1.2rem;
}

.post-content code {
  background: #efefeb;
  color: #111111;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.post-content pre {
  background: #111111;
  color: #f5f5f3;
  padding: 16px;
  margin: 1.25rem 0;
  border-radius: 10px;
  overflow-x: auto;
  border: 1px solid #d9d9d4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.post-content pre code {
  display: block;
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
}

blockquote {
  border-left: 2px solid var(--text);
  margin-left: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .minimal-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-footer {
    flex-direction: column;
  }
}
