:root {
  --bg: #f7f8f3;
  --surface: #ffffff;
  --ink: #17211f;
  --muted: #5f6f6a;
  --line: #dfe7df;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --soft: #e8f4ef;
  --gold: #b7791f;
  --shadow: 0 18px 48px rgba(20, 35, 32, 0.1);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(247, 248, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
}

.nav,
.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a,
.site-footer a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--accent-dark);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: center;
  min-height: 620px;
  padding: 56px 0 40px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  background: var(--accent);
  color: #fff;
}

.secondary-link {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-dark);
}

.hero-panel,
.post-card,
.plain-page,
.article-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

.hero-panel span {
  display: block;
  color: var(--gold);
  font-weight: 850;
  margin-bottom: 10px;
}

.hero-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.content-band {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 24px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--muted);
}

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

.post-card {
  padding: 20px;
}

.post-card time {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 750;
  margin-bottom: 10px;
}

.post-card a {
  text-decoration: none;
}

.post-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.highlight p {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
}

.guide-strip {
  position: relative;
}

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

.topic-card,
.workflow article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f6faf7);
}

.topic-card p,
.workflow p,
.post-content p,
.post-content li,
.post-content blockquote {
  color: var(--muted);
}

.workflow span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: var(--accent);
}

.post-content {
  margin-top: 30px;
}

.post-content h2,
.post-content h3 {
  margin-top: 32px;
}

.post-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.plain-page,
.article-page {
  max-width: 860px;
  margin: 42px auto 56px;
  padding: 34px;
}

.article-page article > p,
.article-page li,
.plain-page p,
.plain-page li {
  color: var(--muted);
}

.article-page h1,
.plain-page h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.article-page h2,
.plain-page h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.article-page ul,
.plain-page ul {
  padding-left: 22px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

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

  .hero,
  .two-column,
  .post-grid,
  .topic-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .post-grid {
    gap: 12px;
  }
}
