/* Light biography page. Header, portrait column, and dark footer follow the reference layout. */

:root {
  --ink: #3a3a3a;
  --body: #737373;
  --nav: #5a7c9b;
  --nav-hover: #2f4d68;
  --line: #e6e6e6;
  --footer: #2a2a2a;
  --footer-text: #c6c6c6;
  --legal: #141414;
  --legal-text: #b0b0b0;
  --shell: 980px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
  transform: translateY(1px);
}

:focus-visible {
  outline: 2px solid var(--nav);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 3;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus {
  top: 12px;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  width: 118px;
  height: 70px;
  overflow: hidden;
  flex: none;
}

/* .brand img {
  width: 220px;
  max-width: none;
  height: 147px;
  object-fit: cover;
  object-position: center 40%;
  margin: -34px 0 0 -51px;
} */

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--nav);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 9px;
  color: var(--nav);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--nav-hover);
}

.profile {
  padding: 58px 0 64px;
}

.profile h1 {
  margin: 0 0 26px;
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.profile-layout {
  display: flow-root;
}

.portrait {
  float: left;
  width: 210px;
  height: auto;
  display: block;
  margin: 4px 32px 12px 0;
}

.profile-copy p {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.7;
}

.profile-copy h2 {
  clear: both;
  margin: 22px 0 14px;
  padding-top: 6px;
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

.closing {
  display: block;
  width: 100%;
  height: auto;
  margin: 64px 0 0;
}

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
  padding: 52px 0 46px;
  text-align: center;
}

.site-footer h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  display: inline-block;
  padding: 4px 0;
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.site-footer p {
  margin: 0;
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.85;
}

.legal {
  background: var(--legal);
  text-align: center;
  padding: 14px 16px 16px;
}

.legal p {
  margin: 0;
  color: var(--legal-text);
  font-size: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 1040px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 24px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex: 1 0 100%;
    border-top: 1px solid var(--line);
    padding: 8px 0 12px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
  }

  .site-nav a {
    padding: 12px 4px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(var(--shell), calc(100% - 32px));
  }

  .profile {
    padding: 36px 0 48px;
  }

  .profile h1 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .portrait {
    float: none;
    width: min(210px, 70vw);
    margin: 0 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 40px 0 36px;
    gap: 32px 16px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  button:active,
  a:active {
    transform: none;
  }
}
