/*
 * SPDX-FileCopyrightText: 2026-2026. Aeolionics, LLC
 *
 * SPDX-License-Identifier: MIT OR Apache-2.0
 */

:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --ink: #1d1b19;
  --muted: #6b655e;
  --line: #e2ddd6;
  --accent: #b4532a;
  --accent-ink: #ffffff;
  --accent-soft: #f5e4da;
  --ok: #2f7d4f;
  --ok-soft: #e1f1e7;
  --bad: #b3261e;
  --bad-soft: #f8e1df;
  --code: #efebe6;
  --radius: 10px;
  --width: 46rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #201d1a;
    --ink: #ece7e1;
    --muted: #a39b92;
    --line: #35302b;
    --accent: #e07a4c;
    --accent-ink: #1a0f0a;
    --accent-soft: #3a261c;
    --ok: #6cc28f;
    --ok-soft: #1d3326;
    --bad: #f08a80;
    --bad-soft: #3d1f1c;
    --code: #2a2622;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

code,
pre {
  font: 0.9em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--code);
  border-radius: 5px;
}

code {
  padding: 0.1em 0.35em;
}

pre {
  padding: 0.8rem 1rem;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wordmark svg {
  width: 1.4rem;
  height: 1.4rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: 0.95rem;
}

nav a:first-child {
  margin-left: 0;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

main {
  padding: 2.5rem 0 3rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: none;
}

.button.secondary,
button.secondary {
  background: transparent;
  color: var(--accent);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  margin: 1rem 0;
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 0.5rem;
  vertical-align: 0.1em;
}

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

.small {
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

ul.features {
  padding-left: 1.2rem;
}

ul.features li {
  margin: 0.35rem 0;
}

ul.plain {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

ul.plain li {
  padding: 0.3rem 0;
}

select,
input[type="file"] {
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  max-width: 100%;
}

label.check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.75rem 0;
}

label.check input {
  margin-top: 0.3rem;
}

.status {
  margin: 0.75rem 0 0;
  min-height: 1.6em;
}

.status.error {
  color: var(--bad);
  background: var(--bad-soft);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}

.status.done {
  color: var(--ok);
  background: var(--ok-soft);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}

.status.ready {
  color: var(--ink);
}

progress {
  width: 100%;
  height: 0.7rem;
  accent-color: var(--accent);
}

.notice {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 0.8rem 1rem;
  border-radius: 0 8px 8px 0;
}

#log {
  font: 0.85rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--muted);
  padding-left: 1.2rem;
  margin: 0;
  overflow-wrap: anywhere;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site p {
  margin: 0.3rem 0;
}

[hidden] {
  display: none !important;
}
