/* ---------- Design tokens ---------- */
:root {
    --bg: hsl(38 40% 97%);
    --bg-elev: hsl(38 35% 94%);
    --ink: hsl(28 25% 12%);
    --ink-soft: hsl(28 12% 35%);
    --muted: hsl(28 10% 55%);
    --line: hsl(28 20% 86%);
    --accent: hsl(14 80% 52%);
    --accent-ink: hsl(38 40% 98%);
    --radius: 14px;
    --shadow: 0 1px 0 hsl(28 25% 12% / 0.04), 0 20px 40px -20px hsl(28 25% 12% / 0.18);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}


.blo{
    margin-top: 40px;

}

.blo p{
    text-align: justify;
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.brand-mark {
    color: var(--accent);
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: var(--ink-soft);
}

.nav-links a {
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--accent);
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s, color .2s, border-color .2s;
    font-family: var(--sans);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--ink);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--ink);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
    padding: 14px 22px;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 88px 24px 72px;
}

.kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(40px, 4vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0 0 24px;
    text-align: justify;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.hero-dek {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 0 0 36px;
    font-family: var(--serif);
    text-align: justify;
}

.byline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), hsl(28 80% 60%));
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 13px;
}

.byline-name {
    font-weight: 600;
    font-size: 14px;
}

.byline-info {
    font-size: 13px;
    color: var(--muted);
}

.hero-art {
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    /* background:
        radial-gradient(ellipse at 30% 20%, hsl(38 60% 88%), transparent 60%),
        linear-gradient(160deg, hsl(14 80% 52%), hsl(28 70% 35%)); */
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .4s ease;
}

.hero-art:hover {
    transform: scale(1.01) rotate(-0.3deg);
}

.hero-art-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    color: var(--accent-ink);
}

.hero-art-num {
    font-family: var(--serif);
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    opacity: 0.95;
}

.hero-art-label {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

@media (max-width: 880px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 56px 24px;
        gap: 40px;
    }
}

/* ---------- Section head ---------- */
.posts-section {
    padding: 48px 24px 24px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 36px;
    margin-bottom: 36px;
}

.section-head h2 {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -0.02em;
    margin: 0;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: var(--sans);
    transition: all .2s;
}

.chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.chip.is-active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

/* ---------- Posts grid ---------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
}

@media (max-width: 960px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.post-cover {
    display: block;
    aspect-ratio: 5/4;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 70% 30%, hsl(var(--accent) / 0.85), hsl(var(--accent) / 0.45) 60%, hsl(var(--accent) / 0.25));
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}

.post-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 18px, hsl(0 0% 100% / 0.06) 18px 19px);
}

.post-cover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.post-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: hsl(38 40% 97% / 0.92);
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    z-index: 1;
}

.post-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}

.post-title a {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size .3s;
}

.post-title a:hover {
    background-size: 100% 2px;
}

.post-excerpt {
    color: var(--ink-soft);
    margin: 8px 0 0;
    font-size: 15px;
}

.post-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dot {
    color: var(--line);
}

.load-more {
    display: flex;
    justify-content: center;
    padding: 56px 0 24px;
}

/* ---------- Newsletter ---------- */
.newsletter {
    margin: 64px 0;
    padding: 56px;
    border-radius: calc(var(--radius) + 6px);
    background: var(--ink);
    color: var(--bg);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(14 80% 52% / 0.55), transparent 70%);
}

.newsletter h2 {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 8px 0 12px;
    position: relative;
}

.newsletter p {
    color: hsl(38 30% 80%);
    margin: 0;
    position: relative;
}

.newsletter .kicker {
    color: hsl(14 80% 65%);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    background: hsl(38 40% 97% / 0.08);
    padding: 8px;
    border-radius: 999px;
    border: 1px solid hsl(38 40% 97% / 0.15);
    position: relative;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--bg);
    font-size: 15px;
    padding: 10px 16px;
    outline: none;
    font-family: var(--sans);
}

.newsletter-form input::placeholder {
    color: hsl(38 20% 70%);
}

.newsletter-form .btn-primary {
    background: var(--bg);
    color: var(--ink);
}

.newsletter-form .btn-primary:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

@media (max-width: 760px) {
    .newsletter {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .newsletter-form .btn-primary {
        border-radius: 999px;
        justify-content: center;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding: 56px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-tag {
    color: var(--muted);
    margin: 12px 0 0;
    max-width: 30ch;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-cols h4 {
    font-family: var(--serif);
    font-size: 14px;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.footer-cols a {
    display: block;
    color: var(--ink-soft);
    font-size: 14px;
    padding: 4px 0;
    transition: color .2s;
}

.footer-cols a:hover {
    color: var(--accent);
}

.footer-base {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 720px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-base {
        flex-direction: column;
        gap: 8px;
    }
}


/* css for post detail page */

.post-page {
    padding: 4rem 1.5rem;
}

.post-container {
    max-width: 760px;
    margin: 0 auto;
}

.post-header h1 {
    font-size: 3rem;
    margin: 1rem 0;
}

.post-meta {
    color: #777;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.post-content {
    margin-top: 3rem;
    line-height: 1.9;
    font-size: 1.1rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content blockquote {
    border-left: 4px solid #2f9e44;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.post-footer {
    margin-top: 4rem;
}


.bili img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

