/* batten.build — plain pages that must never break. No framework, no fonts fetched. */
:root {
  --ink: #17202a;
  --muted: #5b6673;
  --line: #d9dee4;
  --paper: #ffffff;
  --wash: #f4f6f8;
  --blue: #1f5fbf;
  --blue-dark: #174a96;
  --focus: #ffb703;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--blue); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--paper); padding: 10px 14px; border-radius: 6px; z-index: 10;
}
.skip:focus { left: 8px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 16px; border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 4px; text-decoration: none; color: var(--ink);
}
.mark { width: 32px; height: 32px; border-radius: 7px; display: block; }
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: 0.01em; }
.header-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 600; text-decoration: none;
}
.header-nav a:hover { text-decoration: underline; }

.site-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 16px 56px; }
.page { max-width: var(--measure); }
h1 { font-size: 34px; line-height: 1.2; margin: 8px 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
p, ul { margin: 0 0 16px; }
ul { padding-left: 24px; }
li { margin: 6px 0; }
.lede { font-size: 20px; color: var(--muted); }
/* Links inside prose keep their place in the line but take a 44px tall hit area. */
.page p a, .page li a { padding: 12px 2px; margin: -12px -2px; }
.address { white-space: pre-line; }

/* Legal documents: article plus a table of contents */
.legal { display: block; }
.legal .version { color: var(--muted); font-size: 16px; margin-top: -8px; }
.legal .version strong { color: var(--ink); }
.toc { margin: 0 0 24px; }
.toc summary {
  cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center;
  padding: 0 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--wash);
  padding-left: 12px;
}
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 10px 12px; min-height: 44px; text-decoration: none; border-radius: 6px; }
.toc a:hover, .toc a:focus-visible { background: var(--wash); text-decoration: underline; }
.toc .toc-heading { display: none; }
@media (min-width: 900px) {
  .legal { display: grid; grid-template-columns: 260px minmax(0, var(--measure)); gap: 48px; align-items: start; }
  .toc { position: sticky; top: 16px; order: -1; max-height: calc(100vh - 32px); overflow: auto; }
  .toc summary { display: none; }
  .toc .toc-heading { display: block; font-weight: 700; margin: 0 0 4px 12px; color: var(--muted); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
  .toc a { padding: 10px 12px; min-height: 44px; font-size: 15px; }
}
.legal article h2 { scroll-margin-top: 16px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.field label { font-weight: 600; }
input[type="email"] {
  font: inherit; min-height: 48px; padding: 8px 12px; border: 1px solid #98a2ad; border-radius: 8px; width: 100%;
}
.button {
  font: inherit; font-weight: 600; min-height: 48px; padding: 0 20px; border-radius: 8px;
  border: 1px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; width: 100%;
}
.button:hover { background: var(--blue-dark); }
.button[disabled] { opacity: 0.55; cursor: not-allowed; }
@media (min-width: 520px) { .button, input[type="email"] { width: auto; } input[type="email"] { min-width: 320px; } }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 20px; }
.delete-form { margin: 0 0 24px; }
.notice { border: 1px solid var(--line); background: var(--wash); border-radius: 10px; padding: 16px; margin: 0 0 16px; }
.notice h2 { margin-top: 0; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 20px 16px 28px; color: var(--muted); }
.site-footer .tagline { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
