/* ===== ZINE/TYPEWRITER STYLES ===== */
/* Inspired by old typewriters, photocopied zines, and messy desks */

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

body {
    background: #f5f1e6;  /* warm paper */
    color: #1f1e1b;
    font-family: 'Courier New', Courier, 'IBM Plex Mono', monospace;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    background: #faf7f0;
    padding: 3rem 3.5rem;
    border: 1px solid #d6ceb8;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.06), 0 0 0 1px #e3dcca inset;
    position: relative;
}

/* slightly imperfect border (zine feel) */
.container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid #d6ceb8;
    pointer-events: none;
    opacity: 0.4;
}

/* Headers */
h1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: #1f1e1b;
    margin-bottom: 0.1rem;
    line-height: 1.3;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
}

.tagline {
    font-size: 0.85rem;
    color: #6b6354;
    letter-spacing: 3px;
    text-transform: lowercase;
    margin-bottom: 0.2rem;
}

.tagline a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #b5aa94;
}

.tagline a:hover {
    border-bottom: 1px solid #6b6354;
}

/* Divider — typewriter asterisk line */
.divider {
    text-align: center;
    color: #b5aa94;
    font-size: 0.8rem;
    letter-spacing: 8px;
    padding: 0.6rem 0 0.4rem 0;
    user-select: none;
}

/* Intro paragraph */
.intro {
    font-size: 1rem;
    color: #2e2b26;
    margin: 1.2rem 0 1.8rem 0;
    padding: 0.8rem 0;
    border-top: 1px dashed #d6ceb8;
    border-bottom: 1px dashed #d6ceb8;
}

/* Featured / latest writings */
.featured h2 {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: #8a8272;
    margin-bottom: 1.2rem;
}

.featured article {
    margin-bottom: 2.2rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px dashed #e3dcca;
}

.featured article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.featured article h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.featured article h3 a {
    color: #1f1e1b;
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
}

.featured article h3 a:hover {
    border-bottom: 2px solid #1f1e1b;
    text-decoration: none;
}

.featured article .date {
    font-size: 0.75rem;
    color: #9c9280;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.7rem;
}

.featured article .excerpt {
    font-size: 0.95rem;
    color: #4a453e;
    line-height: 1.7;
}

/* Navigation links */
.links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1.5rem 0;
    padding-top: 1.2rem;
    border-top: 1px dashed #d6ceb8;
}

.links a {
    color: #2e2b26;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 0.1rem;
}

.links a:hover {
    border-bottom: 2px solid #1f1e1b;
}

/* ===== WRITINGS ARCHIVE ===== */
.writing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.writing-list li {
    padding: 0.7rem 0;
    border-bottom: 1px dotted #e3dcca;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.writing-list li:last-child {
    border-bottom: none;
}

.writing-list a {
    font-size: 1rem;
    color: #1f1e1b;
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
}

.writing-list a:hover {
    border-bottom: 2px solid #1f1e1b;
}

.writing-list .date {
    font-size: 0.75rem;
    color: #9c9280;
    letter-spacing: 0.3px;
}

/* ===== PROJECTS ===== */
.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-list li {
    padding: 0.7rem 0;
    border-bottom: 1px dotted #e3dcca;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-list li:last-child {
    border-bottom: none;
}

.project-list a {
    font-size: 1rem;
    color: #1f1e1b;
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
}

.project-list a:hover {
    border-bottom: 2px solid #1f1e1b;
}

.project-list .date {
    font-size: 0.75rem;
    color: #9c9280;
    letter-spacing: 0.3px;
}

/* ===== SINGLE ESSAY ===== */
.essay-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.essay-date {
    font-size: 0.8rem;
    color: #9c9280;
    margin-bottom: 1.8rem;
    text-transform: lowercase;
    letter-spacing: 1px;
}

article p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #2a2722;
}

.quote {
    font-style: italic;
    color: #5a5242;
    padding: 0 0.2rem;
}

.signoff {
    margin-top: 2rem;
    font-style: italic;
    color: #8a8272;
    font-size: 0.9rem;
}

/* ===== ELSEWHERE / SIDEBAR-STYLE BLOCK ===== */
.elsewhere {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #d6ceb8;
}

.elsewhere h2 {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: #8a8272;
    margin-bottom: 0.8rem;
}

.elsewhere ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.elsewhere a {
    font-size: 0.85rem;
    color: #2e2b26;
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
}

.elsewhere a:hover {
    border-bottom: 2px solid #1f1e1b;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 1.5rem;
    text-align: center;
}

footer p {
    font-size: 0.7rem;
    color: #9c9280;
    letter-spacing: 1px;
    text-transform: lowercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
    body { padding: 1rem; }
    .container { padding: 1.5rem; }
    .featured article h3 { font-size: 1rem; }
    .writing-list li,
    .project-list li { flex-direction: column; align-items: flex-start; }
    .links { gap: 1rem; }
    .elsewhere ul { gap: 0.7rem 1rem; }
}