:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --text: #171717;
  --muted: #5f625c;
  --line: #d8d9d2;
  --panel: #ffffff;
  --accent: #0d6b57;
  --accent-dark: #07483b;
  --code: #111815;
}

* {
  box-sizing: border-box;
}

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

main {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(54px, 12vw, 132px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.2;
}

.principle {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.copy-panel,
.grid,
.features {
  margin-top: 32px;
}

.copy-panel,
.grid > div,
.features {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 22px;
}

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

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

button {
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  min-height: 38px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

pre {
  overflow-x: auto;
  margin: 0;
  border-radius: 8px;
  background: var(--code);
  color: #e9f4ee;
  padding: 18px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

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

a:hover {
  text-decoration: underline;
}

.post-page {
  width: min(880px, calc(100% - 32px));
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.topbar a {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.post-detail {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.post-title {
  margin-bottom: 14px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 0.98;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent-dark);
  background: #f2f5ef;
  font-size: 13px;
  font-weight: 700;
}

.post-body {
  background: #f6f7f3;
  color: var(--text);
  border: 1px solid var(--line);
}

.muted,
.comment-meta {
  color: var(--muted);
}

.comments {
  display: grid;
  gap: 12px;
}

.comment {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.comment:first-child {
  border-top: 0;
  padding-top: 0;
}

.comment p {
  margin-bottom: 8px;
  line-height: 1.7;
}

.comment-meta {
  font-size: 13px;
  font-weight: 700;
}

.share-guide pre {
  margin-top: 14px;
}

@media (max-width: 760px) {
  main {
    width: min(100% - 24px, 1060px);
    padding: 24px 0;
  }

  .hero {
    padding-top: 32px;
  }

  .principle {
    font-size: 20px;
  }

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