/*
Theme Name: dds_cyrielleboutaud.com
Author: Алиса Громова
Description: Независимое онлайн-издание о дизайне интерьеров, архитектурных направлениях и эстетике повседневности.
Version: 1.1
Text Domain: interieur
*/

:root {
    --ink: #23201c;
    --ink-soft: #5a544c;
    --paper: #f7f4ee;
    --paper-2: #efe9df;
    --line: #ddd4c6;
    --accent: #9a6a4a;
    --accent-deep: #6f4a32;
    --dark: #2b2723;
    --dark-soft: #3a352f;
    --white: #ffffff;
    --shadow: 0 6px 24px rgba(43, 39, 35, 0.08);
    --radius: 12px;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 17px;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.25;
    font-weight: 600;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

p { margin: 0 0 1em; }

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}
.brand-logo, .brand-logo-svg { flex: 0 0 auto; display: block; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.15rem;
    line-height: 1.2;
}
.brand-desc {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.35;
}

.main-nav { flex: 0 1 auto; }
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: var(--ink);
    font-size: 0.95rem;
    padding: 0.3rem 0;
    display: inline-block;
}
.main-nav a:hover { color: var(--accent-deep); text-decoration: none; }
.main-nav .current-menu-item > a { color: var(--accent-deep); border-bottom: 2px solid var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--ink);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--ink-soft);
    padding: 1rem 0;
}
.breadcrumbs a { color: var(--accent-deep); }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--line); }

/* ---------- Layout ---------- */
.site-main { padding: 1.5rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: start;
}
.layout-single {
    display: block;
}
.layout-single .content-area,
.layout-single .single-inner {
    width: 85%;
    margin-inline: auto;
}
.content-area { min-width: 0; }

.sidebar { min-width: 0; }

/* ---------- Sidebar widgets ---------- */
.widget {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.widget-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    margin: 0 0 1rem;
    color: var(--ink);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.5rem 0; border-bottom: 1px solid var(--paper-2); }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--accent-deep); }
.widget .post-date { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* ---------- Post cards ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--paper-2), var(--line));
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
}
.card-title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.card-title a { color: var(--ink); }
.card-meta { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.card-excerpt { color: var(--ink-soft); font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-weight: 600;
    color: var(--accent-deep);
    align-self: flex-start;
}

/* ---------- Single / Page content ---------- */
.entry-header { margin-bottom: 1.4rem; }
.entry-title { font-size: 2.1rem; margin: 0 0 0.6rem; }
.entry-meta { font-size: 0.85rem; color: var(--ink-soft); }
.entry-thumb { width: 100%; border-radius: var(--radius); margin-bottom: 1.6rem; display: block; }
.entry-content { font-size: 1.05rem; }
.entry-content img { border-radius: 8px; display: block; }
.entry-content h2 { margin-top: 1.8rem; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--paper-2);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-style: italic;
    color: var(--ink);
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
}
.entry-content th, .entry-content td {
    border: 1px solid var(--line);
    padding: 0.6rem 0.8rem;
    text-align: left;
}
.entry-content th { background: var(--paper-2); }

/* ---------- Front page ---------- */
.front-section { padding: 2.8rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section-head h2 { font-size: 2rem; margin: 0 0 0.6rem; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* hero */
.fs-hero {
    position: relative;
    color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 2rem;
}
.fs-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-hero-overlay {
    position: relative;
    background: linear-gradient(90deg, rgba(30,26,22,0.82), rgba(30,26,22,0.35));
    padding: 4rem 2.4rem;
    min-width: 0;
}
.fs-hero-overlay h1 { color: var(--white); font-size: 2.4rem; margin: 0 0 1rem; max-width: 620px; }
.fs-hero-overlay p { max-width: 560px; font-size: 1.1rem; margin: 0 0 1.6rem; }
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
}
.btn:hover { background: var(--accent-deep); text-decoration: none; color: var(--white); }

/* text + illustration */
.fs-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
    align-items: center;
}
.fs-split.reverse .fs-split-media { order: -1; }
.fs-split-text h2 { font-size: 1.9rem; margin: 0 0 1rem; }
.fs-split-text p { color: var(--ink-soft); }
.fs-split-media img, .fs-split-media svg {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    box-shadow: var(--shadow);
}

/* card grid rubrics */
.fs-rubrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.rubric {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    text-align: center;
}
.rubric-icon { width: 56px; height: 56px; margin: 0 auto 1rem; display: block; }
.rubric h3 { font-size: 1.2rem; margin: 0 0 0.6rem; }
.rubric p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* gallery mosaic */
.fs-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 1rem;
}
.fs-gallery figure { margin: 0; overflow: hidden; border-radius: 10px; }
.fs-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-gallery .tall { grid-row: span 2; }
.fs-gallery .wide { grid-column: span 2; }

/* latest posts wrapper */
.fs-latest { background: var(--paper-2); }
.fs-latest .front-more { text-align: center; margin-top: 2rem; }

/* CTA */
.fs-cta {
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius);
    padding: 3rem 2.4rem;
    text-align: center;
}
.fs-cta h2 { color: var(--white); font-size: 2rem; margin: 0 0 0.8rem; }
.fs-cta p { color: #d8d1c6; max-width: 560px; margin: 0 auto 1.6rem; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2.4rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.95rem;
}
.pagination a.page-numbers:hover { background: var(--paper-2); text-decoration: none; }
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ---------- Comments ---------- */
.comments-area { margin-top: 2.6rem; }
.comments-area h2, .comment-respond h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 1.4rem; }
.comment-body {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
}
.comment-author { font-weight: 600; }
.comment-meta { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: var(--white);
}
.comment-respond .submit,
.search-form button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

/* ---------- Search form ---------- */
.search-form {
    display: flex;
    gap: 0.6rem;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
}

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 2rem 0 3rem; }
.error-404 h1 { font-size: 4rem; margin: 0 0 0.5rem; color: var(--accent); }
.error-404 .search-form { max-width: 460px; margin: 1.6rem auto; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: #cfc8bd;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #cfc8bd;
}
.footer-col .widget-title {
    color: var(--white);
    border-bottom-color: var(--accent);
    font-size: 1.1rem;
}
.footer-col .widget a { color: #cfc8bd; }
.footer-col .widget a:hover { color: var(--white); }
.footer-col .widget li { border-bottom-color: rgba(255,255,255,0.08); }
.footer-col .widget .post-date { color: #a49c90; }
.footer-copy {
    text-align: center;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
    color: #a49c90;
}

/* ---------- Cookie banner ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--dark-soft);
    color: var(--white);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; max-width: 720px; }
.cookie-banner a { color: #e7c9b3; }
.cookie-accept {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}
.cookie-accept:hover { background: var(--accent-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2.4rem; }
    .fs-rubrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .header-inner { flex-direction: column; align-items: stretch; }
    .nav-toggle { display: inline-block; align-self: flex-start; margin-top: 0.4rem; }
    .main-nav { width: 100%; }
    .main-nav ul { flex-direction: column; gap: 0; display: none; }
    .main-nav.is-open ul { display: flex; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .layout-single .content-area,
    .layout-single .single-inner { width: 100%; }
    .fs-split { grid-template-columns: 1fr; }
    .fs-split.reverse .fs-split-media { order: 0; }
    .fs-rubrics { grid-template-columns: 1fr; }
    .fs-gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .fs-gallery .tall, .fs-gallery .wide { grid-row: auto; grid-column: auto; }
    .fs-hero-overlay { padding: 2.4rem 1.4rem; }
    .fs-hero-overlay h1 { font-size: 1.8rem; }
    .fs-cta { padding: 2rem 1.4rem; }
    .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
}
