/* Normalize */

html,
body {
    border: 0;
    margin: 0;
    padding: 0;

    position: relative;

    font-size: 20px;
}

body {
    color: #211f1e;
    background-color: #fefefd;
    font-family: 'Miller Text', Georgia, 'Times New Roman', sans-serif;
}


/* Fonts */

@font-face {
  font-family: "Miller Text";
  src: url("miller-text-regular.woff2") format('woff2');
}

@font-face {
  font-family: "Miller Text";
  src: url("miller-text-regular-italic.woff2") format('woff2');
  font-style: italic;
}


/* Page setup */

.home-container {
    max-width: 872px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 8rem 2rem;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Text */

.text {
    padding: 0 2rem;
    margin: 2rem 0 0;
    line-height: 1.4142; /* sqrt(2) */
    hyphens: auto;
}

.text__p:first-child {
    margin-top: 0;
    hyphens: none;
}

.text__p:last-child {
    margin: 0;
}

.text__p--link {
    color: inherit;
    text-decoration: none;
}

.text__p--link:hover {
    text-decoration: underline;
}

.text__p--dropcap {
    font-variant: small-caps;
    letter-spacing: 0.03rem;
}

.signature__container {
    text-align: left;
}

.signature__img {
    margin: 1rem 0 0.5rem;
    height: 3rem;
    opacity: 0.85;
}

.signature__img--light {
    display: inline;
}

.signature__img--dark {
    display: none;
}


/* Adjustments for small screens */

@media (max-width: 600px) {
    .home-container {
        justify-content: flex-start;
        padding: 6rem 0 8rem;
    }

    .text__p--link {
        text-decoration: underline;
    }
}


/* Dark mode */

@media screen and (prefers-color-scheme: dark) {
    body {
        background-color: #181716;
        color: #d0d0cd;
    }

    .text {
        letter-spacing: 0.005em;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
    }

    .signature__img--light {
        display: none;
    }

    .signature__img--dark {
        display: inline;
        opacity: 0.75 !important;
    }
}
