@page {
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
}

img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html, body {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
  color: #333;
  background-color: #f5f5f7;
  line-height: 1.7;
  font-size: 18px;
  margin: 0;
  padding: 0;
}

body {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

article {
  max-width: 100%;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.2;
  color: #333;
  font-family: 'Inter', system-ui, sans-serif;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem 0;
}

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

p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
}

a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
  color: #0056b3;
}


header {
  margin-bottom: 2em;
  text-align: center;
  color: #333;
}

footer {
  padding: 0 1.25rem;
  margin: 3rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: #666;
}

blockquote {
  font-style: italic;
  font-size: 1rem;
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid #ccc;
}

code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  background-color: #1e1e2d;
  color: white;
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  font-size: 0.9rem;
}

pre {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  background-color: #1e1e2d;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  line-height: 1.5;
  font-weight: normal;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
  margin-bottom: 1.5rem;
}

/* Syntax highlighting with correct classes */
pre span .co { color: #6272a4; } /* Comment */
pre span .kw { color: #ff79c6; } /* Keyword */
pre span .op { color: #ffb86c; } /* Operator */
pre span .fu { color: #50fa7b; } /* Function */
pre span .cf { color: #8be9fd; } /* Control Flow (e.g., if, else) */
pre span .dv, pre span .dt { color: #bd93f9; } /* Decimal Value */
pre span .st { color: #f1fa8c; } /* String */
pre span .bu { color: #ff79c6; } /* Built-in function or keyword */
pre span .at { color: #ffb86c; } /* Attribute */
pre span .pp { color: #bd93f9; } /* Preprocessor */

code.inline {
  display: inline;
  padding: 0.1em 0.2em;
  background-color: #1e1e2d;
  color: #ffffff;
  border-radius: 0.2em;
  font-size: 0.85rem;
}

pre.code-block {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #1e1e2d;
  color: white;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

hr {
  margin: 2rem 0;
  border-top: 0.5px solid #999;
}

img, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}

figcaption {
  font-family: Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif;
  font-size: 0.75rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #666;
}

div.info {
  border-left: 4px solid #5bc0de;
  background-color: #d9edf7;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  color: #333;
}

div.info h4 {
  margin-top: 0;
  color: white;
  background-color: #5bc0de;
  padding: 5px;
  border-radius: 5px 5px 0 0;
}

div.danger {
  border-left: 4px solid #d9534f;
  background-color: #f2dede;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  color: #333;
}

div.danger h4 {
  margin-top: 0;
  color: white;
  background-color: #d9534f;
  padding: 5px;
  border-radius: 5px 5px 0 0;
}

div.success {
  border-left: 4px solid #5cb85c;
  background-color: #dff0d8;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  color: #333;
}

div.success h4 {
  margin-top: 0;
  color: white;
  background-color: #5cb85c;
  padding: 5px;
  border-radius: 5px 5px 0 0;
}

div.warning {
  border-left: 4px solid #f0ad4e;
  background-color: #fcf8e3;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  color: #333;
}

div.warning h4 {
  margin-top: 0;
  color: white;
  background-color: #f0ad4e;
  padding: 5px;
  border-radius: 5px 5px 0 0;
}

div.column {
  display: inline-block;
  vertical-align: top;
  width: 48%;
  margin-right: 2%;
}

div.column:last-child {
  margin-right: 0;
}

div.hanging-indent {
  margin-left: 1.5em;
  text-indent: -1.5em;
}

ul, ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

ul li, ol li {
  margin-bottom: 0.5em;
}

ul.task-list {
  list-style: none;
}

ul.task-list li input[type="checkbox"] {
  margin-right: 0.5em;
  vertical-align: middle;
}

.display.math {
  display: block;
  text-align: center;
  margin: 1em 0;
}

/* Responsive adjustments */
@media screen and (max-width: 700px) {
  body {
    padding: 0 1rem;
    max-width: 100%;
    width: auto;
  }

  article {
    padding: 0 1rem;
    max-width: 100%;
    width: auto;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

* {
  transition: all 0.3s ease-in-out;
}