/* ==========================================================================
   Gestalt Creative - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: 'Lilex';
  src: url('../fonts/Lilex-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lilex';
  src: url('../fonts/Lilex-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Overused Grotesk';
  src: url('../fonts/OverusedGroteskRoman-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Overused Grotesk';
  src: url('../fonts/OverusedGroteskRoman-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #f4f4f2;
  --text-color: #000000;
  --text-muted: #b9b9b9;
  --font-display: 'Montagu Slab', serif;
  --font-mono: 'Lilex', monospace;
  --font-body: 'Overused Grotesk', sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.41;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 27px 34px 40px;
  max-width: 1932px;
  margin: 0 auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.header__logo,
.header__tagline {
  text-decoration: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: auto;
  padding-top: 60px;
}

.footer__links {
  margin-top: 4px;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 12px;
}

.footer__links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}

.hero__quote {
  font-family: var(--font-display);
  font-weight: 275;
  font-size: clamp(48px, 10vw, 180px);
  line-height: 0.92;
  text-align: justify;
  margin-bottom: 20px;
}

.hero__attribution {
  font-family: var(--font-mono);
  font-size: 16px;
  text-align: right;
  margin-bottom: 60px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.hero__about,
.hero__cta {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.41;
}

.hero__about p,
.hero__cta p {
  margin-bottom: 0;
}

/* ==========================================================================
   Legal Pages (Impressum, Datenschutz)
   ========================================================================== */

.legal-page {
  padding-bottom: 80px;
}

.legal-page .page-title {
  font-family: var(--font-display);
  font-weight: 275;
  font-size: clamp(60px, 12vw, 180px);
  line-height: 1.1;
  margin: 80px 0 60px;
}

.legal-content {
  max-width: 873px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.41;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 0;
}

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

.legal-content p {
  margin-bottom: 0;
}

.legal-content p + p {
  margin-top: 0;
}

.legal-content section {
  margin-bottom: 28px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 30px;
  margin: 0;
}

.legal-content li {
  margin-bottom: 0;
}

.legal-content a {
  text-decoration: underline;
}

/* Table of Contents */
.toc {
  margin: 28px 0;
}

.toc ul {
  list-style: disc;
  padding-left: 30px;
}

.toc li {
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .hero__content {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .page {
    padding: 20px 24px 40px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__quote {
    text-align: left;
  }

  .legal-content {
    font-size: 18px;
  }

  .hero__about,
  .hero__cta {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 40px 20px 40px;
  }

  .header {
    font-size: clamp(12px, 4vw, 18px);
  }

  .hero {
    padding: 30px 0;
    justify-content: flex-start;
  }

  .hero__quote {
    font-size: clamp(32px, 10.5vw, 64px);
    line-height: 0.99;
    text-align: justify;
    margin-bottom: 8px;
  }

  .hero__attribution {
    font-size: clamp(12px, 4vw, 18px);
    margin-bottom: 50px;
  }

  .hero__content {
    gap: 30px;
    margin-top: 0;
  }

  .hero__about,
  .hero__cta {
    font-size: clamp(16px, 5vw, 26px);
  }

  .legal-page .page-title {
    font-size: clamp(36px, 12vw, 64px);
    margin: 30px 0 30px;
  }

  .legal-content {
    font-size: clamp(14px, 4.5vw, 18px);
  }

  .legal-content h2 {
    font-size: clamp(16px, 5vw, 20px);
  }

  .footer {
    font-size: clamp(11px, 3.4vw, 16px);
    padding-top: 50px;
  }

  .footer__links a {
    margin: 0 6px;
  }
}
