/*
 * Exact CSS replica of dreet.je Framer site
 * Layout values extracted from original source
 */

/* Import Inter font - variable font for smoother rendering */
@import url('https://rsms.me/inter/inter.css');

/* Framer-style font placeholders with metric overrides for smooth rendering */
@font-face {
    font-family: "Inter Placeholder";
    src: local("Arial");
    ascent-override: 90%;
    descent-override: 22.43%;
    line-gap-override: 0%;
    size-adjust: 107.64%;
}

@font-face {
    font-family: "Crimson Pro Placeholder";
    src: local("Times New Roman");
    ascent-override: 92.56%;
    descent-override: 24.46%;
    line-gap-override: 0%;
    size-adjust: 98.31%;
}

@supports (font-variation-settings: normal) {
    :root {
        --font-sans: "Inter var", "Inter", "Inter Placeholder", sans-serif;
        --font-serif: "Crimson Pro", "Crimson Pro Placeholder", serif;
    }
}

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color tokens from original */
    --white: #fff;
    --gray-100: #f5f5f5;
    --gray-200: #eee;
    --gray-400: #a6a6a6;
    --gray-500: #757575;
    --gray-600: #7d7f83;
    --gray-800: #333333;
    --black: #000;

    /* Typography */
    --font-sans: "Inter", "Inter Placeholder", sans-serif;
    --font-serif: "Crimson Pro", serif;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--black);
    background: var(--white);
    min-height: 100vh;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    font-optical-sizing: auto;
}

/* Links - exact from original */
a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* Main page wrapper - centers everything */
.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

/* Navigation - exact from original: width 800px, padding 50px 100px */
.wrapper > header {
    width: 800px;
    padding: 50px 100px;
    position: relative;
    z-index: 1002;
}

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

.logo {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 165%;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 165%;
    text-decoration: none;
    color: var(--black);
}

.nav-links a:hover {
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 1px;
}

/* Hamburger Menu Button - hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-line:first-child {
    margin-bottom: 6px;
}

/* Hamburger hover animation */
.hamburger:hover .hamburger-line:first-child {
    transform: translateY(-2px);
}

.hamburger:hover .hamburger-line:last-child {
    transform: translateY(2px);
}

/* Hamburger active state - X icon */
.hamburger.is-active .hamburger-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 120px 25px 40px;
}

.mobile-menu-nav a {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    color: var(--black);
    text-decoration: none;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-nav a:first-child {
    border-top: 1px solid var(--gray-200);
}

.mobile-menu-nav a:hover {
    text-decoration: none;
}

/* Main content */
main {
    width: 100%;
    max-width: 800px;
    padding: 75px 100px 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
}

.hero-heading {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 45px;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 110%;
    color: var(--black);
}

.hero .subtitle {
    font-family: var(--font-serif);
    font-size: 45px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.03em;
    line-height: 100%;
    color: var(--gray-400);
}

.hero-body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 175%;
}

/* Divider - exact from original */
.divider {
    width: 100%;
    height: 1px;
    background: var(--gray-200);
}

/* Section Labels - exact from original */
.section-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* Latest Post Card */
.latest-post {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.post-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.post-card:hover {
    text-decoration: none;
}

.post-card:hover .post-title {
    text-decoration: underline;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--gray-100);
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 120%;
    color: var(--black);
}

.post-date {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
}

/* Archive Posts List */
.archive {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.archive-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
}

.archive-item:first-child {
    border-top: 1px solid var(--gray-200);
}

.archive-item:hover {
    text-decoration: none;
}

.archive-item:hover .archive-title {
    text-decoration: underline;
}

.archive-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.015em;
    line-height: 120%;
    color: var(--black);
}

.archive-date {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
    white-space: nowrap;
    margin-left: 20px;
}

/* Footer - inside main, inherits its padding */
footer {
    width: 100%;
    margin-top: auto;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--gray-200);
    margin: 50px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 50px;
}

.footer-copyright,
.footer-social a {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-400);
}

.footer-social a {
    text-decoration: none;
}

.footer-social a:hover {
    text-decoration: underline;
}

/* About Page */
.about-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.about-header .hero-heading {
    flex: 1;
}

.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bio-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    margin-bottom: 10px;
}

.bio-heading {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 120%;
    color: var(--gray-800);
}

.bio-text {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 175%;
}

/* Interests & Roles Two-Column Section */
.interests-roles-section {
    display: flex;
    gap: 100px;
    width: 100%;
    margin-bottom: 10px;
}

.interests-column,
.roles-column {
    display: flex;
    flex-direction: column;
}

.interests-column .section-label,
.roles-column .section-label {
    margin-bottom: 15px;
}

.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plain-list li {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 165%;
    color: var(--black);
}

/* Now Section */
.now-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
}

/* Activities List (no borders) */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

.activity-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    color: var(--black);
}

.activity-title a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.activity-description {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 175%;
    color: var(--gray-500);
}

/* Writing Page */
.writing-intro {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 175%;
}

/* Contact Page */
.contact-text {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 175%;
}

/* Article Page */
.article-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 50px;
}

.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
}

.article-meta-separator {
    color: var(--gray-400);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.share-icon:hover {
    color: var(--black);
    text-decoration: none;
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 45px;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 110%;
    color: var(--black);
    margin: 0;
    padding: 0;
    text-indent: 0;
    width: 100%;
    max-width: 100%;
}

.article-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.article-intro p {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 175%;
}

.article-hero-image {
    width: 100%;
    margin: 10px 0 30px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 20px 0 30px;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 130%;
    color: var(--black);
    margin-top: 20px;
}

.article-body h6 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 150%;
    color: var(--black);
    margin-top: 10px;
}

.article-body p {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 175%;
}

.article-body ul,
.article-body ol {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 175%;
    list-style-position: outside;
    padding-left: 0;
    margin-left: 0;
}

.article-body ul {
    list-style-type: disc;
}

.article-body li {
    margin-bottom: 12px;
    padding-left: 12px;
    margin-left: 20px;
}

.article-body blockquote {
    background: var(--gray-100);
    padding: 20px 24px;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
}

.article-body blockquote p {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 175%;
    color: var(--black);
}

.article-body blockquote strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-top: 15px;
}

.article-body code,
.article-intro code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Continue Reading Section */
.continue-reading {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 50px;
}

/* Responsive - breakpoint at 800px like original */
/* Mobile: padding changes to 125px 25px 0 */
@media (max-width: 799px) {
    .wrapper > header {
        width: 100%;
        padding: 25px;
    }

    .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    main {
        padding: 40px 25px 0;
    }

    .hero h1,
    .hero .subtitle {
        font-size: 40px;
        letter-spacing: -0.035em;
    }

    .hero h1 {
        line-height: 115%;
    }

    .hero-body,
    .writing-intro,
    .contact-text {
        font-size: 15px;
    }

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

    .archive-title {
        font-size: 20px;
    }

    .about-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
    }

    .interests-roles-section {
        flex-direction: row;
        gap: 40px;
    }

    .archive-item {
        flex-direction: column;
        gap: 8px;
    }

    .archive-date {
        margin-left: 0;
    }

    .post-card-content {
        flex-direction: column;
        gap: 8px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

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

    .article-body h2 {
        font-size: 24px;
    }

    .article-hero-image {
        margin: 0 0 20px;
    }

    .article-intro {
        margin-bottom: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        color: var(--white);
        background: var(--black);
    }

    /* Hamburger menu - white lines on dark background */
    .hamburger-line {
        background: var(--white);
    }

    /* Mobile menu overlay */
    .mobile-menu {
        background: var(--black);
    }

    .mobile-menu-nav a {
        color: var(--white);
        border-bottom-color: var(--gray-800);
    }

    .mobile-menu-nav a:first-child {
        border-top-color: var(--gray-800);
    }

    /* Navigation links */
    .nav-links a {
        color: var(--white);
    }

    /* Code/label styling - subtle for dark mode */
    .article-body code,
    .article-intro code {
        background: var(--gray-800);
        color: var(--gray-200);
    }

    /* Post titles and archive items */
    .post-title,
    .archive-title,
    .activity-title {
        color: var(--white);
    }

    /* Dividers */
    .divider,
    .footer-divider {
        background: var(--gray-800);
    }

    .archive-item {
        border-color: var(--gray-800);
    }

    .archive-item:first-child {
        border-top-color: var(--gray-800);
    }

    /* Blockquotes */
    .article-body blockquote {
        background: var(--gray-800);
    }

    .article-body blockquote p {
        color: var(--white);
    }

    /* Hero and headings */
    .hero h1,
    .article-header h1,
    .article-body h2,
    .article-body h6,
    .bio-heading {
        color: var(--white);
    }

    /* Post card background */
    .post-card-image {
        background: var(--gray-800);
    }
}
