:root {
  --ink: #16201d;
  --muted: #66726f;
  --line: #d9dfdc;
  --paper: #f8f7f2;
  --white: #ffffff;
  --teal: #0f766e;
  --gold: #b9832f;
  --graphite: #27302d;
}

* { box-sizing: border-box; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 48px;
  min-height: 50px;
  background: #f7f6f1;
  transition: padding 180ms ease, min-height 180ms ease, box-shadow 180ms ease;
}

.brand {
  font-weight: 750;
}

nav {
  display: flex;
  gap: 18px;
}

nav a, a {
  color: var(--graphite);
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  padding: 80px 32px;
  background:
    linear-gradient(90deg, rgba(22, 32, 29, .92), rgba(22, 32, 29, .72), rgba(22, 32, 29, .28)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero > div {
  max-width: 760px;
}

.eyebrow {
  color: #d9b06b;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 750;
}

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

h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 24px;
}

h2 {
  font-size: 36px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 650px;
  font-size: 20px;
  color: rgba(255,255,255,.86);
}

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

.button, button {
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 750;
  cursor: pointer;
}

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

.secondary {
  background: rgba(255,255,255,.14);
  color: white;
  border: 1px solid rgba(255,255,255,.34);
}

.section {
  padding: 78px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: start;
}

.panel, article, .form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

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

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

#blogStatus, #formStatus {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 36px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

.wide {
  grid-column: 1 / -1;
}

.check {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 500;
}

.check input {
  width: auto;
}

@media (max-width: 800px) {
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 14px 18px;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }

  .hero {
    min-height: 760px;
    padding: 64px 20px;
  }

  .section {
    padding: 56px 20px;
  }

  .split, .contact, .grid, .form {
    grid-template-columns: 1fr;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-left: -10px;
  width: 620px;
  height: 58px;
  transition: width 180ms ease, height 180ms ease;
}

.brand-logo {
  display: block;
  width: 620px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  transition: width 180ms ease, max-height 180ms ease;
}

.topbar.is-scrolled {
  padding: 8px 48px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.topbar.is-scrolled .brand {
  width: 190px;
  height: 38px;
}

.topbar.is-scrolled .brand-logo {
  width: 190px;
  max-height: 38px;
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 22px;
  }

  .brand {
    width: 180px;
    height: 38px;
  }

  .brand-logo {
    width: 180px;
    max-height: 38px;
  }

  .topbar.is-scrolled {
    padding: 8px 22px;
  }

  .topbar.is-scrolled .brand {
    width: 145px;
    height: 38px;
  }

  .topbar.is-scrolled .brand-logo {
    width: 145px;
    max-height: 38px;
  }
}