/* enkitech.de: clean and quiet. One column of text on a warm off-white page,
   serif headings, sans-serif body, hairline rules and one accent colour.
   System fonts only: the site loads nothing from third parties. */
:root {
  --bg: #fbfaf7;
  --text: #2a2a28;
  --heading: #141413;
  --muted: #6e6c66;
  --rule: #e4e1da;
  --accent: #2f5d50;
  --accent-soft: #e7efe9;
  --todo-bg: #fff3cd;
  --todo-line: #b7791f;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --width: 760px;
  color-scheme: light;
}
/* Dark: follows the system unless the visitor picked a theme
   (data-theme, set by assets/theme.js). Keep the two dark blocks identical. */
:root[data-theme="dark"] {
  --bg: #131312;
  --text: #dcdad4;
  --heading: #f3f1ec;
  --muted: #9a978f;
  --rule: #2c2b28;
  --accent: #93c7b4;
  --accent-soft: #1f2d28;
  --todo-bg: #3d3214;
  --todo-line: #d9a84a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131312;
    --text: #dcdad4;
    --heading: #f3f1ec;
    --muted: #9a978f;
    --rule: #2c2b28;
    --accent: #93c7b4;
    --accent-soft: #1f2d28;
    --todo-bg: #3d3214;
    --todo-line: #d9a84a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-soft); }

.wrap { width: min(var(--width), 100% - 40px); margin-inline: auto; }

/* Skip link: hidden until focused with the keyboard */
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--bg); border: 1px solid var(--rule); }
.skip:focus { top: 12px; }

/* Header: wordmark left, a few quiet links right */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.brand {
  font: 600 21px/1 var(--font-serif);
  letter-spacing: 0.01em;
  color: var(--heading);
  text-decoration: none;
}
.brand::after { content: "."; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--heading); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--heading); background: var(--accent-soft); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Intro */
.intro { padding-block: 72px 56px; }
.intro h1 {
  margin: 0 0 20px;
  font: 400 clamp(38px, 6vw, 56px)/1.1 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--heading);
}
.intro .lede { margin: 0; font-size: 19px; color: var(--muted); max-width: 36em; }

/* Sections: a small label, then the content, divided by hairlines */
.section { border-top: 1px solid var(--rule); padding-block: 44px; }
.section .wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 40px; }
.section h2 {
  margin: 4px 0 0;
  font: 600 12px/1.6 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section .body > :first-child { margin-top: 0; }
.section .body > :last-child { margin-bottom: 0; }

/* Software: one entry per project */
.projects { margin: 0; padding: 0; list-style: none; }
.project + .project { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--rule); }
.project h3 { margin: 0; font: 400 28px/1.2 var(--font-serif); color: var(--heading); }
.project .kind { margin: 4px 0 12px; font-size: 15px; color: var(--muted); }
.project p { margin: 0 0 14px; }
.project .links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; font-size: 15px; font-weight: 500; }
.project .links a { text-decoration: none; }
.project .links a:hover { text-decoration: underline; }
.more { margin: 32px 0 0; color: var(--muted); font-size: 15px; font-style: italic; }

/* Placeholder the owner must replace before the site goes live.
   README: `grep -rn 'TODO-' --include='*.html' .` must print nothing. */
.todo {
  background: var(--todo-bg);
  outline: 1px dashed var(--todo-line);
  border-radius: 2px;
  padding: 0 4px;
  font: 0.85em var(--font-mono);
}

code { font: 0.88em var(--font-mono); background: var(--accent-soft); border-radius: 3px; padding: 1px 5px; }

/* Reading pages (privacy) */
.page { padding-block: 48px 80px; }
.page article { max-width: 36em; }
.page h1 { margin: 0 0 6px; font: 400 clamp(36px, 5vw, 48px)/1.1 var(--font-serif); color: var(--heading); }
.page h2 { margin: 40px 0 8px; font: 400 23px/1.3 var(--font-serif); color: var(--heading); }
.page .meta { color: var(--muted); margin: 0 0 32px; }
.page address { font-style: normal; }

.site-footer { border-top: 1px solid var(--rule); padding-block: 28px 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover,
.site-footer a[aria-current="page"] { color: var(--heading); }

@media (max-width: 640px) {
  .site-header .wrap { padding-block: 20px; }
  .site-nav { gap: 16px; }
  .intro { padding-block: 40px 36px; }
  .section { padding-block: 32px; }
  .section .wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
