/* kaisola.com — ink on ivory, ivory on ink. The brand mark is achromatic, so
   the page is too: the hero screenshot (the app's glass over a real desktop)
   is deliberately the only color anywhere. Dark is the default; light is the
   icon's own world. System faces only; the mono face carries versions and
   evidence lines — terminals are the product's heart. */

:root {
  --canvas: #141312;
  --surface: #1c1b19;
  --ink: #f4f1ea;
  --ink-secondary: #b3ada2;
  --ink-tertiary: #79746b;
  --hairline: #2e2c28;
  --button-fill: #f4f1ea;
  --button-ink: #161514;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #f4f1ea;
    --surface: #faf8f3;
    --ink: #181715;
    --ink-secondary: #5f5a51;
    --ink-tertiary: #8d877c;
    --hairline: #dedad0;
    --button-fill: #181715;
    --button-ink: #f4f1ea;
    --shadow: 0 24px 64px rgba(24, 23, 21, 0.16);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.nav .mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  margin-right: auto;
}

.nav .mark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav a:not(.mark) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
}

.nav a:not(.mark):hover { color: var(--ink); }

/* Hero */

.hero { padding: 72px 0 40px; }

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 15ch;
  text-wrap: balance;
}

.hero .subline {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 56ch;
  margin: 28px 0 0;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--button-fill);
  color: var(--button-ink);
}

.button.primary:hover { opacity: 0.88; }

.button.secondary {
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.button.secondary:hover { border-color: var(--ink-tertiary); }

.requirements {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink-tertiary);
}

/* The one color on the page: the app itself. */

.shot { padding: 48px 0 8px; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.shot figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-top: 14px;
}

/* Feature ledger: full-width rows split by hairlines. The mono evidence line
   names the concrete things each claim stands on. */

.ledger { padding: 56px 0 24px; }

.ledger .row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 48px;
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
}

.ledger h2 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

.ledger .row p {
  margin: 0;
  color: var(--ink-secondary);
  max-width: 60ch;
}

.ledger .evidence {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* Footer */

footer {
  border-top: 1px solid var(--hairline);
  margin-top: 48px;
  padding: 36px 0 56px;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--ink-secondary);
}

footer img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .fine { margin-left: auto; color: var(--ink-tertiary); }

/* Changelog page */

.changelog {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.changelog > h1 {
  font-size: 40px;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 8px;
}

.changelog > .lede {
  color: var(--ink-secondary);
  margin: 0 0 24px;
}

.changelog section {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 8px 32px;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
}

.changelog section h2 {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
}

.changelog section h2 time {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-tertiary);
  margin-top: 4px;
}

.changelog section p,
.changelog section ul {
  grid-column: 2;
  margin: 0;
  color: var(--ink-secondary);
  max-width: 68ch;
}

.changelog section ul {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.changelog code {
  font-family: var(--mono);
  font-size: 0.92em;
}

/* Small screens */

@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .hero .actions .button { flex: 1 1 100%; }
  .ledger .row { grid-template-columns: 1fr; padding: 32px 0; }
  .ledger .evidence { grid-column: 1; }
  .changelog section { grid-template-columns: 1fr; }
  .changelog section p,
  .changelog section ul { grid-column: 1; }
  footer .fine { margin-left: 0; }
}
