:root {
  --bg: #242c38;
  --fg: #e9edf2;
  --muted: #b0bac8;
  --line: #414d5e;
  --link: #9bc9ef;
  --surface: #2d3745;
  --max: 720px;
  color-scheme: dark;
}
.project-year {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.8 Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
.wrap {
  max-width: var(--max);
  padding: 0 24px;
  margin: 0 0 0 40px;
}
header {
  padding: 37px 0 0;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  color: var(--fg);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.links {
  display: flex;
  gap: 23px;
  align-items: center;
}
.links a {
  font-size: 14px;
  color: var(--muted);
}
main {
  padding: 83px 0 70px;
}
h1 {
  font-size: 36px;
  letter-spacing: -0.055em;
  line-height: 1.2;
  margin: 0 0 27px;
  font-weight: 680;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
  margin: 66px 0 17px;
  font-weight: 650;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.025em;
  margin: 0;
}
p {
  margin: 0 0 18px;
}
.intro {
  font-size: 17px;
  line-height: 1.85;
}
.subtle {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.social {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 25px 0 0;
  font-size: 14px;
}
.section-intro {
  color: var(--muted);
  margin-bottom: 23px;
}
.item {
  padding: 19px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}
.item:last-child {
  border-bottom: 1px solid var(--line);
}
.item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 5px 0 0;
}
.tag {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
}
.item h3 a {
  border: 0;
  background: none;
  padding: 0;
  color: var(--fg);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.item h3 a:hover {
  color: var(--link);
}
.essay {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.essay:first-of-type {
  border-top: 1px solid var(--line);
}
.essay > a {
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.essay > a:hover {
  color: var(--link);
}
.essay span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.about {
  color: #ced6e0;
}
.footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.notice {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 15px;
  top: 10px;
  background: var(--surface);
  padding: 10px;
  z-index: 10;
}
@media (max-width: 600px) {
  header {
    padding-top: 24px;
  }
  .wrap {
    margin-left: 0;
    padding: 0 21px;
  }
  main {
    padding-top: 65px;
  }
  h1 {
    font-size: 31px;
  }
  .intro {
    font-size: 16px;
  }
  .links {
    gap: 13px;
  }
  .links a {
    font-size: 13px;
  }
  .item {
    grid-template-columns: 1fr;
  }
  .tag {
    padding: 0;
  }
  .essay {
    flex-direction: column;
    gap: 2px;
  }
  .footer {
    flex-direction: column;
  }
}

/* Individual project and research pages */
.project-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.project-page > p:not(.project-meta) {
  color: #ced6e0;
  font-size: 17px;
  line-height: 1.85;
}

/* Center the Mudolo page while keeping the portfolio left aligned. */
.centered-project .wrap {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Long-form project articles */
.article-body {
  color: #ced6e0;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: break-word;
}
.article-body p {
  margin: 0 0 22px;
}
.article-body h2 {
  color: var(--fg);
  font-size: 23px;
  line-height: 1.35;
  margin: 48px 0 18px;
}
.article-body strong {
  color: var(--fg);
  font-weight: 650;
}
.article-body > p:first-child {
  font-size: 19px;
  color: var(--fg);
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .article-body {
    font-size: 16px;
  }
  .article-body h2 {
    font-size: 21px;
    margin-top: 36px;
  }
}

/* Studios wordmark: the same Archivo face used by the local Studios site. */
@font-face {
  font-family: "Studios Archivo";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
}
.studios-wordmark {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 44px 0 60px;
}
.studios-wordmark h1 {
  margin: 0;
  font-family: "Studios Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(37px, 10vw, 112px);
  line-height: 0.84;
  letter-spacing: -0.07em;
  color: #ededed;
}

.article-body ul {
  padding-left: 24px;
  margin: 0 0 24px;
}
.article-body li {
  padding-left: 4px;
  margin-bottom: 10px;
}

.article-body .research-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* Warm serif typography, with softer spacing for larger headings. */
h1 { letter-spacing: -0.035em; font-weight: 500; }
h2, h3 { letter-spacing: -0.02em; }

/* Give the homepage introduction more breathing room. */
.portfolio-home main { padding-top: 83px; }
@media (max-width: 600px) {
  .portfolio-home main { padding-top: 65px; }
}
