:root {
  --primary-color: #0f6b52;
  --secondary-color: #55595c;
  --page-width: 64em;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #0e1414;
    --font-color: #e6e6e6;
    --invert-font-color: #0e1414;
    --secondary-color: #9aa0a3;
    --primary-color: #3ddc97;
    --code-bg-color: #182020;
  }
}

.brand {
  color: var(--font-color);
  font-weight: 600;
}

.brand:hover {
  color: var(--invert-font-color);
}

.btn-small {
  padding: 0.4em 0.8em;
  font-size: 0.85em;
}

/* Hero */
.hero {
  margin-top: calc(var(--global-space) * 3);
}

.hero .terminal-card > div:first-of-type {
  padding: calc(var(--global-space) * 3);
}

.hero-body {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--global-space) * 3);
  align-items: flex-start;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  flex: 0 0 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--secondary-color);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  flex: 1 1 320px;
  min-width: 0;
}

.hero-text h1 {
  margin-bottom: 0.1em;
}

.hero-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.2em;
}

.hero-location {
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 1em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 1em;
}

/* Sections */
main.container {
  margin-top: calc(var(--global-space) * 2);
}

section {
  margin-bottom: calc(var(--global-space) * 5);
}

.section-heading {
  margin-bottom: calc(var(--global-space) * 2);
}

/* Grids */
.grid {
  display: grid;
  gap: calc(var(--global-space) * 2);
}

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

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

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

@media screen and (max-width: 800px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

.pillar-card p {
  margin: 0;
}

/* Timeline / cards */
.job-meta {
  color: var(--secondary-color);
  font-size: 0.9em;
  margin-bottom: 0.75em;
}

.terminal-card ul {
  margin-top: 0;
  margin-bottom: 0;
}

/* Projects */
.project-card p:last-child {
  margin-bottom: 0;
}

.project-card header a {
  text-decoration: none;
}

.project-card header a::before {
  content: "\2192\00a0";
  color: var(--secondary-color);
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.badge {
  display: inline-block;
  border: 1px solid var(--secondary-color);
  color: var(--font-color);
  padding: 0.25em 0.6em;
  font-size: 0.85em;
}

/* Footer */
.site-footer {
  text-align: center;
  margin-bottom: calc(var(--global-space) * 4);
}

.footer-note {
  color: var(--secondary-color);
  font-size: 0.85em;
}
