@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&display=swap');

/* Table of contents
--------------------------------------------------

- Theme values
- Grid
- Base Styles
- Typography
- Links
- Code
- Spacing
- Utilities
- Motion
- Misc

*/

/* Theme values
-------------------------------------------------- */
:root {
  --slate-bg: #3f4d61;
  --slate-accent: #535f71;
  --slate-accent-rim: #7b8492;
  --slate-accent-hover: #606c7c;
  --slate-accent-hover-rim: #929aa6;
  --slate-accent-strong: #657080;
  --slate-accent-strong-rim: #a2a8b2;
  --slate-grid: #ffffff;
  --slate-ink: #f2f5fa;
  --slate-ink-strong: #ffffff;
  --slate-muted: #c0c7cd;
  --slate-line: rgba(255, 255, 255, .3);
  --slate-surface: rgba(255, 255, 255, .055);
  --slate-radius: 18px;
  --slate-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Grid
-------------------------------------------------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 20px 40px;
  text-align: center;
  box-sizing: border-box;
}
.row,
.column,
.columns {
  width: 100%;
  margin-left: 0;
  box-sizing: border-box;
}

/* For devices larger than 550px */
@media (min-width: 550px) {
  .container {
    padding: 64px 0 48px;
  }
}

/* Base Styles
-------------------------------------------------- */
html {
  font-size: 100%;
  color-scheme: dark;
  background-color: var(--slate-bg);
}
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
}

body > .container,
body > main,
body > .content {
  flex: 1 0 auto;
}

/* Background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .10;
  background-image:
    linear-gradient(var(--slate-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: slateDrift 9s linear infinite;
  will-change: background-position;
  -webkit-mask-image: radial-gradient(77% 60.5% at 50% 20%, #000 0%, transparent 100%);
  mask-image: radial-gradient(77% 60.5% at 50% 20%, #000 0%, transparent 100%);
}

footer,
main,
.content {
  position: relative;
  z-index: 1;
}

/* Typography
-------------------------------------------------- */
h1,
h2,
h3,
.name,
#name {
  color: var(--slate-ink);
  font-weight: 800;
  letter-spacing: -.04em;
  text-align: center;
  text-wrap: pretty;
}
h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.05;
}
h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

/* Larger than phablet */
@media (min-width: 550px) {
  h1 {
    font-size: 38px;
  }
}

p,
.description,
#description,
.bio,
small {
  color: var(--slate-muted);
  font-weight: 300;
  line-height: 1.55;
}
p,
.description,
#description,
.bio {
  margin: 0 0 24px;
  text-align: center;
}

/* Links
-------------------------------------------------- */
a {
  color: var(--slate-ink);
  text-decoration: none;
}
a:hover {
  color: var(--slate-ink-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Code
-------------------------------------------------- */
code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  color: var(--slate-ink);
  background: var(--slate-surface);
  border: 1px solid var(--slate-line);
  border-radius: 4px;
}
pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre;
}

/* Spacing
-------------------------------------------------- */
input,
textarea,
select,
fieldset {
  margin-bottom: 1.5rem;
}
pre,
blockquote,
dl,
figure,
ol,
ul {
  margin-bottom: 2rem;
}

/* Utilities
-------------------------------------------------- */
.u-full-width {
  width: 100%;
  box-sizing: border-box;
}
.u-max-full-width {
  max-width: 100%;
  box-sizing: border-box;
}
.u-pull-right {
  float: right;
}
.u-pull-left {
  float: left;
}

/* Motion
-------------------------------------------------- */
@keyframes slateDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 64px 64px, 64px 64px; }
}

@keyframes slateRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.column > *,
.container:not(:has(.column)) > * {
  animation: slateRise 460ms var(--slate-ease) both;
}
.column > *:nth-child(2),
.container:not(:has(.column)) > *:nth-child(2) {
  animation-delay: 60ms;
}
.column > *:nth-child(3),
.container:not(:has(.column)) > *:nth-child(3) {
  animation-delay: 120ms;
}
.column > *:nth-child(n + 4),
.container:not(:has(.column)) > *:nth-child(n + 4) {
  animation-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  body::before {
    animation: none !important;
    transition: none !important;
  }
}

/* Misc
-------------------------------------------------- */
hr,
.divider {
  width: 40px;
  margin: 20px auto;
  border: none;
  border-top: 1px solid var(--slate-line);
}

footer,
.footer,
.credits,
[class*="credit"]:not(.credit-icon):not(.credit-text),
[id*="credit"] {
  width: 100%;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 0 32px;
  color: var(--slate-muted);
  font-size: 12px;
  font-weight: 300;
  text-align: center;
}

.credit-icon {
  display: none;
}

/* Powered by: a small quiet pill. Same 1px rim, same flat fill and the same
   radius ratio as the buttons, at a size meant to be read only when looked for. */
footer a:has(.credit-text),
.footer a:has(.credit-text),
[class*="credit"] a:has(.credit-text) {
  display: inline-block;
  border: none;
  background: none;
  text-decoration: none;
}

.credit-text,
a.credit-text {
  display: inline-block;
  width: auto;
  margin: 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--slate-line);
  border-radius: 7px;
  background-color: var(--slate-surface);
  color: var(--slate-muted) !important;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .05em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  opacity: .6;
  transition:
    opacity 200ms var(--slate-ease),
    border-color 200ms var(--slate-ease);
}

.credit-text:hover,
a.credit-text:hover,
footer a:hover .credit-text,
.footer a:hover .credit-text {
  opacity: 1;
  border-color: var(--slate-line);
  color: var(--slate-ink) !important;
}
