:root {
  --bg: #080a0d;

  --panel: #101419;
  --panel-2: #13181d;
  --panel-3: #171c21;

  --border: #252c33;
  --border-light: #343d46;

  --text: #d8dde3;
  --text-soft: #a2aab3;
  --muted: #68717b;

  --green: #61b15a;
  --green-soft: #8ac783;

  --blue: #4e91c9;
  --orange: #c46a4a;
  --red: #b65353;

  --max-width: 1220px;
  --sidebar: 205px;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 17px;
  line-height: 1.55;

  -webkit-font-smoothing: antialiased;
}


body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: .025;

  background-image:
    linear-gradient(
      rgba(255,255,255,.5) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.5) 1px,
      transparent 1px
    );

  background-size: 32px 32px;
}


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


.site {
  width: min(
    calc(100% - 48px),
    var(--max-width)
  );

  margin: 0 auto;
}


/* TOPBAR */

.topbar {
  position: fixed;

  top: 0;
  left: 50%;

  transform: translateX(-50%);

  width: min(
    calc(100% - 48px),
    var(--max-width)
  );

  height: 72px;

  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--border);

  background: rgba(8,10,13,.94);

  backdrop-filter: blur(12px);
}


.logo {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 22px;
  font-weight: 700;

  letter-spacing: -.6px;
}


.logo span {
  color: var(--green);
}


.topbar-right {
  display: flex;
  align-items: center;

  gap: 25px;

  color: var(--muted);

  font-family: monospace;
  font-size: 13px;
}


.status {
  display: flex;
  align-items: center;

  gap: 8px;
}


.status i {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 10px rgba(97,177,90,.7);
}


/* LAYOUT */

.layout {
  display: grid;

  grid-template-columns:
    var(--sidebar)
    1fr;

  min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
  position: fixed;

  top: 72px;

  width: var(--sidebar);

  height: calc(100vh - 72px);

  padding: 32px 25px 25px 0;

  border-right: 1px solid var(--border);

  display: flex;
  flex-direction: column;

  background: var(--bg);

  z-index: 90;
}


.side-label,
.eyebrow {
  color: var(--muted);

  font-family: monospace;

  font-size: 12px;

  letter-spacing: .12em;

  text-transform: uppercase;
}


.sidebar nav {
  display: flex;
  flex-direction: column;

  gap: 4px;

  margin-top: 19px;
}


.sidebar nav a {
  display: block;

  padding: 11px 12px;

  margin-left: -12px;

  border: 1px solid transparent;

  color: var(--text-soft);

  font-family: monospace;

  font-size: 15px;

  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease;
}


.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--text);

  background: var(--panel);

  border-color: var(--border);
}


.sidebar nav a.active {
  color: var(--green-soft);
}


.sidebar-bottom {
  margin-top: auto;
}


.mini-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;

  margin-top: 15px;
}


.mini-tags span {
  padding: 5px 8px;

  border: 1px solid var(--border);

  background: var(--panel);

  color: var(--text-soft);

  font-family: monospace;

  font-size: 11px;
}


.copyright {
  margin-top: 28px;

  color: var(--muted);

  font-family: monospace;

  font-size: 11px;
}


/* CONTENT */

.content {
  min-width: 0;

  grid-column: 2;

  padding:
    102px
    0
    45px
    38px;
}


.hero {
  max-width: 950px;
}


.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 18px;
}


h1 {
  margin: 6px 0 0;

  font-family: monospace;

  font-size:
    clamp(
      34px,
      4vw,
      46px
    );

  line-height: 1;

  letter-spacing: -2px;
}


.accent {
  color: var(--green);

  animation:
    blink 1s steps(1) infinite;
}


.terminal-id {
  color: var(--muted);

  font-family: monospace;

  font-size: 12px;
}


/* TERMINAL */

.terminal {
  overflow: hidden;

  border: 1px solid var(--border-light);

  background: #090c0f;

  box-shadow:
    0 18px 50px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.025);
}


.terminal-bar {
  height: 41px;

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  padding: 0 14px;

  border-bottom: 1px solid var(--border);

  background: #0e1216;

  color: var(--muted);

  font-family: monospace;

  font-size: 12px;
}


.terminal-dots {
  display: flex;

  gap: 5px;
}


.terminal-dots i {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #3b4249;
}


.terminal-live {
  justify-self: end;

  color: var(--green);
}


.terminal-body {
  min-height: 300px;

  padding:
    23px
    25px
    26px;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 15px;

  line-height: 1.9;
}


.terminal-line {
  white-space: nowrap;
}


.terminal-line.output {
  padding-left: 18px;
}


.prompt {
  color: var(--green);
}


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


.green {
  color: var(--green-soft);
}


.orange {
  color: var(--orange);
}


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


.progress-wrap {
  display: flex;
  align-items: center;

  gap: 12px;

  max-width: 520px;

  margin:
    9px
    0
    10px
    18px;
}


.progress {
  flex: 1;

  height: 7px;

  overflow: hidden;

  background: #1c2228;
}


.progress div {
  width: 0%;

  height: 100%;

  background: var(--green);

  transition: width .7s ease;
}


#progressValue {
  width: 36px;

  color: var(--muted);

  font-size: 12px;
}


.cursor {
  display: inline-block;

  width: 7px;
  height: 16px;

  margin-left: 2px;

  vertical-align: -2px;

  background: var(--green);

  animation:
    blink .8s steps(1) infinite;
}


/* INTRO */

.intro {
  display: grid;

  grid-template-columns:
    1fr
    255px;

  gap: 35px;

  padding:
    28px
    0
    17px;
}


.intro-main p {
  max-width: 670px;

  margin:
    7px
    0
    0;

  color: var(--text);

  font-size: 20px;

  line-height: 1.55;

  letter-spacing: -.2px;
}


.intro-meta {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  align-content: start;

  gap: 18px;
}


.intro-meta div {
  padding-left: 12px;

  border-left: 1px solid var(--border);
}


.intro-meta span {
  display: block;

  color: var(--muted);

  font-family: monospace;

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: .08em;
}


.intro-meta strong {
  display: block;

  margin-top: 3px;

  font-family: monospace;

  font-size: 14px;

  font-weight: 500;
}


.tags {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}


.tag {
  padding:
    6px
    11px;

  border: 1px solid var(--border);

  background: var(--panel);

  color: var(--text-soft);

  font-family: monospace;

  font-size: 13px;
}


.green-tag {
  color: var(--green-soft);

  border-color:
    rgba(97,177,90,.3);
}


.blue-tag {
  color: #7bb0d8;

  border-color:
    rgba(78,145,201,.3);
}


.orange-tag {
  color: #d78a6e;

  border-color:
    rgba(196,106,74,.3);
}


/* SECTIONS */

.section {
  max-width: 950px;

  margin-top: 56px;
}


.projects-section {
  margin-top: 64px;
}


.section-title {
  display: flex;
  align-items: center;

  gap: 13px;

  margin-bottom: 16px;
}


.section-title .line {
  flex: 1;

  height: 1px;

  background: var(--border);
}


.section-note {
  color: var(--muted);

  font-family: monospace;

  font-size: 11px;
}


/* PROJECTS */

.project-list {
  border-top: 1px solid var(--border);
}


.project {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    170px
    25px;

  align-items: center;

  gap: 20px;

  min-height: 100px;

  padding:
    17px
    15px;

  border:
    1px solid transparent;

  border-bottom-color: var(--border);

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}


.project:hover {
  background: var(--panel);

  border-color: var(--border-light);

  transform:
    translateX(3px);
}


.project-info h2 {
  margin: 0;

  font-family: monospace;

  font-size: 20px;

  font-weight: 500;

  letter-spacing: -.3px;
}


.project-info p {
  margin: 5px 0 0;

  color: var(--text-soft);

  font-size: 14px;
}


.project-status {
  display: flex;
  align-items: center;

  color: var(--text);

  font-family: monospace;

  font-size: 13px;

  font-weight: 600;

  letter-spacing: .04em;
}


.project-status i {
  width: 8px;
  height: 8px;

  margin-right: 9px;

  flex: 0 0 auto;

  border-radius: 50%;
}


.status-active {
  color: var(--green-soft);
}


.status-active i {
  background: var(--green);

  box-shadow:
    0 0 9px
    rgba(97,177,90,.5);
}


.status-development {
  color: #d78a6e;
}


.status-development i {
  background: var(--orange);
}


.status-testing {
  color: #7bb0d8;
}


.status-testing i {
  background: var(--blue);
}


.status-planned {
  color: var(--text-soft);
}


.status-planned i {
  background: var(--muted);
}


.arrow {
  color: var(--muted);

  font-size: 20px;

  transition:
    color .2s ease,
    transform .2s ease;
}


.project:hover .arrow {
  color: var(--green);

  transform:
    translate(
      2px,
      -2px
    );
}


/* BUILD LOG */

.build-list {
  border-top: 1px solid var(--border);
}


.build-item {
  display: grid;

  grid-template-columns:
    90px
    minmax(0, 1fr)
    25px;

  gap: 20px;

  padding:
    20px
    14px;

  border-bottom: 1px solid var(--border);

  transition:
    background .2s ease,
    border-color .2s ease,
    padding .2s ease;
}


.build-item:hover {
  padding-left: 19px;

  background: var(--panel);

  border-color: var(--border-light);
}


.build-date {
  padding-top: 3px;

  color: var(--muted);

  font-family: monospace;

  font-size: 12px;
}


.build-type {
  margin-bottom: 5px;

  color: var(--green);

  font-family: monospace;

  font-size: 11px;

  letter-spacing: .08em;
}


.build-main h2 {
  margin: 0;

  font-size: 18px;

  line-height: 1.35;
}


.build-main p {
  max-width: 700px;

  margin: 6px 0 0;

  color: var(--text-soft);

  font-size: 14px;

  line-height: 1.6;
}


.build-arrow {
  align-self: center;

  color: var(--muted);

  font-size: 22px;

  transition:
    color .2s ease,
    transform .2s ease;
}


.build-item:hover .build-arrow {
  color: var(--green);

  transform:
    translateX(3px);
}


/* TOOLS */

.tools-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 8px;
}


.tools-grid a {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding:
    15px
    16px;

  border: 1px solid var(--border);

  background: var(--panel);

  color: var(--text);

  font-family: monospace;

  font-size: 14px;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease;
}


.tools-grid a b {
  color: var(--muted);

  font-size: 10px;

  font-weight: 400;
}


.tools-grid a:hover {
  color: var(--green-soft);

  background: var(--panel-2);

  border-color: var(--border-light);
}


/* ARTICLE / DETAIL PAGES */

.article {
  max-width: 800px;
}


.article-header {
  padding-bottom: 25px;

  border-bottom: 1px solid var(--border);
}


.article-meta {
  display: flex;
  align-items: center;

  gap: 15px;

  margin-bottom: 13px;

  color: var(--muted);

  font-family: monospace;

  font-size: 11px;
}


.article-type {
  color: var(--green);
}


.article h1 {
  max-width: 760px;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;

  font-size:
    clamp(
      30px,
      4vw,
      42px
    );

  line-height: 1.15;

  letter-spacing: -.8px;
}


.article-lead {
  max-width: 700px;

  margin-top: 18px;

  color: var(--text-soft);

  font-size: 18px;

  line-height: 1.65;
}


.article-body {
  padding-top: 28px;
}


.article-body h2 {
  margin:
    35px
    0
    10px;

  font-size: 21px;
}


.article-body p {
  margin:
    0
    0
    18px;

  color: #c2c8ce;

  font-size: 16px;

  line-height: 1.8;
}


.article-body ul {
  margin:
    10px
    0
    22px;

  padding-left: 23px;

  color: #c2c8ce;
}


.article-body li {
  margin-bottom: 7px;
}


.code-block {
  overflow-x: auto;

  margin:
    25px
    0;

  padding: 18px;

  border: 1px solid var(--border);

  background: #090c0f;

  color: #b8c0c8;

  font-family: monospace;

  font-size: 13px;

  line-height: 1.7;
}


.article-nav {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 10px;

  margin-top: 50px;

  padding-top: 20px;

  border-top: 1px solid var(--border);
}


.article-nav a {
  padding: 15px;

  border: 1px solid var(--border);

  background: var(--panel);

  transition:
    border-color .2s ease,
    background .2s ease;
}


.article-nav a:hover {
  background: var(--panel-2);

  border-color: var(--border-light);
}


.article-nav .next {
  text-align: right;
}


.nav-label {
  display: block;

  margin-bottom: 5px;

  color: var(--muted);

  font-family: monospace;

  font-size: 10px;

  text-transform: uppercase;
}


.nav-title {
  font-size: 13px;
}


/* FOOTER */

footer {
  display: flex;

  justify-content: space-between;

  max-width: 950px;

  margin-top: 60px;

  padding-top: 17px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-family: monospace;

  font-size: 10px;
}


/* ANIMATION */

@keyframes blink {

  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }

}


/* TABLET */

@media (max-width: 900px) {

  :root {
    --sidebar: 175px;
  }


  .site {
    width:
      min(
        calc(100% - 30px),
        var(--max-width)
      );
  }


  .topbar {
    width:
      min(
        calc(100% - 30px),
        var(--max-width)
      );
  }


  .sidebar {
    padding-right: 15px;
  }


  .sidebar nav a {
    margin-left: -6px;
  }


  .content {
    padding-left: 25px;
  }


  .intro {
    grid-template-columns: 1fr;

    gap: 22px;
  }


  .tools-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }


  .project {
    grid-template-columns:
      minmax(0, 1fr)
      145px
      20px;
  }

}


/* MOBILE */

@media (max-width: 620px) {

  body {
    font-size: 15px;
  }


  .site {
    width:
      calc(100% - 22px);
  }


  .topbar {
    width:
      calc(100% - 22px);

    height: 62px;
  }


  .topbar-right {
    gap: 0;
  }


  .clock {
    display: none;
  }


  .layout {
    display: block;
  }


  .sidebar {
    position: fixed;

    top: 62px;
    left: 0;

    width: 100%;

    height: auto;

    padding:
      8px
      11px;

    border-right: 0;

    border-bottom: 1px solid var(--border);

    background:
      rgba(8,10,13,.96);

    backdrop-filter: blur(12px);
  }


  .sidebar .side-label,
  .sidebar-bottom {
    display: none;
  }


  .sidebar nav {
    flex-direction: row;

    gap: 4px;

    margin: 0;
  }


  .sidebar nav a {
    flex: 1;

    display: block;

    margin: 0;

    padding:
      9px
      4px;

    text-align: center;

    font-size: 12px;
  }


  .content {
    padding:
      130px
      0
      45px;
  }


  .section-heading {
    align-items: flex-start;
  }


  .terminal-id {
    display: none;
  }


  h1 {
    font-size: 32px;
  }


  .terminal-body {
    min-height: 285px;

    padding:
      17px
      14px;

    font-size: 12px;

    line-height: 1.8;
  }


  .terminal-line {
    white-space: normal;
  }


  .terminal-line.output {
    padding-left: 0;
  }


  .progress-wrap {
    margin-left: 0;
  }


  .intro {
    padding-top: 25px;
  }


  .intro-main p {
    font-size: 18px;
  }


  .section {
    margin-top: 48px;
  }


  .projects-section {
    margin-top: 52px;
  }


  .section-title {
    gap: 9px;
  }


  .section-note {
    display: none;
  }


  .project {
    grid-template-columns:
      minmax(0, 1fr)
      20px;

    gap: 8px;

    min-height: 92px;

    padding:
      15px
      10px;
  }


  .project-info h2 {
    font-size: 18px;
  }


  .project-info p {
    font-size: 13px;
  }


  .project-status {
    grid-column: 1 / -1;

    grid-row: 2;

    font-size: 12px;
  }


  .arrow {
    grid-column: 2;
    grid-row: 1;

    align-self: start;
  }


  .build-item {
    grid-template-columns:
      1fr
      22px;

    gap: 5px;

    padding:
      17px
      10px;
  }


  .build-date {
    grid-column: 1 / -1;

    padding: 0;
  }


  .build-main h2 {
    font-size: 17px;
  }


  .build-main p {
    font-size: 13px;
  }


  .build-arrow {
    grid-column: 2;
    grid-row: 2;

    align-self: center;
  }


  .tools-grid {
    grid-template-columns: 1fr;
  }


  .article h1 {
    font-size: 30px;
  }


  .article-lead {
    font-size: 16px;
  }


  .article-nav {
    grid-template-columns: 1fr;
  }


  .article-nav .next {
    text-align: left;
  }


  footer {
    flex-direction: column;

    gap: 5px;
  }

}