/* Variables */
:root {
    --surface: #e3e6ec;
}

/* Font Declarations */
@font-face {
    font-family: 'Hedvig Letters';
    src: url(../fonts/HedvigLettersSerif-Regular-VariableFont_opsz.ttf);
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url(../fonts/AlegreyaSans-Medium.ttf);
}
@font-face {
    font-family: 'Alegreya Sans';
    src: url(../fonts/AlegreyaSans-MediumItalic.ttf);
    font-style: italic;
}

/* Layout & Basics */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.80%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23n)%22%20opacity%3D%220.35%22%2F%3E%3C%2Fsvg%3E"),
    linear-gradient(to bottom, #26579f, #120c1b);
    background-attachment: fixed;
    color: white;
    font-family: 'Alegreya Sans'; /* placeholder */

    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset);
}

img {
    max-width: 100%;
}

section {
    color: black;
    padding: 1rem;
    position: relative;
    padding: 1rem 1rem 5rem;
    overflow-x: hidden;
}
section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    filter: url(#squiggle);
    background: var(--surface);
    background: linear-gradient(to bottom, var(--surface) 90%, rgba(0,0,0,0) 100%);
    width: 120%;
    translate: -10%;
}

div.social-links {
    text-align: center;
}
svg {
    width: 3rem;
    fill: white;
}

form {
    text-align: center;
}
form a, form a:visited {
    color: white;
    font-size: 90%;
    text-decoration: none;
}
form p {
    margin-top: 0.2rem;
}

input[type="email"] {
    background: var(--surface);
    border: none;
}
input[type="submit"] {
    font-family: 'Alegreya Sans';
    color: black;
    letter-spacing: 1px;
}

/* Typography  */
h1, h2 {
    text-align: center;
    filter: drop-shadow(2px 2px 2px black);
}
h1 {
    font-family: 'Hedvig Letters';
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(2rem, 3rem, 9vw);
}
h2 {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}
h1 + h2 {
    margin-top: -2rem;
}

h3 {
    font-weight: 500;
    text-align: center;
    margin: 0.2rem auto 1rem;
    font-style: italic;
    letter-spacing: 0.1rem;
}
h3 del {
    color: rgb(75, 0, 0);
    text-decoration-color: rgb(172, 0, 0);
    text-decoration-thickness: 2px;
}

section p {
    font-family: 'Hedvig Letters';
    text-indent: 1rem;
}
h3.outer {
    filter: drop-shadow(2px 2px 2px black);
    padding: 1rem;
}
h3.outer a, h3.outer a:visited {
    color: white;
}

section hr {
    overflow: visible; /* For IE */
    padding: 0;
    border: none;
    border-top: 1px solid black;
    color: black;
    text-align: center;
    width: 80%;
}
section hr:after {
    content: "†";
    color: var(--accent-bold);
    font-family: serif;
    display: inline-block;
    position: relative;
    top: -0.8em;
    font-size: 1.5em;
    padding: 0 0.25em;
    background: var(--surface);
}

/* Tablet and Smaller Laptop Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 5rem;
        line-height: 2rem;
    }
    h2 {
        font-size: 2rem;
        letter-spacing: 0.5rem;
    }

    section {
        width: 80%;
        margin: 1rem auto;
    }
    section::after {
        width: 100%;
        translate: 0;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    section {
        width: 60%;
    }
}