:root {
  color-scheme: light dark;
}

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  background: var(--ui-background);
  color: var(--ui-foreground);
  font-family: var(--ui-font-sans);
  line-height: 1.6;
}

a:not(ui-button a) {
  color: inherit;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ui-border);
  font-weight: 600;
}

footer {
  margin-top: 3rem;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-muted-foreground);
}

h1 {
  line-height: 1.2;
}

figure {
  margin: 1.5rem 0;
  text-align: center;
}

figcaption {
  color: var(--ui-muted-foreground);
  font-size: 0.875rem;
}

img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
}

pre {
  overflow-x: auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  font-family: var(--ui-font-mono);
  font-size: 0.8125rem;
}

code {
  font-family: var(--ui-font-mono);
}

.actions,
.calc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.actions a {
  text-decoration: none;
}

.calc label {
  display: flex;
  flex: 1 1 10rem;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.result {
  font-size: 1.125rem;
}
