/* ====== GLOBAL ====== */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500&family=IBM+Plex+Mono:wght@300;400&display=swap');

body {
    margin: 0;
    padding: 2rem 0 4rem;
    background: #fafafa;
    color: #111;
    font-family: "EB Garamond", serif;
    font-size: 19px;
    line-height: 1.65;
}

/* Grain overlay (optional) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("grain.png");
    opacity: 0.35;
    pointer-events: none;
}

/* ====== LAYOUT ====== */
main {
    width: 640px;                 /* Narrow academic column */
    margin: auto;
    padding: 0 1rem;
}

header {
    width: 640px;
    margin: auto;
    padding: 0 1rem 2rem;
}

/* ====== NAV ====== */
nav {
    margin-top: 1rem;
    font-family: "IBM Plex Mono", monospace;
}

nav a {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 6px;
    background: #e5e5e5;
    color: #111;
    border: 1px solid #111;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    background: #d0d0d0;
}

/* ====== HEADINGS ====== */
h1, h2, h3 {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 2.2rem;
}

/* ====== FOOTNOTES ====== */
sup {
    font-size: 0.7em;
    font-family: "IBM Plex Mono", monospace;
}

/* footnote section */
.footnotes {
    margin-top: 3rem;
    border-top: 1px solid #ccc;
    padding-top: 1.5rem;
    font-size: 16px;
}

.footnotes li {
    margin-bottom: 0.8rem;
}

/* ====== BLOCKQUOTES ====== */
blockquote {
    border-left: 3px solid #222;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #444;
}

/* ====== LINKS ====== */
a {
    color: #111;
    text-decoration: underline;
}

a:hover {
    opacity: 0.7;
}

/* ====== HR ====== */
hr {
    border: none;
    border-bottom: 1px solid #ddd;
    margin: 3rem 0;
}

/* ====== MARGINALIA (optional floating notes) ====== */
.note {
    float: right;
    width: 200px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: #444;
    margin-left: 1rem;
    position: relative;
    top: 0.4rem;
}

/* ====== ESSAYS PAGE ====== */
.essay-featured {
    border: 2px solid #111;
    padding: 1rem;
    margin-bottom: 2rem;
    transition: background 0.3s, transform 0.3s;
}

.essay-featured:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.essay-featured h3 {
    margin-top: 0;
    font-family: "Caveat", cursive; /* or your chosen handwriting font */
    font-size: 26px;
}

.essay-featured p {
    font-size: 18px;
    color: #333;
}

/* Archive list */
.essay-list {
    list-style: none;
    padding-left: 0;
}

.essay-list li {
    margin-bottom: 0.8rem;
}

.essay-list li a {
    font-family: "Caveat", cursive;
    font-size: 20px;
    text-decoration: none;
    border-bottom: 1px dashed #111;
    transition: color 0.2s, border-bottom-color 0.2s;
}

.essay-list li a:hover {
    color: #555;
    border-bottom-color: #555;
}

/* Ensure all essay links use handwriting font */
.essay-list,
.essay-list li,
.essay-list li a {
    font-family: "Caveat", cursive; /* or whatever handwriting font you chose */
}

