:root {
  color-scheme: light;
  --ink: #25221f;
  --muted: #6b625a;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded8cf;
  --accent: #2f7d68;
  --accent-dark: #215846;
  --sun: #e7b85d;
  --rose: #c76f60;
  --shadow: 0 18px 50px rgba(50, 42, 34, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

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

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #ece7df;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 64px;
  min-height: calc(100vh - 124px);
}

.hero-copy {
  padding: 24px 0;
}

.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,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 6.2vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.hero-text {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
}

.hero-actions,
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 11px 16px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--accent);
}

.hero-art {
  margin: 0;
  min-width: 0;
}

.hero-art img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-art figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
}

.section,
.feature-band {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 72px;
}

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

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

.post-card {
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.post-card p {
  color: var(--muted);
}

.post-card a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.post-date {
  margin-bottom: 12px;
  color: var(--rose);
  font-size: 0.84rem;
  font-weight: 800;
}

.post-page {
  width: min(780px, calc(100% - 32px));
  margin: 52px auto 76px;
}

.post-hero {
  margin-bottom: 34px;
}

.post-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 5.4vw, 4.45rem);
}

.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.post-body {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.post-body p,
.post-body li {
  color: #433d37;
  font-size: 1.08rem;
}

.post-body p {
  margin-bottom: 22px;
}

.post-body h2 {
  margin: 38px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.post-body ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 22px;
}

.post-back {
  display: inline-flex;
  margin-top: 28px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

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

.care-list li {
  background: #f2eee7;
  border-left: 5px solid var(--sun);
  border-radius: 8px;
  padding: 16px 18px;
}

.subscribe {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
}

.signup-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.signup-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.signup-form input {
  flex: 1 1 220px;
  min-height: 44px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.signup-form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(47, 125, 104, 0.18);
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0 36px;
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .section-heading,
  .feature-band,
  .subscribe {
    display: block;
  }

  .nav-links {
    margin-top: 16px;
    justify-content: flex-start;
  }

  .hero {
    min-height: 0;
    margin-top: 8px;
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero-art {
    margin-top: 26px;
  }

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

  .feature-band,
  .subscribe {
    padding-top: 32px;
  }

  .care-list,
  .signup-form {
    margin-top: 20px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .post-page,
  .section,
  .feature-band,
  .subscribe,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    align-items: flex-start;
  }

  .hero-actions .button,
  .form-row .button {
    width: 100%;
  }
}
