/* TIMOTHY COLLINS — Stylesheet v3 final */

:root {
    --bg: #F2F0ED;
    --surface: #FAFAF8;
    --white: #FFFFFF;
    --black: #111111;
    --text: #1A1A1A;
    --text-dim: #888882;
    --accent: #0055FF;
    --rule: rgba(17, 17, 17, 0.07);
    --rule-strong: rgba(17, 17, 17, 0.14);

    --font-body: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
}

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

html, body {
    height: 100%;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
}

::selection {
    background: var(--accent);
    color: var(--surface);
}

/* ========================================
   LAYOUT
   ======================================== */

#wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

/* ========================================
   NAVIGATION TOGGLE
   ======================================== */

#menu-toggle {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1011;
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: transparent;
    padding: 0;
    border: none;
    transition: opacity 0.2s ease, color 0.15s ease;
    cursor: pointer;
    opacity: 1;
}

#menu-toggle:hover {
    color: var(--accent);
}

/* ========================================
   NAVIGATION PANEL — TOP OVERLAY
   ======================================== */

.nav-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--surface);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow: hidden;
    border-bottom: 3px solid var(--black);
}

.nav-dropdown.open {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-content {
    padding: 50px 50px 80px;
    max-width: 640px;
}

/* Nav header */
.nav-header {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--rule-strong);
}

.nav-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--black);
    line-height: 1.2;
}

.nav-role {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-dim);
    margin-top: 0.2rem;
    text-transform: uppercase;
}

/* Section label */
.nav-section-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}

/* About text */
.nav-about-text {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 0.8rem;
}

.nav-about-text:last-of-type {
    margin-bottom: 0;
}

/* Notepad link */
.nav-notepad-link {
    display: inline-block;
    margin-top: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: opacity 0.15s ease;
}

.nav-notepad-link:hover {
    opacity: 0.6;
}

/* Dividers */
.nav-divider {
    width: 100%;
    height: 1px;
    background: var(--black);
    margin: 2rem 0;
    opacity: 0.07;
}

.nav-divider-strong {
    width: 100%;
    height: 2px;
    background: var(--black);
    margin: 2rem 0;
    opacity: 0.12;
}

.nav-section-break {
    margin-top: 2rem;
}

/* Clients */
.nav-clients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-client-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text);
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--rule-strong);
    margin: 0 -1px -1px 0;
    background: transparent;
    white-space: nowrap;
}

/* Contact */
.nav-footer-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule-strong);
}

.nav-contact-email {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
    transition: color 0.15s ease;
}

.nav-contact-email:hover {
    color: var(--accent);
}

.nav-contact-location {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Toggle in close state */
#menu-toggle.is-close {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

/* ========================================
   HOMEPAGE — HERO
   ======================================== */

#content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 80px;
}

.masthead {
    width: 100%;
}

.hero-name {
    font-family: var(--font-body);
    font-size: clamp(3rem, 11.5vw, 14rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: var(--black);
    text-transform: uppercase;
    white-space: nowrap;
    margin-bottom: 0;
    transition: color 0.15s ease;
    cursor: default;
}

.hero-rule {
    width: 100%;
    height: 3px;
    background: var(--black);
    margin: 1.2rem 0 1rem;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1vw, 0.78rem);
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ========================================
   NOTEPAD PAGE
   ======================================== */

.notepad-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 30px 160px;
    min-height: 100vh;
}

.notepad-header {
    margin-bottom: 3.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 3px solid var(--black);
}

.notepad-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.notepad-back:hover {
    color: var(--accent);
}

.notepad-title {
    font-family: var(--font-body);
    font-size: clamp(2.8rem, 10vw, 5.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: var(--black);
    line-height: 0.85;
}

.posts {
    display: flex;
    flex-direction: column;
}

article {
    margin-bottom: 2.2rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid var(--rule);
}

article:last-child {
    border-bottom: none;
}

.post-meta {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.post-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.post-title a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1px;
    transition: color 0.15s ease;
}

.post-title a:hover {
    color: var(--accent);
}

.post-content {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
}

.post-content p {
    margin-bottom: 0.7rem;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.post-content a:hover {
    opacity: 0.6;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.post-image:hover {
    filter: grayscale(0%);
}

/* ========================================
   404 PAGE
   ======================================== */

.four-oh-four .hero-name {
    color: var(--text-dim);
}

.four-oh-four .hero-rule {
    background: var(--accent);
}

.four-oh-four-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.5;
    font-style: italic;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.15s ease;
}

.back-link:hover {
    opacity: 0.6;
}

/* ========================================
   FOOTER
   ======================================== */

#footer {
    position: fixed;
    bottom: 40px;
    left: 40px;
    right: 40px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-time-place {
    display: flex;
    gap: 1.5rem;
}

.footer-time {
    font-variant-numeric: tabular-nums;
}

.notepad-footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    #wrapper {
        padding: 24px;
    }

    #menu-toggle {
        top: 24px;
        right: 24px;
    }

    .nav-content {
        padding: 50px 24px 80px;
    }

    .hero-name {
        font-size: clamp(2.5rem, 14vw, 8rem);
        white-space: normal;
    }

    .hero-rule {
        margin: 0.8rem 0 0.7rem;
    }

    #content {
        padding-bottom: 60px;
    }

    #footer {
        bottom: 24px;
        left: 24px;
        right: 24px;
        position: relative;
        margin-top: 3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .notepad-wrapper {
        padding: 40px 20px 100px;
    }

    .notepad-title {
        font-size: clamp(2.2rem, 14vw, 4rem);
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: clamp(2.2rem, 14vw, 5rem);
    }
}
