:root {
  --page-bg: #d4d4d4;
  --ink: #000000;
  --white: #ffffff;
  --button-bg: #a8a8a8;
  --about-bg: rgba(40, 39, 48, 0.922);
  --about-shadow: rgba(40, 39, 48, 0.522);
  --spotify: #1db954;
  --instagram: #c13584;
  --twitter: #00acee;
  --back-hover: #96d3ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 18pt;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 4rem 3rem;
  overflow: hidden;
}

.panel {
  width: min(100%, 36rem);
}

.panel[hidden] {
  display: none;
}

.home-panel {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.logo-link {
  display: block;
  width: min(calc(100vw - 4.75rem), 32rem);
  line-height: 0;
  text-decoration: none;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: "Lato", sans-serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.08rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 7.5rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 2rem;
  background: var(--button-bg);
  color: var(--ink);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.175rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--ink);
  outline: 0;
}

.button.spotify:hover,
.button.spotify:focus-visible {
  background: var(--spotify);
}

.button.instagram:hover,
.button.instagram:focus-visible {
  background: var(--instagram);
}

.button.twitter:hover,
.button.twitter:focus-visible {
  background: var(--twitter);
}

.icon {
  width: 1.25em;
  min-width: 18px;
  height: 1.25em;
  margin-right: calc(0.5em + 0.175rem);
  margin-left: -0.125em;
  color: currentColor;
}

.brand-icon {
  fill: currentColor;
}

.line-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button span {
  flex: 1 1 auto;
  text-align: right;
}

.about-link {
  color: var(--ink);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  text-decoration: none;
}

.about-link:hover,
.about-link:focus-visible {
  text-decoration: underline;
  outline: 0;
}

.about-panel {
  max-width: 36rem;
  padding: 2.75rem 2.5rem;
  border-radius: 0.375rem;
  background: var(--about-bg);
  box-shadow: 0 0.75rem 2.625rem var(--about-shadow);
  color: var(--white);
  text-align: left;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  height: 2rem;
  padding: 0 1rem;
  border: 1px solid var(--white);
  border-radius: 2rem;
  color: var(--white);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.175rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.back-button:hover,
.back-button:focus-visible {
  border-color: var(--back-hover);
  color: var(--back-hover);
  outline: 0;
}

.about-panel h2 {
  margin-top: 1.5rem;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.about-panel p {
  margin-top: 1.5rem;
  color: var(--white);
  font-family: "Lato", sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.625;
  text-align: justify;
}

@media (prefers-reduced-motion: no-preference) {
  .panel {
    animation: enter 0.38s ease both;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(7deg) scale(0.985);
  }

  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) scale(1);
  }
}

@media (max-width: 1680px) {
  html {
    font-size: 13pt;
  }
}

@media (max-width: 1280px) {
  html {
    font-size: 13pt;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 11pt;
  }
}

@media (max-width: 736px) {
  html {
    font-size: 11pt;
  }

  .shell {
    padding: 1.5rem 1rem;
  }

  .logo-link {
    width: min(calc(100vw - 4.75rem), 36rem);
  }

  .button {
    font-size: 0.875rem;
  }

  .social-actions {
    gap: 1rem;
  }

  .about-panel {
    padding: 2rem 1.625rem;
  }
}

@media (max-width: 480px) {
  .social-actions {
    display: grid;
    justify-items: center;
  }
}

@media (max-width: 360px) {
  .shell {
    padding: 1.125rem 0.75rem;
  }

  h1,
  .about-panel h2 {
    font-size: 1.5rem;
  }

  .about-panel {
    padding: 1.5rem 1.21875rem;
  }
}
