/* Font Import */
@font-face {
  font-family: 'PP Rader';
  src: url('./fonts/PPRader-Bold.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/DMSans-Variable.ttf') format('truetype-variations');
  font-weight: 100 1000;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* Eric Meyer CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* CSS variables */
:root {
  /* Primitives */
  --neutral-0: #ffffff;
  --neutral-100: #d2d2d3;
  --neutral-300: #8b8c8d;
  --neutral-800: #191919;

  --divider-light-1: rgba(255, 255, 255, 0.1);

  --success: #19e684;

  /* Colors */
  --background-dark-1: var(--neutral-800);
  --content-light-primary: var(--neutral-0);
  --content-light-secondary: var(--neutral-100);
  --content-light-tertiary: var(--neutral-300);
  --content-dark-primary: var(--neutral-800);

  /* Cursors */
  --cursor-default: url('./img/cursor-default.svg'), auto;
  --cursor-pointer: url('./img/cursor-pointer.svg'), auto;
  --cursor-text: url('./img/cursor-text.svg'), auto;

  /* Easing */
  --easeOutSteep: cubic-bezier(0.33, 0.51, 0.45, 0.98);

  /* Shadows */
  --shadow-color: 0deg 0% 0%;
  --box-shadow-1: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.14),
    1.7px 2.5px 3.4px -1.2px hsl(var(--shadow-color) / 0.14),
    6.6px 9.9px 13.4px -2.5px hsl(var(--shadow-color) / 0.14);
  --box-shadow-2: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.14),
    3.1px 4.7px 6.3px -0.6px hsl(var(--shadow-color) / 0.14),
    7.4px 11.2px 15.1px -1.2px hsl(var(--shadow-color) / 0.14),
    16.3px 24.5px 33.1px -1.9px hsl(var(--shadow-color) / 0.15),
    32.8px 49.3px 66.6px -2.5px hsl(var(--shadow-color) / 0.15);
}

/* Other resets */
* {
  box-sizing: border-box;
}

*:before,
*:after {
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--background-dark-1);
  background-image: url(./img/asphalt.jpg);
  background-repeat: repeat;
  color: var(--content-dark-primary);
  cursor: var(--cursor-default);
}

button,
a {
  cursor: var(--cursor-pointer);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
button,
div {
  text-rendering: geometricPrecision;
}

/* Wrapper */
.wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Content */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 27.5rem;
  padding: 5rem 1.25rem 1.25rem 1.25rem;
}

/* Tombstone */
.tombstone {
  border: 1px solid var(--divider-light-1);
  border-radius: 6rem 6rem 0.25rem 0.25rem;
  padding: 1.5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: slideInFast 0.24s var(--easeOutSteep) 0.2s both;
}

.tombstone-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.tombstone-date {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: -0.03rem;
  color: var(--content-light-tertiary);
}

/* Text */
.heading {
  font-family: 'PP Rader', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 3rem;
  color: var(--content-light-primary);
  margin-top: 1.5rem;
  text-align: center;
  animation: slideInFast 0.24s var(--easeOutSteep) 0.25s both;
}

.description {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.00875rem;
  color: var(--content-light-secondary);
  margin-top: 0.75rem;
  text-align: center;
  animation: slideInFast 0.24s var(--easeOutSteep) 0.3s both;
}

/* Button */
.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: slideInFast 0.24s var(--easeOutSteep) 0.35s both;
}

.button {
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1rem;
  border-radius: 3rem;
  box-shadow: var(--box-shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.16s ease-out;
  border: 0;
  background: var(--neutral-0);
  color: var(--neutral-800);
  padding: 1rem 3rem;
  gap: 0.5rem;
  height: 3rem;
  max-height: 3rem;
  letter-spacing: -0.04rem;
}

.button:hover {
  transform: scale(1.04) translateY(-0.0625rem);
  box-shadow: var(--box-shadow-2);
}

.button > * {
  flex-grow: 0;
  width: auto;
}

/* Pulse */
.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.25rem;
}

.pulse-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--success);
}

.pulse-radius {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

.external-icon {
  width: 1rem;
  height: 1rem;
}

/* Dots Overlay */
.dots-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(./img/dots-overlay.png);
  background-repeat: repeat;
  z-index: 0;
  pointer-events: none;
  animation: slideInSlow 0.3s var(--easeOutSteep) 0.3s both;
}

/* Lino Footer */

.lino-footer {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 24rem;
  animation: slideInSlow 0.3s var(--easeOutSteep) 0.2s both;
}

.lino-footer img {
  width: 100%;
  height: auto;
}

/* Media Queries */

@media screen and (min-width: 2400px) {
  .lino-footer {
    max-height: 32rem;
  }
}

@media screen and (min-width: 1920px) {
  .lino-footer {
    max-height: 28rem;
  }
}

@media screen and (max-width: 1079px) {
  .lino-footer img {
    width: 125%;
  }
}

@media screen and (max-width: 719px) {
  .lino-footer img {
    width: 150%;
  }
}

@media screen and (max-width: 639px) {
  .content {
    padding: 2.5rem 1.25rem 1.25rem 1.25rem;
  }

  .heading {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }

  .description {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .lino-footer img {
    width: 175%;
  }
}

@media screen and (max-width: 479px) {
  .lino-footer img {
    width: 175%;
  }
}

/* Animate In */

@keyframes slideInFast {
  0% {
    opacity: 0;
    transform: translateY(2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInSlow {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
