:root {
  --font-family: 'IBM Plex Mono', sans-serif;
  --bg: radial-gradient(#ff64647f, #953d3d79) #953d3d76;
  --color-text: #333;
  --color-heading: #000;
  --color-title: #626262;
  --color-link: #6cb4ff;
  --color-link-visited: #4f82bb;
  --color-link-hover: #d52b1e;
  --card-bg: #e5e7e5;
  --card-shadow: 10px 10px 72px -21px rgba(0, 0, 0, 0.75);
  --address: #777;
  --support: #666;
  --focus-outline: #6cb4ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: radial-gradient(#8a3b3a, #2e2f2d) #2e2f2d;
    --color-text: #e6ddda;
    --color-heading: #e6ddda;
    --color-title: #e6ddda;
    --color-link: #66d9ef;
    --color-link-visited: #a6e22e;
    --color-link-hover: #fd971f;
    --card-bg: #2e2f2d;
    --card-shadow: 10px 10px 72px -21px rgba(0, 0, 0, 0.55);
    --address: #e6ddda;
    --support: #d8d0cb;
    --focus-outline: #66d9ef;
  }
}

html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}

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

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

img.profile {
  width: 125px;
}

.profile-toggle {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.profile-toggle:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 4px;
}

address {
  font-style: normal;
}

/* Style */

body {
  font-family: var(--font-family);
  color: var(--color-text);
  height: 100%;
  background: var(--bg);
}

a {
  color: var(--color-link);
}

a:visited {
  color: var(--color-link-visited);
}

a:hover, a:visited:hover {
  color: var(--color-link-hover);
  text-decoration: none;
}

.container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes introAnim {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.card {
  background-color: var(--card-bg);
  width: min(90vw, 500px);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transform: translateY(0);
  animation: .75s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s 1 introAnim;
}

figure {
  text-align: center;
}

h1 {
  text-align: center;
  color: var(--color-heading);
}

p.title {
  margin-top: 0;
  color: var(--color-title);
}

p {
  margin-top: 30px;
  text-align: center;
}

ul.links {
  display: flex;
  justify-content: center;
}

ul.links li {
  margin: 10px;
}

address {
  margin-top: 10px;
  text-align: center;
  color: var(--address);
}

address img {
  height: 14px;
}

.support {
  margin-top: 6px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--support);
}
