:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --surface: #ffffff;
  --text: #202225;
  --muted: #626b73;
  --line: #d9ddd9;
  --accent: #3f6254;
  --accent-strong: #29483c;
  --shadow: 0 24px 70px rgba(32, 34, 37, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(63, 98, 84, 0.08), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

.page-shell {
  width: min(100% - 32px, 1040px);
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 48px 0 28px;
}

.page-shell--narrow {
  width: min(100% - 32px, 760px);
  min-height: 100vh;
}

.profile,
.legal {
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 221, 217, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: end;
  padding: clamp(32px, 6vw, 72px);
}

.profile__content {
  min-width: 0;
}

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

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

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 0;
}

.lead {
  max-width: 36rem;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.contact-block {
  margin-bottom: 32px;
  color: var(--text);
  font-style: normal;
}

.contact-block span {
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-strong);
  color: #ffffff;
}

.contact-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-list dt {
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-list dd {
  margin: 6px 0 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.contact-list a {
  white-space: nowrap;
}

.site-footer {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.legal {
  padding: clamp(28px, 6vw, 56px);
}

.legal h1 {
  max-width: none;
  margin-bottom: 36px;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
}

.legal section + section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal p {
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
    min-height: calc(100vh - 70px);
    padding-top: 24px;
  }

  .page-shell--narrow {
    min-height: 100vh;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  h1 {
    max-width: 10ch;
    font-size: 2.85rem;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    width: min(100% - 24px, 1040px);
    text-align: left;
  }
}

@media (max-width: 380px) {
  .profile,
  .legal {
    padding: 22px;
  }

  h1 {
    font-size: 2.45rem;
  }
}
