/* miscellany.io: shared styles. System fonts only; nothing is fetched from another site. */
:root {
  --paper: #FBF8F2; --paper-2: #F5F0E6; --card: #FFFDF8;
  --ink: #211C16; --ink-2: #4A4338; --muted: #6C6356;
  --line: #E7DFD0; --accent: #9A3B1B; --accent-2: #7E2F14; --accent-tint: #F3E7DF;
  --ok: #2F5D3A;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --measure: 40rem;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1814; --paper-2: #231F1A; --card: #26211C;
    --ink: #F2ECE2; --ink-2: #D8D0C4; --muted: #A99F92;
    --line: #3A332B; --accent: #E59A74; --accent-2: #F2B08E; --accent-tint: #3A2A22;
    --ok: #8CC79A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.top {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: var(--measure); margin: 0 auto; padding: 1rem var(--gutter);
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: .01em; }
.top nav a { margin-left: 1rem; text-decoration: none; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter) 3rem; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; margin: .3em 0 .4em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.kicker {
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 2rem 0 0;
}
.lede { font-size: 1.25rem; color: var(--ink-2); }
.small, .muted { font-size: .95rem; color: var(--muted); }

.button, button.button {
  display: inline-block; background: var(--accent); color: var(--paper);
  text-decoration: none; font: inherit; font-weight: 600; border: 0; cursor: pointer;
  padding: .8rem 1.3rem; border-radius: .6rem; min-height: 44px;
}
.button:hover { background: var(--accent-2); color: var(--paper); }
.button.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }

.steps { padding-left: 1.3rem; }
.steps li { margin: .6rem 0; }
.loglist { padding-left: 1.2rem; }
.loglist li { margin: .4rem 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: .75rem;
  padding: 1rem 1.1rem; margin: 1rem 0;
}
label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: .5rem; padding: .65rem .75rem;
}
textarea { min-height: 7rem; resize: vertical; }

code, pre { font-family: var(--mono); font-size: .92em; }
pre {
  background: var(--card); border: 1px solid var(--line); border-radius: .5rem;
  padding: .8rem 1rem; overflow-x: auto; white-space: pre-wrap;
}

.foot {
  max-width: var(--measure); margin: 0 auto; padding: 1.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted);
}
