/** MIT License Copyright (c) 2024 MingFei2001
https://github.com/MingFei2001/pandoc-css/blob/main/themes/basic/light.css
**/

/* Base body styles */
body {
  background-color: #ffffff;
  color: #1e1e1e;
  font-family: sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto;
  padding: 2rem;
  max-width: 50rem;
  container-type: size;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #111111;
  margin-top: 1em;
}

h1, h2 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3em;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.1lh;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 0.12em;
}

/* Code blocks and inline code */
pre, code {
  background-color: #f5f5f5;
  color: #c7254e;
  border-radius: 4px;
  font-family: monospace;
}

pre {
  padding: 1em;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #ccc;
  margin: 1em 0;
  padding-left: 1em;
  color: #666;
  font-style: italic;
}

/* Lists */
ul, ol {
  padding-left: 1.5em;
}

/* Tables */
table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
  display: block;
  overflow-x: auto;
}
table, th, td {
  border: 1px solid #ccc;
}
th, td {
  padding: 0.5em;
}
th {
  background: #eee;
  color: #111;
}

/* Media (images, videos, iframes) */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #ccc;
}

/* Paragraph spacing */
p {
  margin: 1em 0;
}

nav {
  display: flex;
  justify-content: space-around;
  margin: 0 auto;
}

@container (width < 35rem) {
  nav {
    flex-direction: column;
    text-align: right;
  }
}

@container (width > 45rem) {
  nav {
    max-width: 70cqi;
  }
}

footer {
  border-top: 1px solid #ccc;
  padding: 0.25em;
  text-align: center;
  font-size: smaller;
}
