/* Leander Sparla — site styles
   System fonts only: no external requests (no Google Fonts → no DSGVO issue). */

:root {
  --bg: #f4f2ee;
  --ink: #1a1a1a;
  --grey: #8a8780;
  --gutter: clamp(20px, 4vw, 48px);
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --ink: #ecebe7;
    --grey: #7d7b76;
  }
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity .2s ease;
}
a:hover { opacity: .55; }

::selection { background: var(--ink); color: var(--bg); }

.ls-grey { color: var(--grey); }

/* ---------- homepage layout ---------- */

.ls-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
}

.ls-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.ls-name { border-bottom-color: transparent; align-self: flex-start; }
.ls-name:hover { border-bottom-color: currentColor; opacity: 1; }

.ls-place {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-align: right;
}

.ls-center {
  align-self: center;
  justify-self: center;
  text-align: center;
  max-width: 48rem;
  padding: 12vh 0;
}

.ls-sentence {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.ls-sentence em { font-style: italic; }

.ls-note {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--grey);
}
.ls-note a { color: var(--ink); }

.ls-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.ls-left,
.ls-sign {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.ls-legal { margin-top: .6rem; font-size: 12px; color: var(--grey); }
.ls-legal a { border-bottom-color: transparent; }
.ls-legal a:hover { border-bottom-color: currentColor; opacity: 1; }

.ls-sign { text-align: right; }

@media (max-width: 560px) {
  .ls-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .ls-sign { text-align: left; }
}

/* ---------- legal pages ---------- */

.ls-doc {
  max-width: 40rem;
  padding: var(--gutter);
}
.ls-doc h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 2rem;
  margin: 3rem 0 2rem;
}
.ls-doc h2 { font-size: 14px; margin: 2rem 0 .4rem; }
.ls-doc p { margin: 0 0 .8rem; }
.ls-back { display: inline-block; }
