:root {
  --bg: #fbfaf7;
  --fg: #1d1c1a;
  --muted: #6b6862;
  --link: #2f5bd3;
  --border: #e4e1da;
  --accent: #e8572a;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --fg: #ecebe7;
    --muted: #a19e97;
    --link: #8fb0ff;
    --border: #2c2b29;
    --accent: #ff7a4d;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header,
.site-footer,
main.content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.wordmark {
  color: var(--fg);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: 0.05em;
}

.lang-switch {
  font-size: 15px;
  color: var(--muted);
}

main.content {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 64px;
}

h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h2 {
  font-size: 22px;
  line-height: 1.35;
  margin: 48px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.lead {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 40px;
}

.lead + .motto {
  margin-top: -24px;
}

.motto {
  margin: 0 0 40px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.attribution {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 15px;
}

dl.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}

dl.contact dt {
  color: var(--muted);
}

dl.contact dd {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 4px;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 18px;
  }
}
