:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #1f2328;
  --muted: #667085;
  --border: rgba(31, 35, 40, 0.12);
  --accent: #0f766e;
  --accent-strong: #115e59;
  --shadow: 0 18px 60px rgba(31, 35, 40, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 34%),
    radial-gradient(circle at top right, rgba(17, 94, 89, 0.08), transparent 30%),
    linear-gradient(180deg, #f8f4ed 0%, #f3ede2 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.site-footer,
.hero,
.section,
.article {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 24px;
}

.brand p,
.meta,
.eyebrow {
  color: var(--muted);
}

.brand-link {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand p {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.98rem;
}

.site-main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.hero {
  border-radius: 32px;
  padding: 60px 48px;
}

.hero h1,
.section h1,
.article h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.lead {
  max-width: 66ch;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
}

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

.button.primary:hover {
  background: var(--accent-strong);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.52);
}

.section,
.article {
  border-radius: 28px;
  padding: 32px 32px 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2,
.section-head h1,
.article h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

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

.post-card,
.post-row {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  padding: 22px;
}

.post-card h3,
.post-row h2 {
  margin: 10px 0;
  font-size: 1.3rem;
}

.excerpt {
  color: var(--muted);
  line-height: 1.75;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.read-more {
  white-space: nowrap;
}

.article-body {
  max-width: 74ch;
  line-height: 1.85;
  font-size: 1.04rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 2rem;
  line-height: 1.3;
}

.article-body pre {
  overflow: auto;
  padding: 18px 20px;
  border-radius: 18px;
  background: #111827;
  color: #f8fafc;
}

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.article-body :not(pre) > code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
}

.site-footer {
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: 22px;
  text-align: center;
}

.footer-icp {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header,
  .section-head,
  .post-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .section,
  .article {
    padding: 28px 22px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}
