@font-face {
    font-family: Barlow;
    src: url("fonts/barlow-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Barlow;
    src: url("fonts/barlow-semibold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("fonts/cormorant-garamond.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 500;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --night: #0c1425;
    --lavender: #ded2fb;
    --serif: "Cormorant Garamond", Georgia, serif;
    --edge: max(6%, calc((100% - 82rem) / 2));
}

* { box-sizing: border-box; }

body {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    margin: 0;
    color: #f2f3fd;
    background: var(--night);
    font: 400 1rem/1.55 Barlow, system-ui, sans-serif;
}

h1, h2, p { margin: 0; }

:focus-visible {
    outline: 2px solid var(--lavender);
    outline-offset: .3rem;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(20rem, 32vw, 51rem);
    padding: clamp(1rem, 2vw, 2rem) var(--edge) clamp(1.75rem, 3vw, 3rem);
}

.moonwell, body::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.moonwell { z-index: -2; object-fit: cover; object-position: 85% 44%; }

body::before {
    content: "";
    z-index: -1;
    background:
        linear-gradient(0deg, #080e1dd9, #091120a1 24%, transparent 54%),
        linear-gradient(90deg, #060d1b78, #081021bd 27%, #09122775 48%, transparent 72%),
        linear-gradient(180deg, #0a10238a, transparent 20%);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .25rem 1rem;
}

.guild-label {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.intro { margin-block: auto; padding-block: clamp(1.9rem, 4vw, 4rem); }

h1 {
    font: 500 clamp(3.5rem, 9.1vw, 8.25rem)/.89 var(--serif);
    letter-spacing: -.045em;
}

h1 em { display: block; color: var(--lavender); }

.intro p {
    max-width: min(39ch, 53%);
    margin-top: clamp(1.25rem, 2.4vw, 2rem);
    color: #e3e6f2;
    font-size: clamp(1rem, 1.65vw, 1.32rem);
    text-wrap: pretty;
}

.values {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.3rem, 4vw, 4rem);
    margin-inline: var(--edge);
    padding-block: clamp(1.6rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
    border-top: 1px solid #c2bece66;
}

.values::before {
    content: "";
    position: absolute;
    top: -4px;
    left: calc(50% - 3px);
    width: 6px;
    height: 6px;
    background: #bcc3ed;
    transform: rotate(45deg);
}

.values h2 {
    color: #e7def9;
    font: 600 clamp(1.6rem, 3vw, 2.65rem)/1.12 var(--serif);
}

.values p {
    max-width: 39ch;
    margin-top: .45rem;
    color: #edf0f7;
    text-shadow: 0 1px 4px #080c16;
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    text-wrap: pretty;
}

footer {
    margin-top: auto;
    padding: 0 var(--edge) 1rem;
    color: #9099ad;
    font-size: .8125rem;
    text-align: center;
}

footer a { color: inherit; text-decoration-color: #9099ad99; text-underline-offset: .16em; }
footer a:is(:hover, :focus-visible) { color: var(--lavender); text-decoration-color: currentColor; }

@media (max-width: 39rem) {
    .moonwell { object-position: 75% center; }
    body::before {
        background: linear-gradient(0deg, #080f20e0, #091021bc 45%, #09102194 67%, transparent 89%, #080f2399);
    }
    .guild-label { gap: .45rem; font-size: .8125rem; letter-spacing: .08em; }
    .guild-label img { width: 1.6rem; height: 1.6rem; }
    .intro { margin: 8rem 0 0; padding: 0; }
    .intro p { max-width: 39ch; }
    .values { grid-template-columns: 1fr; }
    .values p { margin-top: .25rem; }
}
