:root {
    --primary: #FFC800;
    --primary-glow: rgba(255, 200, 0, 0.4);
    --text-main: #1a1a1a;
    --text-muted: #666;
    --bg-white: #ffffff;
    --bg-soft: #f9f9f9;
    --border-thin: 1px solid rgba(0,0,0,0.1);
    --max-content: 1100px; /* Constrains content while spacing stretches */
    --max-text-width: 800px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.5;
}

/* Navigation */
.navbar {
    padding: 2rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 10;
    top: 0;
    left: 0;
}

.nav-container {
    max-width: var(--max-content);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 0 2rem;*/
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.logo { font-weight: 200; font-size: 1.2rem; color: #fff; mix-blend-mode: difference; cursor: pointer; }

.nav-links a {
    text-decoration: none;
    color: #fff;
    mix-blend-mode: difference;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    transition: opacity 0.3s;
}

.nav-links a:hover { opacity: 0.7; }

/* Hero / Featured */
.hero {
    background: url(/static/images/pic10.jpg);
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    display: flex;
    align-items: end;
    padding: 6rem 1rem 4rem;
}

.hero-container {
    max-width: var(--max-content);
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-weight: 200;
    font-size: 3rem;
    color: #fff;
    max-width: 600px;
}

.hero-description {
    font-weight: 400;
    font-size: 1rem;
    color: #fff;
    max-width: 600px;
}

.card-tag { font-weight: 800; font-size: 0.7rem; color: var(--text-muted); }
.featured-heading { font-size: 2rem; margin: 0.5rem 0; font-weight: 600; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); }
.card-excerpt { font-weight: 300; font-size: 0.95rem; margin-bottom: 2rem; }

.btn-read {
    display: inline-block;
    padding: 0.6rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    color: white;
}

.btn-read:hover {
    color: var(--text-main);
    border: 1px solid var(--primary);
}

/* Main Content */
.content-wrapper {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 4rem 0rem;
}

.section { margin-bottom: 6rem; }
.section-label { font-size: 1.5rem; font-weight: 400; margin-bottom: 2rem; padding: 0rem 1rem; }

.section#latest {
    margin: 0 1rem 6rem 1rem;
}

.prose {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.the-end {
    display: flex; align-items: center; justify-content: center;
    gap: 2rem; margin: 6rem auto; max-width: var(--text-width);
}
.the-end .line { height: 1px; background: #ddd; flex-grow: 1; }
.end-text { font-size: 0.75rem; font-weight: 800; color: #aaa; letter-spacing: 2px; }

/* Grid Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mini-card {
    display: flex;
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}

.thumb-area {
    width: 100px;
    height: 100px;
    background-color: #5e5a6e;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }

.btn-read-sm {
    color: black;
    margin-top: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    width: fit-content;
    background: white;
    box-shadow: 0 6px 15px var(--primary-glow);
    border: 1px solid var(--primary);
    font-family: 'Inter', sans-serif;
}

/* Action Center */
.action-center { text-align: center; margin-top: 4rem; }
.btn-lucky {
    background: var(--primary);
    border: none;
    padding: 0.8rem 3rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
}
.sub-text { font-size: 0.8rem; color: var(--text-muted); }


/* Footer */
.main-footer {
    text-align: center;
    /*margin-top: 5rem;*/
    background: linear-gradient(to top, #fff, #ffedb3);
}
.footer-accent {
    padding: 4rem 2rem;
    cursor: pointer;
}
.footer-accent p { color: #d4a017; font-weight: 400; }
.footer-link { color: #666; font-size: 0.9rem; text-decoration: underline; }
.footer-base { padding: 2rem; font-size: 0.75rem; color: #888; }

/* Tablet & Mobile Responsive */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-frame { justify-content: center; }
    .hollow-outline { display: none; }
}

@media (max-width: 768px) {
    .hero { padding: 6rem 1rem 1rem; align-items: end; }
    .hero-title { font-size: 2rem; }
    .featured-card { width: 100%; padding: 2rem; }
    .card-grid { grid-template-columns: 1fr; }
    .mini-card { flex-direction: column; }
    .thumb-area { width: 100%; height: 150px; }
    .card-info { padding: 1rem; }
    /*.nav-links { display: none; } */
}

/* Reader markdown */

.prose > p, .prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6, .prose ul, .prose ol, .prose blockquote, .prose div.footnote {
    padding: 0 1rem 0;
    margin-bottom: 1rem;
    width: 100%;
    max-width: var(--max-text-width);
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    width: 100%;
    display: block;
    text-align: left;
}

.prose img, .prose table, .prose pre {
    width: 100%;
    overflow-x: scroll;
    margin-bottom: 2rem;
}

.prose hr { padding: 0; margin: 4rem 0rem 2rem 0rem; width: 280px; height: 2px; background: linear-gradient(to right, #BBB0, #BBBF, #BBB0); border: none; }
.prose table { border-collapse: collapse; text-align: left; }
    .prose th { border-bottom: 2px solid var(--primary); padding: 1rem; font-weight: 600; }
    .prose td { border-bottom: 1px solid #eee; padding: 1rem; font-weight: 300; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-weight: 600; color: #111; margin-top: 2rem; }
.prose p { font-weight: 300; font-size: 1.05rem;  }
.prose blockquote::before { content: open-quote; font-family: serif; position: absolute; font-size: 4rem; background: none; color: #2223; transform: translateY(-2rem); }
.prose blockquote > p { padding-left: 1rem;}
.prose > ul, .prose > ol { font-weight: 300; font-size: 1.05rem; margin: 0 1rem 1rem 4rem; }
.prose ul li, .prose ol li { margin-bottom: 0.5rem; }
.prose pre { padding: 1rem; background: #f7f7f7; color: #000; border-radius: 0.5rem; border: 1px solid #ddd; }
.prose strong, .prose b { font-weight: 700; }
.prose > p code { background-color: #f7f7f7; padding: 0.2em; border: 1px solid #ddd; border-radius: 0.3em; }