/* The whole site's styles. No build step: edit this file, save, refresh. */

:root {
    --ink: #1c2430;
    --muted: #5b6675;
    --paper: #fbfaf7;
    --line: #dcd8cf;
    --accent: #1d5a8a;
    --error: #a12b2b;
    --ok-bg: #e7f3ea;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

main, .site-header, .site-footer {
    max-width: 44rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.site-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

a { color: var(--accent); }
h1 { font-size: 2rem; line-height: 1.2; margin: 1.5rem 0 1rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

.contact-form { display: grid; gap: 0.4rem; margin-top: 1.5rem; }
.contact-form label { font-weight: 600; margin-top: 0.75rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form button {
    justify-self: start;
    margin-top: 1rem;
    padding: 0.65rem 1.25rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}
.contact-form button[disabled] { opacity: 0.6; cursor: default; }

.error { margin: 0; color: var(--error); font-size: 0.95rem; }
.notice { padding: 0.75rem 1rem; background: var(--ok-bg); border-radius: 4px; }

/* The field that only programs fill in. Kept out of sight and out of the way. */
.leave-empty { position: absolute; left: -100rem; width: 1px; height: 1px; overflow: hidden; }
