*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* Reading progress */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent, #E6B93B), var(--adk, #C89B1F));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s linear;
}

/* Wrapper */
.wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.1rem 4rem;
}

@media (min-width: 768px) {
    .wrap {
        padding: 3rem 1.5rem 5rem;
    }
}

/* Title */
.title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.55rem, 6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink, #1A1917);
    margin-bottom: 1rem;
}

/* Meta row */
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chip {
    padding: 0.35rem 0.85rem;
    background: var(--cream, #F0EDE5);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted, #6B6860);
}

.share .btn {
    padding: 0.35rem 0.85rem;
    background: var(--accent, #E6B93B);
    color: var(--ink, #1A1917);
    border: none;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.share .btn:hover {
    background: var(--adk, #C89B1F);
}

/* Hero image */
.hero {
    margin: 0 0 2rem;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--cream, #F0EDE5);
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article content */
.content {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink, #1A1917);
}

.content h2,
.content h3,
.content h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 1.75rem 0 0.65rem;
    color: var(--ink, #1A1917);
}

.content h2 {
    font-size: 1.4rem;
}

.content h3 {
    font-size: 1.15rem;
}

.content h4 {
    font-size: 1rem;
}

.content p {
    margin-bottom: 1.25rem;
}

.content a {
    color: var(--adk, #C89B1F);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content ul,
.content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.content li {
    margin-bottom: 0.4rem;
}

.content blockquote {
    border-left: 4px solid var(--accent, #E6B93B);
    margin: 1.5rem 0;
    padding: 0.85rem 1.25rem;
    background: var(--cream, #F0EDE5);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--muted, #6B6860);
}

.content img {
    width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.content code {
    background: var(--cream, #F0EDE5);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.9em;
}

.content pre {
    background: var(--ink, #1A1917);
    color: #f0ede5;
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.content hr {
    border: none;
    border-top: 1px solid var(--border, rgba(26, 25, 23, 0.1));
    margin: 2rem 0;
}

/* Author card */
.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    margin: 2rem 0;
    background: var(--cream, #F0EDE5);
    border-radius: 16px;
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
}

.author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border, rgba(26, 25, 23, 0.1));
}

.author .nm {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink, #1A1917);
}

.author .un {
    font-size: 0.8rem;
    color: var(--muted, #6B6860);
    margin-top: 0.15rem;
}

/* Ad */
.ad {
    margin: 2rem 0;
}

/* More posts */
.more {
    margin-top: 2.5rem;
}

.more h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink, #1A1917);
    margin-bottom: 1rem;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
    .more-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .more-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.more-grid .card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, rgba(26, 25, 23, 0.1));
    background: var(--surface, #fff);
    transition: transform 0.18s, box-shadow 0.18s;
}

.more-grid .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 25, 23, 0.12);
}

.more-grid .card .ph {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--cream, #F0EDE5);
}

.more-grid .card .cb {
    padding: 0.6rem 0.75rem;
}

.more-grid .card .tt {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink, #1A1917);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-list {
    margin-top: 0.5rem;
}

.ml-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
}

@media (min-width: 640px) {
    .ml-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ml-grid a {
    font-size: 0.8rem;
    color: var(--adk, #C89B1F);
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border, rgba(26, 25, 23, 0.08));
    transition: color 0.15s;
}

.ml-grid a:hover {
    color: var(--ink, #1A1917);
}