/* ==========================================================================
   Base
   ========================================================================== */

html,
body {
    margin: 0;
    background: #06060c;
    color: #e9e8e4;
    font-family: 'Jost', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #e9e8e4;
    text-decoration: none;
}

a:hover {
    color: #ffcc44;
}

input::placeholder {
    color: #7d7e85;
}

[hidden] {
    display: none !important;
}

/* ==========================================================================
   Page & background layers
   ========================================================================== */

.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #06060c;
    overflow: hidden;
}

.layer {
    position: absolute;
    inset: 0;
}

.pattern {
    background-image: url(leaf-tile-card.svg);
    background-repeat: repeat;
    background-size: 30px 26px;
}

.vignette {
    background: radial-gradient(
        ellipse 46% 52% at 50% 40%,
        rgba(6, 6, 12, 0.96) 0%,
        rgba(6, 6, 12, 0.82) 45%,
        rgba(6, 6, 12, 0) 100%
    );
}

/* ==========================================================================
   Main content
   ========================================================================== */

main {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 44px;
    padding: 40px 24px 120px;
    text-align: center;
}

.logo {
    display: block;
    width: min(300px, 64vw);
    height: auto;
}

.panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 460px;
}

.request {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #ffcc44;
}

.lede {
    font-size: 16px;
    line-height: 1.5;
    color: #b9b9bd;
    text-wrap: pretty;
}

/* ==========================================================================
   Form
   ========================================================================== */

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.email {
    box-sizing: border-box;
    width: 77%;
    padding: 16px 22px;
    background: rgba(10, 10, 16, 0.9);
    border: 1px solid #3a3b42;
    border-radius: 999px;
    outline: none;
    color: #f2f1ed;
    font: inherit;
    font-size: 16px;
    text-align: center;
}

.email.invalid {
    border-color: #ff6a55;
}

/* Honeypot field, hidden from people but visible to bots */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.submit {
    flex: none;
    min-width: 160px;
    padding: 12px 22px;
    background: #ffcc44;
    border: 0;
    border-radius: 999px;
    color: #06060c;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.submit:hover {
    background: #ffd766;
}

.submit:active {
    background: #f0bc33;
}

.submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.error {
    min-height: 20px;
    font-size: 14px;
    color: #ff6a55;
}

/* ==========================================================================
   Sent confirmation
   ========================================================================== */

.sent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0 20px;
}

.sent-text {
    font-size: 16px;
    line-height: 1.5;
    color: #d6d5d1;
}

.sent-email {
    color: #fff;
    font-weight: 500;
}

.reset {
    margin-top: 6px;
    color: #9a9ba1;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reset:hover {
    color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 28px;
    padding: 20px 24px 28px;
    font-size: 13px;
    color: #8d8e94;
    letter-spacing: 0.02em;
    text-align: center;
}

.contact {
    color: #e9e8e4;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.contact:hover {
    color: #ffcc44;
}
