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

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-italic-100-900-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-italic-100-900-cyrillic.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-italic-100-900-greek-ext.woff2") format("woff2");
  unicode-range: U+1F??;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-italic-100-900-greek.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-italic-100-900-vietnamese.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1,
    U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9,
    U+20AB;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-italic-100-900-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304,
    U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-italic-100-900-latin.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304,
    U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-normal-100-900-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-normal-100-900-cyrillic.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-normal-100-900-greek-ext.woff2") format("woff2");
  unicode-range: U+1F??;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-normal-100-900-greek.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-normal-100-900-vietnamese.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1,
    U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9,
    U+20AB;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-normal-100-900-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304,
    U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  src: url("fonts/inter-normal-100-900-latin.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304,
    U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
  font-display: swap;
}

html,
body {
  font-family: Quantico, monospace;
  font-size: clamp(16px, 1.1vw, 20px);
  margin: 0;
  overflow: hidden;
}

body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 15, 15, 1);
  color: #f5f5f5;
}

::selection {
  background: #555;
  color: #fff;
  text-shadow: none;
}

::-moz-selection {
  background: #555;
  color: #fff;
  text-shadow: none;
}

main {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
}
article {
  display: contents; /* Makes article transparent to grid */
}

.content {
  grid-row: 1;
  height: 100%;
  width: 100vw;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* * * 
Template Content 1 // Visual Thinking
* * */

.content img.slide {
  width: min(80vw, 320px);
  animation: fadeIn 1.2s ease-in-out;
}

/* * * 
Template Content 2 // Tweet Quote
* * */

.tweet-card {
  border-radius: 3px;
  padding: 24px;
  max-width: 300px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeIn 1.2s ease-in-out;
  font-family: Inter, helvetica, arial, sans-serif;
}

.avatar {
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar img {
  border-radius: 50%;
  width: inherit;
}
.fullname {
  font-size: 1rem;
  font-weight: 700;
}

.username,
.date {
  font-size: 0.9rem;
  color: #8b98a5;
}

.date {
  flex-shrink: 0;
}
.date::before {
  content: "";
  margin: 0;
}

.tweet-header {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tweet-content {
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 400px) {
  .tweet-card {
    max-width: 380px;
  }
}

@media (min-width: 600px) {
  .tweet-card {
    max-width: 480px;
  }

  .avatar {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1441px) {
  .tweet-card {
    max-width: 560px;
  }
}


/* * * 
Template Content 3 // Card with bg image
* * */

.slide-card {
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  width: calc(100vw - 60px);
  height: calc(100vh - 60px);
  background-color: #222;
  animation: fadeIn 1.2s ease-in-out;
}
.bgcover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
/* accesibility dark cinematic gradient */
.slide-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 20%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0) 60%
  );
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin: 0 auto;
  padding: 30px;
}

/* left text block */
.slide-card .text {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  /* gap: 12px; */
}

.slide-card h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  font-family: Inter, helvetica, arial, sans-serif;
  font-weight: 400;
  margin: 0 0 8px;
}

.slide-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #cda55f;
  margin: 0;
}
.slide-card p span {
  margin-left: 24px;
}

/* right CTA */
.slide-card .cta {
  display: flex;
  align-items: center;
  animation: fadeInUp 1.4s ease-in-out;
}

.slide-card .button {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  font-size: 0.95rem;
  font-family: Inter, helvetica, arial, sans-serif;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slide-card .button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.button svg {
  vertical-align: middle;
  margin: 0 4px;
}

.cta a svg {
  position: relative;
  padding: 12px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

a svg:hover {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
}
.cta a:active {
  position: relative;
  top: 2px;
}

@media (max-width: 768px) {
  .slide-card {
    width: 94vw;
    height: 94vh;
  }

  .slide-content {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .slide-card .cta {
    align-self: flex-start;
  }
}

/* * * Footer 1 * * */

.footer {
  grid-row: 2;
  justify-self: center;
  z-index: 3;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: max-content;
  max-height: 80px;
  animation: fadeInUp 1.4s ease-in-out;
}

.footer-logo {
  position: relative;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo img {
  height: 60%;
  object-fit: contain;
  margin: 0 auto;
}

.footer-title {
  flex: 1;
  padding: 0 96px 0 48px;
  line-height: 1;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  text-align: center;
  color: #cda55f;
  font-family: Quantico, monospace;
}

@media (max-width: 799px) {
  .footer-title {
    padding-right: 40px;
    padding-left: 20px;
  }
}

/* * * Footer 2 * * */

.footer-mini {
  color: #fff;
  position: absolute;
  bottom: 0;
  width: 100vw;
  display: grid;
  gap: 1rem;
  justify-content: center;
  text-transform: uppercase;
  animation: fadeInUp 1.4s ease-in-out;
}

.footer-mini p {
  text-align: center;
  padding: 1rem;
  max-width: 30rem;
  letter-spacing: 0.1rem;
  line-height: 1.618em;
}

.footer-mini small {
  color: #cda55f;
  white-space: nowrap;
}

.footer-mini small:before {
  content: "— ";
}

.footer-title,
.footer-mini p,
.footer-mini small {
  font-size: 0.7rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 1s ease-in-out;
}
