/* ============================================================
   Running Start AI - Shared Styles
   ============================================================ */

:root {
    --text: #1c1917;
    --text-mid: #44403c;
    --text-quiet: #78716c;
    --bg: #faf9f6;
    --accent: #4a5d7a;
    --accent-soft: #e4e8ee;
    --pop: #bd5a30;
    --rule: #e7e5e0;
    --col: 640px;
}

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

body {
    font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.frame {
    max-width: var(--col);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ---- HERO / HEADER ---- */
.hero {
    /* SWAP THIS: Replace background-color with your image:
       background: url('images/hero.jpg') center / cover no-repeat;
    */
    background-color: #3a4d68;
    padding: 4.5rem 1.5rem 4rem;
    animation: arrive 0.6s ease-out both;
}

.hero-inner {
    max-width: var(--col);
    margin: 0 auto;
}

.mark {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
}

.bio {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
    max-width: 520px;
}

.hero-links {
    margin-top: 1.15rem;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 0.82rem;
    display: flex;
    gap: 1.25rem;
}

.hero-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-links a:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.6);
}

/* ---- ACCENT BAR ---- */
.accent-bar {
    height: 3px;
    background: var(--pop);
}

/* ---- NAV ---- */
nav {
    padding: 1.5rem 0;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .site-link {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
}

nav .site-link:hover {
    opacity: 0.7;
}

nav .nav-links {
    display: flex;
    gap: 1.25rem;
}

nav .nav-links a {
    color: var(--text-quiet);
    text-decoration: none;
    transition: color 0.2s ease;
}

nav .nav-links a:hover {
    color: var(--text);
}

/* ---- LINKS ---- */
a.link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-soft);
    transition: color 0.2s ease, border-color 0.2s ease;
}

a.link:hover {
    color: var(--pop);
    border-bottom-color: var(--pop);
}

/* ---- RULE ---- */
.rule {
    border: none;
    border-top: 1px solid var(--rule);
}

/* ---- POSTS ---- */
.posts {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.section-label {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-quiet);
    margin-bottom: 2rem;
}

.post {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    animation: arrive 0.6s ease-out both;
}

.post:nth-child(2) { animation-delay: 0.08s; }
.post:nth-child(3) { animation-delay: 0.16s; }
.post:nth-child(4) { animation-delay: 0.24s; }
.post:nth-child(5) { animation-delay: 0.32s; }
.post:nth-child(6) { animation-delay: 0.40s; }

.post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.post:last-child .post-divider {
    display: none;
}

/* ---- POST DIVIDER ---- */
.post-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.post-divider::before,
.post-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.post-divider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pop);
    opacity: 0.5;
}

.post-date {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 0.78rem;
    color: var(--pop);
    margin-bottom: 0.4rem;
}

.post-title {
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.85rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.post-body {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 0.85rem;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-figure {
    margin: 1.5rem 0;
    border-radius: 3px;
    overflow: hidden;
}

.post-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.post-figure figcaption {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 0.72rem;
    color: var(--text-quiet);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.post-cta {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.post-cta:hover {
    color: var(--pop);
    border-bottom-color: var(--pop);
}

.post-cta .arrow {
    display: inline-block;
    margin-left: 0.25em;
    color: var(--pop);
    transition: margin-left 0.2s ease;
}

.post-cta:hover .arrow {
    margin-left: 0.5em;
}

/* ---- ABOUT CONTENT ---- */
.about {
    padding: 3rem 0 4rem;
    animation: arrive 0.6s ease-out both;
}

.about-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.about-body {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.about-body p {
    margin-bottom: 1rem;
}

.about-body p:last-child {
    margin-bottom: 0;
}

/* ---- FOOTER ---- */
footer {
    padding: 1.75rem 0 2.75rem;
    border-top: 1px solid var(--rule);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 0.78rem;
    color: var(--text-quiet);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--pop);
}

/* ---- ANIMATION ---- */
@keyframes arrive {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .hero { padding: 3rem 1.25rem 3rem; }
    .bio { font-size: 1.1rem; }
    .post-title { font-size: 1.28rem; }
    .post-body { font-size: 1rem; }
    .about-title { font-size: 1.6rem; }
    .about-body { font-size: 1rem; }
    footer {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}
