/*
 * Kitwork — one stylesheet for the whole site.
 *
 * Palette taken from the app's own Palette.kt so the site and the product cannot drift:
 * evergreen carries the brand, sand is the single accent, everything else is a neutral.
 * No web fonts, no scripts, no third-party requests — a site for an app whose privacy page
 * says nothing is sent anywhere should not itself phone home.
 */

:root {
  color-scheme: light dark;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --border: #e4e2db;
  --text: #1b1c19;
  --muted: #48493f;
  --brand: #0b6b58;
  --brand-deep: #00382e;
  --accent: #8a5400;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12140f;
    --surface: #1a1c17;
    --border: #33352c;
    --text: #e3e3db;
    --muted: #c7c8bc;
    --brand: #6adbbe;
    --brand-deep: #b6f2df;
    --accent: #ffb868;
  }
}

* {
  box-sizing: border-box;
}

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

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header ------------------------------------------------------------------ */

header {
  border-bottom: 1px solid var(--border);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

nav a:hover,
a:hover {
  text-decoration: underline;
}

/* Type -------------------------------------------------------------------- */

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.5rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

a {
  color: var(--brand);
}

strong {
  font-weight: 650;
}

/* Cards and lists --------------------------------------------------------- */

.app {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.app h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}

.app p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.app .status {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.points li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.points strong {
  display: block;
}

.points span {
  color: var(--muted);
}

/* Tables ------------------------------------------------------------------ */

.scroll {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Footer ------------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
