/* Marketplace Systems AG — corporate site
   Restrained Swiss corporate styling. No frameworks, no third-party fonts. */

:root {
  --bg: #ffffff;
  --text: #111418;
  --text-muted: #5b6470;
  --rule: #e6e8eb;
  --accent: #1f2a44;
  --max-frame: 960px;
  --max-text: 680px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 120ms ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.frame {
  max-width: var(--max-frame);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.site-header .frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  border-bottom: none;
}

.lang {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lang a {
  border-bottom: none;
  color: var(--text-muted);
  padding-bottom: 2px;
}

.lang a:hover,
.lang a:focus-visible {
  color: var(--text);
}

.lang a[aria-current="true"] {
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

/* Sections */
main section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--rule);
}

main section:last-of-type {
  border-bottom: none;
}

.section-inner {
  max-width: var(--max-text);
}

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

.hero {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0;
}

h2 {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--text-muted);
}

/* Contact block */
.contact-block {
  font-style: normal;
  margin: 0;
  color: var(--text);
}

.contact-block .line {
  display: block;
}

.contact-block .email {
  display: inline-block;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.site-footer .frame {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
}

.footer-block {
  max-width: 28rem;
}

.footer-block .line {
  display: block;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-meta .links {
  display: flex;
  gap: 1rem;
}

.footer-meta a {
  color: var(--text-muted);
  border-bottom-color: transparent;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--rule);
}

.uid {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Legal pages */
.legal {
  padding: 5rem 0 6rem;
}

.legal h1 {
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 2rem;
}

.legal h2 {
  font-size: 1.0625rem;
  margin-top: 2.5rem;
}

.legal p {
  max-width: var(--max-text);
}

.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

/* Mobile */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  main section {
    padding: 3.5rem 0;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .site-header {
    padding: 1.5rem 0 1rem;
  }

  .site-footer {
    padding: 2.5rem 0 3rem;
  }

  .site-footer .frame {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
