:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --ink: #1d2328;
  --muted: #5d6872;
  --line: #d8d2c7;
  --panel: #fffdfa;
  --accent: #1d6f8f;
  --accent-dark: #12495e;
  --leaf: #53785b;
  --sun: #d98b3a;
  --shadow: 0 18px 50px rgba(29, 35, 40, 0.12);
}

* {
  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;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(246, 244, 239, 0.9);
  border-bottom: 1px solid rgba(216, 210, 199, 0.8);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--sun);
  border: 3px solid var(--accent-dark);
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: 72px clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(15, 23, 28, 0.82), rgba(15, 23, 28, 0.28)),
    url("https://images.unsplash.com/photo-1493246507139-91e8fad9978e?auto=format&fit=crop&w=2200&q=80")
      center / cover;
  color: white;
}

.hero-copy {
  width: min(780px, 100%);
}

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

.hero h1,
.section-heading h2,
.split-section h2,
.subscribe h2 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
}

.intro {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

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

.button,
button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.primary {
  background: var(--sun);
  color: #20140a;
}

.secondary {
  border-color: rgba(255, 255, 255, 0.56);
  color: white;
}

.section,
.split-section,
.subscribe {
  padding: 72px clamp(20px, 5vw, 72px);
}

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

.section-heading h2,
.split-section h2,
.subscribe h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

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

.post-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-body {
  padding: 22px;
}

.post-meta {
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 0.86rem;
  font-weight: 800;
}

.post-body h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
}

.post-body p:not(.post-meta) {
  color: var(--muted);
}

.post-body a {
  color: var(--accent-dark);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-section > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.subscribe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 80px);
  background: #eaf0ee;
}

form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 750;
}

.form-row {
  display: flex;
  gap: 10px;
}

input {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}

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

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

@media (max-width: 560px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 76vh;
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .form-row {
    flex-direction: column;
  }
}
