:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #17202c;
  --muted: #657083;
  --line: #d8dee8;
  --accent: #43689a;
  --accent-strong: #294c7c;
  --accent-soft: #e4edf8;
  --accent-quiet: #f1f5fb;
  --warm: #43689a;
  --shadow: 0 24px 70px rgba(31, 53, 86, 0.14);
  --column-gap: clamp(28px, 6vw, 82px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(67, 104, 154, 0.15), transparent 30rem),
    linear-gradient(135deg, #fbfcff 0%, var(--bg) 54%, #eef3fa 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 28px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 48px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.language a {
  min-width: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.language a[aria-current="page"] {
  color: var(--surface);
  background: var(--accent-strong);
}

.hero {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: var(--column-gap);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--warm);
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(67, 104, 154, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: 2.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.intro,
.copy-block p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

.person-name {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 650;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font: inherit;
  cursor: pointer;
}

.button.primary {
  color: var(--accent-strong);
  border-color: rgba(67, 104, 154, 0.28);
  background: rgba(255, 255, 255, 0.62);
}

.button.secondary {
  color: var(--accent-strong);
  border-color: rgba(67, 104, 154, 0.28);
  background: rgba(255, 255, 255, 0.62);
}

.button:hover,
.button:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  outline: 3px solid rgba(67, 104, 154, 0.22);
  outline-offset: 4px;
}

.signal-panel,
.keyword-card {
  border: 1px solid rgba(24, 32, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-panel {
  padding: 22px;
}

dl {
  margin: 0;
}

dl div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

dl div:first-child {
  padding-top: 0;
}

dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

dd {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.4;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: var(--column-gap);
  align-items: center;
}

.copy-block {
  padding-top: 0;
}

.keyword-card {
  padding: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 9px 11px;
  border: 1px solid rgba(67, 104, 154, 0.22);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.93rem;
  font-weight: 750;
  white-space: nowrap;
}

.tags-secondary {
  margin-top: 10px;
}

.tags-secondary li {
  padding: 6px 9px;
  border-color: rgba(23, 32, 44, 0.16);
  color: var(--muted);
  background: #ffffff;
  font-size: 0.81rem;
  font-weight: 650;
}

.project-tags {
  width: 100%;
}

.project-tags .section-label {
  margin: 0 0 14px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.project-tags .tags {
  max-width: 100%;
}

.project-tags .tags li {
  padding: 7px 10px;
  border-color: rgba(23, 32, 44, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 650;
}

.footer {
  justify-content: flex-start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 660px);
    gap: 34px;
  }

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

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .person-name {
    font-size: 2.5rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .topbar {
    justify-content: flex-end;
  }

  .language {
    align-self: stretch;
  }

  .language a {
    flex: 1;
  }

  .actions {
    flex-wrap: nowrap;
  }

  .button {
    flex: 0 0 auto;
    width: auto;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .intro,
  .copy-block p {
    font-size: 1.06rem;
  }

  .person-name {
    font-size: 2.1rem;
  }

  .tags li {
    white-space: normal;
  }
}
