:root {
  --ink: #202020;
  --muted: #6c665d;
  --line: #ddd6cb;
  --paper: #faf8f4;
  --surface: #ffffff;
  --wood: #8d5f3c;
  --wood-dark: #4c3324;
  --olive: #6f7658;
  --steel: #39424a;
  --shadow: 0 18px 50px rgba(36, 30, 24, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(76, 51, 36, 0.12);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.brand__mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--wood-dark);
  font-size: 1.05rem;
}

.brand__name {
  white-space: nowrap;
}

main {
  min-height: 70vh;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section__header {
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
}

.button--primary {
  color: #fff;
  background: var(--wood-dark);
}

.button--secondary {
  color: var(--wood-dark);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f2eee7;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 32px;
}

.brand--footer {
  margin-bottom: 14px;
}

.site-footer__text {
  max-width: 420px;
}

.site-footer__group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer__group h2 {
  margin-bottom: 6px;
  color: var(--wood-dark);
  font-size: 0.9rem;
}

.site-footer__group a,
.site-footer__group p {
  margin: 0;
  color: var(--muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  font-size: 0.9rem;
}

.restricted-link {
  color: rgba(108, 102, 93, 0.72);
  font-size: 0.82rem;
}

.restricted-link:hover {
  color: var(--wood-dark);
}

.error-page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 64px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
