* {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Domine";
  src: url("/fonts/Domine.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/fonts/PublicSans.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #e879f9;
  --rose: #fb7185;
  --aquamarine: #2dd4bf;
  --blue: #39bdf8;
  --yellow: #ffec55;
  --orange: #ffa31a;
  --lighter-pink: #ec93fa;
  --lighter-rose: #fb8d9d;
  --lighter-aquamarine: #56dccb;
  --lighter-blue: #60caf9;
  --lighter-yellow: #ffef76;
  --lighter-orange: #ffb547;
  --purple: #d6affc;
  --light-peach: #fff0e0;
  --gray: #595959;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: "Public Sans", sans-serif;
}

p, h2, h3, h4, h5, h6 {
  padding: .5rem 0;
}

ul li, ol li {
  margin-left: 1rem;
}

.post-preview h2 a:link, .post-content a:link {
  color: hsl(from var(--blue) h s calc(l - 30));
}

.post-preview h2 a:visited, .post-content a:visited {
  color: revert;
}

.post-preview h2 a:hover, .post-content a:hover {
  text-decoration-color: #000;
}

table {
  border-collapse: collapse;
}

td, th {
  border: 1px solid var(--gray);
  padding: .5rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.75rem;
  border-bottom: 4px solid #000;
  background-color: var(--light-peach);
  font-family: "Domine", serif;
}

header h1 a {
  text-decoration: none;
  color: #000;
}
header h1 a:hover {
  /* Darken color for better contrast */
  color: hsl(from var(--lighter-rose) h s calc(l - 10));
}

.home {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  padding: 1rem;
}

nav {
  margin-bottom: .2%;
  display: inline-flex;
  gap: .5rem;
}

nav .linkpill {
  font-weight: bold;
}

.sectionstyle {
  border-color: #000;
  border-radius: 20px;
  border-style: solid;
  box-shadow: .3vw .3vw #001;
  padding: 1rem;
}

.sectionstyle h2 {
  margin-bottom: 1rem;
}

.sectionstyle ul li {
  margin-bottom: .25rem;
}

.linkpill {
  font-weight: bold;
  text-decoration: none;
  background-color: floralwhite;
  color: #333;
  border-radius: 20px;
  border-style: solid;
  box-shadow: .1vw .1vw #000;
  padding: 4px 8px 4px 8px;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.linkpill:hover {
  background-color: var(--lighter-yellow);
}

.squarelink {
  font-weight: bold;
  text-decoration: none;
  background-color: floralwhite;
  color: #333;
  border-style: solid;
  box-shadow: 1px 1px #000;
  padding: 4px 8px 4px 8px;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  display: inline-block;
  margin: 0;
}

.squarelink:hover {
  background-color: var(--purple);
}

.linkingsection ul li {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  gap: .4em;
  padding: 0;
  margin-left: 0;
}

.strapline {
  font-size: x-large;
}

#about p {
  margin-bottom: 2rem;
}

#bootcamp p {
  margin-bottom: 1rem;
}

#likes p {
  margin-top: 1rem;
}

.highlight {
  overflow: hidden;
  /* color: white; */
  background: linear-gradient(to right, #54d9c5, #54d9c5 50%, #fff 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 275ms ease;
  text-decoration: none;
}

.highlight:hover {
  /* color: var(--aquamarine); */
  background-position: 0 100%;
}

footer {
  border-top: 4px solid #000;
  background-color: var(--light-peach);
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
}

.preview-posts {
  display: flex;
  column-gap: 2rem;
}

.preview-posts article {
  background-color: #ffcc80;
  padding: .5rem;
  border-radius: 20px;
}

.preview-posts article a {
  color: #000;
}

#blog-bumper {
  grid-column: 3/6;
  background-color: var(--lighter-orange);
}

.post-content {
  background-color: #fff;
}

.post-meta {
  color: var(--gray);
}

.blog-header {
  border: none;
  box-shadow: none;
  margin: 1rem 0;
  text-align: center;
}

.blog-list-header, .tags-list h1 {
  margin: 2rem 0;
  text-align: center;
}

.blog-list {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
}

.blog-list .pagination {
  justify-self: center;
}

.blog-list .posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
}

.post-preview {
  padding: 1rem;
  grid-column: 2 / 4;
}

.post-preview .tags {
  font-size: small;
  margin: .25rem 0;
}

.post-preview .squarelink {
  margin: .5rem 0;
}

.post-preview time {
  display: inline-block;
  margin-top: .25rem;
}

.post-content-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1rem;
}

.blog-post header {
  background-color: #fff;
  border: none;
  display: block;
  text-align: center;
}

.blog-post header .tags {
  margin-top: .5rem;
}

.post-content {
  padding: 1rem;
  border: none;
  box-shadow: none;
  /* Span the middle two columns */
  grid-column: 2 / 4;
}

#about {
  background-color: var(--lighter-pink);
  grid-column: 1 / 4;
  font-size: large;
}

#elsewhere {
  background-color: var(--lighter-aquamarine);
}

#does {
  background-color: var(--lighter-rose);
}

#bootcamp {
  background-color: var(--lighter-yellow);
}

#likes {
  background-color: var(--lighter-blue);
  grid-auto-flow: column dense;
}

.tags-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tags-list ul li {
  padding: .25rem 0;
}

@media screen and (max-width: 600px) {
  .home {
    display: flex;
    flex-direction: column;
  }

  nav {
    margin-top: 1rem;
  }

  .post-content, .post-preview {
    /* Span the whole column in mobile layout */
    grid-column: 1 / 5;
  }

  #about {
    order: 0;
  }

  #blog-bumper {
    order: 1;
  }

  #does {
    order: 2;
  }

  #bootcamp {
    order: 3;
  }

  #elsewhere {
    order: 4;
  }

  #likes {
    order: 5;
  }
}