*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8f7f3;
  --text: #17201b;
  --muted: #72746e;
  --line: #dfdfd8;
  --brand: #2f6b45;
  --footer: #315d43;
  --footer-text: rgba(255, 255, 255, 0.9);
  --footer-muted: rgba(255, 255, 255, 0.55);
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Manrope", sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 300px);
}

.sidebar {
  padding: 108px 56px 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
}

.brand-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 66px;
  justify-items: start;
}

.sidebar-link {
  padding: 8px 12px;
  color: #24302a;
  font-size: 0.97rem;
}

.sidebar-link-active {
  background: rgba(23, 32, 27, 0.06);
}

.page {
  padding: 98px 80px 100px 8px;
}

.content-section {
  max-width: 760px;
}

h1 {
  margin: 0 0 44px;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 8vw, 5.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.prose {
  max-width: 900px;
}

.prose p {
  margin: 0 0 28px;
  font-size: 1.12rem;
  line-height: 1.62;
}

.text-link,
.submit-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 600;
}

.intake-card {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.form-row {
  display: grid;
  gap: 10px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.form-row span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.form-row input,
.form-row select {
  width: 100%;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-size: 1rem;
  outline: none;
}

.form-row input::placeholder {
  color: #9a9d97;
}

.submit-link {
  justify-self: start;
  padding: 24px 26px 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.form-status {
  min-height: 1.4em;
  color: var(--brand);
  font-size: 0.96rem;
}

.form-status-inline {
  margin-top: 18px;
}

.contact-line {
  margin-top: 42px;
  font-size: 1.2rem;
}

.underlined-link {
  border-bottom: 1px solid rgba(23, 32, 27, 0.4);
}

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px 120px;
  padding: 96px 84px 84px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--footer-muted);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-icon {
  color: currentColor;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 60px;
}

.footer-heading {
  margin: 0 0 22px;
  color: var(--footer-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-columns a {
  display: block;
  margin-bottom: 16px;
  color: var(--footer-text);
}

.footer-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.96rem;
}

@media (max-width: 960px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 28px 24px 10px;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
  }

  .page {
    padding: 28px 24px 72px;
  }

  h1 {
    margin-bottom: 32px;
    font-size: 4rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 72px 24px 56px;
  }

  .footer-columns {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 3.2rem;
  }

  .prose p {
    font-size: 1.02rem;
  }

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