/******************************************************************************
START Glitch hello-app default styles

The styles in this section do some minimal CSS resets, set default fonts and 
colors, and handle the layout for our footer and "Remix on Glitch" button. If
you're new to CSS they may seem a little complicated, but you can scroll down
to this section's matching END comment to see page-specific styles.
******************************************************************************/
/* Our default values set as CSS variables */
:root {
  --color-bg: #FCF9F9;
  --color-text-main: #030303E5; 
  --color-primary: #AFECE0;
  --color-red: #F00;
  --color-green: #138700;
  --color-blue: #0400C1;
  --wrapper-height: 85vh;
  --image-max-width: 320px;
  --font-family: "Open Sans", sans-serif;
  --font-family-header: "Bricolage Grotesque", sans-serif;
  --font-logo-text: "Rubik Doodle Shadow", system-ui;
}

/* Basic page style resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

a{
  color: inherit;
}

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

.green-text{
  color: var(--color-green);
}

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

/* Navigation grid */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.footer .links{
  display: flex;
  align-items: center;
  list-style: none;
  margin-bottom: 60px;
}

.footer .links .link{
  font-size: clamp(16px, 2vw, 20px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.footer .links .link > a{
  text-decoration: none;
}

.divider {
  padding: 0 0.5rem;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 600;
  line-height: normal;
  letter-spacing: -6.4px;
  margin: 0 8px;
}

.footer-text-container > p{
  display: flex;
  align-items: center;
  font-size: clamp(15px, 2vw, 16px);
  color: var(--color-text-main);
  font-weight: 500;
}

.footer-text-container .heart-icon{
  margin: 0 6px;
  margin-top: 6px;
}

.footer-text-container .heart-icon img{
  max-width: 22px;
  height: 20px;
}

.footer-text-link{
  margin-left: 4px;
  text-decoration: none;
}

.footer-text-link:hover{
  text-decoration: underline;
}

.copyright-text{
  text-align: center;
  width: 100%;
  color: #0000007D;
  font-size: 14px;
  margin-top: 12px;
}

/******************************************************************************
END default styles
******************************************************************************/

/* Page structure */
body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
}

main{
  padding: 51px 39px 0 39px;
}

.content {
  max-width: 800px;
}

/* Typography */
.logo-text{
  color: var(--color-text-main);
  font-family: var(--font-logo-text);
  font-size: 100px;
  font-size: clamp(48px, 12vw, 122.023px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.subtitle-text{
  margin-top: 6px;
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: clamp(16px, 4vw, 24px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  font-variation-settings: 'wdth' 75;
}


/* Layout: Home */
.date-time-container{
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border: 2px solid var(--color-text-main);
  border-left: none;
  border-right: none;
  margin-bottom: 73px;
}

.date-display,
.time-display{
  font-family: var(--font-family);
  font-size: clamp(18px, 4vw, 24px);
  font-style: italic;
  font-weight: 400;
  line-height: normal;
  font-variation-settings: 'wdth' 75;
}

.home-text{
  margin: 60px 0 56px 0;
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: clamp(16px, 4vw, 18px);
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  font-variation-settings: 'wdth' 75;

}

.lastest-posts-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.lastest-posts-title{
  color: var(--color-text-main);
  font-family: var(--font-family-header);
  font-size: clamp(24px, 4vw, 32px);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
}

.view-all-posts-link{
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: clamp(16px, 2vw, 18px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
}

.view-all-posts-link:hover{
  text-decoration: underline;
}

/* Post */
.posts-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  list-style-type: none;
  gap: 24px;
  margin: 36px 0 250px 0;
}

.post-wrapper {
  place-items: normal;
  /* border-top-left-radius: 255px 15px;
  border-top-right-radius: 15px 225px;
  border-bottom-right-radius: 225px 15px;
  border-bottom-left-radius:15px 255px; */
  border: 2px solid rgba(0, 0, 0, 0.47);
  background: #FBFBFB;
  max-width: 566px;
}

.post-wrapper .post-img{
  object-fit: cover;
  background-color: #f4f4f40f;
}

.post-wrapper:last-child .post-img{
  object-fit: cover;
  background-color: var(--color-text-main);
}

.post{
  text-decoration: none;
}

.post-img > img{
  width: 100%;
}

.post-details{
  padding: 20px 12px;
}

.post-date{
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 140%;
  font-variation-settings: 'wdth' 75;
}

.post-title{
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: clamp(24px, 4vw, 36px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  font-variation-settings: 'wdth' 75;
}

/* Layout: About */
.about-layout{
  margin-bottom: 100px;
}

.about-layout-title{
  color: var(--color-text-main);
  font-family: var(--font-family-header);
  font-size: clamp(36px, 6vw, 56px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 90;
}

.about-img{
  margin: 85px 0 60px 0;
}

.about-img img{
  width: 100%;
}

.about-content-wrapper{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.about-content{
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  letter-spacing: 0.54px;
  font-variation-settings: 'wdth' 75;
  max-width: 65%;
}

.socials-list{
  list-style: none;
}

.social-link{
  display: flex;
  width: fit-content;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: 0.6px;
  font-variation-settings: 'wdth' 75;
}

.social-link span{
  margin-top: 12px;
}

/* All posts */
.posts-layout{
  margin-bottom: 100px;
}

.posts-layout-title{
  color: var(--color-text-main);
  font-family: var(--font-family-header);
  font-size: clamp(36px, 6vw, 56px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 90;
}

.tags{
  margin: 20px 0 63px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
}

.tags .tag{
  border: 0.928px solid var(--color-text-main);
  border-radius: 40px;
  padding: 1px 20px;
  text-transform: capitalize;
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: clamp(14px, 2vw, 18px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.54px;
  font-variation-settings: 'wdth' 75;
}

.all-posts-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  list-style-type: none;
  gap: 24px;
  margin: 36px 0 250px 0;
}

/* View post */
.view-post-title{
  color: #000;
  font-family: var(--font-family-header);
  font-size: clamp(42px, 10vw, 128px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  font-variation-settings: 'wdth' 80;
}

.post-author{
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: clamp(16px, 2vw, 18px);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin: 8px 0 20px 0;
  font-variation-settings: 'wdth' 90;
}

.post-content{
  max-width: 70%;
  margin: 66px auto;
  color: rgba(0, 0, 0, 0.75);
  font-family: var(--font-family);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 28.8px */
  letter-spacing: 0.54px;
  font-variation-settings: 'wdth' 80;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 200px 0 82px 0;
}

.previous-text,
.next-text{
  color: rgba(0, 0, 0, 0.52);
  font-family: var(--font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.previous,
.next{
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: clamp(16px, 2vw, 18px);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
}


.previous:hover,
.next:hover{
  text-decoration: underline;
}



/* Responsive section */

@media only screen and (max-width: 600px) {
  main{
    padding: 30px 24px 0 24px;
  }

  .about-content-wrapper{
    display: flex;
    flex-direction: column;
  }

  .about-content{
    max-width: 100%;
    margin-bottom: 36px;
  }

  .post-content{
    max-width: 95%;
  }

  .controls {
    margin: 60px 0 82px 0;
  }
  
}