/* Identity kit. Four colours, two fonts, no exceptions. */
:root{--paper:#FAF9F6;--ink:#16181C;--signal:#2B3D18;--caution:#B4531A}

*{box-sizing:border-box}

body{margin:0;background:var(--paper);color:var(--ink);
font-family:"IBM Plex Sans",system-ui,sans-serif;font-weight:400;line-height:1.55;
-webkit-font-smoothing:antialiased}

main{max-width:36rem;margin:0 auto;padding:0 1.5rem 6rem}

h1{font-weight:600;letter-spacing:-.02em;color:var(--signal);font-size:1.6rem;line-height:1.3;margin:0 0 1.5rem}
h2{font-weight:600;letter-spacing:-.02em;color:var(--signal);font-size:1.1rem;margin:3rem 0 .75rem}
h2.limit{color:var(--caution)}
h3{font-weight:600;font-size:.95rem;margin:1.5rem 0 .25rem}
p{margin:0 0 1.25rem}
ul{padding-left:1.1rem;margin:0 0 1.25rem}
li{margin-bottom:.5rem}
hr{border:0;border-top:1px solid var(--signal);opacity:.25;margin:3rem 0}

/* Mono carries every number, column name, file path, and label. Never prose. */
code{font-family:"IBM Plex Mono",ui-monospace,monospace;font-weight:500;font-size:.9em}
.meta{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.8125rem;letter-spacing:.04em}

a{color:var(--signal);text-decoration:underline;text-underline-offset:2px}

/* Header: mark, then nav. Same on all four pages. */
header{max-width:36rem;margin:0 auto;padding:8vh 1.5rem 0}
.mark{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;
border-radius:10px;background:var(--signal);color:var(--paper);font-weight:600;
text-decoration:none;margin-bottom:1.5rem}
nav{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.8125rem;letter-spacing:.04em;
display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;
padding-bottom:1.5rem;border-bottom:1px solid var(--signal);margin-bottom:2.5rem}
nav a,nav span{display:inline-block;padding:.4rem 0}
/* Current page is plain text, not a link, so nothing is signalled by colour alone. */
nav span[aria-current]{color:var(--ink);font-weight:500}

/* Charts are pipeline output, recoloured to the palette. Data untouched. */
figure{margin:1.5rem 0 2rem}
figure svg,figure img{max-width:100%;height:auto;display:block;border:1px solid rgba(43,61,24,.25)}
figcaption{font-size:.875rem;margin-top:.5rem;line-height:1.5}

/* Form. Labels are labels, so they sit in mono. Answers are prose, so they don't. */
form{margin:0 0 1.25rem}
label{display:block;font-family:"IBM Plex Mono",ui-monospace,monospace;
font-size:.75rem;font-weight:500;letter-spacing:.06em;color:var(--signal);margin:1.75rem 0 .4rem}
input[type=text],input[type=email],textarea{display:block;width:100%;
font-family:"IBM Plex Sans",system-ui,sans-serif;font-weight:400;font-size:1rem;line-height:1.55;
color:var(--ink);background:var(--paper);
border:1px solid rgba(43,61,24,.45);border-radius:2px;padding:.6rem .7rem}
textarea{resize:vertical}
input[type=text]:focus,input[type=email]:focus,textarea:focus{outline:2px solid var(--signal);outline-offset:1px}
p.help{font-size:.8125rem;line-height:1.5;margin:.4rem 0 0;opacity:.7}

button{display:inline-block;margin:2.25rem 0 0;
font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.8125rem;font-weight:500;letter-spacing:.06em;
color:var(--paper);background:var(--signal);
border:1px solid var(--signal);border-radius:2px;padding:.7rem 1.2rem;cursor:pointer}
button[disabled]{opacity:.55;cursor:default}

/* Honeypot. Bots fill it, people never see it. */
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

#status{font-size:.9375rem;margin:1rem 0 0}
#status:empty{margin:0}
#status.ok{color:var(--signal)}
#status.bad{color:var(--ink);font-weight:600}

/* Tables. Numbers in mono, hairlines only, no fills. */
table{border-collapse:collapse;width:100%;margin:1.5rem 0 .5rem;font-size:.9375rem}
th{font-family:"IBM Plex Mono",ui-monospace,monospace;font-weight:500;font-size:.75rem;
letter-spacing:.06em;color:var(--signal);text-align:left;
padding:0 1rem .5rem 0;border-bottom:1px solid rgba(43,61,24,.3)}
td{padding:.6rem 1rem .6rem 0;border-bottom:1px solid rgba(43,61,24,.15);vertical-align:top}
td.n{font-family:"IBM Plex Mono",ui-monospace,monospace;font-weight:400;font-size:.875rem}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
