:root {
  color-scheme: light;
  --page: rgb(255, 253, 249);
  --paper: rgb(255, 253, 249);
  --paper-soft: #f7f7f5;
  --ink: #000000;
  --ink-soft: #28303d;
  --muted: #39414d;
  --secondary: #6d6d6d;
  --rule: #d1d1d1;
  --rule-soft: #e5e5e5;
  --blue: #2f5f7f;
  --blue-soft: #d1dfe4;
  --gray-blue: #abb8c3;
  --green: #0f766e;
  --green-soft: #d5e6df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
select,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 920px;
  font-size: clamp(2.1rem, 4.5vw, 4.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.topbar,
.compare-topbar,
.styleguide-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}

.model-wall-link,
.back-link,
.styleguide-link,
.model-wiki-link {
  color: #666666;
  font-weight: 300;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--gray-blue);
}

.model-wall-link,
.back-link,
.styleguide-link {
  font-size: 0.86rem;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.model-wiki-link {
  font-size: 0.74rem;
}

.model-wall-link:hover,
.back-link:hover,
.styleguide-link:hover,
.model-wiki-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(47, 95, 127, 0.35);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .topbar,
  .compare-topbar,
  .styleguide-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
  }

  .header-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.1rem, 14vw, 3.45rem);
  }
}
