/* lenz-koxholt.de: one card, quiet type, no web fonts, no JS. */

:root {
  --bg: #f3f1ec;
  --card: #fffdf9;
  --ink: #1c1b19;
  --muted: #78746c;
  --line: #e7e2d9;
  --accent: #a24a26;
  --shadow: 0 1px 2px rgb(40 30 10 / 0.04), 0 18px 40px -20px rgb(40 30 10 / 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --card: #191918;
    --ink: #ebe9e4;
    --muted: #9b968d;
    --line: #2a2926;
    --accent: #e3906a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 20px 48px -24px rgb(0 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem 1rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ---- the card ---------------------------------------------------------- */

.card {
  width: 100%;
  max-width: 27rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2.6rem 2.4rem 1.6rem;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.card.wide { max-width: 42rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
}

@media (max-width: 480px) {
  body { padding: 1rem; justify-content: flex-start; }
  .card { padding: 2rem 1.4rem 1.3rem; border-radius: 14px; }
}

.name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.05rem;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
}
.tagline { margin: 0.4rem 0 0; color: var(--muted); }
.body { margin: 1.4rem 0; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 0.22em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }

.links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.15rem; margin-top: 1.3rem; }

section { margin-top: 2rem; }

h2 {
  font: 600 0.68rem/1 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}
.list li:first-child { border-top: 0; }
.list a { text-decoration: none; overflow-wrap: anywhere; }
.list time, .list .aside { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.list p { grid-column: 1 / -1; margin: 0.1rem 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.ext { font-size: 0.75em; margin-left: 0.3em; color: var(--muted); }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.card-foot a { text-decoration: none; }

.foot { display: flex; gap: 1.1rem; font-size: 0.78rem; color: var(--muted); }
.foot a { text-decoration: none; }

.muted { color: var(--muted); }
.small { font-size: 0.82rem; line-height: 1.5; }
.empty { margin: 2rem 0 0; }

.crumb { margin: 0 0 1.4rem; font-size: 0.875rem; color: var(--muted); }
.crumb a { text-decoration: none; }

.btn {
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  color: var(--card);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  margin: 0.2rem 0 1.4rem;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }

.linkish { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.linkish:hover { color: var(--accent); }

/* ---- long-form pages --------------------------------------------------- */

.prose h1 { font-family: var(--serif); font-weight: 500; font-size: 2.05rem; line-height: 1.18; letter-spacing: -0.01em; margin: 0; }
.prose .meta { color: var(--muted); font-size: 0.875rem; margin: 0.45rem 0 0; }
.prose > :nth-child(2) { margin-top: 1.75rem; }
.prose > .meta + * { margin-top: 1.75rem; }
.prose h2, .prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.3;
  margin: 2.2rem 0 0.6rem;
}
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.12rem; }
.prose p, .prose ul, .prose ol, .prose figure { margin: 0 0 1.05rem; }
.prose li + li { margin-top: 0.25rem; }
.prose img, .prose video { max-width: 100%; height: auto; border-radius: 10px; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: color-mix(in srgb, var(--line) 60%, transparent); padding: 0.1em 0.35em; border-radius: 5px; }
.prose pre { font-family: var(--mono); font-size: 0.84rem; line-height: 1.55; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; overflow-x: auto; margin: 0 0 1.2rem; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose blockquote { margin: 0 0 1.05rem; padding-left: 1rem; border-left: 2px solid var(--line); color: var(--muted); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.9rem; margin: 0 0 1.2rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.4rem 0.7rem 0.4rem 0; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose > :last-child { margin-bottom: 0.6rem; }

::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
