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

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/noto-serif-sc-500.woff2") format("woff2");
  unicode-range: U+4fca, U+73ae, U+8303;
}

:root {
  --bg: #FBFBF9;
  --ink: #1D1D1F;
  --ink-soft: #6E6E73;
  --hair: #DEDDD8;
  --accent: #2C4870;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --ink: #F5F5F7;
    --ink-soft: #9A9AA0;
    --hair: #2E2E32;
    --accent: #7FA6D6;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

#network-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

nav.top,
.wrap {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 64px);
}

/* nav */
nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
}

.mark {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mark .cjk {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}

.navlinks {
  display: flex;
  gap: 26px;
  font-size: 16px;
  color: var(--ink-soft);
}

.navlinks a {
  text-decoration: none;
}

.navlinks a:hover {
  color: var(--ink);
}

.navlinks a.active {
  color: var(--ink);
  font-weight: 600;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: center;
  gap: 64px;
  padding: 56px 0 88px;
}

h1.hero-title {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}

p.bio {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 80ch;
  margin: 0 0 24px;
  font-weight: 400;
}

p.bio a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

p.bio a:hover {
  opacity: 0.75;
}

.contact-line {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  line-height: 1.7;
}

.contact-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}

.contact-line a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 48px;
}

.social-row a {
  display: flex;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.social-row a:hover {
  color: var(--accent);
}

.social-row svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.portrait-holder {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-holder img {
  width: min(220px, 100%);
  height: min(220px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 64px;
  }

  .portrait-holder {
    order: -1;
    justify-content: flex-start;
  }

  .portrait-holder img {
    width: 140px;
    height: 140px;
  }
}

/* research / future outputs */
section.outputs {
  padding: 0 0 88px;
  border-top: 1px solid var(--hair);
}

.outputs .kicker {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 48px 0 24px;
}

.outputs-panel {
  border: 1px dashed var(--hair);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  color: var(--ink-soft);
}

.outputs-panel p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 auto;
}

/* about page */
article.about {
  padding: 40px 0 88px;
  max-width: 980px;
}

.page-title {
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 300;
  letter-spacing: 0.01em;
  text-align: center;
  margin: 0 0 56px;
}

article.about p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 22px;
}

article.about p:last-child {
  margin-bottom: 0;
}

.row {
  display: grid;
  gap: 48px;
  align-items: start;
  margin: 0 0 48px;
}

.row-map {
  grid-template-columns: 1.25fr 1fr;
}

.row-photo {
  grid-template-columns: 1fr 1.3fr;
}

article.about figure {
  margin: 0;
}

article.about figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.35);
}

article.about figcaption {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 10px;
}

.map-embed {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--hair);
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.map-link {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--bg);
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.divider {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 0 0 40px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 0 56px;
}

.photo-strip figure {
  margin: 0;
}

blockquote.quote {
  margin: 0;
  padding: 0;
  text-align: left;
}

blockquote.quote p {
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 8px;
}

blockquote.quote cite {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}

@media (max-width: 760px) {
  .row-map,
  .row-photo {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }
}

