/* Michael Wachter — persönliche Website
   Nur Systemschriften, keine externen Ressourcen. */

:root {
  --navy: #0b1f3a;
  --navy-deep: #081628;
  --ink: #f5f7fb;
  --muted: #c3cedd;
  --line: rgba(245, 247, 251, 0.16);
  --accent: #e8eef6;
  --focus: #9eb6d4;
  --max: 70rem;
  --prose: 34rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 10;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--navy);
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

a:hover {
  border-bottom-color: var(--ink);
}

a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
}

/* Hero */

.hero {
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(4rem, 12vh, 8rem);
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}

.eyebrow {
  margin: 0 0 1.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8.2vw, 6.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.rule {
  display: block;
  width: 3.25rem;
  height: 1px;
  margin: 1.7rem 0 0;
  background: var(--accent);
  opacity: 0.75;
  border: 0;
}

.tagline {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}

/* Sections */

main {
  flex: 1 0 auto;
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  max-width: var(--prose);
}

.section h2 {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section p {
  margin: 0;
}

.placeholder-label {
  display: block;
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 1.6rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

/* Impressum page */

.page-header {
  padding: 2.25rem 0 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.legal {
  padding-top: 2.25rem;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  margin: 0;
  max-width: var(--prose);
}

@media (max-width: 40rem) {
  .hero {
    min-height: 62vh;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
