
:root {

  
  --fs-300: 0.9375rem;
  --fs-400: 1.0625rem;
  --fs-500: 1.375rem;
  --fs-600: 1.875rem;
  --fs-700: 2rem;

  --ff-body: "Roboto", sans-serif;
  --ff-heading: "Bahnschrift", sans-serif;
            
  --fw-400: 400;
  --fw-700: 700;
  --fw-900: 900;

  --clr-primary-200: rgb(234, 226, 183);
  --clr-primary-300: rgb(167, 201, 87);
  --clr-primary-400: rgb(247, 184, 1);
  --clr-primary-500: rgb(5, 6, 51);

  --clr-neutral-100: hsla(0, 0%, 100%, 1);
  --clr-neutral-300: rgb(34, 63, 143);
  --clr-neutral-400: hsla(0, 0%, 40%, 1);
  --clr-neutral-500: hsla(0, 0%, 60%, 1);
  --clr-neutral-900: hsla(0, 0%, 10%, 1);


  --primary: #161bb9;
  --secondary: #192824;
  --background: #f8f8f2;
  --green: #555BFF;
  --yellow: #070a6d;
  --orange: #393db4;
  --red: #161bb9;

}

@media (min-width: 35em) {
  :root {
    --fs-300: 1rem;
    --fs-400: 1.125rem;
    --fs-500: 1.5rem;
    --fs-600: 2.25rem;
    --fs-700: 5rem;
  }
}

/* //////////////////////
  RESET - source: https://piccalil.li/blog/a-modern-css-reset
  /////////////////////// */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul:where([role="list"]),
ol:where([role="list"]) {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* //////////////////////
  General styling
  /////////////////////// */

body {
  font-family: var(--ff-body);
  font-size: var(--fs-400);
  color: var(--clr-neutral-900);
}

h1{ font-family: var(--ff-heading);

}
h2,
h3 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-900);
  line-height: 1.1;
}

strong {
  font-weight: var(--fw-700);
}

section,
.section {
  padding: min(10vh, 10em) 0;
}



/* //////////////////////
  Utility Classes
  /////////////////////// */

/* select all direct childen of .flow
   and add margin to the top for proper
   spacing */

.flow > *:where(:not(:first-child)) {
  margin-top: var(--flow-spacer, 1em);
}

.container {
  margin-inline: auto;
  padding-inline: 1.5em;
  max-width: 72rem;
  
}

.container--narrow {
  max-width: 65rem;
  background-color:rgb(224, 219, 212) ;
  padding: 3em;
}
 


.flex-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap, 1em);
}

.text-center {
  text-align: center;
  background-color: #fcb900;
  margin:auto;  padding:2%;
  

}

.section-title {
  color: var(--clr-primary-500);
  
  
}
/* typgraphy */

.article-title {
  text-align: center;
}
.section-title {
  color: var(--clr-primary-500);

  margin:auto;
  padding:2%;
   
  
}

.article-title,
.text-center {
  color: var(--clr-primary-500);
 
}

.article-title {
  font-size: var(--fs-600);
}

.section-title {
  font-size: var(--fs-700);
  font-kerning: normal;
}


/* //////////////////////
  Header
  /////////////////////// */

  
.page-header {
  padding: 2em 0;
}

.page-header__content {
   justify-content: space-between;
   
  
}

.table {
  display: table;
  border-collapse: collapse;
  
}
  .td {
    display:inline-block;
    float:left;
    padding-right: 5;
    padding: 8px;
      
  }
     
    
.title{ 
  display:inline-block;
  justify-content: space-between;
  align-self: start;
  float: left;
   
}

.nav-list {
  display:flex-;
  margin: 0;
  padding: 0;
  float:right;
}

.nav-list a {
  color: var(--clr-neutral-900);
  text-decoration:none;
  font-weight: bolder;
}

.nav-list a:focus,
.nav-list a:hover {
  color: var(--clr-primary-400);
  text-decoration:line-through;
}

/* //////////////////////
  Footer
  /////////////////////// */

.site-footer {
  --logo-color: currentColor;
  padding: 2em 0;
  color: var(--clr-neutral-100);
  background-color: #161bb9;
background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
  text-align: center;
}

/* //////////////////////
  Homepage
  /////////////////////// */

.hero > div {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: 1fr;
  align-items: center;
  gap: auto;
  background-color: var(--background);
   
  border: 12px solid var(--primary);
  padding: 15px;
  margin: calc(5vh - 15px) auto 0 auto;
  box-shadow: 15px 15px #ffd904;

}



.hero:hover{  
  animation: shadow-wave 1s ease infinite;
}


 

.h1 { font-weight: bolder;
}

.hero__image {
  width: auto;
  /* max-height: max(15rem, 40vh); */
  object-fit: cover; 
  padding-left: 100px;
  
}
.hero__content {
  padding-inline: 20px;
   
 
  
}
 



@media (min-width: 45em) {
  .hero > div {
    grid-auto-flow: column;
   
  }
}

.featured-articles {
 
  background-color:  #0e2b04;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  
   
}

.articles__list {
  --flow-spacer: 3rem;
  margin: 0rem 0;
  padding: 60px;
  
  
}

/* //////////////////////
  Individual article page
  /////////////////////// */

  .main-article {
    margin-bottom: 3rem;
    
    
  
    
  }

  .main-article__figure figcaption {
    margin: 1rem 0;
    font-size: var(--fs-300);
    opacity: .9; 
    background-color: rgb(243, 236, 226);
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    
  }
   
  .img{
    display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  }

  .article-box{
    margin:7em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    min-height: 100vh;
  }


/* //////////////////////
  Article snippets
  /////////////////////// */

.snippet {
  display: grid;
  gap: 1em;
  grid-template-areas:
    "image"
    "title"
    "meta"
    "body"
    "button";
}

.snippet__image {
  grid-area: image;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.snippet__title {
  grid-area: title;
}
.snippet__meta {
  grid-area: meta;
  color: var(--clr-neutral-300);
}

.snippet__meta span {
  color: var(--clr-neutral-900);
}

.snippet .btn {
  grid-area: button;
}

.snippet__title {
  color: var(--clr-neutral-900);
  font-size: var(--fs-500);
}

.snippet__title a {
  color: inherit;
  text-decoration: none;
}

.snippet__title a:hover,
.snippet__title a:focus {
  color: var(--clr-primary-500);
} 

@media (min-width: 45em) {
  .snippet {
    grid-template-areas:
      "title image"
      "meta image"
      "body image"
      "button image";
    grid-column-gap: 4em;
    grid-template-columns: 1fr 40%;
    grid-template-rows: min-content min-content min-content 1fr;
  }
}

 


.btn {
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  padding: 0.75em 1.75em;
  border-radius: 0.25em;
  align-self: start;
  justify-self: start;
}

.btn:focus {
  outline: 0.125em solid var(--clr-primary-400);
  outline-offset: 0.25em;
}

.btn--primary {
  background: var(--clr-primary-400);
  color: var(--clr-neutral-100);
  font-weight: var(--fw-700);
 
  transition: all .4s ease-in-out;
}
.btn--primary:hover{
background-image: linear-gradient(to right,  #e4c203,  #e89919);
box-shadow: 0 4px 15px 0 rgba(229, 66, 10, 0.75);
border:none;
}
.btn--primary:focus {
  background: var(--primary);
  border-color: var(--primary); 
}

.btn--neutral {
  background-color: var(--red);
  color: var(--clr-neutral-100);
  font-weight: var(--fw-700);
    transition: all .4s ease-in-out;
}

.btn--neutral:hover{
  background-image: linear-gradient(to right,  #3c1fe2,  #261180);
  box-shadow: 0 4px 15px 0 rgba(10, 50, 229, 0.75);
  border:none;
}
.btn--neutral:focus {
  color: var(--clr-neutral-100);
  background-color: var(--clr-neutral-100);
}

