/* ==========================================================================
   Baydo Labs — site styles (ink-on-paper, self-contained; no framework)
   ========================================================================== */
:root {
    --ink: #2B2B2B;
    --paper: #F2F0EB;
    --muted: rgba(242, 240, 235, .55);
    --label: rgba(242, 240, 235, .64);
    --faint: rgba(242, 240, 235, .40);
    --readable: rgba(242, 240, 235, .78);
    --font: 'Poppins', 'Century Gothic', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }

body {
    margin: 0;
    min-height: 100svh;
    background-color: var(--ink);
    color: var(--paper);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* faded dog-head mark, bleeding off the bottom-right */
.brand-watermark {
    position: fixed;
    right: 4%;
    bottom: 5%;
    width: min(56vw, 560px);
    height: auto;
    opacity: .03;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* header — subdued, numbered labels (aperture-caption voice) */
.site-header {
    position: relative;
    z-index: 2;
    padding: clamp(22px, 4vw, 40px) clamp(24px, 5vw, 64px);
}
.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: clamp(18px, 4vw, 46px);
}
.nav-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--label);
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}
.nav-label .num { color: var(--faint); }
a.nav-label:hover,
a.nav-label:focus-visible { color: var(--paper); }
.nav-label[aria-current="page"] { color: var(--paper); }

/* main — centred (home, 404) */
.site-main {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 24px 9vh;
}
.wordmark {
    margin: 0;
    font-weight: 300;
    font-size: clamp(3rem, 12.5vw, 8.75rem);
    line-height: .95;
    letter-spacing: -.035em;
    color: var(--paper);
}
.wordmark .w-baydo { font-weight: 700; }
.wordmark .w-labs { font-weight: 300; color: var(--muted); }
.tagline {
    margin: clamp(18px, 2.6vw, 30px) 0 0;
    font-size: clamp(.95rem, 1.7vw, 1.2rem);
    font-weight: 400;
    letter-spacing: .01em;
    color: var(--muted);
}
.eyebrow {
    margin: 0 0 clamp(14px, 2vw, 22px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(242, 240, 235, .6);
}
.backlink {
    display: inline-block;
    margin-top: clamp(24px, 3vw, 36px);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--label);
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 240, 235, .22);
    padding-bottom: 3px;
    transition: color .25s ease, border-color .25s ease;
}
.backlink:hover,
.backlink:focus-visible { color: var(--paper); border-color: var(--paper); }

/* centred content column — shared by home, work, contact */
.home,
.page {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* keep long lines from sizing to max-content (would overflow on mobile) */
.page > * { width: 100%; }
.is-home .wordmark { font-size: clamp(2.75rem, 9vw, 6rem); }
.intro {
    margin: clamp(26px, 4vw, 42px) 0 0;
    width: 100%;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
    color: var(--readable);
    max-width: 46ch;
}
/* work / contact — quiet caption heading + optional lede + content rows */
.page-lede {
    margin: clamp(7px, 1.2vw, 11px) 0 0;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.6;
    color: var(--muted);
}
.page .work-item,
.page .contact-line { margin-top: clamp(28px, 4.5vw, 48px); }
.block-cap {
    margin: 0 0 clamp(9px, 1.4vw, 13px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--label);
}
.work-item,
.contact-line {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.6;
    color: var(--muted);
}
.work-link,
.contact-line a {
    color: var(--paper);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(242, 240, 235, .4);
}
.contact-line a { font-weight: 400; }
.work-link:hover,
.work-link:focus-visible,
.contact-line a:hover,
.contact-line a:focus-visible { text-decoration-color: var(--paper); }
.work-desc { color: var(--muted); }

/* footer — copyright caption; bookends the header in the same
   numbered aperture-caption voice (© plays the role of the number) */
.site-footer {
    position: relative;
    z-index: 2;
    padding: clamp(22px, 4vw, 40px) clamp(24px, 5vw, 64px);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: clamp(14px, 3vw, 30px);
}
.footer-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--label);
    white-space: nowrap;
}
.footer-label .num { color: var(--faint); }
.footer-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--faint);
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--paper); }

/* privacy — short left-aligned prose inside the centered column */
.legal {
    text-align: left;
    max-width: 52ch;
    margin-top: clamp(20px, 3vw, 32px);
}
.legal p {
    margin: 0 0 clamp(12px, 1.6vw, 18px);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.75;
    color: var(--readable);
}
.legal p:last-child { margin-bottom: 0; }
.legal a {
    color: var(--paper);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(242, 240, 235, .4);
}
.legal a:hover,
.legal a:focus-visible { text-decoration-color: var(--paper); }

/* focus + skip link */
:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus {
    left: clamp(24px, 5vw, 64px);
    top: 16px;
    z-index: 5;
    padding: 8px 14px;
    background: var(--paper);
    color: var(--ink);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
    .home > *,
    .page > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
    .home > *:nth-child(2),
    .page > *:nth-child(2) { animation-delay: .1s; }
    .home > *:nth-child(3),
    .page > *:nth-child(3) { animation-delay: .2s; }
    .home > *:nth-child(4),
    .page > *:nth-child(4) { animation-delay: .3s; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: none; }
    }
}
