:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #5f5b53;
  --line: #e4e0d7;
  --soft: #f2efe8;
  --accent:#0f6e5c;--accent-ink:#0b5a4b;
  --on-accent: #ffffff;
  --radius: 10px;
  --measure: 44rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513;
    --surface: #1f1e1b;
    --ink: #eeeae2;
    --muted: #a8a297;
    --line: #34322d;
    --soft: #24231f;
    --accent:#3fbfa3;--accent-ink:#6fd6bd;
    --on-accent: #14130f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161513;
  --surface: #1f1e1b;
  --ink: #eeeae2;
  --muted: #a8a297;
  --line: #34322d;
  --soft: #24231f;
  --accent:#3fbfa3;--accent-ink:#6fd6bd;
  --on-accent: #14130f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
}
.wrap { max-width: calc(var(--measure) + 2rem); margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent-ink); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 2; }

header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 700 1.02rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.mark {
  width: 1.35rem; height: 1.35rem; border-radius: 6px; background: var(--accent);
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-size: 2px 5px, 2px 10px, 2px 13px, 2px 7px;
  background-position: 5px 50%, 9px 50%, 13px 50%, 17px 50%;
}
header.site nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1rem; font: 0.92rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
header.site nav a { color: var(--muted); text-decoration: none; padding: 0.2rem 0; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

main.wrap { padding-top: 2.75rem; padding-bottom: 3rem; }
h1, h2, h3 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 2.6rem 0 0.7rem; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 1.8rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1.05rem; }
article > p:first-of-type { font-size: 1.16rem; line-height: 1.6; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }
li > ul, li > ol { margin-top: 0.4rem; }
strong { font-weight: 700; }
code, kbd {
  font: 0.86em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 0.12em 0.36em; white-space: nowrap;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.table { overflow-x: auto; margin: 0 0 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font: 0.93rem/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

.callout { border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.9rem 1.1rem; margin: 1.5rem 0; }
.callout p:last-child, .app p:last-child { margin-bottom: 0; }
.callout-label, .app-label {
  font: 600 0.74rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.35rem;
}
.app {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 2rem 0;
}
.app-text { flex: 1 1 18rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; white-space: nowrap;
  font: 600 0.95rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 0.8rem 1.1rem; border-radius: 999px;
}
.button:hover { filter: brightness(1.08); }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.8rem; margin: 1.2rem 0 1.6rem; }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 0.95rem 1.05rem; text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--accent); }
.cards strong { display: block; font: 600 1rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; margin-bottom: 0.25rem; }
.cards span { color: var(--muted); font-size: 0.93rem; line-height: 1.45; display: block; }

.updated { color: var(--muted); font: 0.86rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; margin-top: 2.5rem; }
.more { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 0.5rem; }
.more h2 { font-size: 1rem; margin: 1.2rem 0 0.6rem; color: var(--muted); font-weight: 600; }
.more ul { list-style: none; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.97rem; }

footer.site { border-top: 1px solid var(--line); background: var(--surface); padding: 1.6rem 0 2.2rem; font: 0.9rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--muted); }
footer.site p { margin: 0 0 0.5rem; }
footer.site a { color: var(--muted); }
