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

/* Custom cursor - sophisticated dual-layer cursor */
@media (pointer: fine) {
    * {
        cursor: none;
    }
    .cursor {
        position: fixed;
        pointer-events: none;
        z-index: 10000;
        mix-blend-mode: difference;
        transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
    }
    .cursor::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 4px;
        height: 4px;
        background: #ffffff;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    height 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .cursor::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 24px;
        border: 0.75px solid rgba(255, 255, 255, 0.35);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    border-width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    a:hover ~ .cursor::before,
    button:hover ~ .cursor::before {
        width: 8px;
        height: 8px;
    }
    a:hover ~ .cursor::after,
    button:hover ~ .cursor::after {
        width: 32px;
        height: 32px;
        opacity: 0.5;
        border-width: 1px;
    }
}

/* Typography & Colors - Refined Minimal Design */
body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.65;
    background: #ffffff;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
    color: #1a1a1a;
    padding: 4rem 2rem;
    max-width: 720px;
    margin: auto;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

/* Ensure all elements use Times New Roman */
*, *::before, *::after {
    font-family: 'Times New Roman', Times, serif;
}

/* Paragraph spacing */
p {
    margin-bottom: 1.85rem;
    line-height: 1.75;
    font-size: 1.0625rem;
    color: #262626;
}

/* Headings */
h1 {
    font-size: 1.625rem;
    margin-bottom: 0.875rem;
    font-weight: 600;
    color: #0a0a0a;
    letter-spacing: -0.035em;
    text-align: center;
    line-height: 1.15;
}

h2 {
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 3.75rem;
    margin-bottom: 1.75rem;
    color: #0a0a0a;
}

/* Links - refined underline with elegant animation */
a {
    color: #171717;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.25s cubic-bezier(0.33, 1, 0.68, 1);
    background-image: linear-gradient(90deg, #0a0a0a 0%, #0a0a0a 100%);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s cubic-bezier(0.33, 1, 0.68, 1),
                color 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

a:hover {
    color: #0a0a0a;
    background-size: 100% 1px;
}

a::after {
    display: none;
}

/* Writings post links - refined accent color */
main a,
article a,
.post-content a,
.writing-post a {
    color: #2563eb;
    background-image: linear-gradient(90deg, #2563eb 0%, #2563eb 100%);
}

main a:hover,
article a:hover,
.post-content a:hover,
.writing-post a:hover {
    color: #1d4ed8;
}

/* Header */
header {
    margin-bottom: 4.5rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Post date styling */
.post-date {
    text-align: center;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 0.625rem;
    margin-bottom: 1.25rem;
}

/* Navigation */
nav {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: #737373;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

nav a {
    color: #262626;
    margin: 0;
    padding: 0 0.25rem;
    font-weight: 500;
}

nav span {
    color: #d4d4d4;
    user-select: none;
}

/* Section Spacing */
section {
    margin-bottom: 3.5rem;
}

/* Lists - refined minimal style */
.arrow-list {
    list-style: none;
    padding-left: 0;
}

.arrow-list li {
    margin-bottom: 0.875rem;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #262626;
}

.arrow-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #a3a3a3;
    font-weight: 400;
}

/* Strong text */
strong {
    font-weight: 600;
    color: #0a0a0a;
}

/* Me section */
.me-section {
    margin-top: 0;
    margin-bottom: 2rem;
}

.me-text {
    max-width: 100%;
}

.me-text h2 {
    margin-top: 0;
}

.me-text .arrow-list {
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 3rem 1.5rem;
        font-size: 16px;
        background-size: 24px 24px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1875rem;
        margin-top: 2.75rem;
    }

    nav {
        flex-wrap: wrap;
        gap: 0.625rem;
    }

    .landing-page {
        padding: 2.5rem 1.5rem;
        background-size: 24px 24px;
    }

    .landing-page h1 {
        font-size: 2.75rem;
        letter-spacing: -0.035em;
    }

    .landing-page .tagline {
        font-size: 1.125rem;
    }

    .landing-page .social-links {
        font-size: 0.9375rem;
        margin-bottom: 3.5rem;
    }

    .landing-page .nav-links {
        flex-direction: column;
        gap: 1rem;
        font-size: 1.125rem;
    }

    .landing-page .nav-links a {
        padding: 0.875rem 1.75rem;
    }

    .about-content {
        padding: 0 0.5rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 2.5rem 1.25rem;
        background-size: 20px 20px;
    }

    nav {
        font-size: 0.875rem;
    }

    .landing-page {
        background-size: 20px 20px;
    }

    .landing-page h1 {
        font-size: 2.25rem;
    }

    .landing-page .tagline {
        font-size: 1rem;
    }

    .landing-page .nav-links {
        font-size: 1.0625rem;
    }
}

/* Selection color */
::selection {
    background: #0a0a0a;
    color: #ffffff;
}

::-moz-selection {
    background: #0a0a0a;
    color: #ffffff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer */
footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Share button styling - consistent with site theme */
.share-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1.5px solid #171717;
    color: #171717;
    text-decoration: none;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    margin-top: 1rem;
    background-size: 0;
}

.share-button:hover {
    background: #171717;
    color: #ffffff;
}

.share-button svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 0.4rem;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Writings card hover effect */
.post-card {
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
                background-color 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                color 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    border-radius: 0;
}

.post-card::after {
    display: none;
}

.post-card:hover {
    background-color: #0a0a0a;
    color: #ffffff;
}

.post-card:hover .post-title,
.post-card:hover .post-date {
    color: #ffffff;
}

/* Landing Page Specific Styles */
.landing-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 3rem 4rem;
    text-align: center;
    max-width: 100%;
    background: #ffffff;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

.landing-page h1 {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.045em;
    color: #0a0a0a;
    animation: fadeInUp 0.9s cubic-bezier(0.33, 1, 0.68, 1);
}

.landing-page .tagline {
    color: #525252;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
    font-weight: 400;
    letter-spacing: -0.015em;
    animation: fadeInUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) 0.1s both;
}

.landing-page .social-links {
    margin-bottom: 4.5rem;
    font-size: 1rem;
    animation: fadeInUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) 0.2s both;
}

.landing-page .social-links a {
    margin: 0 1rem;
    color: #737373;
    transition: color 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                background-size 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    font-weight: 500;
    background-image: linear-gradient(90deg, #0a0a0a 0%, #0a0a0a 100%);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.landing-page .social-links span {
    margin: 0 0.625rem;
    color: #d4d4d4;
}

.landing-page .social-links a:hover {
    color: #0a0a0a;
    background-size: 100% 1px;
}

.landing-page .nav-links {
    display: flex;
    gap: 2rem;
    font-size: 1.25rem;
    animation: fadeInUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) 0.3s both;
}

.landing-page .nav-links a {
    text-align: center;
    padding: 1rem 2rem;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    border-radius: 0;
    color: #171717;
    font-weight: 600;
    border: 1.5px solid transparent;
}

.landing-page .nav-links a::after {
    display: none;
}

.landing-page .nav-links a:hover {
    background-color: #0a0a0a;
    color: #ffffff;
    background-size: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

