/* Fonts */
@font-face {
  font-family: "Libre Caslon Text";
  src: url("public/fonts/LibreCaslonText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("public/fonts/LibreCaslonText-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("public/fonts/LibreCaslonText-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cutive Mono";
  src: url("public/fonts/CutiveMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("public/fonts/Inter-VariableFont_opsz,wght.ttf")
    format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("public/fonts/Inter-Italic-VariableFont_opsz,wght.ttf")
    format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Design tokens */
:root {
  --ink: #26263d;
  --muted: #3f4760;
  --bg: #f8f9fb;
  --paper: #ffffff;
  --border: #e5e8f2;
  --accent: #fd8624;
  --surface: #f2f4fa;
  --radius: 12px;
  --hero-gap: 32px;
  --shadow: 8px 8px 8px rgba(60, 60, 121, 0.25);
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cutive Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

main,
header {
  font-size: 1.25rem;
}

main {
  padding-inline: 16px;
}

img {
  display: block;
}

a {
  color: var(--muted);
  text-decoration: none;
}

section {
  scroll-margin-top: 100px;
  max-width: 1312px;
  margin: 96px auto;
}

h1,
h2,
h3 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.1px;
}

p {
  hyphens: auto;
  hyphenate-limit-chars: 6 4 3;
  overflow-wrap: normal;
  word-break: normal;
}

/* Header */
.site-header {
  border-bottom: none;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.site-header__row {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__svg {
  display: block;
}

.site-header .brand__svg {
  height: 48px;
  width: auto;
}

.site-footer .brand__svg {
  height: 32px;
  width: auto;
}

.site-header .brand {
  margin-right: 12px;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  padding: 6px 8px;
  border-radius: 4px;
  letter-spacing: -0.48px;
}

.main-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hero-gap);
  align-items: start;
}

.display {
  font-size: 44px;
  line-height: 1.06;
  margin: 0;
  letter-spacing: -1.32px;
}

.hero__text {
  line-height: 1.33;
  color: var(--ink);
  text-align: left;
  max-width: 640px;
  margin: 0;
}

.display + .hero__text {
  margin-top: 32px;
}

.hero__text + .hero__text {
  margin-top: 16px;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

nav .btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn--cta {
  padding: 12px 64px;
  border-radius: 4px;
  letter-spacing: -0.54px;
  font-weight: 800;
}

.btn:hover {
  opacity: 0.92;
}

.ink-wrap {
  position: relative;
  display: inline-block;
}

.ink-wrap img {
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -6px;
  height: 24px;
  pointer-events: none;
}

/* Section heads */
.section-title {
  font-size: 40px;
  letter-spacing: -1.2px;
  margin: 8px 0 64px;
  text-align: center;
}

.section-title .ink {
  position: relative;
  display: inline-block;
}

.section-title .ink img {
  position: absolute;
  left: -36px;
  bottom: -8px;
  z-index: -1;
}

.haltung img {
  z-index: -1;
}

/* Features */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card__image {
  margin: 0 auto;
  margin-bottom: 32px;
  height: 12rem;
}

.card__text {
  color: var(--ink);
  margin: 0;
  line-height: 1.33;
  text-align: left;
}

/* Person */
.split {
  display: flex;
  gap: 64px;
  align-items: start;
}

.h3 {
  font-size: 28px;
  margin: 0 0 6px;
  text-align: left;
  letter-spacing: -0.84px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.prose {
  color: var(--ink);
  line-height: 1.33;
}

/* Timeline */
.cv {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: none;
  width: 400px;
}

.cv__row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  column-gap: 32px;
  row-gap: 0;
  min-height: 76px;
  padding: 16px 0;
  font-size: 16px;
}

.cv__year {
  font-family: "Libre Caslon Text";
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 4px;
}

.cv__desc {
  color: var(--ink);
  line-height: 1.33;
}

.cv__where {
  margin-top: 4px;
  opacity: 0.5;
  font-size: 14px;
}

.cv__row--first {
  padding-top: 55px;
}

.cv__row--last {
  border-bottom: none;
}

/* Footer */
.site-footer {
  max-width: 1440px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  padding: 18px 0;
  padding-inline: 32px;
}

.brand--muted .brand__svg {
  filter: none;
}

.contact__link {
  color: var(--ink);
  font-weight: 700;
}

.site-footer__legal {
  justify-self: right;
}

.site-footer__mail {
  justify-self: center;
}

.portrait {
  box-shadow: var(--shadow);
  flex-basis: 536px;
  flex-shrink: 0;
}

.card {
  background: white;
  box-shadow: var(--shadow);
  padding: 24px;
}

.kontakt {
  display: flex;
  justify-content: center;
}

iframe {
  max-width: 720px;
}

.kompetenzen-title {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  main,
  header {
    font-size: 1.15rem;
  }

  section {
    margin: 64px auto;
  }

  .h3 {
    font-size: 24px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

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

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

  .cv {
    width: auto;
  }

  .cv__row--first {
    padding-top: 0;
  }

  .cv__year {
    margin-bottom: 8px;
  }

  .split {
    justify-items: center;
    gap: 0;
    flex-direction: column;
  }

  .split:nth-of-type(1) {
    gap: 32px;
  }

  /* Footer: center and tidy */
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
    font-size: 16px;
    padding-bottom: 32px;
    padding-inline: 16px;
  }

  .site-footer__legal {
    justify-self: auto;
  }

  .portrait {
    margin-top: 16px;
    width: 100%;
  }

  .section-title {
    margin: 8px 0 32px;
  }

  .kompetenzen-title {
    margtin-top: 32px;
  }
}
