/* Recompiled — design system
   Warm paper background, deep green accent, big serif headline with a
   highlighter-marker treatment instead of a colored italic line, post list
   as tinted cards rather than a plain divided list. Loosely in the same
   editorial family as littlemight.com but its own palette and layout — no
   frameworks, no build step. */

:root {
  --color-bg: #f7f6ef;
  --color-ink: #211a16;
  --color-ink-soft: #6b5d52;
  --color-accent: #c1552f;
  --color-accent-soft: #f2ddd0;
  --color-line: #ddd2c4;
  --color-card: #f1e8dc;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 680px;
  --wrap: 880px;
}

* { box-sizing: border-box; }

html { background: var(--color-bg); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

.eyebrow, .label, .post-card__meta, .post__meta {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--color-ink-soft);
}

/* Header */
.site-header { border-bottom: 1px solid var(--color-line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.site-header__logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.site-header__logo::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-accent);
}
.site-header__nav { display: flex; align-items: center; gap: 26px; }
.site-header__nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.site-header__nav a:not(.btn):hover { border-bottom-color: var(--color-accent); }

/* Resources menu in the header: opens on hover or keyboard focus, lists
   the overview and every tool. Tool names keep their own casing. */
/* display: flex makes the trigger a block-level flex item like its sibling
   links, so its padding-bottom counts the same and it lines up with them. */
.nav-menu { position: relative; display: flex; }
.nav-menu__trigger::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 3px 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.nav-menu__list {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 10;
  min-width: 190px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}
/* Invisible bridge so the menu stays open while the pointer moves down. */
.nav-menu__list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-menu:hover .nav-menu__list,
.nav-menu:focus-within .nav-menu__list { display: block; margin-top: 10px; }
.site-header__nav .nav-menu__list a {
  display: block;
  padding: 7px 14px;
  border-bottom: none;
  text-transform: none;
  letter-spacing: 0.02em;
}
.site-header__nav .nav-menu__list a:hover { color: var(--color-accent); }
.nav-menu__list li:first-child a {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
  font-size: 12px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 3px;
  text-decoration: none;
}
.btn--accent {
  background: var(--color-accent);
  color: #fdfdf8 !important;
}

/* Hero */
.hero { padding: 68px 0 36px; }
.eyebrow--byline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-line);
}
.avatar--lg {
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.25;
  margin: 14px 0 22px;
  font-weight: 500;
}
.hero h1 mark {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 0 6px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero__lede {
  font-size: 20px;
  max-width: var(--measure);
  margin: 0 0 12px;
  color: var(--color-ink);
}
.hero__desc {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-ink-soft);
  max-width: 60ch;
  text-transform: none;
  letter-spacing: normal;
}

/* Topics — pill row instead of a plain mono list */
.topics { padding: 6px 0 44px; }
.topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.topics__list li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  padding: 5px 11px;
  border-radius: 999px;
}

/* Post list — tinted cards, not a divided list */
.post-list { padding: 8px 0 64px; }
.section-title { font-size: 22px; margin-bottom: 24px; }
.post-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-card {
  padding: 26px 28px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 10px;
}
.post-card__title { font-size: 25px; margin: 8px 0 8px; font-weight: 500; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--color-accent); }
.post-card__excerpt {
  color: var(--color-ink-soft);
  max-width: var(--measure);
  margin: 0 0 12px;
}
.post-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin: 0;
}
.post-card__link {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--color-accent);
}
/* Secondary "Auch auf Deutsch" link — quieter than the primary one. */
.post-card__alt {
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  color: var(--color-ink-soft);
}
.post-card__alt:hover { color: var(--color-accent); }
.empty-state {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--color-card);
  border: 1px dashed var(--color-line);
  border-radius: 10px;
  padding: 20px 24px;
}

/* Resources (Professional Tools, Professional Services) — same hero and
   tinted cards as the homepage. The overview lists tools as compact rows
   (.tool-row, further down); each tool's detail page shows the full card:
   image previews (click opens the lightbox below), an install command and
   a row of outlined link buttons (accent-filled one for a service's main
   link). Items come from _data/resources.yml. */
.resources-hero { padding-bottom: 20px; }
.resources-hero h1 { max-width: 26ch; text-wrap: balance; }
.resources-section { padding: 20px 0 44px; }
.resources-section .section-title { margin: 0 0 18px; }
.resource-card {
  padding: 24px 28px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 10px;
}
/* With images: a column of small previews left, text right. Each preview
   has the same frame (object-fit: contain), since the diagrams differ in
   aspect ratio. Below 640px the previews become one row above the text. */
.resource-card--images {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.resource-card__images {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.resource-card__images a { display: block; }
.resource-card--service { border-color: var(--color-accent); }
.resource-card__images img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 4px;
  background: #f7f6f3;
  border: 1px solid var(--color-line);
  border-radius: 6px;
}
.resource-card__images a { cursor: zoom-in; }
.resource-card__images a:hover img { border-color: var(--color-accent); }

/* Lightbox for those previews (assets/js/lightbox.js): the image large on
   a dark ink backdrop, caption and ‹ › × below in the mono label voice. */
.lightbox {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(33, 26, 22, 0.85); }
.lightbox img {
  display: block;
  width: min(1100px, 94vw);
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  background: #f7f6f3;
  border-radius: 8px;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.lightbox__caption {
  flex: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-bg);
}
.lightbox__btn {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  width: 36px;
  height: 36px;
  color: var(--color-bg);
  background: transparent;
  border: 1px solid rgba(247, 246, 239, 0.4);
  border-radius: 999px;
  cursor: pointer;
}
.lightbox__btn:hover { border-color: var(--color-accent); color: var(--color-accent-soft); }
.lightbox__btn[hidden] { display: none; }
.resource-card .post-card__title { margin: 6px 0 2px; }
.resource-card__tagline {
  font-size: 19px;
  font-style: italic;
  color: var(--color-accent);
  margin: 0 0 12px;
}
.resource-card__summary { max-width: var(--measure); margin: 0 0 10px; }
.resource-card__note {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-ink-soft);
  max-width: var(--measure);
  margin: 0 0 16px;
}
.resource-card__install-label { margin: 0 0 8px; }
.resource-card__install {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 10px 14px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0 0 16px;
}
.resource-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.resource-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 8px 14px;
}
.resource-btn:hover { color: var(--color-accent); border-color: var(--color-accent); }
.resource-btn--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fdfdf8;
}
.resource-btn--accent:hover { color: #fdfdf8; filter: brightness(0.94); }

/* Overview rows: small preview, name, short description (clamped to two
   lines, so a row stays at most three lines tall). The whole row is the
   link to the tool's detail page. */
.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-row__link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  text-decoration: none;
}
.tool-row__link:hover { border-color: var(--color-accent); }
.tool-row__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 3px;
  background: #f7f6f3;
  border: 1px solid var(--color-line);
  border-radius: 6px;
}
.tool-row__text { display: block; min-width: 0; }
.tool-row__name {
  display: block;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
}
.tool-row__link:hover .tool-row__name { color: var(--color-accent); }
.tool-row__short {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

/* Tool detail page (layout `tool`): back link + DE | EN switch, then the
   tool's full card with its name as the page heading, then the optional
   "Why I built this" section (page body, set like a post body). */
.tool { padding: 40px 24px 64px; }
.tool__topbar { margin: 0 0 20px; }
.tool__why { padding-bottom: 0; }
.tool__why > h2:first-child { margin-top: 48px; }
.tool__why > :last-child { margin-bottom: 0; }
h1.resource-card__name {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  margin: 6px 0 2px;
}

/* Single post */
.post__header { padding: 56px 0 24px; }
/* Row above the headline: back link left, DE | EN switch right. */
.post__topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
}
.post__topbar .eyebrow { margin: 0; }
.post__topbar--end { justify-content: flex-end; }

/* Language switch — same mono/uppercase voice as .eyebrow, plain links,
   current language in the accent colour. */
.lang-switch {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--color-ink-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.lang-switch a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.lang-switch a:hover { border-bottom-color: var(--color-accent); color: var(--color-ink); }
.lang-switch__current { color: var(--color-accent); font-weight: 600; }
.lang-switch__sep { color: var(--color-line); }
.post__header-image {
  display: block;
  width: 100%;
  max-width: var(--measure);
  height: auto;
  border-radius: 14px;
  margin: 0 0 32px;
}
.post__header h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.2; margin: 12px 0; max-width: 20ch; font-weight: 500; }
.post__subtitle { font-size: 19px; color: var(--color-ink-soft); max-width: var(--measure); }
.post__meta { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.post__body {
  max-width: var(--measure);
  font-size: 19px;
  padding-bottom: 48px;
}
.post__body p { margin: 0 0 22px; }
.post__body h2 { font-size: 26px; margin: 40px 0 16px; font-weight: 500; }
.post__body h3 { font-size: 21px; margin: 32px 0 14px; font-weight: 500; }
.post__body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--color-accent);
  color: var(--color-ink-soft);
  font-style: italic;
}
/* Boxed variant for verbatim excerpts (e.g. a quoted system prompt) —
   contained like a code block, but prose, so no <pre><code>. Chrome (the
   PROMPT label + COPY button) is added by assets/js/prompt-copy.js on load;
   the box reads fine as a plain quote if JS doesn't run. */
.post__body blockquote.prompt {
  position: relative;
  margin: 28px 0;
  padding: 18px 22px 20px;
  border-left: none;
  background: #fdfdf8;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-ink);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85em;
  line-height: 1.6;
}
.post__body blockquote.prompt p { margin: 0; }
.post__body blockquote.prompt p + p { margin-top: 10px; }

/* Pull-quote: one strong line lifted out of the body into its own box —
   editorial emphasis, distinct from .prompt (verbatim/monospace excerpts)
   and from mark (inline accent emphasis within a sentence). Use sparingly,
   1-2 per post, for a line that can stand completely on its own. */
.post__body blockquote.pull-quote {
  margin: 32px 0;
  padding: 22px 28px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-card);
  border-radius: 10px;
  font-style: normal;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-ink);
}
.post__body blockquote.pull-quote p { margin: 0; }

/* Header row injected by JS: uppercase mono label + pill copy button,
   matching the .eyebrow / .tag / .btn conventions already in use. */
.prompt__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.prompt__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--color-ink-soft);
}
.prompt__copy {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  line-height: 1;
  color: var(--color-ink-soft);
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
}
.prompt__copy:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.prompt__copy--copied,
.prompt__copy--copied:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
@media print {
  .prompt__header { display: none; }
}
/* Thesis-line emphasis — text in the accent color, no background.
   Deliberately not the same treatment as .hero h1 mark: that pill-style
   highlight is a homepage-only device, so body copy gets a plainer accent
   instead of reusing it verbatim. Use sparingly: either one load-bearing
   sentence, or a handful of short terms in one passage (e.g. naming a
   small list of things), not both patterns in the same post. */
.post__body mark {
  background: none;
  color: var(--color-accent);
  font-weight: 600;
}
.post__body code {
  font-family: var(--font-mono);
  background: var(--color-card);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.85em;
}
.post__body pre {
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 18px 20px;
  border-radius: 8px;
  overflow-x: auto;
}
.post__body pre code { background: none; padding: 0; color: inherit; }
.post__body img { max-width: 100%; border-radius: 8px; }
.post__body img.avatar { border-radius: 50%; }

.page { padding: 56px 0 64px; }
.page .post__body { font-size: 19px; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-line); padding: 28px 0; }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ink-soft);
}
.site-footer__nav { display: flex; gap: 16px; }
.site-footer a { text-decoration: none; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-header__inner { flex-wrap: wrap; row-gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .site-header__logo { font-size: 17px; }
  .site-header__nav { gap: 12px; flex-wrap: wrap; }
  .post-card, .resource-card { padding: 20px; }
}
@media (max-width: 640px) {
  .resource-card--images { display: block; }
  .resource-card__images {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 18px;
  }
  .tool-row__link { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .tool-row__name { font-size: 19px; }
  .tool-row__short { font-size: 15px; }
}

@media (max-width: 420px) {
  .site-header__inner { justify-content: flex-start; }
  .site-header__nav { width: 100%; justify-content: space-between; }
}
