/* Plain, high-contrast, and readable at any zoom. Layout is document flow rather than a
   grid so linear reading order always matches visual order. */

:root {
  color-scheme: light dark;
  --fg: #14161a;
  --bg: #ffffff;
  --muted: #4a4f58;
  --accent: #0b5cad;
  --error: #a01021;
  --line: #c9ced6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8eaee;
    --bg: #14161a;
    --muted: #a8afba;
    --accent: #6fb3ff;
    --error: #ff9098;
    --line: #39404b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 4rem;
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  max-width: 46rem;
  margin-inline: auto;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  position: fixed;
  background: var(--bg);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--accent);
  z-index: 10;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}
header h1 { font-size: 1.25rem; margin: 0; }
header h1 a { text-decoration: none; }
.account { display: flex; gap: 0.75rem; align-items: baseline; color: var(--muted); font-size: 0.9rem; }

h2 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; font-size: 0.9rem; }
.breadcrumbs li + li::before { content: "› "; color: var(--muted); }

.rows { list-style: none; padding: 0; margin: 0; }
.rows li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.rows li > a, .rows li > .title { flex: 1 1 18rem; font-weight: 600; }
.detail { color: var(--muted); font-size: 0.9rem; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0.75rem; }

.stack { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; margin: 1rem 0; }
.stack.secondary { margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field.checkbox { flex-direction: row; align-items: center; gap: 0.5rem; }
label { font-weight: 600; }

input[type="email"], input[type="text"] {
  font: inherit;
  padding: 0.5rem;
  min-width: 16rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
}

button, .button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.rows button { background: none; color: var(--accent); }

.notice { border-left: 4px solid var(--accent); padding-left: 0.75rem; }
.error { color: var(--error); font-weight: 600; }

.job { border: 1px solid var(--line); border-radius: 6px; padding: 0.75rem 1rem; margin: 1rem 0; }
.job h3 { margin-top: 0; }
.season-download { border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 1rem 1rem; }

fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 1rem 1rem; margin: 0; }
legend { font-weight: 600; padding: 0 0.35rem; }
textarea, select {
  font: inherit;
  padding: 0.5rem;
  min-width: 16rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
}
textarea { width: 100%; max-width: 34rem; }
details { margin: 0.5rem 0; }
summary { cursor: pointer; font-weight: 600; padding: 0.25rem 0; }
.chapters { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.job h4 { margin: 1rem 0 0.25rem; font-size: 1rem; }
