/* Matosic — handmade-feeling personal-site styling.
 * No webfonts, system fonts only. No grid, no cards, no nav.
 * Just text and breathing room.
 */

:root {
    --bg: #ece5d3;          /* warm cream, matches keyboard case */
    --text: #1a2419;        /* dark with subtle green undertone */
    --text-soft: #5b6157;   /* green-tinted secondary text */
    --text-faint: #8a8a7d;  /* warm grey */
    --accent: #2d4a35;      /* forest green — the brand color */
    --accent-soft: #a4b59a; /* sage green — keycap tone, for highlights */
    --rule: #c9b88a;        /* maple/wood-tinted hairlines */
    --code-bg: #e0d6bb;     /* deeper cream for code highlight */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

main {
    max-width: 620px;
    margin: 0 auto;
    padding: 80px 28px 120px;
}

article > header,
article > .site-nav {
    margin-bottom: 56px;
}

/* Shared top nav (used by all pages: landing, configure, future shop) */

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
}

.wordmark-link {
    text-decoration: none;
}

.wordmark-link:hover .wordmark {
    color: var(--accent);
}

.wordmark {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    text-transform: lowercase;
    transition: color 0.15s ease;
}

.wordmark .version {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    color: var(--text-faint);
    margin-left: 10px;
    letter-spacing: 0;
    text-transform: lowercase;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: baseline;
}

.nav-link {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link-active {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

h1 {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.018em;
    margin-bottom: 32px;
    color: var(--text);
}

.lede {
    font-size: 19px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 24px;
}

p {
    margin-bottom: 22px;
    color: var(--text);
}

.meta {
    font-size: 14px;
    color: var(--text-soft);
    margin-top: 28px;
    margin-bottom: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 64px 0;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 56px;
    margin-bottom: 22px;
    color: var(--text);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--code-bg);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--text);
    white-space: nowrap;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent);
}

/* Waitlist form — keep it intentionally plain */

.waitlist {
    display: flex;
    gap: 8px;
    margin: 24px 0 0;
    flex-wrap: wrap;
}

.waitlist input {
    flex: 1;
    min-width: 220px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--rule);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s ease;
}

.waitlist input:focus {
    border-color: var(--accent);
}

.waitlist button {
    padding: 11px 22px;
    font-family: inherit;
    font-size: 15px;
    color: var(--bg);
    background: var(--text);
    border: 1px solid var(--text);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.waitlist button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Footer */

footer {
    margin-top: 80px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
}

footer p {
    font-size: 14px;
    color: var(--text-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin-bottom: 16px;
}

footer p.social {
    font-size: 13px;
    color: var(--text-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin-bottom: 18px;
}

footer p.social a {
    color: var(--text-soft);
    text-decoration: underline;
    text-decoration-color: var(--rule);
    text-underline-offset: 3px;
}

footer p.social a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

footer p.legal {
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    margin-bottom: 0;
}

footer p.legal a {
    color: var(--text-soft);
    text-decoration-color: var(--rule);
}

footer p.legal a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* Small screens */

@media (max-width: 540px) {
    main {
        padding: 60px 22px 80px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 20px;
    }

    .lede {
        font-size: 17px;
    }
}
