@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
}

/* Georgia scaled to Newsreader's metrics, so text doesn't reflow when the font arrives. */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  font-style: normal;
  size-adjust: 91.8%;
  ascent-override: 80.1%;
  descent-override: 28.9%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia Italic"), local("Georgia-Italic");
  font-style: italic;
  size-adjust: 91.8%;
  ascent-override: 80.1%;
  descent-override: 28.9%;
  line-gap-override: 0%;
}

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --rule: #e7e7e7;
  --gutter: 28px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #ececec;
  --muted: #8a8a8a;
  --rule: #232323;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Newsreader", "Newsreader Fallback", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 160ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 1.5px solid var(--fg);
  outline-offset: 4px;
  border-radius: 2px;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

p,
li {
  text-wrap: pretty;
}

/* Bar */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  font-size: 17px;
}

.wordmark {
  text-decoration: none;
  letter-spacing: -0.005em;
}

.theme {
  appearance: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme svg {
  width: 15px;
  height: 15px;
  translate: 0 -1.5px;
  transition: transform 420ms cubic-bezier(0.3, 0, 0.1, 1);
}

[data-theme="dark"] .theme svg {
  transform: rotate(180deg);
}

/* Penguin */

.penguin {
  display: block;
  overflow: visible;
}

.penguin .eye {
  fill: var(--bg);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 70ms ease-in;
}

.penguin.blink .eye {
  transform: scaleY(0.12);
}

/* Holding page */

.holding {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}

.holding main {
  display: grid;
  place-items: center;
}

.holding .penguin {
  height: 52px;
  width: auto;
  /* the beak pulls the box right of the bird's mass */
  translate: 3px -4%;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  color: var(--muted);
  font-size: 15px;
}

/* Profile */

.profile {
  max-width: calc(880px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 104px var(--gutter) 128px;
}

.row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: 48px;
  align-items: first baseline;
}

.row + .row {
  margin-top: 72px;
}

.row > h2 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.row > div {
  max-width: 620px;
}

h1 {
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.roles {
  margin-top: 18px;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 18px;
}

.prose p + p {
  margin-top: 1em;
}

.prose .lede {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.003em;
}

.prose .lede + p {
  margin-top: 1.25em;
}

.prose em {
  font-style: italic;
}

.entry + .entry {
  margin-top: 40px;
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 24px;
}

.entry h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.entry time,
.entry .when {
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.entry .meta {
  color: var(--muted);
}

.entry ul {
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.entry li {
  position: relative;
}

.entry li + li {
  margin-top: 6px;
}

.entry li::before {
  content: "–";
  position: absolute;
  left: -1.05em;
  color: var(--muted);
}

.entry .detail {
  margin-top: 6px;
}

.profile + .foot {
  max-width: calc(880px + 2 * var(--gutter));
  margin: 0 auto;
  padding-bottom: 40px;
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .bar,
  .foot {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .profile {
    padding-top: 64px;
    padding-bottom: 96px;
  }

  .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .row > h2 {
    margin-bottom: 14px;
  }

  .row + .row {
    margin-top: 56px;
  }

  h1 {
    font-size: 38px;
  }

  .prose .lede {
    font-size: 20px;
  }

  .entry li {
    padding-left: 1.05em;
  }

  .entry li::before {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme svg,
  .penguin .eye,
  a {
    transition: none;
  }
}
