/* RightBytes - Editorial Professional
   Deep navy, warm ivory, copper accent
   Spacious, architectural, refined */

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

:root {
    /* Deep sophisticated navy */
    --color-navy: #1a2332;
    --color-navy-light: #2a3444;

    /* Warm ivory background */
    --color-ivory: #f7f5f0;
    --color-ivory-dark: #ebe8e0;

    /* Copper accent */
    --color-copper: #b8734a;
    --color-copper-light: #d4956a;

    /* Text */
    --color-text: #1a2332;
    --color-text-soft: #4a5568;
    --color-text-muted: #8a9aad;

    /* Page padding */
    --page-padding: clamp(1.5rem, 5vw, 4rem);
}

html, body {
    height: 100%;
}

html {
    font-size: 17px;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--color-ivory);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

::selection {
    background: var(--color-copper);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-copper);
}

/* ================================
   Navigation
   ================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem var(--page-padding);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-mark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 36px;
    height: 36px;
}

.logo-mark--sm {
    width: 24px;
    height: 24px;
    gap: 3px;
}

.byte {
    background: var(--color-navy);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.byte--accent {
    background: var(--color-copper);
}

.logo:hover .byte--accent {
    transform: scale(1.1);
}

.logo-text {
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--color-navy);
}


/* ================================
   Main Layout
   ================================ */
.main {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================
   Hero Section
   ================================ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--page-padding);
    gap: 2.5rem;
}

h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-navy);
    text-align: center;
    min-height: 1.2em;
}

.hero-em {
    color: var(--color-copper);
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--color-copper);
    margin-left: 4px;
    vertical-align: baseline;
    position: relative;
    top: 0.1em;
    animation: blink 1s step-end infinite;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-contact {
    font-size: 1rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
    transition: color 0.2s ease;
}

.hero-contact:hover {
    color: var(--color-copper);
}

/* ================================
   Footer
   ================================ */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem var(--page-padding);
    border-top: 1px solid var(--color-ivory-dark);
}

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

.footer-logo {
    opacity: 0.6;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem;
    }

    .hero-contact {
        font-size: 0.9rem;
    }

    .cursor {
        width: 2px;
        height: 0.85em;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-text {
        font-size: 0.8rem;
    }
}

/* ================================
   Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    h1 {
        opacity: 1;
        animation: none;
    }

    .cursor {
        animation: none;
        opacity: 1;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}
