/* Clover & Finn Automation — static site styles. No external fonts, images or scripts. */
:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --text: #1f2a24;
  --muted: #5b6760;
  --line: #e4e6df;
  --clover: #2f7d4f;
  --clover-soft: #e6f2ea;
  --fox: #d9662b;
  --code-bg: #f1f3ee;
  --radius: 14px;
  --max: 46rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141917;
    --surface: #1b211e;
    --text: #e7ece8;
    --muted: #a3ada7;
    --line: #2c3430;
    --clover: #6cc28f;
    --clover-soft: #1f2d25;
    --fox: #f08a54;
    --code-bg: #232a26;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

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

a { color: var(--clover); text-underline-offset: 2px; }
a:hover { color: var(--fox); }
a:focus-visible { outline: 3px solid var(--fox); outline-offset: 2px; border-radius: 4px; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: .9rem; padding-bottom: .9rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .01em;
}
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--clover); }
.nav a[aria-current="page"] { font-weight: 600; }

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

main { padding: 2.5rem 0 3rem; }

h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; padding-top: .4rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
p, ul, ol, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .35rem; }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.meta { color: var(--muted); font-size: .92rem; }

.notice {
  background: var(--clover-soft);
  border-left: 4px solid var(--clover);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem;
  margin: 1.4rem 0;
}
.notice p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: .6rem .7rem; border: 1px solid var(--line); }
th { background: var(--clover-soft); font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em; background: var(--code-bg); padding: .1em .35em; border-radius: 5px;
  overflow-wrap: anywhere;
}

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; }
.toc ol { margin: 0; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { padding-top: 1.4rem; padding-bottom: 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  main { padding-top: 1.8rem; }
  .site-header .wrap { justify-content: center; }
}
