:root {
  --void: #000000;
  --black: #111111;
  --gray: #424242;
  --grey: #D8D8D8;
  --white: #ffffff;
  --red: #f91d5a;
  --darkred: #BE0A61;
  --yellow: #f8df59;
  --darkyellow: #8a773c;
  --green: #2ded7a;
  --darkgreen: #198e79;
  --blue: #1DF9C6;
  --darkblue: #219E9E;
  --purple: #be55f2;
  --darkpurple: #7643b6;
  
  --text-color: var(--grey);
  --background-color: var(--black);
  --header-background: var(--void);
  --header-title: var(--white);

  font-family: "Inconsolata", monospace;
  font-size: 18px;
}

@media (max-width: 800px) {
  :root {
    font-size: 22px;
  }
}

[data-theme='light'] {
  --text-color: var(--gray);
  --background-color: var(--white);
  --header-background: var(--void);
  --header-title: var(--void);
}

body {
  background: var(--background-color);
  margin: 0;
  padding: 0;
  
  /* inheriting properties */
  color: var(--text-color);
  line-height: 1.7;
  font-weight: 350;
}

p {
  /* increased space between paragraphs for readibility */
  margin-bottom: 1.2rem;
}

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

a:hover {
  color: var(--darkblue);
  text-decoration: underline;
}

a.post-title {
  color: var(--red);
  text-decoration: none;
}

a.post-title:hover {
  color: var(--darkred);
  text-decoration: underline;
}

b, strong {
  color: var(--red);
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Fira Sans", monospace;
  color: var(--header-title);
  margin-top: 1.5em;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.red {
  color:var(--red)
}

.blue {
  color:var(--blue)
}

.site-header, .site-footer {
  background: var(--header-background);
  padding: 1rem 2rem;

  /* flexbox cuz im lazy */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header nav a {
  margin-left: 1rem;
}

.site-header .logo img {
  display: block;
  height: 64px;
}

#theme-toggle {
  background: none;
  border: 2px solid var(--darkblue);
  color: var(--header-title);
  cursor: pointer;
  
  padding: 0.2rem 0.2rem;
  border-radius: 6px;
  /* font-size: 1rem; */
  
  margin-left: 1rem;
}

#theme-toggle:hover {
  border-color: var(--blue);
}

/* article container for the le text */
main { 
  width: 90%;
  max-width: 650px;
  margin: auto; /* center that block */
  padding: 0rem 0;
}

.post-card {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--grey);
  line-height: 1;
}

.post-tags .tag {
  display:inline-block;

  padding: 2px 5px;

  background-color: var(--darkblue);
  border-radius: 0.5em;

  font-size: 0.75em;
  margin-right: 0.2em;
  color: var(--white);
  text-decoration: none;
  /* text-shadow: none; */
  /* box-shadow: 1px 1px 5px var(--void); */
}

.post-tags .tag:hover {
  background-color: var(--blue);
}

.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5em; /* adjust strength of fade */
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    var(--void)
  );
}

.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1rem;
  color: var(--white);
  line-height: 1;
}

h1.post-title {
  margin: 0;
  color: var(--white);
  font-size: 2rem;
  /* text-shadow: 0 2px 8px rgba(0,0,0,0.4); */
  background-color: var(--void);
  padding: 2px 2px;
}

.post-date {
  color: var(--white);
}

.home-banner {
  position:relative;
  overflow: hidden;
  height: calc(100vh - 100px); /* the viewport height minus the header height */
  width: 100%;
}

.home-banner-bg {
  position: absolute;
  inset:0;
  
  background-image: url('/assets/img/super-ant.png');
  background-size: cover;
  background-position: 0px center;
  background-repeat: no-repeat;
}

.home-banner-content {
  position: absolute;
  right: 0;
  height: 100%;
  width: 30%;
  min-width: 555px;
  padding: 0px 40px;
  
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 1)
  );
    
  text-align: right;
  color: var(--white);
  line-height: 1;
}

.home-banner-content small {
  display: block;
  font-size: 1em;
  margin-right: 40px;
  margin-bottom: 2rem;

  color: var(--grey);
}

p.home-title {
  font-size: 1.5em;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

h1.home-title {
  margin-bottom: 0rem;
  margin-top: 0rem;
}

.home-title > span {
  font-size: 5rem;
  font-weight: 700;
  
  margin-bottom: 0rem;
  margin-top: 0rem;
}

.very-useful-decoratorative-rectangle {
  margin: auto; /* CENTER THAT DIV!!!! */
  margin-top: 1rem;
  height: 8px;
  /* background-color: var(--void); */
  background-color: var(--black);
}

.featured-container {
  text-align: left;
  margin: auto;

  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 0rem;
}

.featured-article {
  margin-bottom: 0rem;
}

figure {
  margin: 2rem 0;
  text-align: center;
}

.gallery {
  display: flex;
  /* flex-direction: row; */ /* row by default */
  flex-wrap: nowrap;
  justify-content: center;

  height: 20%;
}

figure img {
  /* flex: 1 1 0; */

  /* height: 100%; */
  max-width: 80%;

  /* width:10px; */

  object-fit: cover;
  
  display: block;
  margin: auto;
}

.gallery img {
  height: 100%;
}

figcaption {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 0.5rem;
}

.post-nav {
  /* margin-top: 40px; */
  display: flex;
  /* justify-content: stretch; */
  gap:8px;
}

.post-nav-button {
  flex: 1;

  padding: 10px 16px;
  background: var(--void);
  color: var(--grey);
  /* font-family: inherit; */
  text-decoration: none;

  /* border: 2px solid var(--green); */
  /* border-radius: 6px; */

  /* transition: background 0.2s, color 0.2s; */

  margin: 10px 0px;

  text-align: center;
}

/* .post-nav-button:hover {
  background: var(--green);
  color: var(--void);
} */

iframe {
  display: block;
  margin: auto;
}