:root {
  --ink: #494e52;
  --muted: #7a8288;
  --line: #f2f3f3;
  --link: #52adc8;
  font-family: -apple-system, ".SFNSText-Regular", "San Francisco", Roboto,
    "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 70px 0 9em;
  color: var(--ink);
  font: 1rem/1.5 -apple-system, ".SFNSText-Regular", "San Francisco", Roboto,
    "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.masthead {
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 1280px;
  min-height: 70px;
  margin: 0 auto;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-name { color: var(--ink); font-weight: 700; }
.nav-links { display: flex; gap: 1.4em; }
.nav-links a { color: var(--ink); font-size: .78em; }
.menu-button { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2em 1em;
  display: grid;
  grid-template-columns: minmax(250px, 28%) minmax(0, 1fr);
  gap: 4.25%;
}
.profile { align-self: start; }
.avatar {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  color: #7a8288;
  background: #f2f3f3;
  border-radius: 4px;
  font-size: 2rem;
  font-weight: 700;
}
.profile h1 {
  margin: .9em 0 .2em;
  color: var(--ink);
  font-size: 1.12em;
  line-height: 1.2;
}
.role { margin: 0 0 1em; font-size: .82em; }
.follow-button {
  margin-bottom: .25em;
  padding: .5em 1em;
  color: var(--muted);
  background: #fff;
  border: 1px solid #bdc1c4;
  border-radius: 4px;
  font-size: .75em;
  font-weight: 700;
  cursor: pointer;
}
.follow-button:hover { color: #fff; background: var(--muted); }
.profile-links { margin: .7em 0 0; padding: 0; list-style: none; font-size: .8em; }
.profile-links li { margin: 0 0 .35em; }
.profile-links a, .profile-links li { color: var(--ink); }
.profile-links.is-hidden { display: none; }
.icon { display: inline-block; width: 1.45em; color: #7a8288; text-align: center; vertical-align: -.16em; }
.icon svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.content { max-width: 850px; }
.content section { scroll-margin-top: 5em; }
.eyebrow { display: none; }
h2, h3 {
  margin: 0 0 .5em;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}
h2 { font-size: 1.563em; }
h3 { margin-top: 2em; font-size: 1.25em; }
.content p { margin: 0 0 1.3em; }
.news-section { margin-top: 2em; }
.news-section h3 { padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.news-list { margin: 0; }
.news-item {
  display: block;
  padding: 1em 0;
  border-bottom: 0;
}
.news-item time {
  display: block;
  margin-bottom: .4em;
  color: var(--ink);
  font-size: .75em;
  font-weight: 700;
}
.news-item p { margin: 0; }

footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2em 1em;
  color: #9ba1a6;
  font-size: .75em;
  border-top: 1px solid var(--line);
}
footer p { margin: .5em 0 0; }

@media (min-width: 48em) { html { font-size: 18px; } }
@media (max-width: 47.99em) {
  .nav-wrap { min-height: 60px; }
  .masthead { height: 60px; }
  body { padding-top: 60px; }
  .menu-button { display: block; padding: .4em; border: 0; background: transparent; }
  .menu-button span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px; background: var(--ink); }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 1em;
    flex-direction: column;
    gap: 0;
    padding: .5em 0;
    background: #fff;
    border: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .55em 1em; }
  .page-shell { display: block; padding-top: 1.5em; }
  .profile { margin-bottom: 2em; }
  .avatar { width: 190px; }
}
.random-page {
  max-width: 1280px;
  min-height: 55vh;
  margin: 0 auto;
  padding: 2em 1em;
  display: grid;
  grid-template-columns: minmax(250px, 28%) minmax(0, 1fr);
  gap: 4.25%;
}
.random-portrait { align-self: start; }
.random-portrait img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 4px;
}
.random-content h1 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-size: 1.563em;
  line-height: 1.2;
}
.random-content ul { margin: 1em 0; padding-left: 1.2em; }
.random-content li { margin-bottom: .5em; }

@media (max-width: 47.99em) {
  .random-page { display: block; padding-top: 1.5em; }
  .random-portrait { margin-bottom: 2em; }
  .random-portrait img { width: 150px; }
}
