/*
    ---------------------------------

    RESET
    
    ---------------------------------
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
img,
picture,
video,
canvas,
svg,
.video-wrapper {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
  appearance: none;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  color: inherit;
}
small,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
  margin: 0;
}
button {
  padding: 0;
  text-align: inherit;
  cursor: pointer;
}
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
}

/*
    ---------------------------------
    
    FONTS
    
    ---------------------------------
*/
@font-face {
    font-family: 'Vollkorn';
    src: url('fonts/Vollkorn-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Charis';
    src: url('fonts/CharisSIL-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/*
    ---------------------------------
    
    BASE
    
    ---------------------------------
*/
html {
    font-size: 20px;
}
@media (max-width: 1468px) {
    html {
        font-size: 18px;
    }
}
@media (max-width: 724px) {
    html {
        font-size: 16px;
    }
}

body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Charis', serif;
    background-color: #000;
    color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: #000;
    opacity: .5;
    z-index: -1;
}

a {
    text-decoration: none;
    color: #fff;
}
a:visited {
    color: inherit;
}
a:hover {
    color: #fff;
}
p > a {
    text-decoration: underline;
}
p > a:hover {
    opacity: .5;
}
small {
    opacity: .5;
}

main {
    position: relative;
    min-height: calc(100svh - 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1024px;
    width: 100%;
    gap: 2rem;
}

/*
    ---------------------------------
    
    LAYOUT
    
    ---------------------------------
*/
.content,
form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: max(1rem, 32px);
}
.logo img {
    max-height: 4rem;
}

/*
    ---------------------------------
    
    CONTENT
    
    ---------------------------------
*/
.content > h1 {
    max-width: 22ch;
    font-size: 2rem;
    font-family: 'Vollkorn', serif;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.25;
}
.content > p {
    max-width: 42ch;
    font-size: 1rem;
}
.content > a,
.footer a {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-bottom: .5em;
    border-bottom: 1px solid #fff;
}
.content > a svg {
    height: 1rem;
}

/*
    ---------------------------------
    
    FORM
    
    ---------------------------------
*/
form span {
    display: inline-flex;
    align-items: baseline;
    border-bottom: 1px solid #fff;
}
form input[type="password"] {
    font-family: 'Charis', serif;
    font-size: .8rem;
    line-height: 1.5;
    width: 12rem;
    color: #fff;
    opacity: 1;
    border: none;
}
form input[type="password"]:focus {
    color: inherit;
}

form input[type="password"]::placeholder {
    color: #fff;
    opacity: 1;
}
form input:-webkit-autofill,
form input:-webkit-autofill:hover,
form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #000 inset;
    caret-color: #fff;
}

form button {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    font-family: 'Charis', serif;
    font-size: 1rem;
    padding: .5em 1em;
}

.preview-error {
    font-family: 'Charis', serif;
    font-size: .8rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    opacity: .4;
    margin-top: .25rem;
}

/*
    ---------------------------------
    
    TRANSITIONS
    
    ---------------------------------
*/
.content > a,
.footer a,
form button {
    transition: opacity .2s ease;
}

.content > a:hover,
.footer a:hover {
    opacity: .5;
}

form button:hover {
    opacity: .7;
}