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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.68;
    color: #000000;
    background: #ffffff;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.016em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Mobile First Design */
header {
    padding: 16px 0;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    position: relative;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    z-index: 1001;
}

/* Hamburger Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: #000000;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation - Dropdown Menu */
.nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.nav li {
    margin: 0;
}

.nav a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.nav a:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.nav a.active {
    font-weight: 600;
    background-color: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

/* Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    padding: 40px 0 32px;
    text-align: center;
}

.hero-content {
    margin-bottom: 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    line-height: 1.15;
}

.hero-text p {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.56);
    font-weight: 400;
    letter-spacing: -0.016em;
    line-height: 1.4;
}

.section {
    padding: 20px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    text-align: center;
}

.featured-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.featured-post {
    background: rgba(0, 0, 0, 0.015);
    border-radius: 20px;
    padding: 32px 24px 24px;
    margin-bottom: 24px;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.03);
    touch-action: manipulation;
}

.featured-post:active {
    transform: scale(0.98);
}

.featured-post .featured-badge {
    background: rgba(0, 0, 0, 0.06);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-block;
    margin-bottom: 16px;
    color: rgba(0, 0, 0, 0.8);
}

.featured-post h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000000;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    letter-spacing: -0.03em;
}

.featured-post .date {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.48);
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.featured-post p {
    color: rgba(0, 0, 0, 0.72);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.016em;
}

.recent-posts-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    color: #000000;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.post-card {
    background: rgba(0, 0, 0, 0.008);
    border: 0.5px solid rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    padding: 24px 20px 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    touch-action: manipulation;
}

.post-card:active {
    transform: scale(0.98);
    background: rgba(0, 0, 0, 0.02);
}

.post-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    letter-spacing: -0.02em;
}

.post-card .date {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.48);
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.post-card p {
    color: rgba(0, 0, 0, 0.72);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.016em;
}

.archive-list {
    max-width: 100%;
    margin: 0 auto;
}

.archive-item {
    padding: 24px 0;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    touch-action: manipulation;
}

.archive-item:active {
    background: rgba(0, 0, 0, 0.01);
}

.archive-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.archive-item .date {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.48);
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.archive-item p {
    color: rgba(0, 0, 0, 0.72);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.016em;
}

.about-content {
    max-width: 100%;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    text-align: left;
    padding: 0 8px;
}

.about-content p {
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: -0.016em;
}

.about-content .social-links {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    font-size: 16px;
}

.about-content .social-links a {
    color: rgba(0, 0, 0, 0.64);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.about-content .social-links a:not(:last-child)::after {
    content: " • ";
    color: rgba(0, 0, 0, 0.3);
    margin: 0 4px;
}

.about-content .social-links a:active {
    background: rgba(0, 0, 0, 0.04);
    color: #000000;
}

.post-content {
    max-width: 100%;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    padding: 0 8px;
}

.post-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    text-align: center;
}

.post-content .post-meta {
    color: rgba(0, 0, 0, 0.48);
    font-size: 14px;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.post-content p {
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: -0.016em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.post-content blockquote {
    border-left: 3px solid rgba(0, 0, 0, 0.1);
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: rgba(0, 0, 0, 0.72);
    font-size: 19px;
    line-height: 1.5;
    font-weight: 400;
}

.post-content code {
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Menlo, Monaco, monospace;
    font-size: 16px;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.04);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: -0.016em;
}

.post-content a {
    color: #000000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.24);
    text-underline-offset: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-content a:hover {
    text-decoration-color: rgba(0, 0, 0, 0.72);
}

.hidden {
    display: none;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.64);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 32px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 16px;
    letter-spacing: -0.016em;
    padding: 8px 0;
    touch-action: manipulation;
}

.back-button:active {
    color: #000000;
}

.back-button::before {
    content: '←';
    margin-right: 8px;
    font-size: 18px;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }

    header {
        padding: 32px 0;
    }

    .logo {
        font-size: 26px;
    }

    .hero {
        padding: 56px 0 40px;
    }

    .hero-text h2 {
        font-size: 42px;
    }

    .hero-text p {
        font-size: 20px;
    }

    .section {
        padding: 24px 0;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .recent-posts-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 32px;
        margin-bottom: 32px;
    }

    .featured-post {
        padding: 40px 32px 32px;
        margin-bottom: 32px;
    }

    .featured-post:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }

    .featured-post h3 {
        font-size: 28px;
    }

    .featured-post p {
        font-size: 18px;
    }

    .post-card {
        padding: 32px 24px 24px;
    }

    .post-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .post-card h3 {
        font-size: 22px;
    }

    .post-card p {
        font-size: 16px;
    }

    .archive-item {
        padding: 32px 0;
    }

    .archive-item:hover {
        transform: translateX(4px);
    }

    .archive-item h3 {
        font-size: 24px;
    }

    .archive-item p {
        font-size: 18px;
    }

    .about-content {
        max-width: 640px;
        text-align: left;
        font-size: 20px;
        padding: 0;
    }

    .about-content p {
        margin-bottom: 32px;
    }

    .about-content .social-links {
        margin-top: 48px;
        padding-top: 40px;
    }

    .post-content {
        max-width: 680px;
        font-size: 20px;
        padding: 0;
    }

    .post-content h1 {
        font-size: 44px;
    }

    .post-content h2 {
        font-size: 32px;
        margin: 48px 0 20px;
    }

    .post-content h3 {
        font-size: 24px;
        margin: 36px 0 16px;
    }

    .post-content blockquote {
        font-size: 22px;
        padding-left: 28px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    header {
        padding: 32px 0;
    }

    .logo {
        font-size: 32px;
    }

    .nav ul {
        gap: 40px;
    }

    .hero {
        padding: 72px 0 48px;
    }

    .hero-text h2 {
        font-size: 56px;
    }

    .hero-text p {
        font-size: 21px;
    }

    .section-title {
        font-size: 48px;
        margin-bottom: 48px;
    }

    .recent-posts-title {
        font-size: 40px;
        margin-bottom: 48px;
    }

    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
    }

    .featured-post {
        padding: 56px 48px 48px;
        margin-bottom: 40px;
    }

    .featured-post h3 {
        font-size: 32px;
    }

    .featured-post p {
        font-size: 19px;
    }

    .post-card {
        padding: 40px 32px 32px;
    }

    .post-card h3 {
        font-size: 24px;
    }

    .post-card p {
        font-size: 17px;
    }

    .archive-list {
        max-width: 800px;
    }

    .archive-item h3 {
        font-size: 28px;
    }

    .archive-item p {
        font-size: 19px;
    }

    .about-content {
        max-width: 720px;
        font-size: 21px;
    }

    .about-content .social-links {
        margin-top: 56px;
        padding-top: 48px;
        gap: 32px;
    }

    .post-content {
        max-width: 720px;
        font-size: 21px;
    }

    .post-content h1 {
        font-size: 56px;
    }

    .post-content h2 {
        font-size: 36px;
        margin: 56px 0 24px;
    }

    .post-content h3 {
        font-size: 28px;
        margin: 40px 0 16px;
    }

    .post-content blockquote {
        font-size: 24px;
        padding-left: 32px;
    }
}

/* Threads Embed Styling */
.threads-embed-container {
    margin: 24px 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
    transition: all 0.2s ease;
    position: relative;
}

.threads-embed-container:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.threads-embed-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.threads-embed-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
}

.threads-embed-provider {
    font-size: 14px;
    font-weight: 500;
    color: #1C1E21;
    text-decoration: none;
}

.threads-embed-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 4px 0;
}

.threads-embed-link:hover .threads-embed-text {
    color: #007AFF;
}

.threads-embed-text {
    font-size: 15px;
    line-height: 1.4;
    color: #1C1E21;
    margin: 8px 0;
    transition: color 0.2s ease;
}

.threads-embed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.threads-embed-date {
    font-size: 13px;
    color: #65676B;
}

.threads-embed-cta {
    font-size: 13px;
    color: #007AFF;
    font-weight: 500;
}

 