:root {
  --background: #ffffff;
  --text: #1f2523;
  --muted: #6f756f;
  --soft: #f7f5f0;
  --line: #e5e5e5;
  --accent: #8f642f;
  --green: #1f3a32;
  --green-soft: #eef2ef;
  --topbar-height: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-height);
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent);
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fixed top bar */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--topbar-height);
  padding: 18px 8vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.topbar-line {
  justify-self: start;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  white-space: nowrap;
}

.topbar-logo {
  justify-self: center;
  line-height: 0;
}

.topbar-logo img {
  display: block;
  width: 230px;
  height: auto;
}

.nav {
  justify-self: end;
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

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

/* Main layout */

.main {
  flex: 1;
  padding-top: var(--topbar-height);
}

/* Hero */

.hero {
  padding: 96px 8vw 104px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(31, 58, 50, 0.045), rgba(255, 255, 255, 0) 42%),
    var(--background);
}

.hero-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.85fr);
  gap: clamp(56px, 6vw, 96px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
}

h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.045em;
  max-width: 820px;
  margin: 0 0 32px;
  color: var(--green);
}

.hero-lead {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.36;
  max-width: 740px;
  color: var(--text);
  margin: 0 0 26px;
}

.hero-text {
  font-size: 20px;
  line-height: 1.72;
  max-width: 710px;
  color: var(--muted);
  margin: 0;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions a:first-child {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.hero-actions a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-actions a:first-child:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.hero-panel {
  align-self: center;
  width: 100%;
  border-left: 1px solid var(--line);
  padding-left: clamp(34px, 4vw, 56px);
}

.hero-panel div {
  border-top: 1px solid var(--line);
  padding: 34px 0 36px;
}

.hero-panel div:first-child {
  border-top-color: var(--accent);
}

.hero-panel div:last-child {
  border-bottom: 1px solid var(--line);
}

.hero-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel p {
  margin: 0;
  max-width: 420px;
  color: var(--green);
  font-size: 21px;
  line-height: 1.45;
}

@media (min-width: 1001px) {
  .hero {
    min-height: calc(100vh - var(--topbar-height));
    display: flex;
    align-items: center;
  }

  .hero-inner {
    width: 100%;
  }
}

/* Sections */

.section {
  padding: 82px 8vw;
  border-top: 1px solid var(--line);
}

.hero + .section {
  border-top: 0;
}

.section-inner {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 86px;
}

h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  color: var(--accent);
}

.content p {
  font-size: 20px;
  margin: 0 0 26px;
  max-width: 820px;
}

.content .lead {
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 34px;
  max-width: 900px;
}

.principles {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 42px;
}

.principles div {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.principles p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.contact p {
  font-size: 21px;
  max-width: 680px;
}

.contact a {
  color: var(--accent);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 8vw;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Tablet */

@media (max-width: 1000px) {
  :root {
    --topbar-height: 112px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
    padding-top: 18px;
    padding-bottom: 18px;
    min-height: var(--topbar-height);
  }

  .topbar-line {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar-logo {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .topbar-logo img {
    width: 190px;
  }

  .nav {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 98px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-panel {
    max-width: 760px;
    border-left: 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .hero-panel div {
    border-top: 1px solid var(--line);
  }

  .section-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

/* Mobile */

@media (max-width: 760px) {
  :root {
    --topbar-height: 172px;
  }

  html {
    scroll-padding-top: var(--topbar-height);
  }

  .topbar {
    min-height: var(--topbar-height);
    padding: 16px 6vw 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .topbar-line {
    order: 1;
    font-size: 11px;
    letter-spacing: 0.16em;
    line-height: 1.3;
    white-space: normal;
  }

  .topbar-logo {
    order: 2;
    justify-self: auto;
  }

  .topbar-logo img {
    width: 168px;
  }

  .nav {
    order: 3;
    justify-self: auto;
    display: flex;
    justify-content: center;
    gap: 22px;
    width: 100%;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .main {
    padding-top: var(--topbar-height);
  }

  .hero {
    padding: 68px 6vw 78px;
  }

  .hero-inner {
    gap: 44px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1;
  }

  .hero-lead {
    font-size: 22px;
  }

  .hero-text {
    font-size: 19px;
  }

  .hero-actions {
    margin-top: 34px;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-panel {
    display: block;
    max-width: none;
    padding: 0;
    border-left: 0;
  }

  .hero-panel div {
    padding: 22px 0 24px;
  }

  .hero-panel p {
    font-size: 18px;
  }

  .section {
    padding: 72px 6vw;
  }

  .content p {
    font-size: 19px;
  }

  .content .lead {
    font-size: 23px;
  }

  .principles p {
    font-size: 18px;
  }

  .footer {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}
