/* IQ Group — shared stylesheet */

:root {
  --blue: #1F4E96;
  --blue-hover: #2B5AA0;
  --gray: #6B7280;
  --bg: #FAFAFA;
  --text: #1A1A1A;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}

.logo {
  width: 140px;
  max-width: 40vw;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.logo-link {
  display: inline-block;
}

.logo-sm {
  width: 84px;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.tagline {
  font-size: 1.0625rem;
  color: var(--gray);
  margin: 0 0 3rem;
}

.status {
  font-size: 1.0625rem;
  color: var(--gray);
  margin: 0 0 3rem;
}

.links {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.links a {
  color: var(--blue);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--blue-hover);
  border-bottom-color: currentColor;
}

.links a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.back-link {
  display: inline-block;
  color: var(--blue);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  margin-bottom: 3.5rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--blue-hover);
  border-bottom-color: currentColor;
}

.back-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}

footer {
  font-size: 0.8125rem;
  color: var(--gray);
}

@media (max-width: 420px) {
  .wrap {
    padding: 4rem 1.25rem;
  }

  h1 {
    font-size: 1.625rem;
  }
}
