/*
 * Base Styles - Reset, Typography, and Global Styles
 * @package Soeteck
 */

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

* {
    margin: 0;
    padding: 0;
}

:focus,
:focus-visible {
    outline: none;
    box-shadow: none;
}

:root {
    --soeteck-primary: #1a85e5;
    --soeteck-primary-dark: #0067c5;
    --soeteck-primary-soft: #e8f3ff;
    --soeteck-navy: #0b1f3a;
    --soeteck-dark: #202020;
    --soeteck-dark-elevated: #252525;
    --soeteck-text: #111827;
    --soeteck-text-soft: #374151;
    --soeteck-muted: #6b7280;
    --soeteck-muted-light: #9ca3af;
    --soeteck-border: #d7dce3;
    --soeteck-border-soft: #e5e7eb;
    --soeteck-surface: #f5f7fa;
    --soeteck-surface-muted: #eef2f7;
    --soeteck-white: #ffffff;
    --soeteck-footer-line: rgba(255, 255, 255, 0.72);
    --soeteck-font-brand: 'Sora', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
    --soeteck-font-body: var(--soeteck-font-brand);
    --soeteck-font-heading: var(--soeteck-font-brand);
    --soeteck-font-ui: var(--soeteck-font-brand);
    --soeteck-font-technical: 'Roboto Flex', var(--soeteck-font-brand);
    --soeteck-font-family: var(--soeteck-font-body);
    --soeteck-text-xs: 0.75rem;
    --soeteck-text-sm: 0.875rem;
    --soeteck-text-md: 1rem;
    --soeteck-text-lg: 1.125rem;
    --soeteck-text-xl: 1.25rem;
    --soeteck-heading-sm: clamp(1.5rem, 2vw, 1.875rem);
    --soeteck-heading-md: clamp(2rem, 3vw, 2.5rem);
    --soeteck-heading-lg: clamp(2.5rem, 4vw, 3.5rem);
    --soeteck-heading-xl: clamp(3rem, 5vw, 4.5rem);
    --soeteck-weight-regular: 400;
    --soeteck-weight-medium: 500;
    --soeteck-weight-semibold: 600;
    --soeteck-weight-bold: 700;
    --soeteck-container: 1200px;
    --soeteck-container-wide: 1504px;
    --soeteck-content: 960px;
    --soeteck-gutter: 20px;
    --soeteck-section-y: clamp(64px, 7vw, 112px);
    --soeteck-section-y-sm: clamp(40px, 5vw, 72px);
    --soeteck-card-gap: clamp(20px, 2.4vw, 32px);
    --soeteck-radius-sm: 4px;
    --soeteck-radius: 8px;
    --soeteck-radius-lg: 14px;
    --soeteck-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --soeteck-shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soeteck-transition-fast: 180ms ease;
    --soeteck-transition-medium: 240ms ease-out;
    --soeteck-accordion-transition: max-height 320ms ease-in-out;
    --soeteck-media-bg: #f3f5f8;
}

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

body {
    line-height: 1.62;
    font-family: var(--soeteck-font-body);
    font-size: var(--soeteck-text-md);
    color: var(--soeteck-text);
    background-color: #fff;
}

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

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

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

a:hover {
    color: var(--soeteck-primary-dark);
}

ul, ol {
    list-style-position: inside;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--soeteck-font-heading);
    font-weight: var(--soeteck-weight-bold);
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--soeteck-text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1em;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

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

.site-main {
    min-height: 60vh;
}

.entry-content,
.page-content,
.post-content,
.page-description {
    color: var(--soeteck-text);
}

.entry-content > * + *,
.page-content > * + * {
    margin-top: 1rem;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
    padding-left: 1.4rem;
    list-style-position: outside;
}

.entry-content li + li,
.page-content li + li {
    margin-top: 0.4rem;
}

.entry-content a,
.page-content a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.entry-content blockquote,
.page-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--soeteck-primary);
    background: var(--soeteck-surface);
    color: var(--soeteck-muted);
}

.wp-caption,
.wp-block-image,
.wp-block-table {
    margin-bottom: 1.5rem;
}

.wp-block-table {
    overflow-x: auto;
}

.wp-block-table table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td,
.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--soeteck-border);
    text-align: left;
}

.wp-block-table th,
.entry-content th {
    background: var(--soeteck-surface);
    font-weight: 600;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.3125rem;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}
