/* emerging collaborations gmbh — corporate site stylesheet */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2-variations'),
       url('fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #faf8f3;
  --color-text: #14110d;
  --color-muted: #7a736a;
  --color-accent: #5a4434;
  --color-rule: #d8d2c6;
  --font-display: ui-serif, "Iowan Old Style", "Apple Garamond", "Hoefler Text", Baskerville, "Times New Roman", serif;
  --font-quote: 'Fraunces', Georgia, "Hoefler Text", Charter, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 640px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

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

.brand {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--color-accent);
}

/* Main */
main {
  flex: 1;
  padding: 2.5rem 0 2rem;
}

main h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

main h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

main h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

main p {
  margin-bottom: 0.875rem;
  max-width: 58ch;
  color: var(--color-text);
}

main p.muted {
  color: var(--color-muted);
}

main a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

main a:hover {
  color: var(--color-text);
}

/* Lede — the editorial pull-quote on the home page */
.lede {
  font-family: var(--font-quote);
  font-size: clamp(1.5rem, 3.6vw, 1.875rem);
  line-height: 1.35;
  font-weight: 600;
  font-variation-settings: "opsz" 48, "SOFT" 100;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  max-width: 34ch;
}

/* Divider */
hr.rule {
  border: 0;
  border-top: 1px solid var(--color-rule);
  margin: 1.5rem 0;
}

/* Definition list for legal facts */
dl.facts {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 0.45rem 1.5rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.9375rem;
}

dl.facts dt {
  color: var(--color-muted);
  font-weight: 500;
}

dl.facts dd {
  color: var(--color-text);
}

@media (max-width: 600px) {
  dl.facts {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  dl.facts dt {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  dl.facts dt:first-child {
    margin-top: 0;
  }
}

/* Address block on contact page */
.address {
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Email obfuscation — fallback look before JS replaces it */
.email {
  font-family: var(--font-body);
  color: var(--color-accent);
}

/* Long-form legal text */
.legal {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal h2 {
  font-size: 1.1875rem;
  margin-top: 1.5rem;
}

.legal p {
  margin-bottom: 0.75rem;
  max-width: 62ch;
}

.legal ul {
  margin: 0.5rem 0 1rem 1.25rem;
  max-width: 62ch;
}

.legal ul li {
  margin-bottom: 0.35rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-rule);
  padding: 1rem 0;
  margin-top: 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
}

footer nav a {
  text-decoration: none;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

footer nav a:hover {
  color: var(--color-text);
}

footer .copy {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0;
}

/* Print */
@media print {
  body {
    background: white;
    color: black;
  }
  header, footer {
    border-color: #ccc;
  }
}
