:root {
  color-scheme: light;
  --bg: #f8faf9;
  --surface: #ffffff;
  --ink: #18201f;
  --muted: #5b6865;
  --line: #d9e0dd;
  --accent: #0f766e;
  --accent-strong: #0b4f49;
  --warm: #b45309;
  --soft-blue: #e7f0f7;
  --soft-green: #e8f4ef;
  --shadow: 0 16px 45px rgba(25, 35, 33, 0.11);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 249, 0.92);
  border-bottom: 1px solid rgba(217, 224, 221, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 36px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(10, 20, 18, 0.78), rgba(10, 20, 18, 0.47) 46%, rgba(10, 20, 18, 0.16)),
    url("hero-workspace.png") center / cover no-repeat;
  color: #ffffff;
}

.hero-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d7f7ee;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-title h1 {
  max-width: 760px;
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: #ffffff;
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: #ffffff;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

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

.post-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(25, 35, 33, 0.06);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.tag.alt {
  background: var(--soft-blue);
  color: #1f4f72;
}

.post-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.24;
}

.post-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.post-meta {
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.note-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.page-title {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0 36px;
}

.page-title p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.archive-list {
  display: grid;
  gap: 14px;
}

.archive-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.archive-date {
  color: var(--muted);
  font-size: 14px;
}

.archive-item h2 {
  margin: 0;
  font-size: 24px;
}

.archive-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.article {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 66px 0 86px;
}

.article-header {
  margin-bottom: 42px;
}

.article-header h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
}

.article-header p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.article-meta {
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.article h2 {
  margin: 46px 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

.article p,
.article li {
  color: #2d3835;
}

.article blockquote {
  margin: 32px 0;
  padding: 2px 0 2px 22px;
  border-left: 4px solid var(--warm);
  color: var(--muted);
  font-size: 20px;
}

.article code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #edf2f0;
  font-size: 0.92em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  width: min(var(--max), calc(100% - 36px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
}

.footer-inner a {
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav {
    min-height: 76px;
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 660px;
    background-position: 58% center;
  }

  .hero-inner {
    padding: 88px 0 58px;
  }

  .hero h1,
  .page-title h1 {
    font-size: 42px;
  }

  .hero p,
  .page-title p {
    font-size: 18px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
  }

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

  .archive-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .article-header h1 {
    font-size: 38px;
  }

  .footer-inner {
    min-height: 140px;
    align-items: start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero h1,
  .page-title h1 {
    font-size: 34px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .post-card,
  .panel {
    padding: 22px;
  }
}
