:root {
  --brand: rgb(0, 0, 0);
  --darkgray: #333;
  --base-bg: #f8f8f8;
  --font-fallback: -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-sans: 'Inter', var(--font-fallback);
  --font-serif: 'Lora', 'Source Serif Pro', Garamond, Georgia, serif;
  --font-display: 'Gloock', 'Vidaloka', 'DM Serif Text', var(--font-serif);
  --font-mono: 'Menlo', monospace;
  --max-width: 750px;
}
* {
  box-sizing: border-box;
}
html,
body {
  padding: 0;
  margin: 0;
  font-family: var(--font-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: var(--darkgray);
  background-color: var(--base-bg);
  font-size: 16px;
  scroll-behavior: smooth;
}
@media (min-width: 960px) {
  body { font-size: 18px; }
}
@media (min-width: 1200px) {
  body { font-size: 20px; }
  :root { --max-width: 960px; }
}
@media (min-width: 1400px) {
  body { font-size: 22px; }
  :root { --max-width: 1200px; }
}

h1 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-base);
}
h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-bold);
}

p:last-child {
  margin-bottom: 0;
}

:root {
  --red: #C5004A;
  --darkred: #7F0036;
  --lightgray: #e0e0e0;
  --gray: #C0C0C0;
  --navy: #17050F;
  --blue: #082840;
  --black: #000;
  --dark-grey: #555555;
  --white: #fafafa;
  --hero-bg: #f3f3f3;
  --footer-bg: #efefef;
  --social-icon-hover: hsla(0, 0%, 40%, 0.1);
  --font-weight-base: 400;
  --font-weight-bold: 700;
  --mobile-margin-top-gap: 1rem;
}

main {
  margin: 0 auto;
  max-width: var(--max-width);
}
p,
main li {
  line-height: 1.45;
}
strong {
  font-weight: var(--font-weight-bold);
}
a[href] {
  color: var(--dark-grey);
}
a[href]:hover {
  color: var(--black);
}
a[href]:visited {
  color: var(--dark-grey);
}
main {
  padding: 6rem 1.5rem;
}
main :first-child {
  margin-top: 0;
}
article img {
  width: 100%;
}
article pre {
  border-radius: 6px;
}
article pre code,
article p code {
  font-size: 1rem;
  color: var(--red);
}
table {
  margin: 1em 0;
}
table td,
table th {
  padding-right: 1em;
}
blockquote {
  border-left: 4px solid var(--lightgray);
  margin: 0 0 1rem;
  padding: 0 10px;
}

/* Nav */
nav {
  display: inline-block;
}
nav ul {
  padding: 0;
  list-style: none;
  color: #3f3f3f;
}
nav ul > li {
  display: inline-block;
}
nav ul > li:not(:last-child) {
  margin-right: 20px;
}
nav ul > li a[href]:not(:hover) {
  text-decoration: none;
}
.nav-item-active {
  color: #000;
  text-decoration: underline;
}
.top-nav.not-home .geo-line,
.top-nav.not-home .remote-note,
.hero-nav.top-nav .social-icons {
  display: none;
}
ul.social-icons {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.social-icons > li {
  padding: 0;
  height: 60px;
  width: 60px;
  border-radius: 100%;
  float: left;
}
ul.social-icons > li:not(:last-child) {
  margin-right: 8px;
}
@media (min-width: 960px) {
  .geo-line {
    width: 100%;
    max-width: 100px;
    margin: 0 20px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
  }
  .hero-nav.top-nav .geo-line {
    max-width: 150px;
  }
  ul.social-icons > li {
    margin-right: 20px;
  }
}
ul.social-icons > li > a {
  border-radius: 100%;
  height: 60px;
  width: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
}
ul.social-icons > li > a:hover {
  background-color: var(--social-icon-hover);
}
svg.social-icon {
  stroke: var(--brand);
  stroke-width: 1.5px;
}
.remote-note {
  display: none;
}
@media (min-width: 1200px) {
  .remote-note {
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-size: 1.1rem;
    font-family: var(--font-serif);
  }
  .remote-note svg {
    height: 14px;
    width: 14px;
    margin-right: 10px;
  }
}

/* Posts list */
.postlist {
  list-style: none;
  padding: 0;
}
.postlist-date {
  font-size: 0.8125em; /* 13px /16 */
  color: var(--darkgray);
}
.postlist-date {
  word-spacing: -0.5px;
}
.postlist-link {
  display: inline-block;
  padding: 0.25em 0.1875em; /* 4px 3px /16 */
}
.postlist-item-active .postlist-link {
  font-weight: var(--font-weight-bold);
}
main .postlist-link {
  /* font-size: 1.25rem; 19px /16 */
  font-weight: var(--font-weight-bold);
}

/* Tags */
.post-tag {
  font-family: var(--font-sans);
  display: inline-block;
  vertical-align: text-top;
  text-transform: uppercase;
  font-size: 0.6em; /* 10px /16 */
  letter-spacing: .5px;
  padding: 3px 6px;
  margin-left: 0.8em; /* 8px /10 */
  background-color: #444;
  color: #eee;
  border-radius: 6px; /* 3px /12 */
  text-decoration: none;
}
.post-tag:hover {
  background-color: #222;
}
a[href].post-tag,
a[href].post-tag:visited {
  color: #eee;
}

/* Warning */
.warning {
  background-color: #ffc;
  padding: 1em 0.625em; /* 16px 10px /16 */
}
.warning ol:only-child {
  margin: 0;
}

/* Direct Links / Markdown Headers */
.direct-link {
  font-family: var(--font-sans);
  text-decoration: none;
  font-style: normal;
  margin-left: .1em;
}
a[href].direct-link,
a[href].direct-link:visited {
  color: transparent;
}
a[href].direct-link:focus,
a[href].direct-link:focus:visited,
:hover > a[href].direct-link,
:hover > a[href].direct-link:visited {
  color: #aaa;
}
.hero {
  clear: both;
  display: block;
  margin: 4.5rem auto 0;
  max-width: var(--max-width);
  padding: 0 1.5rem;
  text-align: center;
  width: 100%;
}
.hero .date {
  font-family: var(--font-sans);
  font-size: 16px;
}
.hero h1 {
  margin: 1rem 0 0;
  font-size: 3.8rem;
  line-height: 3.6rem;
  letter-spacing: -0.5px;
}

.hero span {
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  margin: 1rem 0;
  display: block;
  font-family: var(--font-serif);
}
header {
  background-color: var(--hero-bg);
  background-size: cover;
  padding: var(--mobile-margin-top-gap) 1.5rem 3rem;
}
.btn {
  border-radius: 4px;
  display: inline-block;
  font-family: var(--font-sans);
  padding: 26px 0;
}
a.btn.btn-brand {
  align-items: center;
  background: var(--brand);
  /* https://brumm.af/shadows */
  box-shadow: 0 2.5px 3.4px -15px rgba(0, 0, 0, 0.074), 0 5.7px 7.7px -15px rgba(0, 0, 0, 0.108), 0 9.9px 13.4px -15px rgba(0, 0, 0, 0.133), 0 15.8px 21.3px -15px rgba(0, 0, 0, 0.155), 0 24.3px 32.8px -15px rgba(0, 0, 0, 0.177), 0 38px 51.3px -15px rgba(0, 0, 0, 0.202), 0 63.1px 85.1px -15px rgba(0, 0, 0, 0.236), 0 126px 170px -15px rgba(0, 0, 0, 0.31);
  color: var(--white);
  display: flex;
  font-size: 20px;
  justify-content: center;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all .2s ease-in-out;

}
a.btn.btn-brand svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  transition: all .2s ease-in-out;
}
a.btn.btn-brand svg.icon-left { margin-right: 20px; }
a.btn.btn-brand svg.icon-right { margin-left: 20px; }
a.btn.btn-brand:hover {
  box-shadow: 0 2.8px 3.8px -7px rgba(0, 0, 0, 0.077), 0 6.3px 8.6px -7px rgba(0, 0, 0, 0.111), 0 11px 15px -7px rgba(0, 0, 0, 0.137), 0 17.5px 23.8px -7px rgba(0, 0, 0, 0.16), 0 27px 36.7px -7px rgba(0, 0, 0, 0.183), 0 42.2px 57.3px -7px rgba(0, 0, 0, 0.209), 0 70.1px 95.1px -7px rgba(0, 0, 0, 0.243), 0 140px 190px -7px rgba(0, 0, 0, 0.32);
  opacity: 0.8;
  transform: translateY(-2px);
}
a.btn.btn-brand:hover svg.icon-right{
  margin-left: 25px;
  margin-right: -5px;
}

/* Utilities & Animations ****************************************************/
.w100p {
  width: 100%;
}
.flex-spacer {
  flex: 1 0 auto;
}
@keyframes pulse {
	0% { opacity: 1; }
	50% { opacity: 0.2; }
  100% { opacity: 1; }
}

/* Home Hero *****************************************************************/
.grid-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 auto;
  max-width: var(--max-width);
  width: 100%;
}
.hero-bio {
  font-size: 44px; /* fallback for clamp */
  font-size: clamp(1.125rem, 1rem + 2vw, 44px);
  grid-area: hero-bio;
  font-family: var(--font-serif);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .hero-bio {
    font-size: 24px;
    font-size: clamp(1.125rem, 1rem + 2vw, 44px); /* necessary duplicate */
  }
}
.hero-bio > * { display: inline; }
.hero-bio > span {
  font-size: 1.25rem;
  line-height: 1.25rem;
  padding-bottom: 7.5rem;
}
.hero-bio > b {
  font-family: var(--font-display);
  font-weight: var(--font-weight-base);
  font-size: 2.5rem;
  line-height: 2.75rem;
  font-size: 4.3rem;
  line-height: 3.95rem;
  letter-spacing: 0.01em;
  padding-bottom: 1rem;
}
.hero-bio > i {
  font-size: 1.5rem;
  line-height: 2rem;
  padding-bottom: 1rem;
}
@media (min-width: 600px) {
  .hero-bio > b {
    font-size: 6.7rem;
    line-height: 5.65rem;
  }
  .hero-bio > i {
    font-size: 2rem;
    line-height: 2.5rem;
  }
}

.hero-hi {
  font-size: 18px;
  grid-area: hero-hi;
  margin-top: var(--mobile-margin-top-gap);
  padding-top: 10px;
}
.hero-hi p:last-child {
  margin-bottom: 40px;
}
.cta { grid-area: cta; }
.hire-dot {
  grid-area: hire-dot;
  min-height: 20px;
}
.hire-me {
  display: flex;
  font-family: var(--font-sans);
  font-size: 16px;
  justify-content: center;
  padding: 30px 10px;
  width: 100%;
}
.hire-me::before {
  --available-dot-radius: 8px;
  content: " ";
  height: var(--available-dot-radius);
  width: var(--available-dot-radius);
  border-radius: var(--available-dot-radius);
  background: hsl(122, 68%, 58%);
  border: 1px solid hsl(122, 68%, 50%);
  margin-right: 20px;
  margin-top: 5px;
	animation: pulse 1.2s infinite;
}
.hero-nav {
  grid-area: hero-nav;
  margin-top: var(--mobile-margin-top-gap);
}
.top-nav {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.top-nav.not-home {
  padding: 0 1.5rem;
}
.logo-name { text-decoration: none; }
.logo-name:hover { text-decoration: underline; }

.top-nav.not-home {
  margin: 0 auto;
  max-width: var(--max-width);
  width: 100%;
}
header.header-home { padding-top: 1.5rem; }
@media (min-width: 960px) {
  header {
    background-color: var(--hero-bg);
    padding: 3rem;
  }
  header.header-home { padding: 4rem 3rem 1rem; }
  .grid-container {
    grid-template-areas: "hero-bio hero-hi" "hero-nav cta" ". hire-dot";
    grid-template-columns: 70% 30%;
  }
  .hero-bio { padding-right: 20px; }
  .hero-bio > * { display: block; }
  .hero-hi { margin-top: 0; }
  .top-nav {
    flex-direction: row;
    margin-top: 0;
  }
  .top-nav.not-home { gap: 40px; }
}

/* Pre-Footer ****************************************************************/
.post-footer-tags {
  align-items: center;
  background: var(--hero-bg);
  border-radius: 6px;
  border: 1px dashed #cccccc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 6rem 0 1rem;
  padding: 1rem;
  text-align: center;
  width: 100%;
}
.post-footer-tags > span { margin-right: 1rem; }
.post-footer {
  align-items: stretch;
  gap: 10px;
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}
.post-footer li.prev { text-align: right; }
.post-footer li.next { text-align: left; }
.post-footer li.prev a svg {
  transform: translateX(5px);
  transition: all 0.2s ease-in-out;
}
.post-footer li.next a svg {
  transform: translateX(-5px);
  transition: all 0.2s ease-in-out;
}
.post-footer li.prev a:hover svg,
.post-footer li.next a:hover svg {
  transform: translateX(0);
}
.post-footer li {
  flex: 1 1 0;
}
.post-footer li a {
  align-items: center;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  background: rgba(216, 216, 216, 0.18);

}
.post-footer li a:hover {
  background: rgba(140, 140, 140, 0.112);
}
.post-footer li a span {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
}
@media (min-width: 760px) {
  .post-footer-tags { flex-direction: row; }
  .post-footer { flex-direction: row; }
}

/* Footer ********************************************************************/
footer {
  background: var(--footer-bg);
  margin: 0;
  padding: 5rem 2rem;
}
footer > ul {
  column-gap: 5px;
  display: flex;
  font-family: var(--font-sans);
  font-size: 14px;
  list-style-type: none;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 960px;
  padding: 0;
  width: 100%;
  gap: 1rem 3rem;
}
@media (min-width: 350px) {
  footer > ul {
    justify-content: center;
    align-items: center;
  }
}
footer > ul li {
  margin: 0;
}
footer > ul li span {
  display: block;
}
footer > ul li a {
  font-weight: bold;
  text-decoration: none;
}
footer > ul li a:hover {
  text-decoration: underline;
}

/* Accessibility *************************************************************/
.skip-to-content-link {
  background-color: #fff;
  border: 2px solid #000;
  font-family: var(--font-sans);
  left: 10px;
  padding: 10px 30px;
  position: absolute;
  text-transform: uppercase;
  top: -100px;
  transition: transform 0.3s;
}
.skip-to-content-link:focus {
  top: 10px
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
