/* appcroft.com — the company site. Static, served by Caddy from infra/site.
   One stylesheet, no script, no tracking: there is nothing here to measure. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #171717;
  --muted: #666666;
  --faint: #8f8f8f;
  --line: #eaeaea;
  --mark-bg: #000000;
  --mark-fg: #ffffff;
  --link: #171717;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #ededed;
    --muted: #a1a1a1;
    --faint: #7a7a7a;
    --line: #262626;
    --mark-bg: #ffffff;
    --mark-fg: #000000;
    --link: #ededed;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family:
    'Geist',
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-inline: 24px;
}
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg) 30%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
a:hover {
  text-decoration-color: var(--fg);
}
a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── The mark ───────────────────────────────────────────────────────────── */
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--mark-bg);
  color: var(--mark-fg);
}
.mark svg {
  width: 60%;
  height: 60%;
}
.mark--small {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

/* ── Home ───────────────────────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 96px 64px;
  gap: 0;
}
.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.hero .wordmark {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.hero p.lede {
  max-width: 520px;
  margin: 18px auto 0;
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}
.hero p.by {
  margin: 44px 0 0;
  font-size: 14px;
  color: var(--faint);
}
.hero p.by a {
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding-block: 24px 32px;
  font-size: 13px;
  color: var(--faint);
}
.footer a {
  color: var(--faint);
  text-decoration: none;
}
.footer a:hover {
  color: var(--fg);
}

/* ── Documents ──────────────────────────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding-block: 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.top a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.doc {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding-block: 24px 64px;
}
.doc h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.doc .updated {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--faint);
}
.doc .summary {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
}
.doc .summary p {
  margin: 0;
}
.doc .summary p + p {
  margin-top: 8px;
}
.doc h2 {
  margin: 44px 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.doc h3 {
  margin: 24px 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.doc p,
.doc li {
  color: var(--fg);
  font-size: 16px;
}
.doc p {
  margin: 0 0 14px;
  text-wrap: pretty;
}
.doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.doc li {
  margin: 0 0 6px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 15px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.doc th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.doc .table-wrap {
  overflow-x: auto;
}
.doc .toc {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 24px;
  font-size: 15px;
}
.doc .toc li {
  break-inside: avoid;
  margin: 0 0 6px;
}
.doc .toc a {
  text-decoration: none;
  color: var(--muted);
}
.doc .toc a:hover {
  color: var(--fg);
}
@media (max-width: 560px) {
  .doc .toc {
    columns: 1;
  }
}

/* ── The screencast page ────────────────────────────────────────────────── */
.player {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding-block: 24px 48px;
}
.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
}
.player h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.player p {
  margin: 0 0 18px;
  color: var(--muted);
}
