/* RockSolid Labs home */

:root {
  --red: #ED1C24;
  --red-dark: #B5121B;
  --ink: #333;
  --muted: #666;
  --faint: #777;
  --line: #ddd;
  --panel: #f8f8f8;
  --panel-line: #e7e7e7;
  --term: #111;
  --label: 'PT Sans', sans-serif;
  --display: 'Work Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }

.wrap {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Buttons */

.btn {
  display: flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid;
  font: 400 16px var(--display);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { border-color: var(--red); background: var(--red); color: #fff; }
.btn-primary:hover { border-color: var(--red-dark); background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: #000; }

/* Header + hero */

.site-header {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
}

/* Particles canvas sits behind the nav and hero */
#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#particles-js canvas { display: block; }

.topbar, .hero {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1170px;
  margin: 0 auto;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }

.topnav {
  display: flex;
  gap: 4px 28px;
  margin-left: auto;
  flex-wrap: wrap;
  font: 700 14px var(--label);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.topnav a { color: #999; text-decoration: none; transition: color .2s; }
.topnav a:hover, .topnav a.active { color: #fff; }

.hero {
  max-width: 1170px;
  margin: 0 auto;
  padding: 80px 30px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.15;
  font-weight: 500;
  color: #fff;
  text-wrap: balance;
}
.hero h1 a { color: var(--red); text-decoration: none; }
.hero-lede {
  margin: 0;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.6;
  color: #bbb;
  text-wrap: pretty;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Terminal card */

.term {
  background: var(--term);
  border: 1px solid #333;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  font: 400 13px/1.7 var(--mono);
  color: #ccc;
  min-width: 0;
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid #333;
  color: var(--faint);
  font-size: 12px;
}
.term-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #444; }
.term-bar .path { margin-left: 8px; }
.term-block {
  padding: 16px 18px;
  border-bottom: 1px solid #222;
  overflow-x: auto;
}
.term-block:last-child { border-bottom: 0; }

.c-dim { color: var(--faint); }
.c-red { color: var(--red); }
.c-warn { color: #f0ad4e; }

/* Sections */

.section { padding: 100px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}
.section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.section-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* Projects */

.projects .wrap { display: flex; flex-direction: column; gap: 48px; }

.card { border: 1px solid var(--line); border-radius: 6px; }

.card-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  overflow: hidden;
}

.project {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-head { display: flex; align-items: center; gap: 12px; }
.project-head svg { width: 40px; height: 40px; flex: none; display: block; }
.project-head h3 { margin: 0; font-size: 24px; font-weight: 500; color: var(--ink); }

.tag {
  margin-left: auto;
  font: 700 12px var(--label);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--faint);
}
.tag-pre {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fcf8e3;
  color: #8a6d3b;
}

.tagline {
  margin: 0;
  font: 300 26px/1.25 var(--display);
  letter-spacing: -.5px;
  color: #000;
}
.project-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.features {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.links {
  display: flex;
  gap: 20px;
  margin-top: auto;
  font: 700 14px var(--label);
  text-transform: uppercase;
}
.card-split .links { padding-top: 6px; }
.links a { text-decoration: none; }

.getstarted {
  background: var(--term);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font: 400 13px/1.8 var(--mono);
  color: #ccc;
  overflow-x: auto;
}
.getstarted .note { color: var(--faint); }
.getstarted .spaced { margin-top: 10px; }

.snippet {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  padding: 12px 14px;
  font: 400 13px/1.6 var(--mono);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-all;
}

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 30px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 30px;
  padding-top: 8px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 3px solid var(--red);
  padding-top: 16px;
}

.kicker {
  font: 700 13px var(--label);
  text-transform: uppercase;
  color: var(--red);
}
.flow-step .title { font-size: 18px; font-weight: 500; color: var(--ink); }
.flow-step .desc { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Services */

.services {
  background: var(--panel);
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}
.services .wrap { display: flex; flex-direction: column; gap: 40px; }
.services .section-head { gap: 12px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 30px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service h3 { margin: 0; font-size: 24px; font-weight: 500; color: var(--ink); }
.service p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Contact */

.contact { background: #fff; }
.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info img { height: 40px; width: auto; align-self: flex-start; }
.contact-info h3 {
  margin: 0;
  font: 300 30px var(--display);
  letter-spacing: -1px;
  color: #000;
}
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Footer */

.site-footer { background: #000; padding: 50px 0 40px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
}
.site-footer .wrap > img { height: 32px; width: auto; }
.footnav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-left: auto;
  font: 700 13px var(--label);
  text-transform: uppercase;
}
.footnav a { color: #999; text-decoration: none; transition: color .2s; }
.footnav a:hover { color: #fff; }
.copyright { margin: 0; width: 100%; font-size: 14px; color: var(--muted); }
.trademarks {
  margin: 0;
  width: 100%;
  max-width: 900px;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}
