/* mail.roderic.nl – the mail server's page: one moving thing (the sorting of the post), the rest quiet */
:root {
    --sky: #EAF1F7;
    --post: #1F3B5C;
    --ink: #1C2633;
    --muted: #5A6B7E;
    --stamp: #C2413F;
    --green: #2C7A57;
    --paper: #FFFFFF;
    --line: #CFDCE8;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky); color: var(--ink); font: 400 17px/1.6 var(--sans); }
body { margin: 0; }
a { color: var(--post); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 3px; }

.top { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 20px 24px; }
.brand { font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--post); letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 500; }
.langs { display: flex; gap: 2px; }
.langs button { font: 600 0.8rem/1 var(--sans); color: var(--muted); background: none; border: 0; padding: 8px 9px; border-radius: 6px; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--paper); background: var(--post); }

.hero { max-width: 1100px; margin: 0 auto; padding: 24px 24px 8px; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; color: var(--post); }
.lead { max-width: 34em; margin: 14px 0 0; font-size: 1.12rem; color: var(--muted); }
.sorter { margin: 28px -24px 0; height: 230px; position: relative; }
.sorter canvas { width: 100%; height: 100%; display: block; }
.tally { margin: 6px 0 0; font-size: 1.05rem; color: var(--ink); max-width: 46em; }
.tally b { font-weight: 800; color: var(--post); font-variant-numeric: tabular-nums; }
.tally .spam { color: var(--stamp); }

main > section { min-width: 0; }
.tablewrap { overflow-x: auto; border-radius: 8px; }
.serverall { margin: 0 0 8px; }
.settings thead th:nth-child(2), .settings tbody td:nth-of-type(1) { display: none; }
main { max-width: 1100px; margin: 0 auto; padding: 8px 24px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
section h2 { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.01em; margin: 32px 0 10px; color: var(--post); }
section p { max-width: 36em; }
.contacts { margin: 18px 0 0; display: grid; gap: 12px; }
.contacts div { background: var(--paper); border-left: 4px solid var(--post); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.contacts dt { font-size: 0.9rem; color: var(--muted); }
.contacts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.settings { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 8px; overflow: hidden; font-size: 0.95rem; }
.settings th, .settings td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.settings thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.settings tbody th { font-weight: 600; color: var(--post); white-space: nowrap; }
.settings tbody tr:last-child th, .settings tbody tr:last-child td { border-bottom: 0; }
footer { max-width: 1100px; margin: 0 auto; padding: 18px 24px 40px; color: var(--muted); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
footer p { margin: 0; }

@media (max-width: 800px) {
    main { grid-template-columns: 1fr; gap: 0; }
    .sorter { height: 170px; }
    .settings { font-size: 0.85rem; }
    .settings th, .settings td { padding: 8px 8px; }
    .settings tbody th { white-space: normal; }
}

/* webmail, and the tips per mail program */
.webmail { margin: 18px 0 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--post); color: var(--paper); text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 8px; }
.btn:hover { background: #16304C; }
.hint { color: var(--muted); font-size: 0.92rem; }
section h3 { font-size: 1.05rem; color: var(--post); margin: 26px 0 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); }
.tabs button { font: 600 0.88rem/1.2 var(--sans); color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 8px 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--post); border-bottom-color: var(--post); }
.pane { background: var(--paper); border-radius: 0 0 8px 8px; padding: 14px 16px 6px; font-size: 0.95rem; }
.pane ol { margin: 0 0 10px; padding-left: 1.3em; }
.pane li { margin: 0 0 6px; }
.pane code { background: var(--sky); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }
