/* Fonts */
@font-face {
  font-family: 'Canela';
  font-weight: 100;
  font-display: swap;
  src: url('../fonts/Canela/Canela-Thin.otf') format('opentype');
}

@font-face {
  font-family: 'Canela';
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/Canela/Canela-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'WorkSans';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/WorkSans/woff2/WorkSans-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'WorkSans';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/WorkSans/woff2/WorkSans-SemiBold.woff2') format('woff2');
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background-color: #000;
  color-scheme: dark;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'WorkSans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #fff;
}

/* Layout */
main {
  width: 100%;
  max-width: 45rem;
}

/* Typography */
h1 {
  margin: 0.25rem 0 0;
  font-family: 'Canela', serif;
  font-weight: 100;
  font-size: 2.938rem;
  line-height: 1.1;
  letter-spacing: -0.06rem;
}

h1 .regular {
  font-weight: 200;
}

label {
  font-family: 'WorkSans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Links */
a {
  color: #fff;
  text-decoration: none;
}

a:hover,
a:active {
  border-bottom: 4px solid #fff;
  padding-bottom: 2px;
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Links section */
.links {
  margin-top: 2rem;
}

.links div {
  margin-top: 0.25rem;
}

/* Selection */
::selection {
  background: rgba(255, 255, 255, 0.5);
}

/* Mobile */
@media (max-width: 480px) {
  h1 {
    font-size: 2.6rem;
    line-height: 1.05;
  }
}
