/*
Theme Name: Simple Resume
Description: Минималистичная адаптивная тема для публикации резюме.
Version: 2.0
*/

:root {
    --content-width: 780px;
    --font-base: clamp(15px, 1.2vw + 11px, 18px);
    --font-h1:   clamp(1.6rem, 3.5vw, 2.2rem);
    --font-h2:   clamp(1.25rem, 2.6vw, 1.6rem);
    --font-h3:   clamp(1.05rem, 2vw, 1.25rem);
    --color-link: #0073aa;
    --color-text: #333;
    --color-muted: #666;
    --color-border: #eee;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: var(--font-base);
    line-height: 1.65;
    color: var(--color-text);
    max-width: var(--content-width);
    margin: 0 auto;
    padding: clamp(14px, 3vw, 30px);
    background: #fff;
}

/* Заголовок сайта */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.site-header .brand a {
    color: #111;
    text-decoration: none;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
}
.site-header .brand .tagline {
    color: var(--color-muted);
    font-size: 0.9em;
    margin: 0.2em 0 0;
}
.lang-switch {
    font-size: 0.85em;
    padding: 0.35em 0.75em;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
}
.lang-switch:hover { border-color: var(--color-link); color: var(--color-link); }

/* Хлебные крошки */
.breadcrumbs {
    font-size: 0.9em;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.5;
}
.breadcrumbs a { color: var(--color-link); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.35em; color: #ccc; }

/* Заголовки */
h1, h2, h3, h4 {
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
    color: #111;
}
h1 { font-size: var(--font-h1); margin-top: 0; }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }

p { margin: 0 0 1em; }

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Списки */
ul, ol { margin: 0 0 1em 1.4em; padding: 0; }
li { margin-bottom: 0.3em; }

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    font-size: 0.95em;
}
th, td {
    padding: 0.6em 0.8em;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
th { font-weight: 600; background: #f9f9f9; }
tr:last-child td { border-bottom: none; }

/* На мобильных таблицам разрешаем горизонтальный скролл */
@media (max-width: 560px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    th, td { white-space: nowrap; }
}

/* Изображения */
img { max-width: 100%; height: auto; display: block; margin: 1em 0; }

/* Цитаты */
blockquote {
    margin: 1em 0;
    padding: 0.3em 0 0.3em 1em;
    border-left: 3px solid var(--color-link);
    color: #555;
}

/* Главная страница: блок intro + список резюме */
.home-intro { margin-bottom: 2rem; }

.resume-list {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.resume-list h2 {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    margin: 0 0 0.75em;
    font-weight: 600;
}
.resume-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.resume-list li {
    margin: 0;
    padding: 0.55em 0;
    border-bottom: 1px solid var(--color-border);
}
.resume-list li:last-child { border-bottom: none; }
.resume-list li a {
    display: block;
    font-size: 1.05em;
    color: var(--color-text);
}
.resume-list li a:hover { color: var(--color-link); }

/* Футер */
.site-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85em;
    color: #999;
    text-align: center;
}