:root {
  color-scheme: light dark;
  --bg: #f7f5ef;
  --panel: #ffffff;
  --text: #1d2523;
  --muted: #69736f;
  --line: #d9d6ca;
  --accent: #0f6b63;
  --accent-strong: #8d3d20;
  --code: #ebe7dc;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151817;
    --panel: #1f2422;
    --text: #f0eee7;
    --muted: #a8b0ac;
    --line: #343b38;
    --accent: #7bc8bd;
    --accent-strong: #e39772;
    --code: #2a302d;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 107, 99, 0.08), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header,
.site-footer,
.page {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--bg);
  background: var(--accent-strong);
}

.page {
  padding: 3rem 0 4rem;
}

.hero,
.page-heading {
  max-width: 760px;
  padding: 3rem 0;
}

.hero h1,
.page-heading h1,
.post-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p,
.page-heading p,
.post-header p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.post-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0 0 0.75rem;
}

.post-list {
  display: grid;
  gap: 0.8rem;
}

.writing-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.button {
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
  color: var(--bg);
}

.post-list-item {
  padding: 1rem;
}

.post-list-meta,
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-list-item h3 {
  margin: 0.65rem 0 0.25rem;
  font-size: 1.28rem;
  line-height: 1.25;
}

.post-list-item h3 a {
  text-decoration: none;
}

.post-list-item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.post {
  max-width: 760px;
}

.post-header {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.post-body {
  padding-top: 1.5rem;
  font-size: 1.06rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 2rem;
  line-height: 1.2;
}

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

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

pre,
code {
  background: var(--code);
  border-radius: 6px;
}

code {
  padding: 0.1rem 0.28rem;
}

pre {
  overflow-x: auto;
  padding: 1rem;
}

pre code {
  padding: 0;
}

.empty-state {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

  .page {
    padding-top: 1.5rem;
  }

  .hero,
  .page-heading {
    padding: 1.5rem 0 2rem;
  }
}
