:root {
  --fg: #1a1a1a;
  --fg-muted: #8a8a8a;
  --bg: #fcfcfa;
  --rule: #ebebe6;
  --max: 640px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Landing — wordmark centered, everything else faded into footer */
body.landing {
  justify-content: center;
}
body.landing main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 4rem 0;
}
/* Landing — uniform vertical rhythm via flex gap */
body.landing .container {
  text-align: center;
}
.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.stack > * {
  margin: 0;
}

.wordmark {
  font-size: 1.85rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #4a4a4a;
  line-height: 1.2;
}
.wordmark .suffix {
  font-weight: 300;
  color: #9a9a9a;
  font-size: 0.85em;
  margin-left: 0.15em;
}
.fox {
  display: block;
  opacity: 0.4;
  filter: saturate(0.6);
}
.tagline,
.meta {
  color: var(--fg-muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
  font-weight: 400;
  font-style: normal;
}
.tagline { font-size: 0.975rem; }
.meta    { font-size: 0.85rem; }

/* Animationen liegen inline im HTML-head der jeweiligen Seite */

/* Small wordmark header (subpages) */
header {
  padding: 3rem 0 0;
}
.wordmark-small {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark-small .suffix {
  font-weight: 400;
  color: var(--fg-muted);
  font-size: 0.85em;
  margin-left: 0.1em;
}
.fox-small {
  display: inline-block;
  vertical-align: middle;
  opacity: 0.5;
  filter: saturate(0.7);
}
.prose .quiet {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* Wide container for table layouts */
.container-wide {
  max-width: 900px;
}

/* Subdomain overview table */
.sub-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.sub-table th,
.sub-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.sub-table th {
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--fg);
}
.sub-table td a {
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  padding-bottom: 1px;
}
.sub-table td a:hover {
  border-bottom-color: var(--fg);
}
.sub-table code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--fg-muted);
  background: var(--bg);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}
.sub-table .ok { color: #2a7a3a; }
.sub-table .warn { color: #a06a1a; }
.sub-table .err { color: #a03020; }

@media (max-width: 720px) {
  .sub-table { font-size: 0.82rem; }
  .sub-table th, .sub-table td { padding: 0.5rem 0.4rem; }
  .sub-table thead { display: none; }
  .sub-table tr {
    display: block;
    border-bottom: 1px solid var(--rule);
    padding: 0.75rem 0;
  }
  .sub-table td { display: block; border: none; padding: 0.15rem 0; }
  .sub-table td:first-child { font-weight: 500; }
}

/* Footer — subtle nav */
footer {
  padding: 2rem 0 3rem;
  margin-top: auto;
}
footer nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-right: 1.25rem;
  transition: color 0.15s ease;
}
footer nav a:hover {
  color: var(--fg);
}

/* Prose (subpages) */
.prose {
  padding: 5rem 0 3rem;
}
.prose .lead {
  font-size: 1.375rem;
  line-height: 1.5;
  font-weight: 400;
  margin: 0 0 3rem;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.prose h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 2rem;
  letter-spacing: -0.005em;
}
.prose h2 {
  font-size: 1rem;
  font-weight: 500;
  margin: 2.5rem 0 0.5rem;
  letter-spacing: 0;
}
.prose p {
  margin: 0 0 1em;
  color: var(--fg);
}
.prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.prose ul.services li {
  padding: 0.4rem 0;
  color: var(--fg-muted);
  font-size: 1rem;
  border-bottom: 1px solid var(--rule);
}
.prose ul.services li:last-child {
  border-bottom: none;
}
.prose ul:not(.services) {
  padding-left: 1.25rem;
  list-style: disc;
}
.prose ul:not(.services) li {
  margin: 0.25rem 0;
}
.prose a {
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}
.prose a:hover {
  border-bottom-color: var(--fg);
}
.prose a.back {
  color: var(--fg-muted);
  border-bottom: none;
  font-size: 0.9rem;
}
.prose a.back:hover {
  color: var(--fg);
}
.prose em {
  color: var(--fg-muted);
  font-style: italic;
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wordmark { font-size: 1.75rem; }
  header { padding: 2rem 0 0; }
  .prose { padding: 3rem 0 2rem; }
  .prose .lead { font-size: 1.2rem; }
}

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