:root {
    --bg: #536579;          /* Hague Blue, lightened and dusted down */
    --bg-deep: #485a6d;
    --cream: #fbf8f1;
    --cream-soft: rgba(251, 248, 241, 0.86);
    --line: rgba(251, 248, 241, 0.45);
    --field: rgba(31, 43, 57, 0.18);
    --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 30%, var(--bg) 0%, var(--bg-deep) 100%) fixed var(--bg);
    color: var(--cream);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
}

main {
    max-width: 30rem;
    margin: 0 auto;
    padding: 4.5rem 1.25rem 4rem;
    text-align: center;
}

.loom {
    display: block;
    width: 320px;
    height: auto;
    max-width: 100%;
    margin: 0 auto 2.25rem;
    image-rendering: crisp-edges; /* older Firefox */
    image-rendering: pixelated;
}

h1 {
    margin: 0;
    font-weight: 500;
    font-size: clamp(2.75rem, 11vw, 4.25rem);
    line-height: 1;
    letter-spacing: 0.04em;
}

.strap {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cream-soft);
}

#contact {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
    text-align: left;
}

form { display: grid; gap: 0.4rem; }

label {
    margin-top: 0.9rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-soft);
}

input, textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--field);
    color: var(--cream);
    font: inherit;
    font-weight: 400;
    transition: border-color 0.2s, background-color 0.2s;
}

textarea { resize: vertical; min-height: 8rem; }

input:focus, textarea:focus {
    outline: none;
    border-color: var(--cream);
    background: rgba(31, 43, 57, 0.28);
}

[aria-invalid="true"] { border-color: #e9b9a4; }

.err {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    color: #f3cdbd;
}

button {
    justify-self: center;
    margin-top: 1.75rem;
    padding: 0.75rem 2.75rem;
    border: 1px solid var(--cream);
    border-radius: 0;
    background: transparent;
    color: var(--cream);
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

button:hover, button:focus-visible {
    background: var(--cream);
    color: var(--bg-deep);
    outline: none;
}

.notice {
    margin: 0 0 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    font-size: 1rem;
    text-align: center;
}

.notice--error { border-color: #e9b9a4; }

/* Honeypot: off-screen rather than display:none, which some bots detect */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.direct {
    margin: 2.5rem 0 0;
    text-align: center;
    font-size: 1rem;
    color: var(--cream-soft);
}

.direct a {
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.2s;
}

.direct a:hover, .direct a:focus-visible {
    border-color: var(--cream);
    outline: none;
}

@media (max-width: 480px) {
    main { padding-top: 3rem; }
    .loom { width: 240px; }
}
