:root {
  color-scheme: light dark;
  font-size: 18px;
}

* {
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(calc(100% - 40px), 720px);
  margin: 0 auto;
  padding: 56px 0 88px;
}

h1,
h2,
h3 {
  color: #000000;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 16ch;
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 8vw, 3.75rem);
  line-height: 1.05;
}

h2 {
  margin: 48px 0 12px;
  padding-top: 4px;
  font-size: 1.55rem;
  line-height: 1.25;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
}

p,
li {
  font-size: 1.05rem;
}

p {
  margin: 0 0 18px;
}

ul,
ol {
  margin: 10px 0 22px;
  padding-left: 1.45rem;
}

li {
  margin: 0 0 10px;
  padding-left: 4px;
}

.eyebrow {
  margin-bottom: 12px;
  color: #555555;
  font-size: .95rem;
  font-weight: 700;
}

.lede {
  margin-bottom: 30px;
  color: #282828;
  font-size: 1.2rem;
  line-height: 1.62;
}

.notice,
.contents {
  margin: 30px 0 38px;
  padding: 24px 26px;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  background: #f7f7f3;
}

.notice h2,
.contents h2 {
  margin-top: 0;
  padding-top: 0;
}

.notice p:last-child,
.contents ol:last-child,
.contents ul:last-child {
  margin-bottom: 0;
}

.contents a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a {
  color: #000000;
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 4px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid #777777;
}

nav.contents {
  display: block;
  margin: 30px 0 38px;
  padding: 24px 26px;
  border: 2px solid #1a1a1a;
}

footer {
  margin-top: 42px;
  color: #555555;
  font-size: .95rem;
}

@media (max-width: 520px) {
  :root { font-size: 17px; }
  main { width: min(calc(100% - 32px), 720px); padding-top: 36px; }
  .notice, .contents { padding: 20px; }
  h2 { margin-top: 40px; }
}

@media (prefers-color-scheme: dark) {
  body { background: #000000; color: #f5f5f5; }
  h1, h2, h3, a { color: #ffffff; }
  .eyebrow, footer { color: #bdbdbd; }
  .lede { color: #e2e2e2; }
  .notice, .contents { background: #111111; border-color: #e8e8e8; }
  nav { border-top-color: #777777; }
  a:focus-visible { outline-color: #ffffff; }
}
