/* Ether website. Plain, system-font, no decoration. */

:root {
  --text: #111;
  --muted: #555;
  --border: #ddd;
  --link: #0645ad;
  --link-visited: #0645ad;
  --bg: #fff;
  --bg-muted: #f6f6f6;
  --max-width: 920px;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

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

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

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

.skip-link:focus {
  position: static;
  display: inline-block;
  margin: 8px;
  padding: 4px 8px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

/* Header */

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

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header .brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a.active {
  text-decoration: underline;
}

/* Page sections */

main {
  padding: 32px 0 48px;
}

section {
  padding: 24px 0;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.375rem;
  margin-top: 32px;
}

h3 {
  font-size: 1.125rem;
  margin-top: 24px;
}

p,
ul,
ol,
dl {
  margin: 0 0 12px;
}

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

li {
  margin-bottom: 4px;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 24px;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0;
}

hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

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

/* Footer */

.site-footer {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 640px) {
  dl {
    grid-template-columns: 1fr;
  }

  dt {
    margin-top: 8px;
  }
}
