/* Notodo public pages. System fonts only; no external resources. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f6f4;
  --text: #1c1f1d;
  --muted: #555b57;
  --line: #d9ddd9;
  --link: #1f5f4a;
  --focus: #1f5f4a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141615;
    --surface: #1d201e;
    --text: #e8ebe8;
    --muted: #a9b0ab;
    --line: #353a37;
    --link: #8fd1b6;
    --focus: #8fd1b6;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

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

.container {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

main {
  display: block;
  padding: 2rem 0 3rem;
}

.document h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  line-height: 1.4;
}

.document h2 {
  margin: 2.25rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  line-height: 1.5;
}

.document h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.document p,
.document ul {
  margin: 0 0 1rem;
}

.document ul {
  padding-left: 1.5rem;
}

.document code {
  font-family: inherit;
  font-weight: 600;
}

.document-meta {
  padding: 0.75rem 1rem 0.75rem 2rem;
  background: var(--surface);
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.home .lead {
  font-size: 1.125rem;
}

.home .note,
.error-code {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 1rem 0;
}
