/* lumbda.com — minimal, monospace, readable */

@font-face {
  font-family: 'chunkfive';
  src: url('fonts/chunkfive/chunkfive-regular-webfont.woff2') format('woff2'),
       url('fonts/chunkfive/chunkfive-regular-webfont.woff')  format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --fg: #1a1a1a;
  --bg: #fafaf7;
  --muted: #666;
  --accent: #227842;   /* single brand green — λ mark, period, links, CTAs */
  --green: #227842;
  --rule: #d4d4d0;
  --code-bg: #f0ede4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e6e0;
    --bg: #161613;
    --muted: #9a9892;
    --accent: #5ec07a;   /* lightened for contrast on dark bg */
    --green: #5ec07a;
    --rule: #3a3a36;
    --code-bg: #22221f;
  }
}

* { box-sizing: border-box; }

html {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

/* Brand mark — custom upside-down λ artwork, recolored to #227842
   with proper alpha from pixel brightness. Shipped as a PNG so PDF,
   print, and print-styled email all render consistently without
   relying on CSS transforms. Sized 3.33× the wordmark font. */
header .lambda-mark {
  display: block;
  width: 10.66rem;       /* 3.33× the 3.2rem h1 font-size */
  height: auto;
  margin: 0 0 0.6rem;    /* sit flush against the wordmark's descender */
}

header h1 {
  font-family: 'chunkfive', Georgia, serif;
  font-size: 3.2rem;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Period after the wordmark reads as declarative: "lumbda." is final.
   Green for growth — matches the permacomputer ethos. */
header h1 .period {
  color: var(--green);
}

.tagline {
  color: var(--muted);
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

main h2 {
  font-family: 'chunkfive', Georgia, serif;
  font-size: 1.5rem;
  font-weight: normal;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.65;
}

p { margin: 0.75em 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

code {
  background: var(--code-bg);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 0.92em;
}

pre {
  background: var(--code-bg);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
  line-height: 1.45;
}

pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.9rem;
}

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

th {
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid var(--rule);
}

tbody tr:last-child td { border-bottom: none; }

ul {
  padding-left: 1.25rem;
}

li { margin: 0.25rem 0; }

.cta {
  display: inline-block;
  margin: 0.5rem 0.5rem 0 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.cta:hover {
  background: var(--accent);
  color: var(--bg);
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

footer a { color: var(--muted); }
