/* The site's shared styles, copied from about.html so blog pages match. Blog additions at the end. */
:root {        
  --color-text: rgb(255 255 255);
  --color-text-secondary: rgb(143 160 183);
  --color-text-tertiary: rgb(243 217 57);
  --color-highlight: rgb(255 122 0);
  --color-link: rgb(112 211 77);
  --color-bg: rgb(13 20 44);
  
  --color-text: rgb(44 44 44);
  --color-text-secondary: rgb(50 84 52);
  --color-text-tertiary: rgb(240 130 82);
  --color-highlight: rgb(0 150 55);
  --color-link: var(--color-highlight);
  --color-bg: rgb(250 250 250);

  --gap-8: 0.5rem;
  --gap-12: 0.75rem;
  --gap-16: 1rem;
  --gap-24: 1.5rem;
  --gap-32: 2rem;
  --gap-48: 3rem;
  --gap-64: 4rem;
  --gap-96: 6rem;
  --gap-128: 8rem;
  --gap-192: 12rem;
  --gap-256: 16rem;
}

html {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0 var(--gap-16) 0 var(--gap-32);
  font-family: ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

p {
  margin: 0 0 var(--gap-24) 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  margin: var(--gap-32) 0 0;
  max-width: 60rem;
  
}

nav ul {
  display: flex;
  gap: var(--gap-24);
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--color-highlight);
  text-decoration: none;
}

nav a.active {
  color: var(--color-highlight);
}

header,
section {
  clear: both;
  margin: var(--gap-192) 0 0;
  max-width: 40rem;
  position: relative;
}

header h1 {
  color: var(--color-text);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 1rem 0;
}

header h1 span {
  background-color: hsl(121deg 100% 94%);
  display: inline-block;
  margin: 8px 0 0;
  padding: 0 4px;
}

header h2 {
  color: var(--color-text);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 24px 0 0;
}

.mo {
  display: flex;
  flex-flow: row;
  gap: 16px;
  margin: 32px 0;
  align-items: center;
  
}

.mo-image {
  display: flex;
}

.mo-content {
  display: flex;
}

.mo img {
  border-radius: 100%;
  width: 4.5em;
}

.mo p {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0;
}

.mo p span {
  color: var(--color-text-secondary);
  opacity: .75;
}

section {
  margin: var(--gap-48) 0 0;
}

section p, section li {
  color: var(--color-text);
  line-height: 1.65;
  font-weight: 500;
}

section h1 {
  background-color: hsl(121deg 100% 94%);
  color: var(--color-text-secondary);
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 var(--gap-24) -4px;
  padding: 2px 4px;
}

section h2 {
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 24px 0 0;
}

section h3 {
  color: var(--color-highlight);
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

@media (min-width: 1000px) {
  body {
    padding-left: var(--gap-64);
  }
}

ul,
li {
  list-style-type: none;
}

.contact {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: visible;
  padding: 0;
}

.contact li {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-right: var(--gap-24);
  margin-bottom: 4px;
  overflow: hidden;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact li svg {
  width: 20px;
  height: 20px;
}

.list {
  padding: 0;
  margin: 0 0 var(--gap-64) 0;
}

.list li {
  color: var(--color-text);
  padding: 0.5rem 0;
  line-height: 1.625rem;
}

.list .job-title {
  background-color: hsl(121deg 100% 94%);
  color: var(--color-text-secondary);
  display: inline-block;
}

.list .job-location {
  color: var(--color-text-secondary);
}

.list .job-date {
  color: var(--color-text-secondary);
  display: block;
  font-size: 0.875rem;
}

.highlight {
  background-color: hsl(220deg 48% 36%);
  background-color: hsl(121deg 100% 94%);
  color: var(--color-text-secondary);
  padding: 2px 4px;
}

span.highlight {
  padding: 0;
}
/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    margin: 0 var(--gap-16) 0 var(--gap-16);
  }

  nav {
    flex-direction: column;
    gap: var(--gap-8);
  }

  nav ul {
    gap: var(--gap-16);
  }

  header,
  section {
    margin-top: var(--gap-96);
  }

  section#services {
    margin: var(--gap-96) 0;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header h2 {
    font-size: 1.25rem;
  }

  header h2 br {
    display: none;
  }

  section h1 {
    font-size: 2.25rem;
  }

  .row {
    flex-direction: column;
    gap: var(--gap-48);
  }

  .jump-button {
    padding: 14px 20px;
  }
}

/* BLOG */
.post-date {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

header .post-date {
  display: block;
  margin-top: var(--gap-8);
}

.post-list {
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: var(--gap-16) 0;
}

.post-list a {
  font-size: 1.25rem;
  font-weight: 600;
}

.post-list p {
  margin: var(--gap-8) 0 0;
}

/* Post text: lists, quotes and code read like an article. */
.post ul li { list-style-type: disc; }
.post ol li { list-style-type: decimal; }
.post ul, .post ol { padding-left: var(--gap-24); margin: 0 0 var(--gap-24); }
.post li { margin-bottom: var(--gap-8); }

.post blockquote {
  border-left: 3px solid var(--color-highlight);
  margin: 0 0 var(--gap-24);
  padding-left: var(--gap-16);
}

.post code {
  background: rgb(0 0 0 / 0.05);
  border-radius: 4px;
  font-size: 0.9em;
  padding: 1px 4px;
}

.post pre {
  background: rgb(0 0 0 / 0.05);
  border-radius: 8px;
  overflow-x: auto;
  padding: var(--gap-16);
  margin: 0 0 var(--gap-24);
}

.post pre code {
  background: none;
  padding: 0;
}

.post img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post a {
  text-decoration: underline;
}

.back {
  display: inline-block;
  margin-top: var(--gap-48);
}
