/** support for view-transitions **/
@view-transition {
  navigation: auto;
}

/** custom props**/
:root {
  --red: #c5004a;
  --darkred: #7f0036;
  --lightgray: #e0e0e0;
  --gray: #c0c0c0;
  --darkgray: #333;
  --navy: #17050f;
  --blue: #2a2adf;
  --white: #fff;
  --gold: #b5a33f;
  --purple: #693fb5;
  --darkgreen: #0f1705;
}
/* reset */
* {
  box-sizing: border-box;
}
html,
body {
  background-color: var(--white);
  color: var(--darkgray);
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, segoe ui, Helvetica, Arial,
    sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol;
  font-display: swap;
  font-size: 20px;
}

body * {
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
}

p:last-child {
  margin-bottom: 0;
}
p,
.tmpl-post li,
img {
  max-width: 37.5em; /* 600px /16 */
}
p,
.tmpl-post li {
  line-height: 1.45;
}
a[href] {
  color: var(--blue);
  text-decoration-color: var(--gold);
}

a[href]:focus {
  outline: 2px solid var(--gold);
}
.site-main {
  padding: 1rem;
}

main article:first-child {
  margin-top: 0;
}
header {
  border-bottom: 1px dashed var(--lightgray);
}
header:after {
  content: "";
  display: table;
  clear: both;
}
table {
  margin: 1em 0;
}
table td,
table th {
  padding-right: 1em;
}
/* ZINDEX UTITITY */
.z0 {
  z-index: 0;
}
.z100 {
  z-index: 100;
}
.z200 {
  z-index: 200;
}

.z300 {
  z-index: 300;
}

/* Header */
.site-header {
  background-image: url("../img/graph.svg");
}

.site-header h1 a {
  background: white;
}

.site-header img:hover,
.site-header a:focus img {
  animation: spooky-poopy;
  animation-duration: 1s;
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

.site-logo {
  height: 100px;
}

.home {
  display: none;
}

.nav {
  margin: 0 1em;
  max-height: 0;
  overflow: hidden;
}

.nav:focus-within {
  margin: 1em;
  max-height: min-content;
  overflow: visible;
}

.nav.expanded {
  /* animation: poppity-poo;
  animation-duration: 1s;
  animation-fill-mode: forwards; */
  margin: 1em;
  max-height: min-content;
  overflow: visible;
}

.menu-toggle {
  display: inline;
}

.menu-toggle img {
  height: 50px;
  transition: transform 0.5s;
}

.menu-toggle:hover img {
  animation: none;
  transform: rotate(5deg);
}

.menu-toggle:focus {
  outline: 2px solid var(--red);
}

.menu-toggle.expanded {
  animation: flippity-doo;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  overflow: visible;
}

/* Nav */
.nav {
  padding: 0;
  list-style: none;
  display: grid;
  row-gap: 0.5em;
  grid-template-columns: repeat(5, 50px);
  grid-template-rows: auto;
}

.nav-item:not(.nav-item--icon) {
  grid-column: span 5;
}

.nav-item a[href]:not(:hover) {
  text-decoration: none;
}
.nav-item-active {
  font-weight: 700;
  text-decoration: underline;
}

.archive-title {
  text-align: center;
}

/* Posts list */
.postlist {
  list-style: none;
  margin: auto;
  max-width: 1200px;
  padding: 0;
}

.article-header h2 {
  font-size: 1rem;
  margin: 0.5em 0;
}

.article-header a:hover {
  color: var(--gold);
}

.postlist-link {
  display: inline-block;
  padding: 0.05em 20px;
  text-decoration: none;
}
.postlist-item-active .postlist-link {
  font-weight: bold;
}

.description {
  padding: 1em;
}

.tmpl-home .postlist-link {
  font-size: 1.1875em; /* 19px /16 */
  font-weight: 700;
}

/* Tags */
.post-tag {
  display: inline-block;
  vertical-align: text-top;
  text-transform: uppercase;
  font-size: 0.625em; /* 10px /16 */
  padding: 2px 4px;
  margin-left: 0.8em; /* 8px /10 */
  background-color: var(--purple);
  color: var(--white);
  border-radius: 0.25em; /* 3px /12 */
  text-decoration: none;
  position: relative;
}

.post-tag.post-tag__system-tag {
  background-color: var(--darkgreen);
}

.post-tag span {
  position: relative;
}

.post-tag.post-tag__system-tag:hover::after,
.post-tag.post-tag__system-tag:focus::after {
  background: var(--darkred);
  color: white;
}

.post-tag:hover::after,
.post-tag:focus::after {
  animation: slidy-baby;
  animation-duration: 1s;
  background: var(--gold);
  border-radius: 0.25em; /* 3px /12 */
  content: "";
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
}

.post-tag:first-of-type {
  margin-left: 0;
}

a[href].post-tag,
a[href].post-tag:visited {
  color: #fff;
}

.system-grid {
  list-style: none;
}
.system-grid .post-tag {
  font-size: 1em;
}

audio:focus {
  background: var(--gold);
}

.audio-box:focus-within {
  outline: 2px solid var(-navy);
}

.audio-box img {
  object-fit: cover;
  height: 400px;
  min-width: 100%;
  max-width: 100%;
}

.audio-box audio {
  display: block;
  width: 100%;
}

.audio-meta {
  background-color: var(--lightgray);
  display: flex;
  flex-direction: column;
  place-content: center center;
  font-size: 0.8125em;
  gap: 1em;
  padding: 0.5em;
  text-transform: uppercase;
}

.audio-meta__sep {
  display: none;
}

.article-footer {
  display: flex;
  place-content: center space-between;
}

.postlist-item .article-footer {
  padding: 0 1em;
}
.tags {
  padding: 0;
}

.tags li {
  display: inline-block;
}

/* Direct Links / Markdown Headers */
.direct-link {
  font-family: sans-serif;
  text-decoration: none;
  font-style: normal;
  margin-left: 0.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;
}

/* more episode link */

.more-episodes[href] {
  background-color: var(--purple);
  border-radius: 13px;
  color: var(--white);
  display: inline-block;
  font-size: 1.25rem;
  margin: 1em;
  padding: 1rem;
  transition: background-color 1s;
}

.more-episodes:hover {
  background-color: var(--navy);
}

.post-audio {
  margin: auto;
  max-width: 1200px;
}

.article-title {
  margin: 1em auto 0.5em;
  max-width: 1200px;
  font-size: clamp(1rem, 2rem, 2.5cqw);
}

.article-content {
  margin: auto;
  max-width: 1200px;
}

.site-footer a:hover,
.article-content a:hover {
  color: var(--gold);
}

/* site footer */

.site-footer {
  margin-bottom: 3em;
  text-align: center;
}

.footer-menu {
  margin: 0;
  list-style: none;
}

.footer-menu li {
  display: inline-block;
}

.footer-menu li::after {
  content: "|";
}

.footer-menu li:last-child:after {
  content: "";
}

@keyframes slidy-baby {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(100%);
  }
}

@keyframes spooky-poopy {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-15deg);
  }

  66% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}
@keyframes poppity-poo {
  from {
    margin: 0 1em;
    max-height: 0;
  }
  to {
    margin: 1em;
    max-height: min-content;
  }
}

@keyframes flippity-doo {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(180deg);
  }
}
