:root {
  --bg: #050505;
  --fg: #e6e6e6;
  --muted: #8e9696;
  --cyan: #00ced1;
  --blue: #1323ec;
  --green: #0dbf5b;
  --ongoing: #a3e635;
  --yellow: #f4d515;
  --cream: #efec83;
  --magenta: #f843dc;
  --red: #f80e1b;
  --oxide: #8fb79c;
  --rule: #343434;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
}

a,
a:visited {
  color: var(--cyan);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--fg);
  text-decoration: none;
}

main {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 96px;
}

.path {
  margin: 0 0 68px;
  color: var(--fg);
}

.path a,
.path a:visited { color: var(--cyan); }
.path a:hover,
.path a:focus-visible { color: var(--fg); }
.path-projects { color: var(--blue); }
.path-index { color: var(--red); }

h1 {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: clamp(25px, 4vw, 39px);
  font-weight: 500;
  letter-spacing: 0;
}

.meta {
  margin: 0 0 48px;
}

.key { color: var(--yellow); }
.status { color: var(--green); }
.status-ongoing { color: var(--ongoing); }

.loop {
  display: block;
  width: min(760px, 100%);
  height: auto;
  margin: 0 0 60px;
  background: #050505;
}

.copy {
  max-width: 735px;
  margin: 0 0 82px;
}

.copy p {
  margin: 0 0 21px;
}

.files-heading {
  margin: 0 0 34px;
  color: var(--magenta);
  font-weight: 400;
}

.artifact,
.moving-fragment {
  margin: 0 0 82px;
}

.artifact {
  max-width: 900px;
}

.artifact img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.index {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.moving-fragment {
  max-width: 760px;
}

.moving-fragment video {
  display: block;
  width: 100%;
  height: auto;
  background: #050505;
}

.footer {
  margin-top: 110px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.footer .back {
  display: inline-block;
  margin-bottom: 30px;
}

@media (max-width: 620px) {
  body { font-size: 14px; }

  main {
    width: calc(100% - 24px);
    padding-top: 18px;
    padding-bottom: 72px;
  }

  .path { margin-bottom: 48px; }
  .meta { margin-bottom: 36px; }
  .loop { margin-bottom: 46px; }
  .copy { margin-bottom: 62px; }
  .artifact,
  .moving-fragment { margin-bottom: 60px; }
  .footer { margin-top: 82px; }

  .meta span { white-space: normal; }
}

/* ---------- HOME ---------- */

.home {
  width: min(1120px, calc(100% - 36px));
  min-height: 100vh;
  padding-top: 68px;
}

.home-header {
  margin-bottom: 92px;
}

.home-title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.home-location {
  color: var(--muted);
}

.pirate {
  max-width: 650px;
  margin: 0 0 105px;
  color: var(--magenta);
}

.projects-heading {
  margin: 0 0 34px;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 400;
}

.project-list {
  width: 100%;
  margin: 0 0 112px;
}

.project-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  color: var(--fg);
}

.project-name,
a.project-name:visited {
  flex: 0 0 auto;
  color: var(--cyan);
}

a.project-name:hover,
a.project-name:focus-visible {
  color: var(--fg);
  text-decoration: none;
}

.leader {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  color: var(--fg);
  min-width: 26px;
}

.project-status {
  flex: 0 0 auto;
  color: var(--fg);
}

.project-status .development,
.project-status .completed {
  color: var(--green);
}

.project-status .ongoing {
  color: var(--ongoing);
}

.statement {
  max-width: 820px;
  margin: 0 0 88px;
  color: var(--cream);
}

.contact-heading {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 16px;
  font-weight: 400;
}

.contact-block {
  margin-bottom: 28px;
}

.contact-block a,
.contact-block a:visited {
  color: var(--blue);
}

.contact-block a:hover,
.contact-block a:focus-visible {
  color: var(--fg);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
}

.contact-block .social-link,
.contact-block .social-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #f843dc;
}

.contact-block .social-link:hover,
.contact-block .social-link:focus-visible {
  color: var(--fg);
}

.social-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.home-address {
  color: var(--muted);
  margin-top: 30px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .home {
    width: calc(100% - 24px);
    padding-top: 28px;
  }

  .home-header {
    margin-bottom: 68px;
  }

  .pirate {
    margin-bottom: 78px;
  }

  .project-list {
    margin-bottom: 84px;
  }

  .project-row {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    margin-bottom: 18px;
    min-height: 0;
  }

  .leader {
    align-self: baseline;
  }

  .project-status {
    grid-column: 1 / -1;
    color: var(--muted);
    padding-left: 0;
  }

  .statement {
    margin-bottom: 66px;
  }
}

/* ---------- PROJECT PAGE EXTENSIONS ---------- */
.hash-hero,
.mullah-hero {
  margin-bottom: 62px;
}

.support {
  max-width: 760px;
  margin: 96px 0 0;
  line-height: 1.75;
}

.support-heading {
  color: var(--magenta);
  margin-bottom: 16px;
}

.support-item {
  color: var(--blue);
}

.collab {
  margin: -20px 0 86px;
  color: var(--muted);
}

@media (max-width: 620px) {
  .support { margin-top: 70px; }
  .collab { margin-bottom: 64px; }
}

.hero-fragment {
  max-width: 760px;
  margin-bottom: 62px;
}

/* ---------- THE REPUBLIC OF T.M. ---------- */
.republic-hero {
  margin-bottom: 62px;
}

.collections {
  margin: 76px 0 0;
  line-height: 1.75;
}

.collections-heading {
  color: var(--magenta);
  margin-bottom: 10px;
}

.collection-item {
  color: var(--blue);
}

.watch-link {
  margin: 38px 0 0;
}

.watch-link a,
.watch-link a:visited {
  color: var(--red);
}

.watch-link a:hover,
.watch-link a:focus-visible {
  color: var(--fg);
}

em {
  font-style: normal;
}
