:root {
  --background: #f7f3ea;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #687385;
  --border: #ded7c8;
  --accent: #111827;
  --accent-soft: #ebe4d5;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  padding: 24px;
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  max-width: 1080px;
  margin: 48px auto 32px;
  padding: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(31, 41, 51, 0.08);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
}

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

.button,
button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.section {
  margin: 32px 0;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

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

.post-card {
  padding: 24px;
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.post-date {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.post-card button,
.signup-form button {
  margin-top: 12px;
  background: var(--accent);
  color: white;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

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

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
}

.form-message {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  .nav {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .hero,
  .section {
    padding: 32px;
  }

  .posts-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

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