/**
 * Tobalt Starter - Main Stylesheet
 *
 * Base styles and layout. Component styles loaded separately.
 *
 * @package Tobalt_Starter
 * @version 1.2.0
 * @author Tobalt — https://tobalt.lt
 */

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family, 'Sora', sans-serif);
    font-size: var(--font-size-base, 1rem);
    line-height: var(--line-height-normal, 1.5);
    color: var(--color-text, #62626a);
    background: var(--color-white, #fff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    margin-top: var(--header-height, 80px);
    padding: var(--space-xl, 2rem) 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold, 700);
    line-height: var(--line-height-tight, 1.25);
    color: var(--color-primary, #002855);
    margin: 0 0 var(--space-md, 1rem);
}

h1 { font-size: var(--font-size-4xl, 2.25rem); }
h2 { font-size: var(--font-size-3xl, 1.875rem); }
h3 { font-size: var(--font-size-2xl, 1.5rem); }
h4 { font-size: var(--font-size-xl, 1.25rem); }
h5 { font-size: var(--font-size-lg, 1.125rem); }
h6 { font-size: var(--font-size-base, 1rem); }

p {
    margin: 0 0 var(--space-md, 1rem);
}

a {
    color: var(--color-accent, #62a87c);
    text-decoration: none;
    transition: color var(--transition-fast, 150ms) ease;
}

a:hover {
    color: var(--color-primary, #002855);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    margin: 0 0 var(--space-md, 1rem);
    padding-left: var(--space-lg, 1.5rem);
}

/* Forms */
input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 var(--space-md, 1rem);
}

/* Content containers */
.container {
    width: 100%;
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 1rem);
}

/* WordPress specific */
.alignleft {
    float: left;
    margin: 0 var(--space-md, 1rem) var(--space-md, 1rem) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--space-md, 1rem) var(--space-md, 1rem);
}

.aligncenter {
    display: block;
    margin: 0 auto var(--space-md, 1rem);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text-muted, #888);
    margin-top: var(--space-xs, 0.5rem);
}

/* Entry content */
.entry-content {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 1rem);
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
