:root {
    color-scheme: light;
    --ink: #172739;
    --navy: #003b65;
    --light: #f4f7fa;
    --muted: #46596b;
    --rule: #cfdae3;
    background: var(--light);
    color: var(--ink);
    font: 1rem/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 46rem); margin-inline: auto; }
.site-header { background: var(--navy); color: #fff; border-bottom: .28rem solid #e9b83f; }
.site-header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
    padding-block: 1rem;
}
.site-header a { color: inherit; }
.site-header a:first-child { font-weight: 700; text-decoration: none; }
.site-header a:first-child:hover { text-decoration: underline; }
main { padding-block: clamp(1.5rem, 5vw, 3rem); }
h1, h2, h3, p { margin-block: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h1 { font: 700 clamp(2.5rem, 7vw, 4.25rem)/1.12 Georgia, serif; }
h2 { font-size: 1.4rem; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
.intro { max-width: 38rem; margin-block: .75rem 1.5rem; font-size: 1.12rem; color: var(--muted); }
.panel, .entry {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: .7rem;
    padding: clamp(1rem, 4vw, 1.65rem);
}
h1 + .panel, h1 + .feedback, .toolbar { margin-top: 1.5rem; }
label { display: block; margin-bottom: .25rem; font-weight: 650; }
input:not([type=hidden]), textarea {
    display: block;
    width: 100%;
    padding: .65rem .75rem;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid #7d90a3;
    border-radius: .35rem;
    margin-bottom: .9rem;
}
textarea { resize: vertical; }
button {
    display: inline-block;
    min-height: 44px;
    padding: .55rem 1rem;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: .35rem;
    cursor: pointer;
}
button:hover { background: #18557e; }
.secondary { background: #fff; color: var(--navy); }
.secondary:hover { background: #e9f1f8; }
a { color: var(--navy); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #b56a00; outline-offset: 3px; }
.hint, time { color: var(--muted); }
.hint { margin-bottom: .9rem; }
.feedback { margin-bottom: 1rem; padding: .65rem .9rem; background: #e8f3ea; border-radius: .35rem; }
.feedback.error { background: #fff0e8; color: #752900; }
.entries { margin-top: 2rem; }
.entry + .entry { margin-top: .75rem; }
.entry-meta, .actions, .toolbar, .toolbar nav, .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1.25rem;
}
.entry-meta, .toolbar { justify-content: space-between; }
.message { margin-top: .45rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions, .pagination { margin-top: .85rem; }
[aria-current=page] { font-weight: 750; }
footer { border-top: 1px solid var(--rule); padding-block: 1rem 1.5rem; }
