/* CoMiT STS — single-page stylesheet */

:root {
  --ink: #0b0b0b;
  --paper: #f4f3ef;
  --text: #222;
  --light: #f3f1ec;
  --muted: #b3b3b3;
  --red: #c8392e;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Header ------------------------------------------------------------- */

header {
  background: var(--ink);
  color: var(--light);
  padding: 2.25rem 1.5rem 2.5rem;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
}

header h1 {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.accent {
  color: var(--red);
}

.subtext {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* Main --------------------------------------------------------------- */

main {
  flex: 1 0 auto;
  padding: 3.25rem 1.5rem 4.5rem;
}

section {
  max-width: 660px;
  margin: 0 auto;
}

.section-label {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-text {
  padding-left: 2.6rem;
}

.about-text p {
  max-width: 33.5rem;
  margin: 0;
}

/* Email links: same red as the section labels. */
main a[href^="mailto:"] {
  color: var(--red);
  text-underline-offset: 0.15em;
}

main a[href^="mailto:"]:hover,
main a[href^="mailto:"]:focus-visible {
  text-decoration-thickness: 2px;
}

/* Header title as a link back to the homepage (Impressum page). */
.home-link {
  color: inherit;
  text-decoration: none;
}

/* Impressum ----------------------------------------------------------- */

.legal h2 {
  margin: 2rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

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

.legal a {
  color: var(--text);
  text-decoration-color: var(--red);
  text-underline-offset: 0.15em;
}

.legal a:hover,
.legal a:focus-visible {
  color: var(--red);
}

/* Footer ------------------------------------------------------------- */

footer {
  background: var(--ink);
  color: #8a8a8a;
  padding: 1.75rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-align: center;
}

footer a {
  color: #d8d8d8;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Small screens ------------------------------------------------------ */

@media (max-width: 600px) {
  header {
    padding: 2rem 1.25rem 2.5rem;
  }

  header h1 {
    font-size: 2.25rem;
  }

  main {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .about-text {
    padding-left: 0;
  }
}
