/*
Theme Name: dandillphotography.com
Author: Дэн Дилл
Version: 1.1
Description: Контентный информационно-образовательный сайт о фотографии и визуальном искусстве с акцентом на практику съёмки, композицию, визуальную насмотренность и базовую обработку фото-контента.
Text Domain: dandill
*/

/* ============================================
   БАЗА
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #FDF8F2;
    color: #2A2A2A;
    font-family: 'Spectral', 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #2A2A2A;
    margin: 0 0 0.6em;
    line-height: 1.25;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1em;
}

a {
    color: #C47A44;
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 122, 68, 0.25);
    transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover {
    border-bottom-color: #C47A44;
}

img {
    max-width: 100%;
    height: auto;
}

.site-main img {
    display: block;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 3px solid #C47A44;
    color: #5A5A5A;
    font-style: italic;
    background: rgba(230, 213, 184, 0.25);
}

code, pre {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    background: rgba(230, 213, 184, 0.35);
    padding: 0.15em 0.4em;
    border-radius: 2px;
    font-size: 0.9em;
}

pre {
    padding: 1em;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #E6D5B8;
}

th, td {
    padding: 0.7em 0.9em;
    border: 1px solid #E6D5B8;
    text-align: left;
}

th {
    background: rgba(230, 213, 184, 0.4);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid #E6D5B8;
    margin: 2em 0;
}

::selection {
    background: rgba(196, 122, 68, 0.25);
    color: #2A2A2A;
}

/* ============================================
   СЛУЖЕБНОЕ
============================================ */
.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================
   ШАПКА
============================================ */
.site-header {
    background: #FDF8F2;
    border-bottom: 1px solid #E6D5B8;
    padding: 22px 0;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.brand-logo-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid #E6D5B8;
    background: #fff;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.brand-logo-wrap svg {
    width: 34px;
    height: 34px;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2A2A2A;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.3;
}

.brand-name a {
    color: inherit;
    border-bottom: none;
}

.brand-desc {
    color: #5A5A5A;
    font-size: 0.85rem;
    margin: 4px 0 0;
    line-height: 1.4;
    max-width: 520px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.primary-nav {
    flex: 0 0 auto;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.primary-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #2A2A2A;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    letter-spacing: 0.02em;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    border-bottom-color: #C47A44;
    color: #C47A44;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #E6D5B8;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #2A2A2A;
}

/* ============================================
   ОСНОВНОЙ КОНТЕНТ
============================================ */
.site-main {
    padding: 50px 0 80px;
    min-height: 60vh;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
}

.layout-wide {
    max-width: 85%;
    margin: 0 auto;
}

.layout-narrow {
    max-width: 760px;
    margin: 0 auto;
}

/* ============================================
   ХЛЕБНЫЕ КРОШКИ
============================================ */
.breadcrumbs {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #5A5A5A;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.breadcrumbs a {
    color: #5A5A5A;
    border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
    color: #C47A44;
    border-bottom-color: #C47A44;
}

.breadcrumbs-sep {
    margin: 0 8px;
    color: #E6D5B8;
}

/* ============================================
   КАРТОЧКИ ЗАПИСЕЙ
============================================ */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E6D5B8;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(42, 42, 42, 0.08);
    transform: translateY(-2px);
}

.card-row {
    flex-direction: row;
}

.card-thumb-wrap {
    flex: 0 0 100%;
    overflow: hidden;
    background: rgba(230, 213, 184, 0.3);
}

.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
}

.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-bottom: none;
}

.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card:not(.card-row) .card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.card:not(.card-row) .card-thumb-wrap a {
    display: block;
    border-bottom: none;
}

.card-body {
    flex: 1;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
}

.card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #5A5A5A;
    letter-spacing: 0.03em;
}

.card-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5A5A5A;
    border-bottom: none;
}

.card-cat:hover {
    color: #C47A44;
}

.card-cat svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 0.01em;
}

.card-title a {
    color: #2A2A2A;
    border-bottom: none;
}

.card-title a:hover {
    color: #C47A44;
}

.card-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #5A5A5A;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.card-excerpt {
    color: #3a3a3a;
    flex: 1;
    margin-bottom: 18px;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #2A2A2A;
    padding: 10px 22px;
    border: 1px solid #C47A44;
    background: transparent;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
}

.card-more:hover {
    background: rgba(196, 122, 68, 0.15);
    border-bottom: 1px solid #C47A44;
}

/* ============================================
   ОДИНОЧНАЯ ЗАПИСЬ / СТРАНИЦА
============================================ */
.entry-header {
    margin-bottom: 36px;
    padding-bottom: 26px;
    border-bottom: 1px solid #E6D5B8;
}

.entry-title {
    font-size: 2.2rem;
    margin: 10px 0 14px;
}

.entry-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #5A5A5A;
    letter-spacing: 0.03em;
}

.entry-meta a {
    color: #5A5A5A;
    border-bottom: 1px solid transparent;
}

.entry-meta a:hover {
    color: #C47A44;
    border-bottom-color: #C47A44;
}

.entry-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #5A5A5A;
    letter-spacing: 0.03em;
}

.entry-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5A5A5A;
    border-bottom: none;
}

.entry-cat svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.entry-thumbnail {
    margin: 0 0 34px;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.75;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 1.6em;
}

.entry-content img {
    display: block;
    height: auto;
    margin: 1.4em 0;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid #E6D5B8;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #5A5A5A;
}

.entry-tags a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 3px 10px;
    border: 1px solid #E6D5B8;
    color: #5A5A5A;
    font-size: 0.82rem;
}

.entry-tags a:hover {
    border-color: #C47A44;
    color: #C47A44;
}

/* ============================================
   САЙДБАР
============================================ */
.sidebar {
    font-size: 0.95rem;
}

.widget {
    margin-bottom: 38px;
}

.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2A2A2A;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6D5B8;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(230, 213, 184, 0.6);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #2A2A2A;
    border-bottom: none;
}

.widget a:hover {
    color: #C47A44;
}

/* ============================================
   ПАГИНАЦИЯ
============================================ */
.pagination {
    margin: 60px 0 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    color: #2A2A2A;
    border: 1px solid #E6D5B8;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    border-color: #C47A44;
    color: #C47A44;
}

.pagination .page-numbers.current {
    background: rgba(196, 122, 68, 0.15);
    border-color: #C47A44;
    color: #C47A44;
}

/* ============================================
   ПОИСК
============================================ */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 22px 0;
}

.search-field {
    flex: 1;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border: 1px solid #E6D5B8;
    background: #fff;
    color: #2A2A2A;
    outline: none;
}

.search-field:focus {
    border-color: #C47A44;
}

.search-submit {
    padding: 10px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid #C47A44;
    color: #2A2A2A;
    cursor: pointer;
    letter-spacing: 0.04em;
}

.search-submit:hover {
    background: rgba(196, 122, 68, 0.15);
}

/* ============================================
   КОММЕНТАРИИ
============================================ */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E6D5B8;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.comment-body {
    padding: 18px 0;
    border-bottom: 1px dashed #E6D5B8;
}

.comment-author {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #2A2A2A;
}

.comment-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #5A5A5A;
    margin-bottom: 10px;
}

.comment-meta a {
    color: #5A5A5A;
    border-bottom: none;
}

.comment-respond {
    margin-top: 30px;
}

.comment-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #5A5A5A;
    margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid #E6D5B8;
    background: #fff;
    color: #2A2A2A;
    margin-bottom: 14px;
    outline: none;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #C47A44;
}

.form-submit .submit {
    padding: 10px 26px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid #C47A44;
    color: #2A2A2A;
    cursor: pointer;
    letter-spacing: 0.04em;
}

.form-submit .submit:hover {
    background: rgba(196, 122, 68, 0.15);
}

/* ============================================
   ГЛАВНАЯ
============================================ */
.hero-intro {
    padding: 40px 0 60px;
    text-align: center;
}

.hero-intro h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.hero-intro .hero-sub {
    max-width: 640px;
    margin: 0 auto;
    color: #5A5A5A;
    font-size: 1.1rem;
}

.feature-block {
    padding: 60px 0;
    border-top: 1px solid #E6D5B8;
}

.feature-block:first-of-type {
    border-top: none;
}

.feature-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C47A44;
    margin-bottom: 10px;
}

.feature-heading {
    font-size: 2rem;
    margin-bottom: 16px;
    max-width: 720px;
}

.feature-lead {
    color: #5A5A5A;
    font-size: 1.08rem;
    max-width: 760px;
    margin-bottom: 28px;
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 30px;
}

.feature-col {
    padding: 22px;
    border: 1px solid #E6D5B8;
    background: #fff;
}

.feature-col h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-col p {
    color: #5A5A5A;
    font-size: 0.96rem;
    margin: 0;
}

.feature-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 30px;
}

.feature-step {
    position: relative;
    padding: 26px 20px 22px;
    border-top: 2px solid #C47A44;
}

.feature-step-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: #C47A44;
    margin-bottom: 8px;
}

.feature-step h4 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.feature-step p {
    font-size: 0.92rem;
    color: #5A5A5A;
    margin: 0;
}

.feature-quote {
    margin-top: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #2A2A2A;
    max-width: 820px;
    letter-spacing: 0.01em;
    padding-left: 24px;
    border-left: 3px solid #C47A44;
}

.feature-quote-author {
    display: block;
    margin-top: 14px;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5A5A5A;
}

.latest-posts-block {
    padding: 60px 0;
    border-top: 1px solid #E6D5B8;
}

.latest-posts-block .posts-list {
    margin-top: 30px;
}

/* ============================================
   ПОДВАЛ
============================================ */
.site-footer {
    background: #2A2A2A;
    color: #D5CFC7;
    padding: 60px 0 28px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .widget-title {
    color: #FDF8F2;
    border-color: rgba(230, 213, 184, 0.25);
}

.footer-col a {
    color: #D5CFC7;
    border-bottom: none;
}

.footer-col a:hover {
    color: #C47A44;
}

.footer-col .widget li {
    border-bottom-color: rgba(230, 213, 184, 0.15);
}

.site-copy {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(213, 207, 199, 0.7);
    padding-top: 24px;
    border-top: 1px solid rgba(230, 213, 184, 0.15);
    letter-spacing: 0.04em;
}

/* ============================================
   404
============================================ */
.error-404 {
    text-align: center;
    padding: 40px 0;
}

.error-404 .error-big {
    font-family: 'Inter', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: #C47A44;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1;
}

.error-404 h1 {
    margin: 20px 0;
}

.error-404 .back-home {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 26px;
    border: 1px solid #C47A44;
    color: #2A2A2A;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.error-404 .back-home:hover {
    background: rgba(196, 122, 68, 0.15);
}

/* ============================================
   COOKIE БАННЕР
============================================ */
.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    background: #2A2A2A;
    color: #FDF8F2;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
    margin: 0;
    max-width: 900px;
}

.cookie-banner a {
    color: #E6D5B8;
    border-bottom: 1px solid rgba(230, 213, 184, 0.4);
}

.cookie-accept {
    flex: 0 0 auto;
    padding: 9px 22px;
    background: #C47A44;
    color: #FDF8F2;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.cookie-accept:hover {
    background: #b36d3a;
}

.cookie-banner.is-hidden {
    display: none;
}

/* ============================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   АДАПТИВНОСТЬ
============================================ */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .layout-wide {
        max-width: 100%;
    }

    .feature-columns {
        grid-template-columns: 1fr;
    }

    .feature-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .entry-title { font-size: 1.8rem; }
    .hero-intro h1 { font-size: 2.1rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    .wrap { padding: 0 18px; }

    .site-header {
        padding: 16px 0;
    }

    .site-header-inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    .brand-desc {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
    }

    .primary-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .primary-nav li {
        border-bottom: 1px solid #E6D5B8;
    }

    .primary-nav a {
        display: block;
        padding: 10px 0;
    }

    .site-main {
        padding: 30px 0 50px;
    }

    .card-row {
        flex-direction: column;
    }

    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-row .card-thumb-wrap a {
        position: static;
    }

    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .card-body {
        padding: 22px 20px;
    }

    .feature-steps {
        grid-template-columns: 1fr;
    }

    .feature-heading {
        font-size: 1.6rem;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-accept {
        width: 100%;
    }

    .error-404 .error-big { font-size: 4rem; }

    .posts-list { gap: 44px; }
}
