/* granitelabs.de: one narrow column of large text. No fonts, images or scripts. */
:root {
  --bg: #f5f2ea;
  --text: #171614;
  --muted: #716c63;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --text: #ece8df;
    --muted: #99948a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 28px clamp(16px, 7vw, 120px);
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

header,
main,
footer {
  width: 100%;
  max-width: 30em;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4em 1.2em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--muted);
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

header a {
  text-decoration: none;
}

.brand {
  font-weight: 600;
}

main {
  flex: 1 0 auto;
  margin-top: clamp(56px, 16vh, 180px);
}

h1,
p {
  margin: 0 0 1.1em;
  font: inherit;
}

footer {
  padding-top: 5em;
  color: var(--muted);
  font-size: 0.7em;
  line-height: 1.4;
}

footer a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  body {
    padding-block: 20px;
  }
}
