:root {
  color-scheme: light;
  --bg: #f1f2f4;
  --paper: #ffffff;
  --ink: #262a31;
  --muted: #737b86;
  --line: #dfe3e8;
  --nav: #2c323a;
  --nav-2: #3a424d;
  --accent: #2d8f7a;
  --accent-dark: #20715f;
  --warm: #c86a45;
  --soft: #f7f4ef;
  --shadow: 0 14px 34px rgba(38, 42, 49, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

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

.site-header {
  background: var(--paper);
  border-top: 5px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.brand-text {
  color: var(--ink);
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: 0;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav {
  background: var(--nav);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  gap: 2px;
  width: 100%;
  overflow-x: auto;
  padding: 0 max(16px, calc((100vw - 1180px) / 2));
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: #f4f7f8;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--nav-2);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  display: grid;
  gap: 12px;
  padding: 38px 0 28px;
}

.eyebrow,
.post-meta {
  margin: 0;
  color: var(--warm);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.14;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding-bottom: 54px;
}

.post-feed,
.post-list {
  display: grid;
  gap: 18px;
}

.featured-post,
.post-card,
.widget,
.article-view {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
}

.post-visual {
  display: grid;
  min-height: 280px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(45, 143, 122, 0.94), rgba(32, 113, 95, 0.88)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 12px);
  color: rgba(255, 255, 255, 0.92);
}

.post-visual span {
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 18px 24px;
  font-size: 28px;
  font-weight: 900;
}

.featured-copy {
  padding: 30px;
}

.featured-copy h2,
.section-title h2,
.widget h2 {
  margin: 0;
}

.featured-copy h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.22;
  letter-spacing: 0;
}

.featured-copy p:not(.post-meta),
.post-card p:not(.post-meta),
.widget p {
  color: var(--muted);
}

.read-more {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 4px;
  color: var(--accent-dark);
  font-weight: 900;
}

.read-more::after {
  content: ">";
  margin-left: 8px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 0 2px 8px;
  border-bottom: 3px solid var(--nav);
}

.section-title h2,
.widget h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.post-card {
  padding: 24px 26px;
}

.post-card h3 {
  margin: 9px 0 10px;
  font-size: 24px;
  line-height: 1.32;
  letter-spacing: 0;
}

.post-card p {
  margin: 0 0 8px;
}

.article-view {
  padding: 32px;
}

.article-view[hidden] {
  display: none;
}

.article-view h2 {
  margin: 10px 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.article-body {
  color: #3d444d;
  font-size: 18px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body h3,
.article-body h4 {
  margin: 28px 0 12px;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-weight: 900;
}

.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 16px;
}

.widget {
  padding: 22px;
}

.profile-widget {
  text-align: center;
}

.avatar {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 14px;
  place-items: center;
  border: 4px solid #e8f3ef;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.profile-widget p {
  margin: 12px 0 0;
}

.category-list,
.mini-posts,
.link-list {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
}

.category-list {
  list-style: none;
}

.category-list a,
.mini-posts a,
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 43px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.mini-posts a,
.link-list a {
  justify-content: flex-start;
}

.category-list strong {
  color: var(--accent-dark);
  font-size: 13px;
}

.category-list a:hover,
.mini-posts a:hover,
.link-list a:hover {
  color: var(--accent-dark);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(16px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--nav);
  color: #dce3e7;
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer strong {
  color: #fff;
}

.site-footer span,
.site-footer a {
  color: #c4cdd3;
}

.site-footer a {
  font-weight: 900;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .content-layout,
  .featured-post {
    grid-template-columns: 1fr;
  }

  .post-visual {
    min-height: 190px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-shell,
  .topbar {
    width: min(100% - 24px, 1180px);
  }

  .nav {
    padding: 0 12px;
  }

  .nav a {
    min-height: 46px;
    padding: 0 14px;
  }

  .intro {
    padding-top: 28px;
  }

  .featured-copy,
  .post-card,
  .widget,
  .article-view {
    padding: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px;
  }
}
