/* Quasar Ideas Ltd - company website */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #16181d;
  --muted: #5b616d;
  --border: #e3e6eb;
  --accent: #3352cc;
  --accent-strong: #243da3;

  --measure: 42rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --surface: #171a20;
    --text: #e7eaef;
    --muted: #99a0ad;
    --border: #262a33;
    --accent: #93a8ff;
    --accent-strong: #b6c4ff;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

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

/* Header */

.site-header {
  padding-block: clamp(2rem, 7vw, 3.75rem) 0;
}

.wordmark {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.05em;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--accent-strong);
}

/* Main */

main {
  flex: 1 0 auto;
  padding-block: clamp(2.5rem, 9vw, 5rem) clamp(3rem, 10vw, 6rem);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.125rem;
}

.lead {
  font-size: clamp(1.0625rem, 2.6vw, 1.1875rem);
  color: var(--text);
  max-width: 34rem;
}

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

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Contact block */

.contact {
  margin-top: clamp(2.5rem, 8vw, 3.5rem);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact h2 {
  margin-top: 0;
}

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

.contact a {
  font-weight: 550;
  word-break: break-word;
}

/* Legal / long-form text */

.legal h2:first-of-type {
  margin-top: 2rem;
}

.legal ul {
  margin: 0 0 1.125rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.updated {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding-block: clamp(1.75rem, 6vw, 2.5rem);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.625rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
}

.footer-meta > * + *::before {
  content: "\00b7";
  margin: 0 0.5rem;
  opacity: 0.55;
}
