@font-face {
  font-family: "Inter Variable";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter Variable";
  src: url("fonts/inter-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: block;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html, body {
  height: 100%;
}

body {
  color: white;
  background-color: var(--bg, #1470af);
  font-family: "Inter Variable", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

nav, ul, li {
  list-style: none;
}

/* Top corner: name only, plain identity text */
#top {
  position: absolute;
  top: 30px;
  left: 50px;
}

#name {
  font-weight: 700;
  font-size: 22px;
}

/* Bottom corner: small, quiet contact link */
#footer {
  position: absolute;
  bottom: 30px;
  left: 50px;
}

#footer a {
  font-size: 14px;
}

/* Layout: nav column + content column */
#layout {
  display: flex;
  min-height: 100vh;
  padding-top: 120px;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 50px;
}

/* Nav list, shared across all pages */
#nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#nav a,
#nav span.current {
  font-weight: 700;
  font-size: 64px;
  line-height: 1.05;
  text-decoration: none;
}

#nav a {
  display: inline-block;
  text-underline-offset: 6px;
}

#nav a:hover {
  text-decoration: underline;
}

#nav span.current {
  opacity: 0.4;
}

/* Nav column: fixed width so content starts at the same x on every page,
   regardless of how long that page's current word is. */
#nav {
  flex: 0 0 300px;
  width: 300px;
  min-width: 0;
  overflow-x: hidden;
  padding-right: 60px;
}

#nav a,
#nav span.current {
  max-width: 100%;
}

#content {
  flex: 1 1 auto;
  padding-top: 10px;
}

.section p {
  font-size: 17px;
  font-weight: 450;
  line-height: 1.55;
  margin: 0 0 16px 0;
}

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

.sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 60ch;
}

.section h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.section h2 a {
  text-decoration: none;
}

.section p a {
  text-decoration: underline;
}

.bg-photo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 700px) {
  #top {
    left: 24px;
  }

  #footer {
    left: 24px;
    bottom: 20px;
  }

  #layout {
    flex-direction: column;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 110px;
  }

  #nav a,
  #nav span.current {
    font-size: 56px;
  }

  #nav {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .link-list a {
    font-size: 26px;
  }
}
