/*
 * Site do app (docs/design/site.md): preto e branco como o app (decisão 0044), Newsreader nos
 * títulos e a fonte do sistema no texto (decisão 0048). Tamanhos em rem: segue o zoom e, no
 * Safari do iPhone, o tamanho de texto do sistema (Dynamic Type).
 */
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/Newsreader-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --border: #e4e4e4;
  --surface: #f5f5f5;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f2f2f2;
    --muted: #9e9e9e;
    --border: #2a2a2a;
    --surface: #151515;
  }
}

html {
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Só no iPhone e no iPad (o toque sem "callout" separa do Safari do Mac, onde o estilo body do
   sistema tem ~13px e encolheria o texto todo). */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html {
    font: -apple-system-body;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--text);
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem;
  margin: 2.25rem 0 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.25rem;
}

p,
ul,
ol {
  margin: 0.75rem 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

em {
  color: var(--muted);
}

code {
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.05em 0.3em;
  border-radius: 4px;
}

.foot {
  margin-top: 3rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.foot li {
  margin: 0;
}
