/* ========================================
   Root Variables
   ======================================== */
:root {
    /* Brand Colors */
    --color-brand: #1a73e8;
    --color-brand-hover: #1557b0;
    
    /* Accent Colors */
    --color-green: #34a853;
    --color-yellow: #fbbc04;
    --color-red: #ea4335;
    
    /* Grey Scale */
    --color-grey-50: #f8f9fa;
    --color-grey-100: #f1f3f4;
    --color-grey-200: #e8eaed;
    --color-grey-300: #dadce0;
    --color-grey-400: #bdc1c6;
    --color-grey-500: #9aa0a6;
    --color-grey-600: #80868b;
    --color-grey-700: #5f6368;
    --color-grey-800: #3c4043;
    --color-grey-900: #202124;
    
    /* Background & Surface */
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-surface-alt: var(--color-grey-50);
    
    /* Text Colors */
    --color-text-primary: var(--color-grey-900);
    --color-text-secondary: var(--color-grey-700);
    --color-text-muted: var(--color-grey-600);
    --color-text-light: var(--color-grey-500);
    
    /* Border Colors */
    --color-border: var(--color-grey-200);
    --color-border-light: var(--color-grey-100);
    
    /* Typography */
    --font-heading: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    
    /* Layout */
    --container-max-width: 1000px;
    --container-padding: 16px;
    --header-height: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-md: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    --shadow-lg: 0 4px 6px -1px rgba(60, 64, 67, 0.1), 0 10px 15px -3px rgba(60, 64, 67, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ========================================
   CSS Reset & Base
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-background);
}

/* ========================================
   Typography Base
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-3xl);
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-xl);
}

h4 {
    font-size: var(--text-lg);
}

h5, h6 {
    font-size: var(--text-base);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: var(--space-4);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    background-color: var(--color-grey-100);
    border-radius: var(--radius-sm);
    text-decoration: none;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
}

/* ========================================
   Layout
   ======================================== */
.page-main {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Utility: Horizontal Rule
   ======================================== */
hr {
    display: block;
    height: 1px;
    border: 0;
    background-color: var(--color-border);
    margin: var(--space-6) 0;
}

/* ========================================
   Utility: Selection
   ======================================== */
::selection {
    background-color: var(--color-brand);
    color: #fff;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-grey-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-grey-400);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-grey-300) transparent;
}

/* ========================================
   Responsive: Tablet
   ======================================== */
@media (min-width: 768px) {
    :root {
        --container-padding: 24px;
    }
}

/* ========================================
   Responsive: Desktop
   ======================================== */
@media (min-width: 1024px) {
    :root {
        --container-padding: 32px;
    }
}

/* ========================================
   Responsive: Mobile Adjustments
   ======================================== */
@media (max-width: 767px) {
    :root {
        --text-3xl: 26px;
        --text-2xl: 22px;
        --text-xl: 18px;
    }
    
    .page-main {
        padding: 0 var(--space-5);
    }
}

/*********** Ghost Default ***********/
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: auto calc(50% - 50vw);
    transform: translateX(calc(50vw - 50%))
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw
}

aside.gh-post-upgrade-cta {
    display: none;
}