:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-muted: #eef2ed;
  --text: #17211b;
  --muted: #5d6a61;
  --line: #dbe2dc;
  --accent: #2f6f5e;
  --accent-dark: #1d4f43;
  --warning: #b46a2b;
  --shadow: 0 18px 45px rgba(29, 50, 42, 0.1);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 226, 220, 0.9);
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

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

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.nav__link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 32px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 38px;
}

.hero__content {
  align-self: center;
}

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

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

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

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

.hero__text {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero__panel {
  display: grid;
  gap: 12px;
  align-self: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__panel div {
  padding: 14px;
  border-radius: 6px;
  background: var(--surface-muted);
}

.hero__panel strong,
.hero__panel span {
  display: block;
}

.hero__panel strong {
  margin-bottom: 3px;
}

.hero__panel span {
  color: var(--muted);
  font-size: 0.94rem;
}

.intro,
.section,
.detail-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  padding: 24px 0 32px;
}

.intro p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.section {
  padding: 28px 0 72px;
}

.section__header {
  margin-bottom: 24px;
}

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

.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(29, 50, 42, 0.06);
}

.card__image {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: var(--surface-muted);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.card__body p {
  margin: 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

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

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--surface-muted);
  color: var(--accent-dark);
}

.detail-layout {
  padding: 48px 0 72px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 34px;
}

.detail-hero__text {
  display: grid;
  gap: 18px;
}

.detail-hero__text p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.detail-hero__image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.article,
.advice-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article {
  padding: 28px;
}

.article p {
  margin: 0 0 18px;
  color: #26342c;
}

.article p:last-child {
  margin-bottom: 0;
}

.advice-panel {
  display: grid;
  gap: 20px;
  padding: 22px;
}

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

.advice-panel li + li {
  margin-top: 9px;
}

.not-found {
  display: grid;
  gap: 18px;
  max-width: 720px;
  padding: 56px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero,
  .detail-hero,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav {
    width: min(100% - 24px, 1120px);
    padding: 12px 0;
  }

  .hero,
  .intro,
  .section,
  .detail-layout {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    gap: 22px;
    padding-top: 44px;
  }

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

  .article,
  .advice-panel {
    padding: 20px;
  }

  .detail-layout {
    padding-top: 34px;
  }
}


/* Moderate danger accents */
:root {
    --danger: #b9413b;
    --danger-dark: #8f2d2a;
    --danger-soft: #fff1ef;
}

.brand__mark {
    background: var(--danger);
}

.eyebrow {
    color: var(--danger);
}

.hero__panel {
    border-color: rgba(185, 65, 59, 0.22);
    border-left: 5px solid var(--danger);
}

.hero__panel div:first-child {
    background: var(--danger-soft);
}

.hero__panel strong {
    color: var(--danger-dark);
}

.advice-panel h2:first-child::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--danger);
    vertical-align: 0.08em;
}
