:root {
  color-scheme: light dark;

  --bg: #fafaf9;
  --text: #161616;
  --muted: #707070;
  --subtle: #a0a0a0;
  --line: #dfdfdc;
  --accent: #0a75ad;
  --accent-hover: #003366;

  --content-width: 860px;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #212121;
    --text: #cacaca;
    --muted: #999b95;
    --subtle: #686a64;
    --line: #2a2c28;
    --accent: #ffc93c;
    --accent-hover: #ff9a3c;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;

  background: var(--bg);
  color: var(--text);

  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.site-header {
  width: min(var(--content-width), calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.site-title {
  color: var(--text);
  text-decoration: none;

  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-link {
  color: var(--muted);
  text-decoration: none;

  font-size: 0.9rem;
}

.login-link:hover {
  color: var(--text);
}

.site-main {
  width: min(var(--content-width), calc(100% - 3rem));
  margin: 0 auto;
}

.main {
  padding: 3rem 0 6rem;
  max-width: 720px;
}

h1 {
  margin: 0;

  font-size: 3rem;
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-weight: 750;
}

.lead {
  margin: 2.5rem 0 0;

  color: var(--text);

  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.text {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;

  margin-top: 2rem;
  padding: 0.8rem 1.15rem;

  background: var(--text);
  color: var(--bg);

  border-radius: 0.4rem;

  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;

  transition:
    background-color 120ms ease,
    transform 120ms ease;
}

.button:hover {
  background: var(--accent);
  color: #fff;
}

.button:active {
  transform: translateY(1px);
}

.reg-button {
  background: var(--accent);
  color: var(--bg);
}

.reg-button:hover {
  background: var(--accent-hover);
}

.page-nav {
  padding: 1.5rem 0 0;
}

.page-nav a {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.stats,
.activity {
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--line);
}

.stats h2 {
  margin: 0 0 2rem;

  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--muted);
}

.stats-note {
  margin: -1.35rem 0 0.35rem;

  color: var(--subtle);
  font-size: 0.75rem;
}

.stats-founded {
  margin: 0 0 2.5rem;

  color: var(--subtle);
  font-size: 0.75rem;
}

.stats h3 {
  margin: 0 0 1.25rem;

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--muted);
}

.stats h3:not(:first-of-type) {
  margin-top: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem 3rem;
}

.stat {
  padding: 0;
}

.stat strong {
  display: block;

  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.stat span {
  display: block;
  margin-top: 0.6rem;

  color: var(--muted);

  font-size: 0.85rem;
}

.site-footer {
  width: min(var(--content-width), calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0;

  border-top: 1px solid var(--line);

  color: var(--subtle);
  font-size: 0.8rem;
}

@media (max-width: 700px) {

  .site-header,
  .site-main,
  .site-footer {
    width: min(100% - 2rem, var(--content-width));
  }

  .main {
    padding: 2rem 0 4rem;
  }

  h1 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    column-gap: 2rem;
  }
}

.join-questions {
  position: relative;
  margin-top: 3rem;
}

.join-questions ol {
  margin: 0;
  padding-left: 2rem;
}

.join-questions li {
  padding-left: 0.4rem;

  margin-top: 1rem;

  font-size: 1rem;
  line-height: 1.6;
}

.join-questions li:first-child {
  margin-top: 0;
}

.join-questions li::marker {
  color: var(--subtle);
  font-size: 0.8em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .join-questions ol {
    padding-left: 1.25rem;
  }

  .join-questions li {
    padding-left: 0;
  }
}

.copy-questions-wrap {
  display: flex;
  justify-content: end;
}

.copy-questions {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;

  padding: 0;
  margin-bottom: 0.5rem;
  border: 0;
  background: none;

  color: var(--subtle);
  cursor: pointer;

  border-radius: 0.3rem;

  transition:
    color 120ms ease,
    background-color 120ms ease;
}

.copy-questions:hover {
  color: var(--text);
  background: var(--line);
}

.copy-questions svg {
  width: 1.2rem;
  height: 1.2rem;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-questions .check-icon {
  display: none;
}

.copy-questions.copied .copy-icon {
  display: none;
}

.copy-questions.copied .check-icon {
  display: block;
}

.email {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.email code {
  color: var(--accent);
}

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

.email.copied::after {
  content: " ✓";
  color: var(--muted);
}
