/*
Theme Name: gettingthewordswrong.com
Author: Анна Ковалева
Description: Контентный проект о продуктивности и личной организации, где планирование рассматривается как практический инструмент управления задачами, временем, привычками и вниманием.
Version: 1.1
Text Domain: gtww
*/

/* ========== Design tokens ========== */
:root {
    --bg: #F9F7F4;
    --bg-soft: #F2EFEA;
    --ink: #2C2A29;
    --ink-soft: #55504E;
    --muted: #8A8582;
    --line: #E6E1DA;
    --accent: #D96C6B;
    --accent-deep: #C15857;
    --sage: #9BBF8F;
    --sage-deep: #82A878;
    --paper: #FFFFFF;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(44,42,41,.04), 0 6px 22px rgba(44,42,41,.06);

    --font-display: "Helvetica Neue", "Arial Black", Impact, sans-serif;
    --font-body: "Georgia", "Iowan Old Style", "Palatino", serif;
    --font-mono: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
}

/* Chaos mode (dark) */
body.mode-chaos {
    --bg: #1A2530;
    --bg-soft: #233140;
    --ink: #F3ECE1;
    --ink-soft: #CFC7BB;
    --muted: #8FA1B3;
    --line: #33455A;
    --accent: #F08A3E;
    --accent-deep: #E37518;
    --sage: #7FAE95;
    --sage-deep: #5E997E;
    --paper: #22303D;
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 26px rgba(0,0,0,.3);
}

/* ========== Reset & base ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

p { margin: 0 0 1em; background: none; }

a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid rgba(217,108,107,.35); transition: color .18s, border-color .18s; }
a:hover { color: var(--ink); border-bottom-color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.2;
    margin: 1.6em 0 .6em;
    letter-spacing: -.01em;
}
h1 { font-size: 2.2rem; letter-spacing: -.02em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.1rem; }

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

/* Lists */
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.4em 0;
    padding: .6em 0 .6em 1.2em;
    font-style: italic;
    color: var(--ink-soft);
}

/* Code */
code, pre {
    font-family: var(--font-mono);
    font-size: .92em;
    background: var(--bg-soft);
    border-radius: 6px;
}
code { padding: 2px 6px; }
pre { padding: 14px 18px; overflow: auto; border: 1px solid var(--line); }

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.2em 0;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: .5em .75em;
    text-align: left;
}
th { background: var(--bg-soft); font-family: var(--font-display); font-weight: 600; }

/* ========== Layout ========== */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    display: block;
    padding: 40px 0 72px;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: start;
}
.layout-grid.no-aside { grid-template-columns: minmax(0, 85%); margin: 0 auto; justify-content: center; }
.front-area { width: 85%; margin: 0 auto; }

/* ========== Header ========== */
.site-top {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.top-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border: 0;
    color: var(--ink);
    flex: 1 1 auto;
    min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-logo, .brand-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}
.brand-mark {
    background: var(--accent);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.015em;
    line-height: 1.1;
    color: var(--ink);
    /* Длинное название из настроек — ограничим визуально, но не обрежем */
    display: block;
    max-width: 680px;
}
.brand-sub {
    display: block;
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--muted);
    margin-top: 6px;
    letter-spacing: .02em;
    max-width: 680px;
}
.brand-sub::before { content: "// "; color: var(--accent); }

.top-right { display: flex; align-items: center; gap: 18px; }

/* Theme toggle */
.mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--muted);
    user-select: none;
}
.mode-toggle input { display: none; }
.mode-toggle .track {
    width: 44px;
    height: 22px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    position: relative;
    transition: background .25s;
    cursor: pointer;
}
.mode-toggle .track::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform .25s;
}
.mode-toggle input:checked + .track::after { transform: translateX(22px); }
.mode-toggle .lbl-a { color: var(--ink); }
body.mode-chaos .mode-toggle .lbl-a { color: var(--muted); }
body.mode-chaos .mode-toggle .lbl-b { color: var(--ink); }

/* Navigation */
.primary-nav {
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.primary-nav .nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.primary-nav li { margin: 0; }
.primary-nav a {
    display: inline-block;
    padding: 14px 16px;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .01em;
    border: 0;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.primary-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.primary-nav .current-menu-item > a { color: var(--accent); border-bottom-color: var(--accent); }

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--ink);
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--radius);
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
    text-decoration: none;
    font-size: 1rem;
}
.btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.btn-small { padding: 10px 18px; font-size: .92rem; }

/* ========== Breadcrumbs ========== */
.crumbs {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--muted);
    margin: 0 0 22px;
    letter-spacing: .02em;
}
.crumbs a { color: var(--muted); border-bottom: 1px dotted var(--line); }
.crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.crumbs .sep { margin: 0 .4em; color: var(--line); }
.crumbs .here { color: var(--ink); }

/* ========== Cards ========== */
.card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 24px 0 36px;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(44,42,41,.08), 0 14px 32px rgba(44,42,41,.08); }

.card-thumb-wrap {
    display: block;
    overflow: hidden;
    background: var(--bg-soft);
}
.card-thumb-wrap a { display: block; border: 0; }
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
}
.card-meta {
    font-family: var(--font-mono);
    font-size: .76rem;
    color: var(--muted);
    margin-bottom: 10px;
    letter-spacing: .03em;
}
.card-meta a { color: var(--muted); border: 0; }
.card-meta a:hover { color: var(--accent); }

.card-title {
    font-family: var(--font-display);
    font-size: 1.22rem;
    margin: 0 0 12px;
    line-height: 1.25;
    position: relative;
}
.card-title a {
    color: var(--ink);
    border: 0;
    display: inline;
    background-image: linear-gradient(var(--ink), var(--ink));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size .35s, color .2s;
}
.card:hover .card-title a,
.card-title a:hover { color: var(--accent); }
.card-title .card-arrow {
    display: inline-block;
    margin-left: 6px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .25s, transform .25s;
    color: var(--accent);
    font-family: var(--font-display);
}
.card:hover .card-title .card-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.card-excerpt {
    color: var(--ink-soft);
    font-size: .98rem;
    margin-bottom: 18px;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========== Sidebar / widgets ========== */
.sidebar { padding-top: 8px; }
.widget {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 22px;
}
.widget-title {
    font-family: var(--font-display);
    font-size: 1rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    letter-spacing: .02em;
    text-transform: uppercase;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--line);
    margin: 0;
}
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); border: 0; }
.widget a:hover { color: var(--accent); }

/* Search */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    min-width: 0;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form button {
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
}
.search-form button:hover { background: var(--accent-deep); }

/* ========== Pagination ========== */
.pagination {
    margin: 36px 0 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    font-family: var(--font-display);
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ========== Front page blocks ========== */
.hero {
    padding: 60px 0 48px;
    background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
}
.hero .kicker {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--accent);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    margin: 0 0 .4em;
    max-width: 18ch;
    letter-spacing: -.02em;
}
.hero .lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 62ch;
    margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.block {
    margin: 0 0 64px;
}
.block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.block-head h2 {
    margin: 0;
    font-size: 1.8rem;
}
.block-head .num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: .82rem;
    letter-spacing: .08em;
}
.block-intro { color: var(--ink-soft); max-width: 62ch; margin-bottom: 24px; }

/* Block 1: categories grid with hand-drawn icons */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.cat-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 18px 20px;
    text-align: left;
    transition: transform .2s, border-color .2s;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    display: block;
}
.cat-item:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.cat-item svg { display: block; width: 46px; height: 46px; margin-bottom: 14px; color: var(--accent); }
.cat-item-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 4px;
}
.cat-item-note {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--muted);
}

/* Block 2: steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.step {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 26px 24px;
    position: relative;
}
.step .step-n {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--accent);
    letter-spacing: .1em;
    margin-bottom: 8px;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* Block 3: habits & attention — horizontal marker-stripe bars */
.habits {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 30px 26px;
}
.habit-row {
    display: grid;
    grid-template-columns: 180px 1fr 54px;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}
.habit-row:last-child { border-bottom: 0; }
.habit-name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.habit-bar {
    height: 18px;
    background:
        repeating-linear-gradient(
            115deg,
            transparent 0 6px,
            rgba(155,191,143,.18) 6px 10px
        ),
        var(--bg-soft);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.habit-fill {
    height: 100%;
    background:
        repeating-linear-gradient(
            115deg,
            var(--sage) 0 6px,
            var(--sage-deep) 6px 12px
        );
    border-radius: 4px;
    position: relative;
}
.habit-fill::after {
    content: "";
    position: absolute;
    right: -2px; top: -2px; bottom: -2px;
    width: 3px;
    background: rgba(0,0,0,.08);
    border-radius: 2px;
    transform: rotate(3deg);
}
.habit-pct {
    font-family: var(--font-mono);
    font-size: .88rem;
    color: var(--ink);
    text-align: right;
}

/* Block 5: final CTA */
.final-cta {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 48px 48px 44px;
    text-align: center;
}
.final-cta h2 { margin-top: 0; }
.final-cta p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 20px; }

/* ========== Single post ========== */
.entry-header h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin: 0 0 12px;
}
.entry-meta {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 24px;
    letter-spacing: .02em;
}
.entry-meta a { color: var(--muted); border: 0; }
.entry-meta a:hover { color: var(--accent); }
.entry-thumb { margin: 0 0 28px; }
.entry-thumb img { border-radius: var(--radius); display: block; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 8px; }

.entry-tags {
    margin: 32px 0 0;
    font-family: var(--font-mono);
    font-size: .84rem;
    color: var(--muted);
}
.entry-tags a {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 4px 10px;
    background: var(--bg-soft);
    border-radius: 999px;
    border: 0;
    color: var(--ink-soft);
}
.entry-tags a:hover { background: var(--accent); color: #fff; }

/* ========== Comments ========== */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments-area h2, .comments-area h3 { margin-top: 0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment-list li { margin-bottom: 20px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 2px solid var(--line); margin-top: 16px; }
.comment-author { font-family: var(--font-display); font-weight: 700; font-size: .98rem; margin-bottom: 4px; }
.comment-date { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-bottom: 10px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply { margin-top: 10px; }
.comment-reply a {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent);
    border: 0;
}

.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
    justify-self: start;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--accent-deep); }

/* ========== 404 ========== */
.page-404 { text-align: center; padding: 60px 0; }
.page-404 .big {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    color: var(--accent);
    margin: 0 0 12px;
    letter-spacing: -.04em;
}
.page-404 p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--ink-soft); }
.page-404 .search-form { max-width: 420px; margin: 22px auto 16px; }

/* ========== Footer ========== */
.site-foot {
    background: var(--paper);
    border-top: 1px solid var(--line);
    margin-top: 60px;
    padding: 48px 0 22px;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 36px;
}
.foot-col .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}
.foot-col .widget-title {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.foot-col .widget li { border-bottom: 1px dashed var(--line); }

/* Calendar tracker */
.cal-tracker {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.cal-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.cal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0;
}
.cal-legend {
    font-family: var(--font-mono);
    font-size: .76rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cal-legend .dot {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 2px;
    display: inline-block;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-cell {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}
.cal-cell.empty { background: transparent; }
.cal-cell.head {
    background: transparent;
    color: var(--muted);
    font-size: .7rem;
    text-transform: uppercase;
}
.cal-cell.pub {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}
.cal-cell.today {
    border-color: var(--ink);
}

.copy {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
}

/* ========== Cookie banner ========== */
.cookie-bar {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    background: var(--ink);
    color: #F3ECE1;
    border-radius: var(--radius);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    z-index: 100;
    max-width: 880px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cookie-bar.hidden { display: none; }
.cookie-bar p { margin: 0; font-size: .92rem; flex: 1; min-width: 240px; }
.cookie-bar a { color: #F3ECE1; border-bottom: 1px dotted #F3ECE1; }
.cookie-bar button {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
}
.cookie-bar button:hover { background: var(--accent-deep); }

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .layout-grid { grid-template-columns: 1fr; }
    .layout-grid.no-aside, .front-area { width: 100%; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .foot-cols { grid-template-columns: 1fr; gap: 28px; }
    .habit-row { grid-template-columns: 130px 1fr 44px; gap: 12px; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .card-list { grid-template-columns: 1fr; gap: 20px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .final-cta { padding: 32px 22px; }
    .top-inner { gap: 14px; }
    .brand-title { font-size: 1.1rem; }
    .brand-sub { font-size: .72rem; }
    .menu-toggle { display: inline-block; }
    .primary-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 8px 0;
    }
    .primary-nav ul.open { display: flex; }
    .primary-nav a { padding: 10px 16px; border-bottom: 1px solid var(--line); }
    .primary-nav .nav-inner { flex-direction: column; align-items: stretch; padding: 6px 0; }
    .primary-nav .menu-toggle { align-self: flex-start; margin: 8px 0; }
    .habit-row { grid-template-columns: 110px 1fr 40px; font-size: .86rem; }
    .hero { padding: 40px 0 32px; }
    .block { margin-bottom: 44px; }
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    z-index: 200;
    border: 0;
}
.skip-link:focus { top: 8px; }

/* Alignments (Gutenberg defaults) */
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); text-align: center; }

/* Clearfix */
.wrap::after, .foot-cols::after { content: ""; display: table; clear: both; }
