:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --surface: #fdfcf9;
  --text: #1c1b18;
  --muted: #5e5b54;
  --faint: #8a867d;
  --line: #dedad1;
  --line-strong: #c9c4b8;
  --accent: #0a6464;
  --accent-soft: #e2ece8;
  --code: #ebe8e0;
  --shadow: 0 1px 0 rgba(28, 27, 24, 0.04), 0 12px 32px -18px rgba(28, 27, 24, 0.28);
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #1d1c19;
    --text: #ebe8e1;
    --muted: #aaa59b;
    --faint: #7f7a71;
    --line: #2f2d29;
    --line-strong: #403d37;
    --accent: #79c7bf;
    --accent-soft: #1d2f2c;
    --code: #262420;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 32px -18px rgba(0, 0, 0, 0.7);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 10; }
img { max-width: 100%; height: auto; display: block; }

/* header and footer */
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.1rem; letter-spacing: -0.015em; }
.brand svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.brand .labs { color: var(--muted); font-weight: 500; }
.mk-line { fill: var(--bg); }
.mk-dot { fill: var(--accent-soft); }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 0.25rem 0; }
nav.main a:hover { color: var(--text); }
nav.main a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--text); }

footer.site { margin-top: 2rem; color: var(--muted); font-size: 0.875rem; }
footer.site .wrap { padding-bottom: 2.5rem; }
footer.site .foot { border-top: 1px solid var(--line); padding-top: 1.75rem; display: grid; gap: 0.9rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); text-decoration: underline; }
footer.site p { margin: 0; max-width: var(--measure); color: var(--faint); }

/* type */
main { padding: 2rem 0 3rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--text); }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; max-width: 20ch; }
h2 { font-size: 1.55rem; line-height: 1.25; letter-spacing: -0.01em; margin: 3rem 0 0.8rem; }
h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.75rem 0 0.4rem; }
p, ul, ol, table { margin: 0 0 1rem; }
main p, main ul, main ol { max-width: var(--measure); }
li { margin: 0.25rem 0; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow, .label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.9rem; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--code); padding: 0.1em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
.crumbs { font-size: 0.875rem; color: var(--faint); margin: 0 0 2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* home */
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 36rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-strong); padding-bottom: 0.6rem; margin: 3.5rem 0 0; }
.section-head h2 { margin: 0; font-size: 1.1rem; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.section-head span { font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }

.app-list { list-style: none; padding: 0; margin: 0; max-width: none !important; }
.app-list li { margin: 0; border-bottom: 1px solid var(--line); }
.app-row { display: grid; grid-template-columns: 3rem 1fr; gap: 1.1rem; align-items: start; padding: 1.6rem 0; color: inherit; text-decoration: none; }
.app-row img.logo { width: 48px; height: 48px; border-radius: 11px; }
.app-row .name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.app-row .for { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.app-row .desc { display: block; color: var(--muted); margin: 0.3rem 0 0.6rem; max-width: 30rem; }
.app-row .more { font-size: 0.9rem; color: var(--accent); }
.app-row .thumb { display: none; }
.app-row:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.app-row:hover .more { text-decoration: underline; }
@media (min-width: 46rem) {
  .app-row { grid-template-columns: 3rem 1fr 17rem; gap: 1.5rem; }
  .app-row .thumb { display: block; width: 17rem; aspect-ratio: 580 / 330; object-fit: cover; object-position: left top; padding: 0.5rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
}

.notice { margin: 3.5rem 0 0; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; display: grid; gap: 0.4rem 2rem; }
.notice .date { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; margin: 0; }
.notice p { margin: 0; color: var(--muted); }
.notice p.date { color: var(--text); }
@media (min-width: 46rem) { .notice { grid-template-columns: 13rem 1fr; align-items: baseline; } }

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: none !important; }
.principles li { margin: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; }
.principles .n { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); padding-top: 0.2rem; }
.principles strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.15rem; }
.principles span.t { color: var(--muted); }
@media (min-width: 46rem) {
  .principles { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

/* app pages */
.app-head { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 1.25rem; }
.app-head img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app-head h1 { margin: 0; }
.app-head .eyebrow { margin: 0 0 0.25rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center; margin: 1.5rem 0 0; }
.cta a:not(.button) { font-size: 0.95rem; }
.button { display: inline-block; background: var(--text); color: var(--bg); font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 0.6rem 1.1rem; border-radius: 4px; }
.button:hover { background: var(--accent); }
.pending { display: inline-block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; border: 1px solid var(--line-strong); color: var(--muted); padding: 0.45rem 0.8rem; border-radius: 4px; }

.shot { margin: 2.5rem 0; }
.shot a { display: block; }
.shot img { width: 100%; padding: clamp(0.4rem, 1.5vw, 1rem); border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.shot figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.7rem; }
.shot-hero { margin: 2.5rem 0; }
.gallery { display: grid; gap: 2rem 1.75rem; margin: 1.25rem 0 0; }
.gallery .shot { margin: 0; }
@media (min-width: 46rem) { .gallery { grid-template-columns: 1fr 1fr; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin: 0 0 2.5rem; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.facts div { padding: 0.9rem 1rem 0.9rem 0; }
.facts dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0.2rem 0 0; font-weight: 600; }

ul.features, ul.limits { list-style: none; padding: 0; }
ul.features li { padding: 0.75rem 0 0.75rem 1.4rem; margin: 0; border-bottom: 1px solid var(--line); position: relative; }
ul.features li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.55rem; height: 1px; background: var(--accent); }
ul.features li:first-child { border-top: 1px solid var(--line); }
ul.limits { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0.6rem 1.25rem; }
ul.limits li { padding: 0.55rem 0 0.55rem 1.4rem; margin: 0; position: relative; color: var(--muted); }
ul.limits li + li { border-top: 1px dashed var(--line); }
ul.limits li::before { content: "\2715"; position: absolute; left: 0; top: 0.6rem; font-size: 0.7rem; color: var(--faint); }

/* tables, notes */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 1rem 0.65rem 0; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 400; border-bottom-color: var(--line-strong); }
table.kv td:first-child { color: var(--muted); width: 12rem; }
table.kv tr:first-child td { border-top: 1px solid var(--line-strong); }

.note { border-left: 2px solid var(--accent); padding: 0.2rem 0 0.2rem 1.1rem; color: var(--text); }
.toc { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: 0.8rem 0; margin: 1.5rem 0 0; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; max-width: none; }
.toc li { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { header.site nav, footer.site ul, .skip { display: none; } a { color: inherit; } .shot img { box-shadow: none; } }
