/*
  CorelTex company site. Shared styles.
  OPERATOR_NAME: Hassan Salum
  Contact: support@coreltex.com
  No CDN, no web fonts, no tracking.
*/

:root {
  color-scheme: light dark;
  --bg: #f7f6f3;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --link: #1a1a1a;
  --focus: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --fg: #e8e6e1;
    --muted: #8a8a8a;
    --link: #e8e6e1;
    --focus: #e8e6e1;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0 0 1.25rem;
}

.lead {
  margin-bottom: 2rem;
}

.product {
  margin-bottom: 2rem;
}

.contact {
  margin-bottom: 1.25rem;
}

.founder {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

footer {
  margin-top: auto;
  padding-top: 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  margin: 0 0 0.5rem;
}

footer nav {
  margin-top: 0.75rem;
}

footer nav a {
  color: var(--muted);
  margin-right: 1rem;
}

.legal-note {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .wrap {
    padding: 6rem 2rem 4rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  body {
    font-size: 1.2rem;
  }
}
