:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --ink: #1d2520;
  --muted: #59655d;
  --line: #d9d1c5;
  --panel: #fffaf2;
  --primary: #176b5b;
  --primary-ink: #ffffff;
  --accent: #c04f31;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(247, 243, 236, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

main {
  padding-bottom: 88px;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 48px 20px 28px;
  background:
    linear-gradient(rgba(247, 243, 236, 0.72), rgba(247, 243, 236, 0.96)),
    url("https://images.unsplash.com/photo-1516594798947-e65505dbb29d?auto=format&fit=crop&w=1400&q=80")
      center / cover;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 12vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.kicker) {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

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

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.78);
}

.section {
  padding: 30px 20px;
}

.section h2 {
  font-size: 1.45rem;
}

.grid {
  display: grid;
  gap: 12px;
}

article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

article h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

article p {
  margin-bottom: 0;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 242, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.bottom-nav a[aria-current="page"] {
  background: var(--primary);
  color: var(--primary-ink);
}

@media (min-width: 760px) {
  .hero,
  .section {
    padding-right: max(36px, calc((100vw - 1040px) / 2));
    padding-left: max(36px, calc((100vw - 1040px) / 2));
  }

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

  .bottom-nav {
    right: auto;
    left: 50%;
    width: min(420px, calc(100% - 32px));
    transform: translateX(-50%);
    bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
}
