/* Skills Team - Editorial Design */

:root {
    --color-bg:         #13111a;
    --color-surface:    #1c1a27;
    --color-primary:    #e8555a;
    --color-secondary:  #262335;
    --color-text:       #e8e4df;
    --color-text-muted: #918d8a;
    --color-accent:     #7eb8c9;
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --max-width: 800px;
    --spacing: 2rem;
}

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

/* Base */
html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

code {
    font-family: var(--font-mono);
    background: var(--color-secondary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-muted);
    border-left: 3px solid var(--color-primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Hero */
.hero {
    text-align: left;
    padding: 3rem var(--spacing) 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    border-bottom: 1px solid var(--color-secondary);
}

.hero-compact {
    padding: 3rem var(--spacing) 1.5rem;
}

.hero h1 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.hero-compact h1 {
    font-size: 2.75rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.hero-intro {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-intro p:last-child {
    margin-bottom: 0;
}

/* Sections */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing);
}

.section h2 {
    color: var(--color-text);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* Front Door */
.front-door {
    max-width: var(--max-width);
}

.front-door-lead {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.75;
}

/* Blog Styles — Editorial List */
.hero-small {
    padding: 2rem var(--spacing) 1.5rem;
}

.hero-small h1 {
    font-size: 2rem;
}

.blog-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.blog-card {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--color-secondary);
}

.blog-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-card h2,
.blog-card h3 {
    border: none;
    padding: 0;
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
}

.blog-card h2 a,
.blog-card h3 a {
    color: var(--color-text);
    transition: color 0.15s;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus,
.blog-card h3 a:hover,
.blog-card h3 a:focus {
    color: var(--color-accent);
    text-decoration: none;
}

.blog-card .blog-meta {
    margin-bottom: 0.5rem;
}

.blog-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Blog Post — Hero Image */
.blog-hero-img {
    display: block;
    width: 100%;
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding: 0 var(--spacing);
}

.blog-hero-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--color-secondary);
}

/* Blog Post — Article Reading */
.blog-post {
    max-width: var(--max-width);
}

.blog-post h2 {
    margin-top: 2.5rem;
}

.blog-post pre {
    background: var(--color-surface);
    border: 1px solid var(--color-secondary);
    border-radius: 10px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.blog-post code {
    background: none;
    padding: 0;
}

.blog-post p {
    line-height: 1.75;
}

.blog-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}

.blog-post th,
.blog-post td {
    border: 1px solid var(--color-secondary);
    padding: 0.75rem;
    text-align: left;
}

.blog-post th {
    background: var(--color-surface);
    font-weight: 600;
    color: var(--color-text);
}

.blog-post hr {
    border: none;
    border-top: 1px solid var(--color-secondary);
    margin: 3rem 0;
}

.blog-post blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text-muted);
    border-left: 3px solid var(--color-primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}

/* Buttons */
.button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.button:hover, .button:focus {
    background: #c73e54;
    text-decoration: none;
    transform: translateY(-1px);
}

.button-secondary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.button-secondary:hover, .button-secondary:focus {
    background: var(--color-primary);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem var(--spacing);
    border-top: 1px solid var(--color-secondary);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--color-text-muted);
}

footer a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing: 1.25rem;
    }

    html {
        font-size: 16px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-compact h1 { font-size: 2rem; }
    .tagline { font-size: 1.1rem; }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Accessibility: High contrast */
@media (prefers-contrast: high) {
    :root {
        --color-bg: #000;
        --color-surface: #111;
        --color-text: #fff;
        --color-text-muted: #ccc;
    }

    .blog-card {
        border-bottom: 2px solid var(--color-text);
    }
}
