@font-face {
  font-family: "Newsreader";
  src: url(fonts/newsreader-text.woff2) format("woff2");
  font-weight: 400 700;
  font-display: optional;
}

:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --text: #1c1b19;
  --muted: #47443d;
  --link: #1d4f91;
  --focus: #1d4f91;
  --rule: #8a857a;
  --serif: "Newsreader", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

@supports (color: light-dark(#000, #fff)) {
  :root {
    color-scheme: light dark;
    --bg: light-dark(#f7f5f0, #1c1b19);
    --text: light-dark(#1c1b19, #ece8df);
    --muted: light-dark(#47443d, #c4beb1);
    --link: light-dark(#1d4f91, #9ec3f5);
    --focus: light-dark(#1d4f91, #9ec3f5);
    --rule: light-dark(#8a857a, #77726a);
  }

  :root[data-theme="light"] {
    color-scheme: light;
  }

  :root[data-theme="dark"] {
    color-scheme: dark;
  }
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  padding: 1.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

main {
  max-inline-size: 36rem;
  margin-inline: auto;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin: 1.5rem 0 1.25rem;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--rule);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

section {
  margin-block-start: 3rem;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jobs li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.jobs li + li {
  margin-block-start: 1rem;
}

.jobs li > span:last-child {
  flex: 1 1 14rem;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 8.25rem;
  min-block-size: 2.75rem;
  color: var(--muted);
}

.logo svg {
  display: block;
  block-size: var(--h);
  inline-size: auto;
  fill: currentColor;
}

.ko {
  stroke: var(--bg);
}

@media (forced-colors: active) {
  .ko {
    stroke: Canvas;
  }
}

.vh {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.years {
  white-space: nowrap;
}

time {
  color: var(--muted);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-underline-offset: 0.15em;
}

.contact li + li {
  margin-block-start: 0.5rem;
}

.contact a {
  display: inline-block;
  max-inline-size: 100%;
  min-block-size: 2.75rem;
  padding-block: 0.5rem;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

#theme {
  display: block;
  margin-inline-start: auto;
  min-block-size: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  cursor: pointer;
}

@media print {
  :root {
    color-scheme: light !important;
  }

  #theme {
    display: none !important;
  }

  a[href^="http"]:not(.logo)::after {
    content: " (" attr(href) ")";
    overflow-wrap: anywhere;
  }
}
