:root {
    --cream: #f5ebd8;
    --ink: #352317;
    --copper: #b87333;
    --muted: #77604b;
    --line: #d9c2a4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

a {
    color: inherit;
}

header {
    max-width: 1160px;
    margin: auto;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: bold;
}

.brand span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--copper);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--copper);
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    text-decoration: none;
    font-size: 14px;
}

main {
    max-width: 1160px;
    margin: auto;
    padding: 64px 28px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 55px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #925525;
    font-weight: 700;
}

h1 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    font-weight: normal;
    letter-spacing: -.035em;
    margin: 20px 0;
}

p {
    line-height: 1.7;
    color: var(--muted);
    max-width: 520px;
}

.abe {
    width: 100%;
    border-radius: 50% 50% 24px 24px;
    box-shadow: 0 18px 40px #63381322;
    border: 6px solid #e6cfaf;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cards.projects {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    background: #fff9ed;
    transition: transform .15s, box-shadow .15s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px #63381315;
}

.card h2 {
    font-family: Georgia, serif;
    font-size: 28px;
    margin: 20px 0 0;
    font-weight: normal;
}

.card p {
    font-size: 14px;
    flex: 1;
}

.badge {
    font-size: 12px;
    color: #925525;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.go {
    font-size: 14px;
    font-weight: 600;
    margin-top: 18px;
    color: #925525;
}

footer {
    max-width: 1160px;
    margin: 35px auto;
    padding: 24px 28px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
}

.login {
    max-width: 420px;
}

label {
    display: block;
    font-size: 14px;
    margin: 24px 0 8px;
}

input {
    width: 100%;
    padding: 14px;
    border: 1px solid #b79a77;
    border-radius: 8px;
    background: #fffdf7;
    font: inherit;
}

button, .button {
    display: inline-block;
    background: #8c4e26;
    color: white;
    padding: 14px 22px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.login button {
    width: 100%;
    margin-top: 14px;
}

.remember-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 8px;
    line-height: 1.4;
    cursor: pointer;
}

.remember-choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    accent-color: var(--copper);
}

.logout {
    background: none;
    color: var(--muted);
    padding: 0;
    font-size: 14px;
}

.error {
    color: #a32d22;
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--copper);
    outline-offset: 5px;
}

.abe.mascot {
    height: auto;
    max-height: 460px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.card-mascot {
    width: 100%;
    height: 150px;
    object-fit: contain;
    object-position: right center;
    margin-bottom: 12px;
}

.status-page .hero {
    min-height: 420px;
}

@media(max-width:700px) {
    header {
        padding: 20px;
    }

    .brand {
        font-size: 20px;
    }

    nav {
        gap: 16px;
    }

    main {
        padding: 36px 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .abe {
        max-width: 380px;
        margin: auto;
        display: block;
    }

    .cards, .cards.projects {
        grid-template-columns: 1fr;
    }

    footer {
        margin-top: 0;
        gap: 16px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .abe.mascot {
        max-height: 300px;
    }

}

@media(prefers-reduced-motion:reduce) {
    .card {
        transition: none;
    }

}

/* Shared image logo. Keep the complete artwork visible. */
.brand img.brandmark {
    display: inline-block;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
    border: 0;
    border-radius: 0;
    background: none;
    padding: 0;
}