:root {
    /* colours */
    --bg: #ffffff;
    --text: #000000;
    --text-soft: #444444;
    --line: #000000;
    --surface: #ebe8e0;          /* card beige */
    --surface-half: hsla(44, 22%, 90%, .5);
    --accent: #866de9;           /* violet: focused fields */
    --accent-light: #cfc5f6;     /* light violet: tags */
    --dot: #ffffff;              /* the two dots on top of cards */
    --hover-dark: #444444;
    --placeholder: #979797;
    --ok-bg: #60ff70;
    --err-bg: #ff6c60;
    --ok: #000000;
    --err: #000000;

    /* typography */
    --font: 'Roboto', system-ui, sans-serif;
    /* big titles (500) and the header row (200) */
    --font-condensed: 'Roboto Condensed', var(--font);
    --w-thin: 200;
    --font-medium: var(--font);
    --font-semibold: var(--font);
    --font-bold: var(--font);
    --w-regular: 400;
    --w-medium: 500;
    --w-semibold: 600;
    --w-bold: 700;
    --fs-big: 64px;
    --fs-h1: 56px;
    --fs-brand: 24px;
    --brand-h: 28px;             /* logo height in the header */
    --fs-nav: 24px;
    --fs-h2: 24px;
    --fs-body: 16px;
    --fs-label: 16px;
    --lh-display: 55px;
    --lh-title: 1.2;
    --lh-text: 1.3;
    --ls-label: .03em;

    /* spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-7: 32px;
    --row: 70px;                 /* header and menu item height */
    --content-pad: var(--sp-4);
    --section-pad: var(--sp-6);

    /* shapes */
    --border: 1px solid var(--line);
    --radius-card: 10px;
    --radius-btn: 3px;
    --radius-dot: 50%;
    --dot-size: 10px;
    --card-pad: 11px 12px;

    /* layout (desktop only) */
    --sidebar: 25%;              /* 3 columns out of 12 */

    /* motion */
    --t-fast: .4s;
    --t-slow: .75s;
    --ease: ease-in-out;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
       font-size: var(--fs-body); line-height: var(--lh-text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--surface); }
a { color: inherit; text-decoration: none; border-bottom: var(--border); transition: all var(--t-fast); }
strong, b { font-family: var(--font-medium); font-weight: var(--w-medium); }

/* header */
header { display: flex; align-items: center; justify-content: space-between; height: var(--row);
         border-bottom: var(--border); background: var(--bg); }
header .brand { display: flex; align-items: baseline; gap: var(--sp-2); padding-left: var(--sp-4); font-family: var(--font-bold); font-weight: var(--w-bold); font-size: var(--fs-brand);
                line-height: 26px; text-transform: uppercase; border: 0; }
header .brand img { display: block; width: auto; height: var(--brand-h); }
/* capitals as tall as the logo: Roboto Condensed capitals are 0.711 of the font size */
header .brand span { font-family: var(--font-condensed); font-weight: var(--w-thin);
                     font-size: calc(var(--brand-h) / 0.711); line-height: 1; }
header .me { display: flex; align-items: center; gap: var(--sp-3); padding-right: var(--sp-4);
             font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label);
             font-family: var(--font-medium); font-weight: var(--w-medium); }
header .me form { margin: 0; }
header .me .btn { background: var(--text); color: var(--bg); text-transform: none; letter-spacing: 0;
                  font-size: var(--fs-body); }
header .me .btn:hover { background: var(--hover-dark); }
/* the island every page works on */
header .me .island { display: flex; align-items: center; gap: var(--sp-2); }
header .me .island select { width: auto; text-transform: none; letter-spacing: 0; }

/* sidebar + content */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; height: calc(100vh - var(--row) - 1px); }
.sidebar { overflow: auto; padding-bottom: 20px; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.sidebar li { display: flex; align-items: center; height: var(--row); border-bottom: var(--border);
              font-size: var(--fs-nav); line-height: 140%; }
.sidebar li > a, .sidebar li > span { display: flex; align-items: center; gap: var(--sp-2); width: 100%;
              height: 100%; padding: 0 var(--sp-5); border: 0; transition: all var(--t-slow) var(--ease); }
.sidebar li > a:hover { background: var(--surface-half); }
.sidebar li > a.on { background: var(--bg); }
.sidebar li > span { color: var(--placeholder); }
.sidebar li > span small { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
main { overflow: auto; padding: 0 var(--content-pad) var(--sp-7); background: var(--bg); }
.shell main { border-left: var(--border); }
.shell main > .row, .shell main > h1, .shell main > .sub, .shell main > .section-intro, .shell main > .section-actions {
    margin-left: calc(-1 * var(--content-pad)); margin-right: calc(-1 * var(--content-pad));
    padding: var(--section-pad) var(--content-pad); border-bottom: var(--border); margin-bottom: 0;
}
.shell main > h1, .shell main > .sub, .shell main > .row { margin-top: 0; }
.shell main > .row h1 { margin: 0; }
.shell main > .row .sub { margin: var(--sp-2) 0 0; }
.shell main > .section-actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: var(--sp-4);
    row-gap: var(--sp-2); padding: var(--sp-4) var(--content-pad) 0; border-bottom: 0; }
/* what the page is for, two lines above its actions */
.shell main > .section-intro { max-width: 80ch; padding-bottom: 0; border-bottom: 0; color: var(--text-soft); }
.shell main > .section-intro + .section-actions { padding-top: var(--sp-2); }
.shell main > .section-actions + h1, .shell main > .section-actions + .row { padding-top: var(--sp-2); }
.section-actions .tag { padding: 0; margin: 0; border: 0; border-radius: 0; background: none;
    color: var(--placeholder); font-family: var(--font); font-size: var(--fs-body);
    letter-spacing: 0; text-transform: none; }

/* text */
h1 { font-family: var(--font-condensed); font-size: var(--fs-h1); line-height: var(--lh-display); font-weight: var(--w-medium); margin: var(--sp-6) 0 var(--sp-4); }
h2 { font-family: var(--font-medium); font-size: var(--fs-h2); font-weight: var(--w-medium); line-height: var(--lh-title); }
h3 { font-family: var(--font-medium); font-size: var(--fs-label); font-weight: var(--w-medium); line-height: var(--lh-text);
     letter-spacing: var(--ls-label); text-transform: uppercase; }
.sub { font-size: var(--fs-nav); line-height: var(--lh-title); color: var(--text-soft); margin: 0 0 var(--sp-7); }
.hint { color: var(--text-soft); font-size: var(--fs-label); margin-top: var(--sp-1); }

/* Plain white sections, separated by edge-to-edge lines. */
.shell main .panel { position: relative; background: var(--bg); border-radius: 0; border-bottom: var(--border);
         padding: var(--section-pad) var(--content-pad); margin: 0 calc(-1 * var(--content-pad)); }
.shell main .panel::before, .shell main .panel::after { content: none; }
.shell main .panel:has(> table:first-child) { padding: 0; }
.shell main .panel:has(> table:first-child) > table th:first-child,
.shell main .panel:has(> table:first-child) > table td:first-child { padding-left: var(--content-pad); }
.shell main .panel:has(> table:first-child) > table th:last-child,
.shell main .panel:has(> table:first-child) > table td:last-child { padding-right: var(--content-pad); }
.shell main .panel > .field { margin: 0 calc(-1 * var(--content-pad)); padding: var(--sp-4) var(--content-pad); border-bottom: var(--border); }
.shell main .panel > .field:first-child { padding-top: 0; }
.shell main .panel > .field:last-child { border-bottom: 0; padding-bottom: 0; }
.panel { position: relative; background: var(--surface); border-radius: var(--radius-card);
         padding: var(--sp-6) var(--sp-4); margin-bottom: var(--sp-4); }
.shell main .panel.special { background: var(--surface); border-radius: var(--radius-card); margin: var(--sp-4) 0; }
.panel > strong:first-child { display: block; font-size: var(--fs-nav); font-weight: var(--w-medium); }
.panel > strong:first-child a { border: 0; }
.panel > strong:first-child a:hover { border-bottom: var(--border); }
.panel .tag-list { margin-top: var(--sp-2); }
.row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); }

/* tables: like the job listing */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: var(--sp-4) var(--sp-2); border-bottom: var(--border); vertical-align: top; }
tbody td { font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-text); }
tbody td strong, tbody td .hint, tbody td .tag { font-family: inherit; font-size: inherit;
    font-weight: 400; line-height: inherit; letter-spacing: 0; text-transform: none; }
tbody td .tag { margin-bottom: 0; }
th { font-size: var(--fs-label); font-family: var(--font-medium); font-weight: var(--w-medium); text-transform: uppercase; letter-spacing: var(--ls-label);
     vertical-align: middle; }

/* buttons */
.btn { display: inline-block; border: var(--border); border-radius: var(--radius-btn); background: transparent;
       color: var(--text); padding: 2px 10px 5px; font: inherit; line-height: var(--lh-text);
       cursor: pointer; text-decoration: none; transition: all var(--t-fast); }
.btn:hover { background: var(--text); color: var(--bg); }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.primary:hover { background: var(--hover-dark); border-color: var(--hover-dark); }
.btn.danger:hover { background: var(--err-bg); border-color: var(--line); color: var(--text); }
.btn.link { border: 0; border-bottom: var(--border); border-radius: 0; background: none; padding: 0; color: var(--text); }
.btn.link:hover { color: var(--text-soft); }

/* forms */
label { display: block; font-size: var(--fs-label); font-family: var(--font-medium); font-weight: var(--w-medium); text-transform: uppercase;
        letter-spacing: var(--ls-label); margin: 0 0 var(--sp-1); }
.field { margin-bottom: var(--sp-4); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number],
input[type=date], input[type=time], input[type=datetime-local], input[type=search], textarea, select {
    width: 100%; max-width: 480px; padding: 5px 10px; border: var(--border); border-radius: var(--radius-btn);
    background: transparent; color: var(--text); font: inherit; outline: none; transition: all var(--t-fast); }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input:focus, textarea:focus, select:focus { background: var(--bg); border-color: var(--accent); }
input[type=checkbox], input[type=radio], select { accent-color: var(--text); }
.check { display: inline-flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0;
         font-size: var(--fs-body); font-weight: var(--w-regular); margin: 0 var(--sp-4) 6px 0; }

/* tags: like the "standard" job badge */
.tag { display: inline-block; padding: 3px var(--sp-2) 4px; border-radius: var(--radius-btn); background: var(--accent-light);
       font-size: var(--fs-label); font-family: var(--font-medium); font-weight: var(--w-medium); text-transform: uppercase; letter-spacing: var(--ls-label);
       margin: 0 var(--sp-1) var(--sp-1) 0; }
.tag.warn { background: var(--err-bg); }

.flash { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-card); margin-bottom: var(--sp-4); }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }
.perm-page { border: var(--border); border-radius: var(--radius-btn); padding: var(--sp-3); }
.perm-page strong { display: block; margin-bottom: 6px; }

/* Login */
.login-page { min-height: 100vh; padding: 0; }
.login-header { height: var(--row); padding: 0; overflow-x: auto; }
.login-header h1 { display: flex; flex: none; align-items: center; gap: var(--sp-2); height: 100%; margin: 0;
    padding: 0 var(--sp-5); font-family: var(--font-condensed); font-size: 40px;
    font-weight: var(--w-thin); line-height: 1; white-space: nowrap; }
.login-header h1 img { display: block; width: auto; height: 28px; }
.login-form { display: flex; flex: 1; align-items: center; height: 100%; margin: 0; }
.login-field { flex: 1; min-width: 120px; height: 100%; }
.login-field label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.login-form input[type=email], .login-form input[type=password] { display: block; width: 100%; max-width: none;
    height: 100%; padding: 0 var(--sp-5); border: 0; border-radius: 0; }
.login-form .check { flex: none; margin: 0 var(--sp-4); white-space: nowrap; }
.login-form .btn { flex: none; margin-right: var(--sp-5); white-space: nowrap; }
.login-page > .flash { margin: var(--sp-4) var(--sp-5); }

/* docs: a plain Markdown preview, like an editor's */
.markdown { max-width: 900px; padding: var(--sp-6) 0; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
            font-size: 15px; line-height: 1.6; color: #24292f; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { font-family: inherit; font-weight: 600; line-height: 1.25;
            letter-spacing: 0; text-transform: none; margin: 24px 0 12px; }
.markdown h1 { font-size: 2em; padding-bottom: .3em; border-bottom: 1px solid #d0d7de; }
.markdown h2 { font-size: 1.5em; padding-bottom: .3em; border-bottom: 1px solid #d0d7de; }
.markdown h3 { font-size: 1.25em; }
.markdown h4 { font-size: 1em; }
.markdown > :first-child { margin-top: 0; }
.markdown p, .markdown ul, .markdown ol, .markdown table, .markdown pre, .markdown blockquote { margin: 0 0 16px; }
.markdown ul, .markdown ol { padding-left: 2em; }
.markdown li + li { margin-top: .25em; }
.markdown a { color: #0969da; border: 0; }
.markdown code { font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; font-size: 85%;
            padding: .2em .4em; border-radius: 4px; background: #eff1f3; }
.markdown pre { padding: 16px; overflow: auto; border-radius: 6px; background: #f6f8fa; line-height: 1.45; }
.markdown pre code { padding: 0; background: none; font-size: 85%; }
.markdown blockquote { padding: 0 1em; color: #57606a; border-left: .25em solid #d0d7de; }
.markdown hr { height: 1px; margin: 24px 0; border: 0; background: #d0d7de; }
.markdown table { width: auto; display: block; overflow: auto; }
.markdown th, .markdown td { padding: 6px 13px; border: 1px solid #d0d7de; font-family: inherit; font-size: inherit;
            font-weight: normal; text-transform: none; letter-spacing: 0; }
.markdown th { font-weight: 600; background: #f6f8fa; }
