/* CSS Variables */
:root {
    --grid: 8px;
    --orange: #FF6B35;
    --gray-700: #4a5568;
    --black: #000000;
    --white: #ffffff;
}

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

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--grid) * 4);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 0.5px solid var(--black);
    z-index: 1000;
    padding: calc(var(--grid) * 3) 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--black);
    position: relative;
    transition: transform 0.2s;
}

.logo-link:hover {
    transform: translateX(-2px);
}

.logo-text {
    position: relative;
}

.logo-link:hover .logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--orange);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: calc(var(--grid) * 4);
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--orange);
}

/* Hero Section */
.hero {
    padding: calc(var(--grid) * 20) 0 calc(var(--grid) * 12) 0;
    margin-top: calc(var(--grid) * 8);
}

.label {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: calc(var(--grid) * 1) calc(var(--grid) * 2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: calc(var(--grid) * 3);
}

.hero h1 {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: calc(var(--grid) * 4);
    letter-spacing: -0.03em;
}

.hero h1 span {
    display: inline;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray-700);
    max-width: 600px;
}

/* Section */
.section {
    padding: calc(var(--grid) * 12) 0;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: calc(var(--grid) * 6);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--orange);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--grid) * 4);
}

.post-card {
    display: block;
    padding: calc(var(--grid) * 4);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: var(--black);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.meta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: calc(var(--grid) * 2);
}

.post-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: calc(var(--grid) * 2);
    line-height: 1.3;
}

.post-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: calc(var(--grid) * 3);
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--black);
}

/* About Section */
.about-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: calc(var(--grid) * 3);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-text {
    font-size: 18px;
    color: var(--gray-700);
    line-height: 1.6;
    max-width: 768px;
}

.strikethrough {
    text-decoration: line-through;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: calc(var(--grid) * 8) 0;
    margin-top: calc(var(--grid) * 12);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--orange);
}

/* Article Page Styles */
.article-header {
    padding: calc(var(--grid) * 20) 0 calc(var(--grid) * 8) 0;
    margin-top: calc(var(--grid) * 8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-header h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: calc(var(--grid) * 3);
    letter-spacing: -0.03em;
}

.article-meta {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: calc(var(--grid) * 3);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--grid) * 1);
    list-style: none;
    margin-bottom: calc(var(--grid) * 4);
}

.tag {
    display: inline-block;
    padding: calc(var(--grid) * 1) calc(var(--grid) * 2);
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    transition: background 0.2s, color 0.2s;
}

.tag:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 calc(var(--grid) * 4) calc(var(--grid) * 12) calc(var(--grid) * 4);
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: calc(var(--grid) * 3);
    color: #2d3748;
}

.article-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-top: calc(var(--grid) * 8);
    margin-bottom: calc(var(--grid) * 3);
    letter-spacing: -0.02em;
}

.article-content img {
    width: 100%;
    height: auto;
    margin: calc(var(--grid) * 4) 0;
}

.article-content blockquote {
    border-left: 4px solid var(--orange);
    padding-left: calc(var(--grid) * 3);
    margin: calc(var(--grid) * 4) 0;
    font-style: italic;
    background: #f7fafc;
    padding: calc(var(--grid) * 3);
}

.article-content ol {
    margin: calc(var(--grid) * 3) 0;
    padding-left: calc(var(--grid) * 4);
}

.article-content li {
    margin-bottom: calc(var(--grid) * 2);
    font-size: 18px;
    line-height: 1.8;
}

.share-buttons {
    position: fixed;
    left: calc(var(--grid) * 4);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: calc(var(--grid) * 2);
}

.share-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: var(--white);
    text-decoration: none;
    color: var(--black);
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
}

.share-button:hover {
    background: var(--black);
    color: var(--white);
}

/* Articles Page */
.page-header {
    padding: calc(var(--grid) * 20) 0 calc(var(--grid) * 8) 0;
    margin-top: calc(var(--grid) * 8);
}

.page-header h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: calc(var(--grid) * 3);
    letter-spacing: -0.03em;
}

.page-header p {
    font-size: 18px;
    color: var(--gray-700);
}

/* Tags Page */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--grid) * 2);
}

.tag-button {
    display: inline-block;
    padding: calc(var(--grid) * 2) calc(var(--grid) * 3);
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tag-button:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }

    .article-header h1 {
        font-size: 36px;
    }

    .page-header h1 {
        font-size: 42px;
    }

    .about-title {
        font-size: 32px;
    }

    .share-buttons {
        position: static;
        flex-direction: row;
        transform: none;
        margin-bottom: calc(var(--grid) * 4);
    }
}
