/* Mint Net site styles. One file, no framework, no web fonts.
   Colors are tokens on :root, redefined for dark mode. */

:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --text: #1c2321;
  --muted: #5b6662;
  --line: #dcd8cc;
  --accent: #0f5e4f;
  --accent-text: #f4f1e8;
  --link: #0b5a7a;
  --warn-bg: #fff4d6;
  --warn-text: #6b4b00;
  --error: #a3261b;
  --code-bg: #eeeae0;
  --radius: 10px;
  --max: 68rem;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111615;
    --surface: #18201e;
    --text: #e6e9e6;
    --muted: #9aa6a1;
    --line: #2c3633;
    --accent: #3fae95;
    --accent-text: #0b1210;
    --link: #79c4e4;
    --warn-bg: #3a2f10;
    --warn-text: #f3d68a;
    --error: #ff8a7d;
    --code-bg: #222b29;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 10; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1.6rem 0 0.6rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }

code, pre { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; overflow-wrap: normal; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 4px 0; display: inline-block; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }

main { padding-bottom: 3rem; }

/* Home */
.hero { padding: 2.5rem 0 1rem; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); border: 2px solid var(--accent); padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; font: inherit; cursor: pointer; }
.button.ghost { background: transparent; color: var(--accent); }
.button.small { padding: 6px 12px; font-size: 0.9rem; margin-top: 10px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; margin: 1.5rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 14px; }
.card h2 { font-size: 1.1rem; margin: 0.9rem 0 0.4rem; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--link); }
.card p, .card ul { margin: 0.4rem 0; }

.ticks { padding-left: 1.2rem; }
.ticks li { margin: 0.35rem 0; }

.note { background: var(--surface); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 2px 18px 6px; margin: 2rem 0; }
.note h2 { margin-top: 0.8rem; font-size: 1.1rem; }

.small { font-size: 0.9rem; color: var(--muted); }

/* Default series */
.idbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 1.2rem 0; }
.idbox .label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.hash { word-break: break-all; }
.idbox .hash { font-size: 0.95rem; }
.why dt { font-weight: 700; margin-top: 1rem; }
.why dd { margin: 0.2rem 0 0; color: var(--text); }

.steps { padding-left: 1.4rem; }
.steps h2 { font-size: 1.15rem; margin: 1.4rem 0 0.3rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.params th { width: 13rem; color: var(--muted); font-weight: 600; }
code.short { white-space: nowrap; word-break: normal; }

/* Feeds */
.feed { margin: 1.5rem 0; }
.feed-meta { margin: 0.2rem 0 0.6rem; }
.sample { background: var(--warn-bg); color: var(--warn-text); padding: 0.1em 0.4em; border-radius: 4px; }
.placeholder { background: var(--warn-bg); color: var(--warn-text); border-radius: var(--radius); padding: 10px 16px; }
.error { color: var(--error); }
.empty { color: var(--muted); font-style: italic; }
.feed-status { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding: 1rem 0 2rem; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .params th { width: auto; }
  .header-row { flex-direction: column; align-items: flex-start; }
}

/* Claims: the picker for one page of 1,024 mints (decisions.md W10). */
.claims-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.claims-pick select {
  font: inherit;
  font-weight: 400;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.claims-pick select:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
