/* Near Mint Misty Post Stylesheet — shared across all /writing/ pages */
/* Design: ocean gradient, monospace, aqua/mint/foam palette */

:root {
    --aqua: #4fc3f7;
    --deep: #0288d1;
    --dark: #01579b;
    --foam: #e1f5fe;
    --mint: #b2dfdb;
    --coral: #ff6b6b;
    --bg-start: #0d1b2a;
    --bg-mid: #1b3a4b;
    --bg-end: #006494;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Courier New", monospace;
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
    background-attachment: fixed;
    color: var(--foam);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---- Container ---- */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

/* ---- Site Header ---- */
.site-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid var(--aqua);
    margin-bottom: 2rem;
}
.logo {
    display: block;
    font-size: 1.5rem;
    color: var(--aqua);
    text-shadow: 0 0 10px var(--aqua);
    text-decoration: none;
    margin-bottom: 0.75rem;
}
.site-header nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.site-header nav a {
    color: var(--mint);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.site-header nav a:hover { opacity: 1; }

/* ---- Back Link ---- */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--aqua);
    text-decoration: none;
    border: 1px solid var(--deep);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.back-link:hover {
    background: rgba(79, 195, 247, 0.1);
}

/* ---- Article Header ---- */
.post-header {
    margin-bottom: 2rem;
}
.section-marker {
    color: var(--coral);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
h1 {
    color: var(--aqua);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--aqua);
    padding-left: 0.8rem;
    line-height: 1.3;
}
.author-tag {
    color: var(--mint);
    font-size: 0.85rem;
    opacity: 0.8;
    padding-left: 0.8rem;
}

/* ---- Article Body ---- */
.post-body {
    line-height: 1.8;
}
.post-body p {
    margin-bottom: 1.2rem;
    opacity: 0.9;
}
.post-body h2 {
    color: var(--aqua);
    font-size: 1rem;
    margin: 2rem 0 1rem;
}
.post-body a {
    color: var(--aqua);
    text-decoration: none;
    border-bottom: 1px dotted var(--aqua);
    transition: border-color 0.15s;
}
.post-body a:hover {
    border-bottom-style: solid;
}
.post-body .pullquote {
    border-left: 2px solid var(--aqua);
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--mint);
}
.post-body .shellder-voice {
    background: rgba(178, 223, 219, 0.05);
    border-left: 2px solid var(--mint);
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    font-style: italic;
}
.post-body ul, .post-body ol {
    margin: 1rem 0 1.2rem 1.5rem;
}
.post-body li {
    margin-bottom: 0.4rem;
    opacity: 0.9;
}
.post-body code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}
.post-body strong {
    color: var(--foam);
}

/* ---- Article Footer ---- */
.post-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-tags { display: flex; gap: 0.4rem; }
.tag {
    background: rgba(0, 0, 0, 0.3);
    color: var(--mint);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.7rem;
}
.post-source {
    font-size: 0.8rem;
    color: var(--mint);
    opacity: 0.6;
}
.post-source a { color: var(--mint); text-decoration: none; }
.post-source a:hover { opacity: 1; }

/* ---- Post Navigation ---- */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(2, 136, 209, 0.3);
}
.post-nav a {
    color: var(--aqua);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.7;
}
.post-nav a:hover { opacity: 1; }

/* ---- Site Footer ---- */
.site-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--mint);
    opacity: 0.6;
    border-top: 1px solid var(--dark);
    margin-top: 3rem;
}
.site-footer a {
    color: var(--mint);
    text-decoration: none;
}
.site-footer a:hover { opacity: 1; }
.site-footer p { margin-top: 0.5rem; }

/* ---- Writing Index (listing page) ---- */
.page-header {
    margin-bottom: 2rem;
}
.page-header .subtitle {
    color: var(--mint);
    font-size: 0.9rem;
    opacity: 0.7;
    padding-left: 0.8rem;
}
.post-list { list-style: none; }
.post-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(2, 136, 209, 0.2);
}
.post-item:first-child { padding-top: 0; }
.post-item a {
    text-decoration: none;
    display: block;
}
.post-item a:hover .post-title { text-shadow: 0 0 8px var(--aqua); }
.post-item .post-title {
    font-size: 1rem;
    color: var(--aqua);
    margin-bottom: 0.3rem;
    transition: text-shadow 0.15s;
}
.post-item .post-date {
    font-size: 0.75rem;
    color: var(--mint);
    opacity: 0.5;
    margin-bottom: 0.3rem;
}
.post-item .post-excerpt {
    font-size: 0.85rem;
    color: var(--foam);
    opacity: 0.7;
    line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .container { padding: 1rem; }
    h1 { font-size: 1.2rem; }
    .post-footer { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}
