/* arturstoll.de — simple, static, no external dependencies */
:root {
  --fg: #111;
  --muted: #777;
  --line: #d9d9d9;
  --bg: #fff;
  --soft-bg: #fbfbf8;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 28px;
}

.home-card {
  text-align: center;
  transform: translateY(-2vh);
}

.home-title {
  font-size: 18px;
  letter-spacing: .42em;
  font-weight: 400;
  margin: 0 0 26px;
  text-transform: uppercase;
  padding-left: .42em;
}

.home-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-links a,
.site-nav a,
.index-row a {
  color: var(--fg);
  text-decoration: none;
}

.home-links a:hover,
.site-nav a:hover,
.index-row a:hover {
  text-decoration: underline;
}

.home-note {
  position: fixed;
  left: 18px;
  bottom: 16px;
  color: #999;
  font-size: 12px;
}

.index-page {
  background: var(--soft-bg);
}

.index-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 54px 24px 80px;
  display: grid;
  grid-template-columns: 172px 1fr;
  column-gap: 54px;
}

.identity {
  position: sticky;
  top: 54px;
  align-self: start;
}

.identity h1 {
  font-size: 17px;
  line-height: 1.1;
  margin: 0 0 13px;
  font-weight: 700;
}

.identity p {
  margin: 0 0 18px;
  color: var(--muted);
}

.site-nav a {
  display: block;
  width: max-content;
  border-bottom: 1px solid transparent;
  margin: 4px 0;
}

.site-nav a:hover {
  text-decoration: none;
  border-bottom-color: var(--fg);
}

.identity-meta {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.intro {
  max-width: 640px;
  margin: 0 0 50px;
}

.intro p {
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -.012em;
  margin: 0;
}

.index-grid {
  display: grid;
  grid-template-columns: 1fr 78px;
  column-gap: 22px;
  row-gap: 46px;
}

.section-title {
  grid-column: 1 / -1;
  margin: 0 0 -30px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.index-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.index-row .date {
  color: var(--muted);
  font-size: 13px;
}

.index-row .desc {
  color: var(--muted);
  margin-top: 2px;
}

.index-count {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.index-footer {
  margin-top: 55px;
  color: var(--muted);
  font-size: 13px;
}

.legal-links {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.legal-links a {
  color: inherit;
  text-decoration: none;
}

.legal-links a:hover { text-decoration: underline; }

.legal-page { background: var(--soft-bg); }

.legal-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 54px 24px 80px;
}

.back-link {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.legal-shell h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 500;
}

.legal-lead {
  margin: 12px 0 50px;
  color: var(--muted);
}

.legal-shell section {
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}

.legal-shell h2 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.35;
}

.legal-shell p,
.legal-shell address {
  margin: 0 0 12px;
  font-style: normal;
}

.legal-shell section > :last-child { margin-bottom: 0; }

.note-page { background: var(--soft-bg); }

.note-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 54px 24px 96px;
}

.note-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.note-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 500;
}

.note-header time {
  color: var(--muted);
  font-size: 13px;
}

.note-content {
  padding-top: 28px;
  font-size: 17px;
  line-height: 1.7;
}

.note-content h2,
.note-content h3 {
  margin: 42px 0 12px;
  line-height: 1.25;
}

.note-content h2 { font-size: 23px; }
.note-content h3 { font-size: 18px; }
.note-content p,
.note-content ul,
.note-content ol,
.note-content blockquote,
.note-content pre { margin: 0 0 22px; }
.note-content img { max-width: 100%; height: auto; }
.note-content pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
}
.note-content code { font-size: .9em; }
.note-content blockquote {
  margin-left: 0;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  .home-title {
    letter-spacing: .22em;
    padding-left: .22em;
  }

  .home-links { gap: 11px; }

  .home-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    text-align: center;
  }

  .index-shell {
    display: block;
    padding-top: 28px;
  }

  .identity {
    position: static;
    margin-bottom: 36px;
  }

  .intro p { font-size: 20px; }

  .index-grid { grid-template-columns: 1fr; }

  .index-count { display: none; }

  .index-row { grid-template-columns: 76px 1fr; }
}
