/* ========================================
   Brrrrr Page Styles (Super Clear Style)
   ======================================== */

/* CSS Reset & Variables */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --color-bg: #F5F5F5;
    --color-white: #ffffff;
    --color-text: rgba(0, 0, 0, 0.6);
    --color-text-strong: rgba(0, 0, 0, 0.9);
    --color-text-muted: rgba(0, 0, 0, 0.45);
    --color-border-light: rgba(0, 0, 0, 0.1);
    --color-bg-alt: rgba(0, 0, 0, 0.02);
    --color-primary: #ff4500;
    
    /* Spacing */
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    
    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
}

/* Base Styles */
html {
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a:hover {
    opacity: 0.7;
}

strong {
    font-weight: 500;
    color: var(--color-text-strong);
}

em {
    font-style: italic;
}

/* Article Layout */
.article {
    max-width: 888px;
    margin: 0 auto;
    padding: var(--space-48) var(--space-24) var(--space-16);
    padding-left: 80px;
}

.article.hero {
    padding-top: 120px;
    padding-bottom: var(--space-32);
}

/* Hero */
.hero-nav {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-32);
}

.hero-nav a {
    color: var(--color-text-strong);
    text-decoration: none;
    border-bottom: none;
    transition: opacity 0.15s ease;
}

.hero-nav a:hover {
    opacity: 0.6;
}

.hero-content {
    display: flex;
    gap: var(--space-16);
    align-items: flex-start;
}

.hero-logo {
    flex-shrink: 0;
}

.hero-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-strong);
    margin-bottom: var(--space-8);
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
}

/* Section Header */
.section-header {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-24);
    overflow: visible;
}

.section-number {
    position: absolute;
    left: -56px;
    width: 40px;
    text-align: right;
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    flex-shrink: 0;
}

/* Horizontal line after section title */
.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-border-light);
    margin-left: var(--space-12);
}

/* On smaller screens, show numbers inline */
@media (max-width: 800px) {
    .section-number {
        position: static;
        left: auto;
        width: auto;
        text-align: left;
        margin-right: var(--space-8);
    }
    
    .article {
        padding-left: var(--space-24);
    }
}

/* Prose */
.prose {
    margin-bottom: var(--space-16);
}

.prose p {
    line-height: 1.6;
}

.prose:last-child {
    margin-bottom: 0;
}

/* App Card */
.brrrrr-appcard {
    border: 1px solid var(--color-border-light);
    padding: var(--space-24);
    background: var(--color-white);
    border-radius: 8px;
}

.brrrrr-appcard__top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: var(--space-16);
}

.brrrrr-appcard__icon {
    width: 56px;
    height: 56px;
    display: block;
    flex-shrink: 0;
    border-radius: 12px;
}

.brrrrr-appcard__name {
    color: var(--color-text-strong);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
}

.brrrrr-appcard__tagline {
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.53;
}

.brrrrr-appcard__desc {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--space-24);
}

.brrrrr-appcard__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding-top: var(--space-16);
    border-top: 1px solid var(--color-border-light);
    margin-bottom: var(--space-24);
}

.brrrrr-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brrrrr-stat__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.brrrrr-stat__value {
    font-size: 13px;
    line-height: 1.53;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brrrrr-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border-light);
    background: transparent;
    color: var(--color-text-strong);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.brrrrr-cta:last-of-type {
    margin-bottom: 0;
}

.brrrrr-cta:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background-color: var(--color-bg-alt);
    opacity: 1;
}

.brrrrr-appcard__fineprint {
    margin-top: var(--space-16);
    font-size: 12px;
    line-height: 1.53;
    color: var(--color-text-muted);
}

/* Modes grid - 2x1 + 1x1 table */
.brrrrr-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background-color: var(--color-white);
    overflow: hidden;
    margin-bottom: var(--space-16);
}

@media (max-width: 767px) {
    .brrrrr-modes {
        grid-template-columns: 1fr;
    }
}

.brrrrr-mode {
    padding: var(--space-16);
    background: transparent;
    border-right: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.brrrrr-mode:nth-child(2) {
    border-right: none;
}

.brrrrr-mode--full {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
}

@media (max-width: 767px) {
    .brrrrr-mode {
        border-right: none;
    }
    
    .brrrrr-mode--full {
        grid-column: auto;
    }
}

.brrrrr-mode__title {
    color: var(--color-text-strong);
    font-weight: 500;
    margin-bottom: 6px;
}

.brrrrr-mode__copy {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* Benefits grid - 2x2 table */
.brrrrr-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background-color: var(--color-white);
    overflow: hidden;
}

@media (max-width: 767px) {
    .brrrrr-benefits {
        grid-template-columns: 1fr;
    }
}

.brrrrr-benefit {
    padding: var(--space-16);
    background: transparent;
    border-right: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.brrrrr-benefit:nth-child(2n) {
    border-right: none;
}

.brrrrr-benefit:nth-child(n+3) {
    border-bottom: none;
}

@media (max-width: 767px) {
    .brrrrr-benefit {
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
    }
    
    .brrrrr-benefit:last-child {
        border-bottom: none;
    }
}

.brrrrr-benefit__title {
    color: var(--color-text-strong);
    font-weight: 500;
    margin-bottom: 6px;
}

.brrrrr-benefit__copy {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* Citations */
.brrrrr-citations {
    margin-top: var(--space-24);
    padding-left: 18px;
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.53;
}

.brrrrr-citations li {
    margin-bottom: 10px;
}

.brrrrr-citations a {
    color: var(--color-primary);
    text-decoration: none;
}

.brrrrr-citations a:hover {
    text-decoration: underline;
    opacity: 1;
}

.brrrrr-cite-meta {
    display: block;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Gallery */
.brrrrr-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 767px) {
    .brrrrr-gallery {
        grid-template-columns: 1fr;
    }
}

.brrrrr-figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background: var(--color-bg-alt);
}

.brrrrr-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.brrrrr-figure figcaption {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.53;
    color: var(--color-text-muted);
}

/* Contact Support Banner (Featured Section) */
.brrrrr-support-banner {
    background-color: var(--color-white);
    padding: var(--space-48) var(--space-24);
    margin: 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.brrrrr-support-banner__inner {
    max-width: 888px;
    margin: 0 auto;
    text-align: center;
}

.brrrrr-support-banner__title {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--space-16) 0;
}

.brrrrr-support-banner__subtitle {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--space-16);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.brrrrr-support-banner__email {
    margin: 0;
}

.brrrrr-support-banner__email a {
    display: inline-block;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text-strong);
    text-decoration: none;
    border-bottom: 2px solid var(--color-border-light);
    padding-bottom: 2px;
    transition: border-color 0.15s ease;
}

.brrrrr-support-banner__email a:hover {
    border-bottom-color: var(--color-text-strong);
    opacity: 1;
}

@media (max-width: 600px) {
    .brrrrr-support-banner {
        padding: var(--space-32) var(--space-16);
    }
}

/* Footer */
.footer {
    padding-top: var(--space-24);
}

.footer-divider {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: var(--space-16);
}

.footer-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
}

.footer-meta a {
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.footer-meta a:hover {
    border-bottom-color: var(--color-text-muted);
    opacity: 1;
}

/* Article Navigation (Dropbox Paper style) */
.article-nav {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.article-nav.visible {
    opacity: 1;
}

.article-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s ease;
}

.article-nav-item:hover {
    color: var(--color-text-strong);
    opacity: 1;
}

.article-nav-item.active {
    color: var(--color-text-strong);
}

.article-nav-number {
    font-weight: 500;
    min-width: 18px;
}

.article-nav-title {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.article-nav-item:hover .article-nav-title,
.article-nav-item.active .article-nav-title {
    opacity: 1;
    transform: translateX(0);
}

/* Hide nav on smaller screens */
@media (max-width: 1100px) {
    .article-nav {
        display: none;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .article {
        padding: var(--space-32) var(--space-16) var(--space-12);
    }
    
    .article.hero {
        padding-top: 80px;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .brrrrr-appcard__stats {
        grid-template-columns: 1fr;
    }
}
