/* One stylesheet, no framework. Mobile first, single column, system fonts.
   The Content-Security-Policy allows style-src 'self' only, so there are no
   inline styles anywhere in this site. */

:root {
    --ink: #17202a;
    --quiet: #5b6874;
    --line: #dde3e9;
    --bg: #ffffff;
    --accent: #1f5fa9;
    --bad: #a3282d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
}

.brand { font-weight: 600; text-decoration: none; color: var(--ink); }

nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
nav form { margin: 0; }

main { max-width: 44rem; margin: 0 auto; padding: 1rem; }

footer {
    max-width: 44rem;
    margin: 0 auto;
    padding: 1rem;
    color: var(--quiet);
    border-top: 1px solid var(--line);
}

h1 { font-size: 1.4rem; }

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

.stack { display: flex; flex-direction: column; gap: 0.5rem; max-width: 22rem; }

input, button {
    font: inherit;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 4px;
}

button {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    cursor: pointer;
}

nav button { background: none; color: var(--accent); border: none; padding: 0; }

.error { color: var(--bad); }

.quiet { color: var(--quiet); }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }

.code {
    font: 1.6rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.1em;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: inline-block;
}

h2 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

.search { display: flex; gap: 0.5rem; margin: 1rem 0; }
.search input { flex: 1 1 auto; min-width: 0; }

/* The item and place lists: one line a person can hit with a thumb, and a
   quieter second line under it. No table, because a table cannot wrap. */
.things { list-style: none; margin: 0; padding: 0; }
.things li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.thing { font-weight: 600; text-decoration: none; }
.thing:hover { text-decoration: underline; }

.pages { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }

.hex {
    font: 1rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.05em;
    word-break: break-all;
}

/* For a label that a screen reader needs and a sighted reader does not. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
