:root {
  --bg: #171717;
  --fg: #f1f0ea;
  --muted: #8e9696;
  --cyan: #16c7d7;
  --green: #48e25b;
  --yellow: #ffd34e;
  --magenta: #ff35d3;
  --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 {
  color: var(--cyan);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

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

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); }

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

.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: 616px;
}

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

.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; }

  /* Preserve the terminal rhythm without forcing long lines off-screen. */
  .meta span { white-space: normal; }
}


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

.home {
  min-height: 100vh;
}

.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;
}

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

.project-list {
  max-width: 860px;
  margin: 0 0 112px;
}

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

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

a.project-name:hover,
a.project-name:focus-visible {
  color: var(--cyan);
  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 {
  color: var(--green);
}

.statement {
  max-width: 690px;
  margin: 0 0 88px;
}

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

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

.home-footer {
  color: var(--muted);
  margin-top: 82px;
}

@media (max-width: 720px) {
  .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;
  }

  .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(--yellow);
  margin-bottom: 16px;
}

.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;
}

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

.watch-link a {
  color: var(--cyan);
}

em {
  font-style: normal;
}
