*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #ffffff;
}

h1, h2, h3 {
  line-height: 1.25;
  color: #0f172a;
}

h1 {
  font-size: 2.2em;
  font-weight: 700;
}

h2 {
  font-size: 1.6em;
  font-weight: 650;
  margin-top: 3.5em;
  margin-bottom: 0.75em;
}

h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.4em;
}

p {
  margin-bottom: 1em;
}

p.lede {
  font-size: 1.1em;
  color: #334155;
  margin-bottom: 2em;
}

.subtitle {
  font-size: 1.05em;
  color: #475569;
  margin-bottom: 1em;
}

a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #64748b;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2.5em;
}

header .site-name {
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

header .updated {
  font-size: 0.85em;
  color: #64748b;
}

footer {
  padding-top: 3em;
  border-top: 1px solid #e5e7eb;
  margin-top: 3em;
  color: #64748b;
  font-size: 0.875em;
}

.tool {
  margin-bottom: 0.5em;
}

.tool .meta {
  font-size: 0.875em;
  color: #64748b;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: #f8fafc;
  font-weight: 600;
}

tr:hover {
  background: #fafafa;
}

.table-intro,
.table-scroll-hint {
  font-size: 0.9em;
  color: #64748b;
  margin-bottom: 0.5em;
}

.table-scroll-hint {
  text-align: center;
}

details {
  margin-bottom: 0.75em;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 6px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}

details p {
  margin-top: 0.75em;
  color: #334155;
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.35em;
  }

  body {
    padding: 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none;
    animation: none;
  }
}
