/* ============================================================
   LEYE COKER — Architectural Manuscript
   High-Contrast Editorial · Newsreader + Inter
   ============================================================ */

/* ----- Variables ----- */
:root {
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Light Mode */
    --bg: #FFFFFF;
    --text: #000000;
    --text-secondary: rgba(0, 0, 0, 0.45);
    --border: rgba(0, 0, 0, 0.1);

    --hero-fade-1: rgba(255, 255, 255, 0.45);
    --hero-fade-2: rgba(255, 255, 255, 0.7);
    --hero-fade-3: rgba(255, 255, 255, 0.92);
    --hero-fade-4: rgba(255, 255, 255, 1);

    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #000000;
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.45);
    --border: rgba(255, 255, 255, 0.1);

    --hero-fade-1: rgba(0, 0, 0, 0.35);
    --hero-fade-2: rgba(0, 0, 0, 0.65);
    --hero-fade-3: rgba(0, 0, 0, 0.92);
    --hero-fade-4: rgba(0, 0, 0, 1);
}

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

html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background-color: var(--bg);
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition:
        background-color var(--transition),
        color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.header,
section,
.footer {
    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition);
}

/* ----- Container ----- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ----- Header ----- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 0.5;
}

.header-logo-img {
    height: 30px;
    width: auto;
    filter: invert(1);
    transition: filter var(--transition);
}

[data-theme="dark"] .header-logo-img {
    filter: invert(0);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header-links {
    display: flex;
    gap: 2rem;
}

.header-links a {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.header-links a:hover,
.header-links a.active {
    color: var(--text);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--text);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* Mobile Nav */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.25rem;
}

.nav-mobile-toggle svg {
    width: 22px;
    height: 22px;
}

/* ----- Hero ----- */
.hero {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    padding: 8vh 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('samson-ZGjbiukp_-A-unsplash.jpg') center / cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--hero-fade-1) 0%,
        var(--hero-fade-2) 30%,
        var(--hero-fade-3) 55%,
        var(--hero-fade-4) 75%
    );
    transition: background var(--transition);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: end;
    width: 100%;
}

.hero-meta {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(2.8rem, 4.8vw, 4.75rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-right {
    padding-bottom: 0.25rem;
}

.hero-description {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
}

.hero-links a {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
}

.hero-links a:hover {
    color: var(--text);
}

.hero-links .arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.hero-links a:hover .arrow {
    transform: translateX(3px);
}

/* ----- Sections ----- */
.section {
    padding: 12vh 0;
    border-bottom: 1px solid var(--border);
}

.section-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* ----- Focus Areas ----- */
.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
}

.focus-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1.25rem;
    padding: 2.25rem 0;
    border-top: 1px solid var(--border);
}

.focus-number {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    padding-top: 0.375rem;
}

.focus-item h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.focus-item p {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 500px;
}

/* ----- About ----- */
.about-text {
    max-width: 640px;
}

.about-text p {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.about-text p:first-child {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ----- Blog Page ----- */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 18vh 0 8vh;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('luca-bravo-9l_326FISzk-unsplash.jpg') center / cover no-repeat;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--hero-fade-1) 0%,
        var(--hero-fade-2) 30%,
        var(--hero-fade-3) 55%,
        var(--hero-fade-4) 75%
    );
    transition: background var(--transition);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(2.8rem, 4.8vw, 4.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

.page-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    max-width: 480px;
}

.insights-list {
    padding: 4vh 0 0;
}

.insight-card {
    display: block;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.2s;
}

.insight-card:first-child {
    padding-top: 2rem;
}

.insight-card:hover {
    opacity: 0.5;
}

.insight-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.insight-date,
.insight-time {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.insight-date::after {
    content: '\00b7';
    margin: 0 0.625rem;
    opacity: 0.5;
}

.insight-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 2.2vw, 1.625rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.875rem;
}

.insight-content p {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.read-more {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
}

.insight-card:hover .read-more {
    color: var(--text);
}

.read-more .arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.insight-card:hover .read-more .arrow {
    transform: translateX(3px);
}

/* ----- Article Page ----- */
.article-header {
    padding: 10vh 0 6vh;
    border-bottom: 1px solid var(--border);
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    transition: color 0.2s;
    margin-bottom: 4rem;
}

.article-back:hover {
    color: var(--text);
}

.article-back .arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.article-back:hover .arrow {
    transform: translateX(-3px);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-meta span {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.article-meta span + span::before {
    content: '\00b7';
    margin-right: 0.75rem;
    opacity: 0.5;
}

.article-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(2.1rem, 3.8vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 800px;
}

.article-body {
    padding: 8vh 0 10vh;
}

.article-content {
    max-width: 680px;
}

.article-lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1875rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.article-content p {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-content p:last-of-type {
    margin-bottom: 0;
}

.article-content h2 + p {
    margin-top: 0;
}

/* Article Actions */
.article-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 6vh;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.article-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.article-action:hover {
    color: var(--text);
}

.article-action svg {
    width: 16px;
    height: 16px;
}

/* ----- Footer ----- */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-contact:hover {
    color: var(--text);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-social:hover {
    color: var(--text);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* Share toast (clipboard fallback feedback) */
.share-feedback-toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%) translateY(120%);
    max-width: min(90vw, 22rem);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
    z-index: 200;
}

[data-theme="dark"] .share-feedback-toast {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.share-feedback-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ----- Scroll Reveal ----- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .header-links {
        display: none;
    }

    .header-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg);
        padding: 1.5rem 1.25rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: calc(100vh - 3.5rem);
        padding: 6vh 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-items: start;
    }

    .hero-headline {
        font-size: clamp(2.375rem, 7.5vw, 3.5rem);
    }

    .section {
        padding: 8vh 0;
    }

    .section-label {
        margin-bottom: 2.5rem;
    }

    .focus-grid {
        grid-template-columns: 1fr;
    }

    .focus-item {
        grid-template-columns: 2.5rem 1fr;
        gap: 1rem;
    }

    .page-header {
        padding: 14vh 0 5vh;
    }

    .article-header {
        padding: 6vh 0 4vh;
    }

    .article-back {
        margin-bottom: 2.5rem;
    }

    .article-title {
        font-size: clamp(1.875rem, 6vw, 2.75rem);
    }

    .article-body {
        padding: 6vh 0 8vh;
    }

    .article-lead {
        font-size: 1.0625rem;
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .article-content h2 {
        margin-top: 2.5rem;
    }

    .article-actions {
        gap: 0.625rem;
        justify-content: flex-start;
    }

    .article-action span {
        display: none;
    }

    .article-action {
        padding: 0.35rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-inner {
        justify-content: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(2.125rem, 7.5vw, 2.875rem);
    }

    .section {
        padding: 6vh 0;
    }

    .article-title {
        font-size: clamp(1.625rem, 7vw, 2.25rem);
    }

    .article-actions {
        gap: 0.5rem;
    }

    .footer-inner {
        gap: 0.375rem;
    }
}
