:root {
    --ink: #16232a;
    --ink-soft: #4a5b63;
    --paper: #fbfaf8;
    --teal: #0b5e58;
    --teal-soft: #e6efed;
    --good: #1a7f4b;
    --warn: #9a6700;
    --bad: #b42318;
    --rule: #dfe3e0;
    color-scheme: light;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  code, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.86em; }
  a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

  header.bar {
    border-bottom: 1px solid var(--rule);
    padding: 1.1rem 1.5rem;
  }
  .bar-inner { max-width: 68rem; margin: 0 auto; display: flex; align-items: baseline; gap: 2rem; }
  .wordmark { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
  .bar nav { margin-left: auto; display: flex; gap: 1.5rem; font-size: 0.95rem; }

  main { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem 5rem; }
  .prose { max-width: 40rem; }

  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; padding: 5rem 0 4.5rem; align-items: start; }
  h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 1.25rem; font-weight: 700; }
  .lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 2rem; }

  .ledger { border: 1px solid var(--rule); border-radius: 6px; background: #fff; overflow: hidden; }
  .ledger-head { padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); font-size: 0.82rem; color: var(--ink-soft); display: flex; justify-content: space-between; }
  .ledger-row { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 0.75rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); align-items: center; font-size: 0.9rem; }
  .ledger-row:last-child { border-bottom: 0; }
  .ledger-time { color: var(--ink-soft); }
  .tag { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 3px; font-size: 0.78rem; font-weight: 500; white-space: nowrap; }
  .tag-good { background: #e7f4ed; color: var(--good); }
  .tag-warn { background: #fdf3e2; color: var(--warn); }
  .tag-bad { background: #fdeceb; color: var(--bad); }

  h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 3.5rem 0 1rem; font-weight: 700; }
  h3 { font-size: 1.08rem; margin: 2rem 0 0.4rem; font-weight: 700; }
  p { margin: 0 0 1rem; }
  ul { padding-left: 1.1rem; margin: 0 0 1rem; }
  li { margin-bottom: 0.45rem; }

  .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 2.5rem; margin-top: 1.5rem; }
  .cols h3 { margin-top: 0; }
  .cols p { color: var(--ink-soft); margin: 0; }

  .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
  .plan { border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem; background: #fff; }
  .plan-price { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; }
  .plan ul { margin-top: 0.8rem; padding-left: 1rem; font-size: 0.95rem; color: var(--ink-soft); }

  .callout { border-left: 3px solid var(--teal); background: var(--teal-soft); padding: 1rem 1.2rem; border-radius: 0 4px 4px 0; margin: 1.5rem 0; }
  .callout p:last-child { margin-bottom: 0; }

  table.plain { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
  table.plain th, table.plain td { text-align: left; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
  table.plain th { font-weight: 500; color: var(--ink-soft); width: 34%; }

  footer { border-top: 1px solid var(--rule); padding: 2.5rem 1.5rem 3.5rem; font-size: 0.92rem; color: var(--ink-soft); }
  .footer-inner { max-width: 68rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
  footer a { color: var(--ink-soft); }

  @media (max-width: 52rem) {
    .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
    .bar-inner { flex-wrap: wrap; gap: 1rem; }
    .bar nav { margin-left: 0; width: 100%; }
  }
