:root {
  color-scheme: light;
  --ink: #1f2522;
  --muted: #53605a;
  --accent: #7a1f25;
  --paper: #fbfaf7;
  --line: #d8d0c5;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.top-menu {
  display: flex;
  justify-content: flex-end;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  font-family: Arial, Helvetica, sans-serif;
}

.top-menu a {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.top-menu a:hover,
.top-menu a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-strip {
  display: flex;
  justify-content: center;
  padding: 12px 16px 24px;
}

.header-image {
  display: block;
  width: min(560px, 100%);
  max-height: 130px;
  object-fit: contain;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.intro {
  max-width: 940px;
  margin: 0 auto 42px;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.15rem, 4vw, 4.35rem);
  line-height: 1.05;
  font-weight: 700;
}

.subtitle {
  margin: 18px auto 0;
  max-width: 780px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.4;
}

.profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.analysis {
  padding: 30px 34px;
  border-left: 4px solid var(--accent);
  background: var(--panel);
  box-shadow: 0 18px 36px rgba(33, 29, 21, 0.08);
}

.analysis p {
  margin: 0;
  font-size: clamp(1.12rem, 1.5vw, 1.32rem);
}

@media (max-width: 760px) {
  .top-menu {
    justify-content: center;
    text-align: center;
  }

  main {
    padding-top: 32px;
  }

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

  .analysis {
    padding: 24px 22px;
  }
}
