@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

/* =========================
   Variables
   ========================= */

:root {
    --ink: #171717;
    --muted: #6d6d6d;
    --paper: #f7f6f2;
    --card: #ffffff;
    --line: #deddd7;
    --accent: #d8ff38;
    --dark: #171717;
}


/* =========================
   Reset
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Manrope, system-ui, sans-serif;
}


/* =========================
   Header
   ========================= */

.site-header {
    max-width: 1180px;
    margin: auto;
    padding: 25px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;

    width: 27px;
    height: 27px;

    background: var(--accent);
    border-radius: 7px;

    margin-right: 8px;
}

.site-header nav {
    display: flex;
    gap: 25px;
}

.site-header nav a,
footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}


/* =========================
   Hero
   ========================= */

.hero {
    max-width: 900px;
    margin: 55px auto 0;
    padding: 0 24px;

    text-align: center;
}

.eyebrow {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.13em;
    color: #777;
}

.hero h1 {
    margin: 17px 0 22px;

    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.hero h1 span {
    color: #8c8b86;
}

.hero-copy {
    max-width: 560px;
    margin: 0 auto 35px;

    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}


/* =========================
   Generator Card
   ========================= */

.tool-card {
    background: var(--card);

    border: 1px solid var(--line);
    border-radius: 24px;

    padding: 28px;

    text-align: left;

    box-shadow: 0 20px 60px #00000008;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.fields label {
    font-size: 12px;
    font-weight: 700;
}

.fields input {
    display: block;

    width: 100%;

    margin-top: 8px;
    padding: 15px;

    border: 1px solid var(--line);
    border-radius: 11px;

    background: #fafaf8;

    font-family: "DM Mono", monospace;
    font-size: 15px;
    font-weight: 500;

    outline: none;
}

.fields input:focus {
    border-color: #999;
}


/* =========================
   Generator Options
   ========================= */

.options {
    display: flex;
    gap: 22px;

    margin: 20px 0;

    font-size: 13px;
    color: var(--muted);
}

.check {
    display: flex;
    align-items: center;
    gap: 7px;
}

.check input {
    accent-color: #171717;
}


/* =========================
   Generate Button
   ========================= */

.generate {
    width: 100%;

    border: 0;
    border-radius: 12px;

    padding: 17px;

    background: var(--dark);
    color: white;

    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.15s;
}

.generate:hover {
    transform: translateY(-1px);
    background: #292929;
}

.generate span {
    float: right;
    font-size: 18px;
}


/* =========================
   Error Message
   ========================= */

.error {
    min-height: 21px;

    padding-top: 10px;

    color: #b3261e;
    font-size: 12px;
}


/* =========================
   Result
   ========================= */

.result {
    min-height: 110px;

    margin-top: 4px;
    padding: 25px;

    border: 1px dashed #c9c8c2;
    border-radius: 14px;

    display: grid;
    place-items: center;

    text-align: center;

    font-family: "DM Mono", monospace;
    font-size: 28px;
    font-weight: 500;

    word-break: break-word;
}

.result.empty {
    color: #aaa;

    font-family: Manrope, sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.result.pop {
    animation: pop 0.25s ease;
}


/* =========================
   Result Buttons
   ========================= */

.result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    margin-top: 10px;
}

.secondary {
    border: 1px solid var(--line);
    border-radius: 9px;

    padding: 9px 14px;

    background: white;

    font-family: Manrope, sans-serif;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* =========================
   How It Works
   ========================= */

.content-grid {
    max-width: 1100px;

    margin: 70px auto;

    padding: 0 24px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.content-grid article {
    background: white;

    border: 1px solid var(--line);
    border-radius: 18px;

    padding: 28px;
}

.icon {
    font-family: "DM Mono", monospace;
    font-size: 12px;
    color: #999;
}

.content-grid h2 {
    font-size: 19px;
    letter-spacing: -0.03em;
}

.content-grid p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   About Section
   ========================= */

.article {
    max-width: 1100px;

    margin: 50px auto 90px;

    padding: 45px 24px;

    border-top: 1px solid var(--line);

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;
}

.article h2 {
    margin-top: 10px;

    font-size: 32px;
    letter-spacing: -0.05em;
}

.article p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   Legal Pages
   ========================= */

.legal {
    max-width: 780px;

    margin: 70px auto 120px;

    padding: 0 24px;
}

.legal h1 {
    margin: 15px 0 35px;

    font-size: 54px;
    letter-spacing: -0.06em;
}

.legal h2 {
    margin-top: 40px;

    font-size: 20px;
}

.legal p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.8;
}

.back {
    display: inline-block;

    margin-top: 30px;

    color: var(--ink);

    font-weight: 700;
    text-decoration: none;
}


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

footer {
    max-width: 1180px;

    margin: auto;
    padding: 25px 24px 35px;

    border-top: 1px solid var(--line);

    display: flex;
    justify-content: space-between;

    color: #999;

    font-size: 12px;
}

footer div {
    display: flex;
    gap: 18px;
}


/* =========================
   Animations
   ========================= */

@keyframes pop {
    50% {
        transform: scale(1.015);
    }
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 700px) {

    .site-header nav {
        display: none;
    }

    .hero {
        margin-top: 30px;
    }

    .fields {
        grid-template-columns: 1fr 1fr;
    }

    .fields label:last-child {
        grid-column: 1 / -1;
    }

    .options {
        flex-direction: column;
        gap: 10px;
    }

    .content-grid,
    .article {
        grid-template-columns: 1fr;
    }

    .article {
        gap: 10px;
    }

    .legal h1 {
        font-size: 42px;
    }

    footer {
        flex-direction: column;
        gap: 15px;
    }
}