/* Shared typography for the homepage and Careers. */
* {
  box-sizing: border-box;
}

:root {
  --bg: #fff;
  --fg: #000;
  --dim: #555;
  --accent-bg: hsl(210, 60%, 90%);
  --accent-fg: hsl(210, 70%, 38%);
  --muted-bg: #f9f8f8;
  --muted-border: #d8d8d8;
  --rule: #333;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d12;
    --fg: #e8e8e8;
    --dim: #9a9a9a;
    --accent-bg: hsl(210, 40%, 18%);
    --accent-fg: hsl(210, 70%, 72%);
    --muted-bg: #161a20;
    --muted-border: #2a2f36;
    --rule: #b0b0b0;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0d12;
  --fg: #e8e8e8;
  --dim: #9a9a9a;
  --accent-bg: hsl(210, 40%, 18%);
  --accent-fg: hsl(210, 70%, 72%);
  --muted-bg: #161a20;
  --muted-border: #2a2f36;
  --rule: #b0b0b0;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: var(--muted-bg);
  color: var(--fg);
  border: 1px solid var(--muted-border);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
}

.theme-toggle:hover {
  border-color: var(--rule);
}

body {
  margin: 0;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  position: relative;
  background: var(--bg);
  color: var(--fg);
}

.header {
  text-align: center;
  margin: 60px 0 80px;
}

.header .logo-wrap {
  margin: 0 0 10px;
  line-height: 0;
}

.header .logo {
  display: block;
  width: min(360px, 74vw);
  height: auto;
  margin: 0 auto;
  color: var(--fg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keep the animation gutters stable while giving the copy a comfortable measure. */
.columns {
  max-width: 560px;
  margin: 0 auto;
}

.page-copy {
  max-width: 500px;
  margin: 0 auto;
}

.page-title {
  margin: 0 0 22px;
  font-size: clamp(25px, 2.1vw, 30px);
  font-weight: 450;
  line-height: 1.24;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.page-copy p {
  margin: 0;
  text-wrap: pretty;
}

.page-copy p + p {
  margin-top: 20px;
}

.page-intro {
  font-size: 17px;
  line-height: 1.65;
}

.page-detail {
  color: var(--dim);
  font-size: 15px;
  line-height: 1.75;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  color: var(--accent-fg);
  font-size: 17px;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.contact-link span { font-size: 15px; }
.contact-link:hover { color: var(--fg); }
.brand-link:focus-visible,
.contact-link:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 5px; }
