:root {
  --page-bg: #fbfbfa;
  --nav-bg: #f0f0ef;
  --nav-bg-dark: #e0e0de;
  --text: #111111;
  --muted: #6f6f6b;
  --link: #1c6f8f;
  --soft-line: #e6e3df;
  --max-width: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.site-header {
  padding: 34px 0 0;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  display: none;
}

.nav {
  width: min(980px, calc(100% - 140px));
  min-height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  background: var(--nav-bg);
  border: 1px solid var(--soft-line);
}

.nav a,
.language-switch,
.nav-status {
  color: #52524f;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.language-switch {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.language-switch:hover,
.language-switch:focus-visible {
  color: var(--link);
}

.language-switch:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--link), transparent 55%);
  outline-offset: 4px;
}

.nav .brand {
  color: #171717;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--nav-bg-dark);
}

.nav-status {
  color: #6b6b67;
}

.nav-status [data-local-time]::before {
  content: " / ";
}

.nav-spacer {
  flex: 1;
}

.page {
  width: min(980px, calc(100% - 140px));
  margin: 26px auto 58px;
}

.intro {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 700px;
  margin-left: 174px;
}

.portrait {
  display: block;
  width: 118px;
  height: 138px;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.92) contrast(0.98);
}

.intro h1 {
  margin: 2px 0 4px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

.quick-links {
  margin: 4px 0 5px;
  font-size: 17px;
  line-height: 1.25;
}

.intro p,
.content-section p,
.contact p {
  margin: 0 0 6px;
}

.content-section,
.contact {
  max-width: 700px;
  margin: 34px 0 0 174px;
}

.references {
  width: min(980px, calc(100vw - 140px));
  margin: 48px 0 0 50%;
  transform: translateX(-50%);
  padding-top: 2px;
}

.references + .references {
  margin-top: 42px;
}

.references h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 400;
}

.references h2 a {
  font-size: 16px;
}

.reference-item {
  margin: 0 0 22px;
}

.reference-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.reference-links,
.summary {
  color: var(--muted);
}

.reference-links {
  margin-bottom: 4px;
}

.reference-links a {
  font-size: 17px;
}

.summary {
  font-size: 17px;
  line-height: 1.55;
}

.summary em {
  color: #8f1f1f;
}

.content-section h2 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 400;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.contact {
  margin-top: 36px;
}

@media (max-width: 1200px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding-top: 38px;
  }

  .page {
    width: min(700px, calc(100% - 48px));
  }

  .intro,
  .content-section,
  .contact {
    margin-left: 0;
  }

  .nav {
    width: min(700px, calc(100% - 48px));
    gap: 18px;
  }

  .nav a,
  .language-switch,
  .nav-status {
    font-size: 15px;
  }

  .quick-links {
    font-size: 17px;
  }

  .references {
    width: min(760px, calc(100vw - 48px));
    margin-top: 44px;
  }

  .references + .references {
    margin-top: 36px;
  }

  .references h2 {
    font-size: 24px;
  }

  .references h2 a {
    font-size: 16px;
  }

  .reference-item h3 {
    font-size: 16px;
  }

  .reference-links a,
  .summary {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .site-header {
    padding: 24px 18px 0;
  }

  .nav {
    width: 100%;
    min-height: 46px;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 11px 0 14px;
    background: #222222;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  }

  .nav-spacer {
    display: block;
    flex: 1;
  }

  .nav a,
  .language-switch,
  .nav-status {
    color: #ffffff;
    font-size: 14px;
  }

  .nav .brand {
    padding: 0;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
  }

  .nav a:not(.brand),
  .language-switch,
  .nav-status {
    order: 3;
    display: none;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    text-align: left;
  }

  .nav-status {
    line-height: 1.25;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    user-select: none;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 21px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    position: absolute;
    left: 0;
  }

  .menu-icon::before {
    top: -7px;
  }

  .menu-icon::after {
    top: 7px;
  }

  .menu-toggle:checked + .nav {
    padding-bottom: 14px;
  }

  .menu-toggle:checked + .nav a:not(.brand),
  .menu-toggle:checked + .nav .language-switch,
  .menu-toggle:checked + .nav .nav-status {
    display: block;
  }

  .menu-toggle:checked + .nav .menu-icon {
    transform: rotate(45deg);
  }

  .menu-toggle:checked + .nav .menu-icon::before {
    transform: translateY(7px) rotate(90deg);
  }

  .menu-toggle:checked + .nav .menu-icon::after {
    opacity: 0;
  }

  .page {
    width: calc(100% - 36px);
    margin-top: 24px;
    margin-bottom: 42px;
  }

  .intro {
    display: block;
    max-width: none;
  }

  .portrait {
    float: left;
    width: 104px;
    height: 122px;
    margin: 0 14px 8px 0;
  }

  .intro h1,
  .content-section h2 {
    font-size: 16px;
  }

  .quick-links {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.28;
  }

  .content-section,
  .contact {
    clear: both;
    max-width: none;
    margin-top: 28px;
  }

  .muted {
    font-size: 13px;
  }

  .references {
    clear: both;
    width: 100%;
    margin: 36px 0 0;
    transform: none;
  }

  .references + .references {
    margin-top: 30px;
  }

  .references h2 {
    margin-bottom: 18px;
    text-align: left;
    font-size: 21px;
    line-height: 1.2;
  }

  .references h2 a {
    display: inline;
    font-size: 14px;
  }

  .reference-item {
    margin-bottom: 22px;
  }

  .reference-item h3 {
    font-size: 16px;
    line-height: 1.35;
  }

  .reference-links a,
  .summary {
    font-size: 15px;
  }

  .summary {
    line-height: 1.5;
  }
}
