/*
Theme Name: rusnet-su
Theme URI: https://rusnet.su
Author: АНО Руснэт
Author URI: https://rusnet.su
Description: Мультитема разработанная "АНО Руснэт"
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rusnet-su
Tags: custom, blank, starter-theme
*/

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

/* === Base === */
html {
    font-size: 100%;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1em;
}

a {
    color: #0073aa;
    text-decoration: none;
}

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

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

.site-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* === Header === */
.site-header {
    background-color: #23282d;
    color: #fff;
    padding: 1rem;
}

.site-header a {
    color: #fff;
}

/* === Footer === */
.site-footer {
    background-color: #23282d;
    color: #ccc;
    padding: 1rem;
    text-align: center;
}

/* === Navigation === */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.main-navigation a {
    color: #fff;
    padding: 0.5rem 1rem;
}

/* === Posts === */
.post,
.page {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.entry-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 1.7;
}

/* === Sidebar === */
.widget-area {
    padding: 1rem;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5rem;
}

/* === Comments === */
.comments-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e4e7;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* === Forms === */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button,
input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover,
input[type="submit"]:hover {
    background-color: #005177;
}

/* === Accessibility === */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* === Alignments === */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* === Media === */
img {
    max-width: 100%;
    height: auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    padding: 0.5em 0;
}
