/* One stylesheet for all three pages. No build step, no fonts to fetch. */

:root {
  --bg: #fdfcfa;
  --fg: #23211e;
  --muted: #6b6660;
  --rule: #e4e0d9;
  --accent: #2f6f5e;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #e9e6e1;
    --muted: #a09a92;
    --rule: #302d29;
    --accent: #7fc4ae;
    --card: #1e1d1a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  /* Japanese text wraps better on phrase boundaries than on arbitrary ones. */
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.mark {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.5;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.75rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.4rem;
}

p, li { margin: 0.75rem 0; }

ul { padding-left: 1.25rem; }

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.lede {
  font-size: 1.05rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  width: 34%;
  font-weight: 600;
  white-space: nowrap;
}

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

/* On a phone, two columns leave the description about seven characters wide.
   Stack the label above its row instead. */
@media (max-width: 30rem) {
  table, tbody, tr, th, td { display: block; width: auto; }
  tr {
    border-bottom: 1px solid var(--rule);
    padding: 0.6rem 0;
  }
  th, td {
    border: 0;
    padding: 0;
  }
  th { white-space: normal; }
  td { color: var(--muted); }
}

.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

a { color: var(--accent); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { margin-right: 1.25rem; }

.home-links {
  list-style: none;
  padding: 0;
}
