/* Reset and base styles */

:root {
  color-scheme: dark;
  --background: #0f172a;
  --background-secondary: #121826;
  --icon-color: #f8fafc;
  --font-family: "Courier new";
}

@font-face {
  font-family: Courier new;
  src: url(/assets/Courier\ New.ttf);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background: var(--background);
  transition: background-color 200ms ease;
  font-family: var(--font-family);
  color: var(--icon-color);
}

h1 {
  font-family: var(--h1-font-family);
  font-size: 4rem;
  font-weight: 200;
  width: 90vw;
  text-align: center;
}

body.light {
  color-scheme: light;
  --background: #f8fafc;
  --icon-color: #0f172a;
}

.container {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1.5rem;
}

/* Light/Dark theme toggle button */

.theme-toggle {
  background: none;
  border: none;
  transition: transform 180ms ease;
}

.theme-toggle:hover {
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}
.moon {
  display: none;
}
body.light .sun {
  display: none;
}
body.light .moon {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Contact details */

.contact-details {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  font-size: 1.25rem;
  gap: 4rem;
}

.contact-details a {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  text-decoration: none;
  color: var(--icon-color);
}

.contact-details a:hover {
  text-decoration: underline;
  text-underline-offset: 0.6em;
  text-decoration-color: #94a3b8;
  text-decoration-thickness: 0.03em;
}

/* Content */

.content {
  flex: 1 1 auto;
  overflow: auto;
  place-items: center;
  padding-top: 20vh;
}

.logo {
  display: block;
  width: 50vw;
  height: auto;
}

/* Media queries */

/* Desktop */
@media (max-width: 1440px) {
  .logo {
    width: 80vw;
    padding-top: 2rem;
  }
}

/* Laptop */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  .logo {
    width: 70vw;
    padding-top: 2rem;
  }

  .contact-details a {
    font-size: 1rem;
  }

  .contact-details {
    position: fixed;
    bottom: 3rem;
    gap: 2rem;
    left: 5vw;
    right: 5vw;
    justify-content: space-between;
  }
  .header {
    place-items: end;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .logo {
    width: 80vw;
    padding-top: 2rem;
  }

  .container {
    height: 100dvh;
  }

  .contact-details {
    position: fixed;
    bottom: 3rem;
    gap: 2rem;
    left: 5vw;
    right: 5vw;
    justify-content: space-between;
  }
  .header {
    place-items: end;
  }
}

/* Large mobile */
@media (max-width: 624px) {
  .header {
    place-items: end;
  }

  .container {
    height: 100dvh;
  }

  .logo {
    padding-top: 2rem;
    width: 80vw;
  }

  .contact-details {
    position: fixed;
    bottom: 2rem;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 1rem;
    left: 10vw;
    right: 10vw;
  }
}

/* Mobile */
@media (max-width: 425px) {
  .header {
    place-items: end;
  }

  .container {
    height: 100dvh;
  }

  .logo {
    padding-top: 2rem;
    width: 80vw;
  }

  .contact-details {
    position: fixed;
    bottom: 2rem;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 1rem;
    left: 10vw;
    right: 10vw;
  }
}
