:root {
  color-scheme: light dark;
  --paper: #f4f1e9;
  --surface: #fffcf5;
  --ink: #20211d;
  --muted: #687168;
  --green: #087c67;
  --line: #ddd6c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

header,
main,
footer {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 28px 18px;
}

header img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

header a {
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}

main {
  padding: 28px clamp(20px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgb(50 42 32 / 8%);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.3;
}

h2 {
  margin: 32px 0 8px;
  font-size: 19px;
}

p,
li {
  font-size: 15px;
}

.updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

footer {
  padding-block: 24px 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151a17;
    --surface: #202722;
    --ink: #f5f1e8;
    --muted: #a9b1aa;
    --green: #65c3aa;
    --line: #3d4740;
  }
}
