/* ========================================
   GRIFFL TYPOLOGY-INSPIRED STYLES
   Minimalist editorial design with Griffl branding
   ======================================== */

/* CSS Variables - Griffl Brand Colors */
:root {
    --primary: #8c2c8c;        /* Header/Primary brand color */
    --accent: #8d1491;         /* Links, hover states, highlights */
    --text-primary: #333333;   /* Main text */
    --text-secondary: #444444; /* Secondary text */
    --text-meta: #888888;      /* Metadata, captions */
    --footer-bg: #f8f8f8;      /* Footer background */
    --footer-text: #aaaaaa;    /* Footer text */
    --white: #ffffff;
    --light-gray: #f5f5f5;

    /* Beta badge colors */
    --beta-bg: #f59e0b;
    --beta-text: #ffffff;

    /* Typography Scale */
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Typographic Scale (Typology-inspired) */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 4rem;      /* 64px */

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Spacing */
    --max-width: 800px;
    --container-padding: 2rem;
    --section-spacing: 4rem;
    --paragraph-spacing: 1.5rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); font-weight: 900; }
h2 { font-size: var(--text-4xl); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 700; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

p {
    margin-bottom: var(--paragraph-spacing);
    line-height: var(--leading-relaxed);
}

.lead-paragraph {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Lists */
ul, ol {
    margin-bottom: var(--paragraph-spacing);
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: var(--leading-relaxed);
}

.process-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.process-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.process-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
}

.platform-list {
    list-style: none;
    padding-left: 0;
}

.platform-list li {
    padding: 0.5rem 0;
    font-size: var(--text-lg);
}

/* Pull Quote */
.pull-quote {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-style: italic;
    line-height: var(--leading-snug);
    color: var(--accent);
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    border-left: 4px solid var(--accent);
    background: var(--light-gray);
}

.pull-quote p {
    margin: 0;
}

/* Layout Structure */
.site-header {
    position: sticky;
    top: 0;
    background: var(--primary);
    color: var(--white);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: 900;
}

.site-title a {
    color: var(--white);
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: none;
    opacity: 0.9;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover {
    text-decoration: none;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Main Content */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Hero Section */
.hero-section {
    padding: var(--section-spacing) 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: var(--section-spacing);
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: var(--leading-snug);
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-link, .secondary-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.primary-link {
    background: var(--accent);
    color: var(--white);
}

.primary-link:hover {
    background: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.secondary-link {
    color: var(--accent);
    border: 2px solid var(--accent);
}

.secondary-link:hover {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
}

/* Article Content */
.main-article {
    margin-bottom: var(--section-spacing);
}

.article-content {
    line-height: var(--leading-relaxed);
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light-gray);
    border-radius: 0.5rem;
    margin: 3rem 0;
}

.cta-section h3 {
    margin-top: 0;
    color: var(--primary);
}

.cta-link {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0.375rem;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.cta-link:hover {
    background: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    font-size: var(--text-sm);
    margin: 0;
}

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

.footer-nav a {
    color: var(--footer-text);
    font-size: var(--text-sm);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-spacing: 2.5rem;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-xl);
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .primary-link, .secondary-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-navigation ul {
        gap: 1rem;
    }

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

    .pull-quote {
        font-size: var(--text-xl);
        padding: 1.5rem;
        margin: 2rem 0;
    }

    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
}

/* Beta Badge Styling */
.beta-badge {
    display: inline-block;
    background: var(--beta-bg);
    color: var(--beta-text);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: super;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-family: var(--font-body);
}

/* Logo with beta badge container */
.logo-with-beta {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
}

/* Responsive beta badge */
@media (max-width: 768px) {
    .beta-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        margin-left: 0.3rem;
    }
}