/* Custom font declarations */
@font-face {
    font-family: 'ABC Diatype';
    src: url('/assets/fonts/ABCDiatype-Regular.woff2') format('woff2'),
         url('/assets/fonts/ABCDiatype-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ABC Diatype';
    src: url('/assets/fonts/ABCDiatype-Bold.woff2') format('woff2'),
         url('/assets/fonts/ABCDiatype-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --text-heading: 48px;
    --text-body: 24px;
}

@media (max-width: 768px) {
    :root {
        --text-heading: 32px;
        --text-body: 18px;
    }
}

.text-heading {
    font-size: var(--text-heading);
    font-weight: 700;
}

.text-body {
    font-size: var(--text-body);
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'ABC Diatype', 'Space Grotesk', system-ui, -apple-system, sans-serif;
    line-height: 1.25;
    overflow-x: hidden;
}

/* ===== SHARED LOGO/SECTION HEADER GRID ===== */
/* Both LOGO and section headers use the same left-half layout
   so lines sit precisely on top of each other when stacked. */

.logo-left {
    display: flex;
    align-items: center;
    width: 50%;
    min-width: 0;
    height: 100%;
    padding-left: 24px;
}

.logo-text {
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.logo-line {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    margin: 0 32px; /* 32px gap between letters and line */
}

.logo-line svg {
    display: block;
    width: 100%;
}

.logo-right {
    width: 50%;
    min-width: 0;
}

/* ===== LOGO BAR (top sticky) ===== */
.logo-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 105px;
    display: flex;
    align-items: center;
    /* NO background - content scrolls underneath */
    transition: color 0.3s ease;
    pointer-events: none; /* let clicks pass through to content below */
}

.logo-bar .logo-left {
    pointer-events: auto; /* KE-NA letters are clickable */
}

.logo-bar a {
    text-decoration: none;
    color: inherit;
}

/* ===== SECTION HEADER (sticky per section) ===== */
.section-header {
    position: sticky;
    top: 0;
    z-index: 90;
    height: 105px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.section-header-right {
    display: flex;
    align-items: center;
    width: 50%;
    min-width: 0;
    height: 100%;
    padding-right: 24px;
    gap: 16px;
}

.section-header .section-icon {
    width: 54px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon {
    /* Intro-side menu icons share the same visual box as section-header icons */
    width: 54px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    display: block;
}

.section-header .section-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.section-header .section-title,
.section-title {
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-line {
    flex: 1;
    min-width: 20px;
    display: flex;
    align-items: center;
    margin-left: 32px;
}

.section-line svg {
    display: block;
    width: 100%;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    background: none;
    border: none;
    flex-shrink: 0;
    margin-left: 16px;
}

.hamburger span {
    display: block;
    width: 77px;
    height: 3px;
    transition: background-color 0.3s ease;
}

/* ===== PREVIEW ITEMS ===== */
.preview-item {
    overflow: hidden;
}

.preview-item-label {
    font-size: var(--text-body);
    font-weight: 700;
    margin-bottom: 10px;
}

.preview-item-image {
    width: 100%;
    aspect-ratio: 330 / 355;
    overflow: hidden;
    position: relative;
}

.preview-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Green-tinted images in Publishing */
.preview-item-image.tinted img {
    mix-blend-mode: screen;
}

/* ===== NAVIGATION MENU ===== */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 200;
    padding: 31px 24px 31px 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu.open {
    transform: translateX(0);
}

.nav-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--text-heading);
    font-weight: 700;
    padding: 4px 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-menu-item-icon {
    width: 54px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-menu-item-icon img {
    max-width: 100%;
    max-height: 100%;
}

/* ===== INTRO SECTION ===== */
.intro-text {
    font-size: var(--text-body);
    font-weight: 700;
    line-height: 1.35;
    /* Override logo-left defaults for block text */
    display: block;
    height: auto;
    align-items: initial;
}

.intro-text a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: inherit;
}

.intro-text p {
    margin-bottom: 0.75em;
}

/* ===== CTA BUTTONS ===== */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    font-size: var(--text-body);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.85;
}

/* ===== STICKY SIGN UP (left side) ===== */
.signup-sticky-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 80;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.signup-sticky-wrapper.is-visible {
    opacity: 1;
}

.signup-sticky {
    position: sticky;
    top: calc(100vh - 120px);
    padding: 0 24px 24px;
    pointer-events: auto;
    width: fit-content;
}

/* ===== SIGN UP ELLIPSE ===== */
.signup-ellipse {
    width: 190px;
    height: 199px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: var(--text-heading);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.signup-ellipse:hover {
    transform: scale(1.05);
}

/* Horizontal oval Sign Up (left sticky) */
.signup-oval {
    width: 223px;
    height: 89px;
    border-radius: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: var(--text-heading);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.signup-oval:hover {
    transform: scale(1.05);
}

/* ===== CONTENT PAGE ===== */
.content-page {
    padding: 24px;
}

.content-page .blocks-content {
    max-width: 720px;
    font-size: var(--text-body);
    line-height: 1.4;
}

.content-page .blocks-content p {
    margin-bottom: 1em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .logo-bar {
        height: 70px;
    }

    .logo-left {
        padding-left: 16px;
    }

    .logo-line {
        margin: 0 16px;
    }

    .section-header {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
    }

    .section-header .logo-left,
    .section-header-right {
        width: 100%;
    }

    .section-header-right {
        padding: 8px 16px 16px;
    }

    .nav-menu {
        width: 100%;
    }

    .nav-menu-item {
        font-size: 32px;
    }

    .intro-text {
        font-size: 18px;
    }

    .signup-ellipse {
        width: 120px;
        height: 126px;
        font-size: 32px;
    }

    .signup-oval {
        width: 150px;
        height: 60px;
        font-size: 32px;
    }

    .preview-item-label {
        font-size: 18px;
    }
}

/* ===== BLOCKS CONTENT ===== */
.blocks-content h1 { font-size: var(--text-heading); font-weight: 700; margin-bottom: 0.5em; }
.blocks-content h2 { font-size: var(--text-heading); font-weight: 700; margin-bottom: 0.5em; }
.blocks-content h3 { font-size: var(--text-body); font-weight: 700; margin-bottom: 0.5em; }
.blocks-content p { margin-bottom: 0.75em; }
.blocks-content img { width: 100%; max-width: 100%; height: auto; }
.blocks-content a { text-decoration: underline; }

.blocks-content figure + h2 {
    /* Tailwind @apply isn't processed in a plain CSS file. */
    margin-top: 1rem; /* mt-4 */
}
