:root {
  --paper: #f2f3f5;
  --sheet: #ffffff;
  --rule: #d8dce1;
  --ink: #1c2b3a;
  --muted: #55667a;
  --check: #2f7a57;
  --debit: #a8433b;
  --focus: #2f6fb0;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17181a;
    --sheet: #212225;
    --rule: #34363a;
    --ink: #eceef0;
    --muted: #a3a8af;
    --check: #5cc08e;
    --debit: #e07a70;
    --focus: #7fb4ea;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--check); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { padding: 1.5rem 0 1rem; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.wordmark svg { width: 1.6rem; height: 1.6rem; flex: none; }
.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.75rem; }
p, ul { margin: 0.75rem 0 0; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }

main.wrap { padding-bottom: 4rem; }

/* Hero */
.hero { padding: 2.5rem 0 1rem; }

/* The register */
.register {
  margin-top: 2.25rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.register-title {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.85rem 1rem 0.6rem;
  font-family: var(--display); font-weight: 700;
}
.register-title span { font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.register table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.register th {
  text-align: left; font-weight: 600; font-size: 0.8rem; color: var(--muted);
  padding: 0.4rem 1rem; border-top: 1px solid var(--rule); border-bottom: 2px solid var(--rule);
}
.register td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.register tr:last-child td { border-bottom: 0; }
.register .num { text-align: right; }
.register .desc { white-space: normal; width: 100%; }
.register .out { color: var(--debit); }
.register .in { color: var(--check); }
.register .clr { text-align: center; width: 2.5rem; }
.register .bal { font-weight: 600; }

.tick { display: inline-block; width: 1.15rem; height: 1.15rem; vertical-align: middle; }
.tick circle { fill: none; stroke: var(--rule); stroke-width: 2; }
.tick path { fill: none; stroke: var(--check); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 0; }
.tick.on circle { stroke: var(--check); }

@media (prefers-reduced-motion: no-preference) {
  .tick path { animation: draw 0.35s ease-out both; stroke-dashoffset: 14; }
  .tick circle { animation: ring 0.35s ease-out both; }
  tr:nth-child(1) .tick path, tr:nth-child(1) .tick circle { animation-delay: 0.5s; }
  tr:nth-child(2) .tick path, tr:nth-child(2) .tick circle { animation-delay: 0.85s; }
  tr:nth-child(3) .tick path, tr:nth-child(3) .tick circle { animation-delay: 1.2s; }
  tr:nth-child(4) .tick path, tr:nth-child(4) .tick circle { animation-delay: 1.55s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes ring { from { stroke: var(--rule); } to { stroke: var(--check); } }
}

@media (max-width: 34rem) {
  .register .date { display: none; }
  .register td, .register th { padding-left: 0.6rem; padding-right: 0.6rem; }
}

/* App section */
.app { margin-top: 3.5rem; padding-top: 2rem; border-top: 2px solid var(--rule); }
.app-head { display: flex; align-items: center; gap: 0.9rem; }
.app-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 22%; flex: none;
  background: var(--check); display: grid; place-items: center;
}
.app-icon svg { width: 60%; height: 60%; }
.app-head h2 { margin: 0; }
.app-head p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.95rem; }
.app ul { list-style: none; padding: 0; }
.app li { padding-left: 1.6rem; position: relative; }
.app li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em;
  width: 0.55rem; height: 0.3rem; border-left: 2px solid var(--check); border-bottom: 2px solid var(--check);
  transform: rotate(-45deg);
}
.shots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
  margin-top: 1.5rem;
}
.shots img {
  display: block; width: 100%; height: auto;
  border-radius: 14px; border: 1px solid var(--rule); background: #000;
}
.shot-wide { grid-column: 1 / -1; }
.links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.5rem; font-weight: 600; }
.status { margin-top: 1.25rem; font-size: 0.95rem; color: var(--muted); }

/* Document pages */
.doc { padding-top: 2rem; }
.doc .updated { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.summary {
  margin-top: 1.75rem; padding: 1rem 1.25rem;
  background: var(--sheet); border-left: 4px solid var(--check); border-radius: 4px;
}
.summary p:first-child { margin-top: 0; }
.email { font-size: 1.25rem; font-weight: 700; font-family: var(--display); }
details { border-bottom: 1px solid var(--rule); padding: 0.85rem 0; }
details:first-of-type { border-top: 1px solid var(--rule); margin-top: 1rem; }
summary { cursor: pointer; font-weight: 600; }
summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
details p { margin-top: 0.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
