/* One narrow column of text. The scrolling story has its own stylesheet (experience.css). */
:root {
  --paper: #fff;
  --ink: #1f1e1c;
  --muted: #6b6963;
  --link: #1c3fbf;
}
* {
  box-sizing: border-box;
}
/* The body is the column: header, main and footer all share its width. */
body {
  width: min(640px, 100% - 48px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 20px/1.55 "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
}
h1,
h2 {
  font-size: inherit;
  font-weight: 600;
  margin: 0 0 6px;
}
p {
  margin: 0 0 18px;
}
a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 16px;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-footer,
.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 22px;
}
.site-header {
  padding: 44px 0 52px;
}
.wordmark {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
/* 44px rows keep the small links easy to tap. */
.wordmark,
.site-nav a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer {
  padding: 56px 0 28px;
  font-size: 16px;
  color: var(--muted);
}
.site-footer a {
  color: inherit;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}
.projects-heading,
.reading-heading {
  margin-bottom: 48px;
}
.project,
.timeline li {
  margin-bottom: 36px;
  scroll-margin-top: 24px;
}
.project p,
.timeline li p:last-of-type {
  margin-bottom: 4px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }
  .site-header {
    padding: 20px 0 32px;
  }
}

/* The bio writes itself (main.js). Unwritten words keep their space, so nothing below moves. */
.writing {
  position: relative;
}
.writing .w:not(.on) {
  opacity: 0;
}
.write-menu {
  position: absolute;
  z-index: 1;
  width: 12em;
  height: calc(4.8em + 14px);
  border: 1px solid #c9c7c1;
  background: var(--paper);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.write-menu[hidden] {
  display: none;
}
.write-menu > span {
  position: absolute;
  inset: 7px 10px auto;
  display: flex;
  justify-content: space-between;
  transform: translateY(calc(var(--row) * 1.6em));
  transition: transform 0.2s;
}
.write-menu > .top {
  color: var(--ink);
}
