/* tokens.css is linked by the page before this sheet. */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: var(--paper);
  min-height: 100vh;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A themed island (the gallery shows both themes on one page) paints itself. */
[data-theme] {
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
  font-size: 0.93em;
}

b,
strong {
  font-weight: var(--weight-strong);
}

small {
  font-size: var(--text-xs);
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

/* Three headings, set once. Sentence case everywhere. */
h1 {
  font-size: var(--text-title);
  font-weight: var(--weight-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
  margin: 0 0 var(--space-1);
}
h2 {
  font-size: var(--text-base);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-title);
  margin: 0 0 var(--space-2);
}
h3 {
  font-size: var(--text-sm);
  font-weight: var(--weight-strong);
  margin: 0 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-3);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-6) 0;
}

/* Layout — a page outside the application shell (sign-in, the bootstrap
   page) sits in a <Container/>, which resolves to .vbn-container. Inside the
   shell the page column is the shell's (`components/shell`). */
.vbn-container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--page-pad-top) var(--page-pad-x) var(--page-pad-bottom);
}

/* Reduced motion (style guide §6): transitions take no time, the end state is the same. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Read by assistive technology, not drawn. */
.vbn-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* A reference a person may quote (`owner/repo`) is not broken across two lines. */
.vbn-nowrap {
  white-space: nowrap;
}
