/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Faces */
@font-face {
    font-family: 'iAWriterMono';
    src: url('iAWriterMonoS-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'iAWriterMono';
    src: url('iAWriterMonoS-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'iAWriterMono';
    src: url('iAWriterMonoS-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

/* Body */
body {
    font-family: 'iAWriterMono', ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', 'monospace';
    font-size: 18px;
    line-height: 1.6;
    background-color: #ffffff;
    color: #000000;
    padding: 2rem 0;
    font-smooth: auto;
    -webkit-font-smoothing: antialiased; /* Better font rendering */
    -ms-text-size-adjust: 1,00%;
    -webkit-text-size-adjust: 100%;    
}

/* Container */
.container {
    width: 55%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    margin-bottom: 3rem;
}

header p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Main Content */
main {
    margin-bottom: 3rem;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    margin-bottom: 1rem;
}

/* Lists */
ol {
    /*margin-left: 0;
    margin-top: 1rem;
    padding-left: 2rem;*/
    list-style-position: inside;
    padding-left: 0;    
}

ol li {    
    list-style-type: decimal-leading-zero;
}

/* Links */
a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.post a {
    text-decoration: underline;
}

.sl{
    text-decoration: underline;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
}

/* Images */
img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding-bottom: 20px;
    padding-top: 20px;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 0;
    border-top: none;
}

/* Video options */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #222222;
        color: #ffffff;
    }
    
    a {
        color: #ffffff;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        font-size: 20px;
    }
    
    .container {
        width: 90%;
    }
}