:root {
    --bg: #fcfffa;
    --border: rgba(43, 0, 0, 0.08);
    --text-primary: #2b0000;
    --text-secondary: #363737;
    --text-tertiary: #757575;
    --accent: #d86d38;
}

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

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

header {
    margin-bottom: 5rem;
    text-align: left;
}

h1 {
    font-size: 3.0rem;
    font-weight: 500;
    font-family: cursive;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.toc-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.toc-item:last-child {
    border-bottom: none;
}

.toc-item:hover {
    border-color: var(--accent);
    padding-left: 1rem;
}

.toc-item:hover .item-title a {
    color: var(--accent);
}

.item-date {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 400;
}

.item-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.3;
}

.item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-title a:hover {
    color: var(--accent);
}

.item-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }

    body {
        padding: 2rem 1rem;
    }

}

/* Article Specific Styles */
.article-content {
    margin-top: 2rem;
}

.back-link {
    display: block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--accent);
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 4px;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

blockquote p {
    margin-bottom: 0.5rem;
}

blockquote p:last-child {
    margin-bottom: 0;
}

figure {
    margin: 3rem 0;
    text-align: center;
}

figcaption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-style: italic;
}

p {
    margin-bottom: 1.5rem;
}

h2,
h3,
h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

ul,
ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: inherit;
    font-weight: normal;
    text-underline-offset: 3px;
    text-decoration-color: var(--text-tertiary);
    text-decoration-thickness: 1px;
}
