:root {
  color-scheme: light;
  --background: #f6f1e8;
  --text: #151512;
  --muted: #5f5a51;
  --line: #d8cec0;
  --accent: #6b7168;
  --panel: #fffaf1;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 56px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: center;
  min-height: 52vh;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.hero img {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  box-shadow: 0 20px 50px rgb(21 21 18 / 18%);
}

h1,
h2 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 9vw, 6.7rem);
  font-weight: 520;
}

h2 {
  margin: 46px 0 14px;
  font-size: 2rem;
  font-weight: 520;
}

p,
li {
  font-size: 1.1rem;
}

.lead {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 1.45rem;
}

.section {
  padding-top: 34px;
}

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

.note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.compact {
  max-width: 720px;
}

.footer {
  margin-top: 62px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 28px, 920px);
  }

  .nav {
    align-items: flex-start;
    padding-bottom: 38px;
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
  }

  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    min-height: auto;
  }

  .hero img {
    width: 112px;
    height: 112px;
    border-radius: 26px;
  }

  .lead {
    font-size: 1.25rem;
  }
}
