/* Kelter — kelter.app. Black on white; emphasis by size, weight and space.
   System fonts only, no build step, no scripts. */

:root { color-scheme: light dark; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;            /* 16 px floor */
  line-height: 1.55;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  box-sizing: border-box;
}

@media (min-width: 40rem) {
  main { padding: 2.5rem 1.5rem 5rem; }
}

/* Type — a small scale, weight does the rest */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}
.lede {
  font-size: 1.375rem;
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 2.5rem;
}
h2 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 3rem 0 0.75rem;
}
h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 2rem 0 0.25rem;
}
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }
dt { font-weight: 600; margin-top: 1rem; }
dd { margin: 0.25rem 0 0; }
small, .small { font-size: 0.9375rem; }
strong { font-weight: 600; }

code, .todo {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9375em;
}

/* The one visible placeholder style: monospace, bracketed in the text itself,
   so nothing false can be mistaken for a fact. */
.todo { overflow-wrap: anywhere; }

/* Links — the underline is the only mark */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Navigation rows — every target at least 44 px tall */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  box-sizing: border-box;
}

/* Top of page: wordmark left, pages right */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
}
.site-head .nav { margin: 0; }
.wordmark {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.wordmark:hover { text-decoration: none; }

/* The one button on the site */
.button {
  display: inline-block;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 20px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { text-decoration: none; box-shadow: 0 0 0 1.5px currentColor; }

/* Blocks */
.block { margin: 2.5rem 0; }
.rule {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.25;
  margin: 3.5rem 0;
}

address { font-style: normal; }

/* Footer */
.site-foot {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid currentColor;
  font-size: 0.9375rem;
}
.site-foot .nav { margin-bottom: 0.5rem; }

/* Impressum — a definition list, tight */
.impressum dt { margin-top: 0.75rem; }
.impressum dd { margin-top: 0; }

@media (prefers-color-scheme: dark) {
  body { color: #fff; background: #000; }
}

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