/*
Theme Name: BlogBD
Theme URI: https://github.com/mehrazmorshed/blogbd/
Author: Mehraz Morshed
Author URI: https://mehrazmorshed.wordpress.com/
Description: BlogBD — Connor Willoughby Personal Record
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogbd
*/

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

/* ── TOKENS ── */
:root {
    --ink:         #0A0A0A;
    --ink-mid:     #2A2A2A;
    --ink-light:   #555555;
    --ink-faint:   #888888;
    --white:       #FFFFFF;
    --bg:          #FFFFFF;
    --bg-off:      #F9F9F8;
    --bg-panel:    #F3F3F2;
    --rule:        #E8E8E6;
    --rule-dark:   #C8C8C6;
    --teal:        #00585C;
    --ff:          'Questrial', Helvetica, Arial, sans-serif;
    --max-w:       1280px;
    --sidebar-w:   300px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.1em;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }

/* ── LINKS ── */
a { color: var(--ink); text-decoration: none; transition: opacity 0.15s ease; }
a:hover { opacity: 0.55; }
.header a, .footer a { text-decoration: none; }
.header a:hover, .footer a:hover { opacity: 0.7; }

/* ════════════════════════════════
   HEADER — sticky, white, corporate
   ════════════════════════════════ */
header.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 0;
    display: block;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 200;
}
header.site-header h1 { margin: 0; font-size: 0; }

.site-branding {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Black CW mark */
.site-branding::before {
    content: 'CW';
    font-family: var(--ff);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--white);
    background: var(--ink);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    flex: 1;
    font-size: 0; /* hide WP default wrapping */
}
.site-title a,
.site-title a:link,
.site-title a:visited {
    font-family: var(--ff) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    text-decoration: none !important;
    letter-spacing: 0.1em !important;
    line-height: 1 !important;
    opacity: 1 !important;
}
.site-title a:hover { opacity: 0.55 !important; color: var(--ink) !important; }

.site-description {
    font-family: var(--ff);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint) !important;
    text-align: right;
    margin: 0;
    flex-shrink: 0;
}

/* ════════════════════════════════
   NAVIGATION — thin corporate strip
   ════════════════════════════════ */
nav {
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    width: 100%;
    display: block;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: var(--ink);
    padding: 8px 14px;
    border: 1px solid var(--rule-dark);
    border-radius: 0;
    cursor: pointer;
    font-family: var(--ff);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    float: right;
    transition: background 0.2s;
}
.menu-toggle:hover { background: var(--bg-panel); }

.main-navigation { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    font-family: var(--ff);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    opacity: 1;
}
.main-navigation ul li:hover > a { color: var(--ink); border-bottom-color: var(--ink); }
.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: var(--white);
    border: 1px solid var(--rule);
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    z-index: 9999;
    min-width: 200px;
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul { display: block; }
.main-navigation ul li ul li { width: 100%; border-bottom: 1px solid var(--rule); }
.main-navigation ul li ul li:last-child { border-bottom: none; }
.main-navigation ul li ul li a { padding: 12px 18px; border-bottom: none; }
.main-navigation ul li ul li a:hover { background: var(--bg-panel); color: var(--ink); }

/* ════════════════════════════════
   LAYOUT
   ════════════════════════════════ */
.site-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 64px 48px 96px;
    gap: 64px;
    align-items: flex-start;
}
.content-area { flex: 1 1 0%; min-width: 0; padding: 0; }
.widget-area {
    flex: 0 0 var(--sidebar-w);
    width: var(--sidebar-w);
    padding: 0;
    background: transparent;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    margin-right: 0;
}
.site-main { background: transparent; padding: 0; box-shadow: none; border-radius: 0; }

/* ════════════════════════════════
   PAGE / ARCHIVE HEADER
   ════════════════════════════════ */
.page-header {
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rule);
}
.page-title {
    font-family: var(--ff);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: 0.06em;
    line-height: 1.5;
}
.archive-description {
    font-size: 0.88rem;
    color: var(--ink-light);
    margin-top: 10px;
    line-height: 1.75;
    letter-spacing: 0.1em;
    max-width: 560px;
}

/* ════════════════════════════════
   FEATURED IMAGE
   ════════════════════════════════ */
/* Featured image hidden on archive/home card grid */
.featured-image {
    display: none;
}

/* ════════════════════════════════
   POST LIST — block.xyz card grid
   ════════════════════════════════ */
.site-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

article.dotted,
.site-main > article {
    background: var(--white);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    transition: background 0.18s ease;
    cursor: pointer;
}
article.dotted:hover,
.site-main > article:hover { background: var(--bg-off); }
div#dotted { border-bottom: 1px solid var(--rule); }

/* Card inner padding */
article.dotted .entry-meta,
article.dotted .entry-header,
article.dotted .entry-content,
article.dotted .entry-footer,
.site-main > article .entry-meta,
.site-main > article .entry-header,
.site-main > article .entry-content,
.site-main > article .entry-footer { padding-left: 28px; padding-right: 28px; }
article.dotted .entry-meta,
.site-main > article .entry-meta { padding-top: 28px; }
article.dotted .entry-footer,
.site-main > article .entry-footer { padding-bottom: 28px; }

/* ════════════════════════════════
   ENTRY ELEMENTS
   ════════════════════════════════ */
.entry-header { margin-bottom: 0; padding-bottom: 0; }

.entry-meta {
    font-family: var(--ff);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: center;
}
.entry-meta a { color: var(--ink-faint); text-decoration: none; opacity: 1; }
.entry-meta a:hover { color: var(--ink); opacity: 1; }

.entry-title {
    font-family: var(--ff);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.5;
    margin: 12px 0 0;
    padding: 0;
    letter-spacing: 0.04em;
}
.entry-title a { color: var(--ink); text-decoration: none; opacity: 1; transition: opacity 0.15s; }
.entry-title a:hover { opacity: 0.5; }

.entry-content {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.85;
    letter-spacing: 0.1em;
    color: var(--ink-light);
}
.entry-content p { margin-bottom: 18px; }

.entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: var(--ff);
    color: var(--ink);
    margin: 32px 0 12px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    font-weight: 400;
}
.entry-content h2 { font-size: 1.3rem; }
.entry-content h3 { font-size: 1.1rem; }
.entry-content h4 { font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; }

.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 18px; }
.entry-content li { margin-bottom: 6px; }

.entry-content blockquote {
    border-left: 2px solid var(--ink);
    margin: 32px 0;
    padding: 16px 24px;
    font-style: normal;
    font-size: 1rem;
    color: var(--ink-mid);
    background: var(--bg-panel);
    letter-spacing: 0.08em;
}

.entry-content a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--rule-dark);
}
.entry-content a:hover { opacity: 0.55; }

/* Read more / Leave a comment pill */
.entry-footer {
    margin-top: 18px;
    border-top: none;
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0;
}
.entry-footer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--rule-dark);
    padding: 9px 20px;
    border-radius: 40px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    opacity: 1;
}
.entry-footer a:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
    opacity: 1;
}
.entry-footer a::after { content: '→'; font-size: 0.85em; }

/* ════════════════════════════════
   SINGLE POST — clean reading view
   ════════════════════════════════ */
.single .site-main, body.single .site-main { display: block; background: transparent; border: none; }
.single article, body.single article { max-width: 740px; margin: 0 auto; padding: 0; background: transparent; border: none; box-shadow: none; }

/* Single post — featured image as official portrait square, bottom of post */
.single .featured-image, body.single .featured-image {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    margin: 56px 0 0;
    border: 1px solid var(--rule-dark);
    box-shadow: none;
    border-radius: 0;
}
.single .entry-header, body.single .entry-header,
.single .entry-content, body.single .entry-content,
.single .entry-meta, body.single .entry-meta,
.single .entry-footer, body.single .entry-footer { padding-left: 0; padding-right: 0; }
.single .entry-title, body.single .entry-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-top: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
}
.single .entry-content, body.single .entry-content {
    font-size: 1rem;
    color: var(--ink-mid);
    line-height: 1.9;
    letter-spacing: 0.1em;
    margin-top: 32px;
}

/* ════════════════════════════════
   SIDEBAR
   ════════════════════════════════ */
.widget-area .widget {
    margin-bottom: 36px;
    background: transparent;
    border: none;
    border-top: 1px solid var(--ink);
    padding: 20px 0 0;
    box-shadow: none;
    border-radius: 0;
}
.widget-area .widget h2 {
    font-family: var(--ff);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}
.widget-area .widget ul { list-style: none; padding: 0; }
.widget-area .widget ul li { border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.widget-area .widget ul li:last-child { border-bottom: none; }
.widget-area .widget ul li a {
    display: block;
    padding: 10px 0;
    font-family: var(--ff);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.15s;
    opacity: 1;
}
.widget-area .widget ul li a:hover { color: var(--ink); opacity: 1; }

/* Sidebar social */
.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg { fill: #ffffff; }
.wp-block-social-link { border-radius: 4px; transition: transform 0.2s; }
.wp-block-social-link:hover { transform: translateY(-2px); }
aside .wp-block-latest-comments { padding-left: 0; }

/* Sidebar calendar */
table#wp-calendar.wp-calendar-table caption {
    color: var(--white);
    background: var(--ink);
    font-weight: 400;
    padding: 8px;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--ff);
}
nav.wp-calendar-nav a { color: var(--ink); font-size: 0.75rem; letter-spacing: 0.1em; opacity: 1; }

/* Sidebar button */
.wp-block-button__link {
    color: var(--white);
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 40px;
    font-family: var(--ff);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}
.wp-block-button__link:hover { color: var(--ink); background: transparent; opacity: 1; }

/* ════════════════════════════════
   BUTTONS
   ════════════════════════════════ */
button, input[type="button"], input[type="reset"], input[type="submit"] {
    font-family: var(--ff);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover {
    background: var(--ink-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

/* ════════════════════════════════
   POST NAVIGATION
   ════════════════════════════════ */
.navigation-post {
    margin: 48px 0 0;
    border: 1px solid var(--rule);
    background: var(--white);
    overflow: hidden;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.post-navigation-table { width: 100%; border-collapse: collapse; }
.post-navigation-table .previous-post,
.post-navigation-table .next-post { padding: 22px 28px; vertical-align: top; transition: background 0.15s; }
.post-navigation-table .previous-post { text-align: left; width: 50%; border-right: 1px solid var(--rule); }
.post-navigation-table .next-post { text-align: right; width: 50%; }
.post-navigation-table .previous-post:hover,
.post-navigation-table .next-post:hover { background: var(--bg-off); }
.post-navigation-table a { display: block; color: inherit; text-decoration: none; opacity: 1; }
.post-navigation-table .post-title {
    font-family: var(--ff);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ink);
    margin-top: 5px;
    line-height: 1.55;
    letter-spacing: 0.06em;
}
.post-navigation-table a:hover .post-title { opacity: 0.55; }
.post-navigation-table .previous-post span:first-child,
.post-navigation-table .next-post span:first-child {
    display: block;
    font-family: var(--ff);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ════════════════════════════════
   COMMENTS
   ════════════════════════════════ */
.comments-area { margin: 56px 0 0; padding: 0; border: none; background: transparent; box-shadow: none; }
.comments-title {
    font-family: var(--ff);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink);
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment {
    margin-bottom: 0;
    padding: 22px 0 22px 20px;
    border-bottom: 1px solid var(--rule);
    background: transparent;
    border-radius: 0;
    position: relative;
    transition: background 0.15s;
}
.comment-list .comment:hover { background: var(--bg-off); }
.comment-list .comment::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 2px; height: 100%;
    background: var(--ink);
    opacity: 0;
    transition: opacity 0.2s;
}
.comment-list .comment:hover::before { opacity: 1; }
.comment-list .comment .comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-list .comment .comment-author .avatar { border-radius: 50%; width: 30px; height: 30px; }
.comment-list .comment .comment-author b {
    font-family: var(--ff);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--ink);
}
.comment-list .comment .comment-metadata {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.comment-list .comment .comment-metadata a { color: var(--ink-faint); text-decoration: none; opacity: 1; }
.comment-list .comment .comment-metadata a:hover { color: var(--ink); opacity: 1; }
.comment-list .comment .comment-content {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.85;
    letter-spacing: 0.1em;
    color: var(--ink-mid);
}
span.says { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-left: 6px; }

/* Comment form */
.comment-respond {
    margin-top: 44px;
    padding: 36px 40px;
    border: 1px solid var(--rule);
    border-top: 1px solid var(--ink);
    background: var(--white);
    box-shadow: none;
    border-radius: 0;
}
.comment-respond h3 {
    font-family: var(--ff);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 28px;
    color: var(--ink);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
}
.comment-respond label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--ff);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-light);
}
.comment-respond input, .comment-respond textarea {
    width: 100%;
    padding: 11px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--rule-dark);
    border-radius: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--ff);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    transition: border-color 0.2s;
    outline: none;
}
.comment-respond input:focus, .comment-respond textarea:focus {
    border-color: var(--ink);
    box-shadow: none;
}
.comment-respond textarea { min-height: 130px; resize: vertical; }
.comment-respond input[type="submit"] {
    background: var(--ink);
    border: none;
    color: var(--white);
    font-family: var(--ff);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 13px 32px;
    border-radius: 40px;
    transition: background 0.2s, transform 0.15s;
    width: auto;
    margin-bottom: 0;
}
.comment-respond input[type="submit"]:hover {
    background: var(--ink-mid);
    transform: translateY(-1px);
}
p.comment-form-cookies-consent { display: none; }

/* ════════════════════════════════
   PAGINATION
   ════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    margin: 48px 0 0;
    background: transparent;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--rule-dark);
    background: var(--white);
    color: var(--ink-mid);
    font-family: var(--ff);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 40px;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    opacity: 1;
}
.pagination .page-numbers:hover { background: var(--bg-panel); color: var(--ink); border-color: var(--ink-mid); opacity: 1; }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination .prev, .pagination .next { letter-spacing: 0.12em; font-size: 0.68rem; }

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
footer.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.38);
    padding: 0;
    border-top: none;
    box-shadow: none;
    text-align: left;
}
footer.site-footer .site-info {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 48px;
    font-family: var(--ff);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
footer.site-footer a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; opacity: 1; }
footer.site-footer a:hover { color: var(--white); opacity: 1; }

/* ════════════════════════════════
   WP STANDARD CLASSES
   ════════════════════════════════ */
.wp-caption { max-width: 100%; margin: 1.5em 0; text-align: center; }
.wp-caption-text { font-size: 0.72rem; color: var(--ink-faint); font-style: normal; letter-spacing: 0.1em; margin-top: 6px; }
.sticky { border-left: 2px solid var(--ink); background: var(--bg-off); padding: 24px 28px; }
.gallery-caption { margin-top: 0.5em; font-size: 0.72rem; color: var(--ink-faint); }
.bypostauthor .comment-author b { color: var(--teal); }
.alignright { float: right; margin-left: 2em; margin-bottom: 1em; }
.alignleft { float: left; margin-right: 2em; margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.screen-reader-text:focus { position: static; width: auto; height: auto; margin: 0; clip: auto; }
.menu a { text-decoration: none; }
.menu a:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.menu .sub-menu { display: none; }
.menu .sub-menu[aria-expanded="true"] { display: block; }

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 1024px) {
    :root { --sidebar-w: 260px; }
    .site-content { padding: 48px 32px 72px; gap: 48px; }
    .main-navigation { padding: 0 32px; }
    .site-branding { padding: 0 32px; }
    footer.site-footer .site-info { padding: 28px 32px; }
}
@media (max-width: 768px) {
    .site-content { flex-direction: column; padding: 32px 24px 56px; }
    .content-area, .widget-area { flex: 1 1 100%; width: 100%; max-width: 100%; padding: 0; }
    .site-branding { padding: 0 24px; height: 56px; }
    .main-navigation { padding: 0 24px; }
    .site-main { display: block; background: transparent; border: none; }
    article.dotted, .site-main > article { margin-bottom: 0; border-bottom: 1px solid var(--rule); }
    .menu-toggle { display: block; margin: 10px 24px; float: right; }
    .main-navigation ul { display: none; flex-direction: column; width: 100%; border-top: 1px solid var(--rule); }
    .main-navigation ul.toggled { display: flex; }
    .main-navigation ul li { width: 100%; }
    .main-navigation ul li a { border-bottom: 1px solid var(--rule); border-left: none; }
    .main-navigation ul li ul { position: static; box-shadow: none; border: none; }
    .main-navigation ul li:hover > ul, .main-navigation ul li.focus > ul { display: none; }
    .comment-respond { padding: 24px 20px; }
    footer.site-footer .site-info { flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 24px; }
}
@media (max-width: 480px) {
    .entry-title { font-size: 1.15rem; }
    .page-title { font-size: 1.4rem; }
    .post-navigation-table { display: block; }
    .post-navigation-table tbody, .post-navigation-table tr { display: block; }
    .post-navigation-table .previous-post,
    .post-navigation-table .next-post { display: block; width: 100%; text-align: left; border-right: none; border-bottom: 1px solid var(--rule); }
    .post-navigation-table .next-post:last-child { border-bottom: none; }
}