* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  text-rendering: optimizelegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-radius: 0;
  outline: none;
  box-shadow: var(--focus-ring);
}

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

.app {
  min-height: 100vh;
}

.legal-notice {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 40;
  max-width: calc(100vw - 20px);
  padding: 3px 6px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--muted);
  font: 500 9px/1.35 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-notice a {
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--ink-inverse);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: var(--ink-inverse);
  transform: translateY(0);
}

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

noscript {
  display: block;
  max-width: 640px;
  margin: 64px auto;
  padding: 20px;
  border: 1px dashed var(--muted);
  font-family: var(--font-display);
  font-style: italic;
}
