body {
  color: #454545;
  background-color: #EEEEEE;
  margin: 2em auto;
  padding: 1em;
  max-width: 35em;
  line-height: 1.6;
  font-family: Georgia, Times, serif;
  font-size: 18px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.17em;
}

p, ul, li, a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

p {
  margin-bottom: 0.8em;
}

ul li {
  height: auto;
}

/* 1. Underlined non-link text */
.underline {
  color: #333;
  text-decoration: underline;
  text-decoration-thickness: 1.25px;
  text-underline-offset: 2px;
  text-decoration-color: #aaa;
}

/* 2. Normal link */
a {
  color: #2a2a2a;
  text-decoration: underline;
  text-decoration-thickness: 1.6px;
  text-underline-offset: 2px;
  text-decoration-color: currentColor;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

/* 3. Hovered link */
a:hover {
  color: #000;
  text-decoration-thickness: 2.5px;
}

/* 4. Visited link */
a:visited {
  color: #6e6e6e;
  text-decoration-color: #6e6e6e;
  text-decoration-thickness: 1.6px;
}

/* Inline code */
p > code, li > code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  background: #f8f8f8;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.95em;
}

/* Code blocks */
pre {
  background: #f8f8f8;
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
  margin: 1.5em 0;
}

pre code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  color: #333;
  background: none;
  padding: 0;
  font-size: 0.9em;
  line-height: 1.5;
  display: block;
  white-space: pre;
}

del, s, strike {
  color: #333;
  text-decoration: line-through;
  text-decoration-thickness: 1.4px;
  text-decoration-color: currentColor;
  text-decoration-skip-ink: auto;
}

h1 del, h2 del, h3 del,
h1 s, h2 s, h3 s,
h1 strike, h2 strike, h3 strike {
  text-decoration-thickness: 2px;
  text-decoration-color: #333;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: none; /* prevent weird gaps in caps and symbols */
}

kbd {
  font-family: monospace;
  font-size: 0.9em;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1em auto;
}

figure {
  margin: 1em 0;
}

figcaption {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: -1em;
}

blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1em;
  margin: 1em 0;
  color: #555;
  font-style: italic;
}

.back-link {
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.95em;
}

footer a, .back-link a, main ul li a {
  text-decoration: none;
}

footer a:hover, .back-link a:hover, main ul li a:hover {
  text-decoration: underline;
}

footer a:visited, .back-link a:visited {
  color: #2a2a2a;
  text-decoration-color: #2a2a2a;
  text-decoration-thickness: 1.6px;
}

article hr {
  color: #ccc;
  max-width: 3em;
  margin: 2em auto;
}

header h1 {
  margin: 0;
}

header h2 {
  font-size: 1.35em;
  margin: 0;
  padding: 0;
  margin-top: 0.1em;
}

header p {
  font-size: 0.95em;
  margin: 0;
  padding: 0;
  margin-top: -0.1em;
}

footer hr {
  color: #ddd;
  margin: 2em 0;
}

footer {
  padding-top: 3em;
  text-align: center;
}

footer .homepage {
  margin: 1em 0 0.5em;
}

footer .copyright {
  margin: 0;
  font-size: 0.8em;
  opacity: 0.7;
}

.button-wrapper {
  text-align: center;
  margin: 1.5em 0;
}

.button {
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 999px;
  background: #e0e0e0;        /* clearly distinct from #eeeeee */
  color: #111;                /* strong, readable text */
  text-decoration: none;
  font: 500 1.05em system-ui, sans-serif;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease;
}

.button:hover {
  background: #d0d0d0;
  color: #000;
}
