/* Import Courier Prime font from Google Fonts */ 
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

/* Base body styling */
body {
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 1.1em;              /* Increased for better readability */
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.8;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;

    /* Typewriter aesthetics */
    background-color: #f4f1e9;  /* Aged paper tone */
    color: #1a1a1a;             /* Dark ink */
}

/* Global text effect */
body, p, div, li, h1, h2, h3, blockquote {
    letter-spacing: 0.08em;
    text-shadow: 0.5px 0.5px 0 rgba(0, 0, 0, 0.15);
    opacity: 0.97;
}

/* Headings: Typewriter-style */
h1, h2, h3 {
    font-size: 1em;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 2em 0 1em;
    padding-top: 0.5em;
}

/* Center h1 specifically */
h1 {
    text-align: center;
}

/* Paragraphs and divs */
p, div {
    text-indent: 2em;
    margin-bottom: 1em;
}

/* Remove indent from first paragraph or after headings */
h1 + p, h2 + p, h3 + p, p:first-of-type {
    text-indent: 0;
}

/* Lists */
ul, ol {
    padding-left: 3em;
    align-self: flex-start;
}

li {
    text-indent: 0.5em;
    list-style-position: outside;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #888;
}

/* Horizontal rules */
hr {
    border: none;
    margin: 5em 0;
    text-align: center;
}

hr::before {
    content: "----------------------------------------";
    letter-spacing: 0.1em;
    color: #d0d0d0;
}

/* Blockquotes */
blockquote {
    margin: 1rem 0;
    padding-left: 1.5rem;
    border-left: none;
    position: relative;
}

blockquote::before {
    content: ">";
    font-size: 1em;
    position: absolute;
    left: 0;
    top: 0;
}

/* APA-style bibliography */
.csl-bib-body {
    margin: 1em 0;
    padding: 0;
}

.csl-entry {
    margin-bottom: 1em;
    text-indent: -2em;
    padding-left: 2em;
}
