/* ============================================================
   RESUMIA WALL · READING LAYOUT
   Posts, pages, the blog, archives, search and 404: one readable column on cards, in the wall's type and
   colours (the tokens come from wall.css, so every colour theme and dark mode apply here too).
   ============================================================ */

/* ---------- the page ---------- */
body.is-page { height: auto; min-height: 100%; overflow: visible; overflow-x: hidden; touch-action: auto; overscroll-behavior: auto; }
.is-page a { color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; word-wrap: normal !important; }
.screen-reader-text:focus, .skip-link:focus { position: fixed !important; top: 12px; left: 12px; z-index: 100000; width: auto; height: auto; padding: 10px 16px; margin: 0; clip: auto; clip-path: none; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 14px; text-decoration: none; white-space: normal; }

/* ---------- the top: name or logo, the menu, back to the wall ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: .5px solid var(--line); }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }
.site-head__in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.site-brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.custom-logo-link { display: block; flex: none; }
.custom-logo { display: block; width: auto; max-height: 40px; }
.site-title { margin: 0; font: 600 17px/1.2 var(--display); letter-spacing: -.015em; }
.site-title a { text-decoration: none; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav__list li { position: relative; }
.site-nav__list a { display: block; padding: 8px 12px; border-radius: 99px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list .current-menu-item > a, .site-nav__list .current_page_item > a { color: var(--ink); background: rgb(var(--ink-rgb) / .06); }
.site-nav__list .sub-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 200px; margin: 6px 0 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--raise); box-shadow: var(--shadow-up); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s, transform .3s var(--spring), visibility .2s; }
.site-nav__list li:hover > .sub-menu, .site-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__list .sub-menu a { border-radius: 10px; }
.site-head__back { height: 34px; padding: 0 14px; font-size: 13px; }
@media (max-width: 720px) {
  .site-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-nav__list { flex-wrap: nowrap; }
  .site-nav__list .sub-menu { position: static; display: none; }
}

/* ---------- the column ---------- */
.site { min-height: 60vh; }
.site-main { max-width: 760px; margin: 0 auto; padding: 40px 20px 96px; }
.page-head { margin: 8px 4px 28px; }
.page-head__title { margin: 0; font: 600 clamp(2rem, 5vw, 3rem)/1.05 var(--display); letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.page-head__desc { margin-top: 12px; color: var(--ink-2); }
.page-head__desc p { margin: 0; }

/* ---------- a post ---------- */
.entry { position: relative; margin: 0 0 18px; padding: clamp(22px, 4vw, 40px); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); overflow-wrap: break-word; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 12px; font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
.entry-meta a { text-decoration: none; }
.entry-meta a:hover { color: var(--ink); }
.entry-sticky { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; background: var(--accent); color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.sticky { box-shadow: var(--shadow), 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.entry-title { margin: 0 0 14px; font: 600 clamp(1.6rem, 3.6vw, 2.2rem)/1.1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; text-wrap: balance; }
.entry--single .entry-title { font-size: clamp(2.1rem, 5.4vw, 3.3rem); letter-spacing: -.04em; line-height: 1.04; margin-bottom: 0; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { color: var(--accent); }
.entry-head { margin-bottom: 28px; }
.entry-thumb, .entry-hero { display: block; margin: 0 0 22px; border-radius: 18px; overflow: hidden; background: var(--wash); }
.entry-hero { margin: 0 0 30px; }
.entry-thumb img, .entry-hero img { display: block; width: 100%; height: auto; }
.entry-footer { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; padding-top: 16px; border-top: .5px solid var(--line); font-size: 13px; color: var(--ink-3); }
.entry-footer a { color: var(--ink-2); text-decoration: none; }
.entry-footer a:hover { color: var(--accent); }
.entry-edit { margin: 18px 0 0; font-size: 13px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 500; text-decoration-color: var(--accent); text-underline-offset: .25em; }
.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 24px 0 0; font-size: 14px; color: var(--ink-3); }
.page-links a, .page-links > span:not(:first-child) { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 99px; background: var(--wash); color: var(--ink); text-decoration: none; }
.post-password-form input[type="password"] { margin: 0 8px; }

/* ---------- what's written: text and the core blocks ---------- */
.entry-content { font: 400 1.0625rem/1.72 var(--sans); color: var(--ink); }
.entry-content::after { content: ''; display: table; clear: both; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content dl, .entry-content address { margin: 0 0 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .3em; }
.entry-content li > ul, .entry-content li > ol { margin: .3em 0 0; }
.entry-content dt { font-weight: 600; }
.entry-content dd { margin: 0 0 .8em 1.2em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { margin: 1.9em 0 .6em; font-family: var(--display); font-weight: 600; line-height: 1.18; letter-spacing: -.022em; overflow-wrap: anywhere; }
.entry-content h1 { font-size: 2.1em; } .entry-content h2 { font-size: 1.65em; } .entry-content h3 { font-size: 1.35em; }
.entry-content h4 { font-size: 1.15em; } .entry-content h5 { font-size: 1em; } .entry-content h6 { font-size: .85em; text-transform: uppercase; letter-spacing: .06em; }
.entry-content a { text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.entry-content a:hover { color: var(--accent); }
.entry-content strong, .entry-content b { font-weight: 600; }
.entry-content mark, .entry-content ins { padding: 0 .2em; border-radius: 4px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: inherit; text-decoration: none; }
.entry-content abbr[title] { text-decoration: underline dotted; cursor: help; }
.entry-content sub, .entry-content sup { font-size: .75em; line-height: 0; }
.entry-content small { font-size: .85em; }
.entry-content hr, .wp-block-separator { height: 0; margin: 2.4em auto; border: 0; border-top: .5px solid var(--ink-4); }
.wp-block-separator.is-style-wide { width: 100%; }
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) { width: 120px; }
.wp-block-separator.is-style-dots { border: 0; text-align: center; }
.wp-block-separator.is-style-dots::before { content: '···'; color: var(--ink-3); font-size: 1.5em; letter-spacing: 1em; padding-left: 1em; }
.entry-content blockquote, .wp-block-quote { margin: 1.8em 0; padding: 0 0 0 1.2em; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 1.3em; line-height: 1.45; }
.entry-content blockquote p { margin-bottom: .6em; }
.entry-content blockquote cite, .wp-block-quote cite, .wp-block-pullquote cite { display: block; margin-top: .6em; font: 500 12px/1.4 var(--mono); font-style: normal; color: var(--ink-3); }
.wp-block-quote.is-style-large, .wp-block-quote.is-large { font-size: 1.6em; }
.wp-block-pullquote { margin: 2.2em 0; padding: 1.6em 0; border-top: .5px solid var(--ink-4); border-bottom: .5px solid var(--ink-4); text-align: center; }
.wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; font-size: 1.55em; }
.entry-content code, .entry-content kbd, .entry-content samp, .entry-content tt, .entry-content var { padding: .12em .38em; border-radius: 6px; background: var(--wash); font: 500 .86em/1.5 var(--mono); }
.entry-content pre, .wp-block-code, .wp-block-preformatted, .wp-block-verse { margin: 1.6em 0; padding: 1.1em 1.3em; border-radius: 16px; background: var(--wash); font: 400 .9rem/1.65 var(--mono); overflow-x: auto; white-space: pre; }
.wp-block-verse { font-family: var(--serif); font-size: 1.1rem; white-space: pre-wrap; }
.entry-content pre code, .wp-block-code code { padding: 0; background: none; font-size: inherit; }
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wp-block-table, .entry-content > table { margin: 1.6em 0; overflow-x: auto; }
.entry-content th, .entry-content td { padding: .65em .8em; border-bottom: .5px solid var(--ink-4); text-align: left; vertical-align: top; }
.entry-content th { font-weight: 600; }
.entry-content thead th { border-bottom-color: var(--ink-3); }
.wp-block-table.is-style-stripes { border-bottom: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--wash); }
.wp-block-table figcaption, .entry-content figcaption, .wp-caption-text, .gallery-caption { margin-top: .6em; font-size: .85rem; line-height: 1.45; color: var(--ink-3); text-align: center; }
.entry-content img, .entry-content video { max-width: 100%; height: auto; }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content iframe, .entry-content embed, .entry-content object { max-width: 100%; }
.wp-caption { max-width: 100%; margin-bottom: 1.4em; }
.wp-caption img { display: block; }
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; margin: 1.6em 0; }
.gallery-columns-1 { --cols: 1; } .gallery-columns-2 { --cols: 2; } .gallery-columns-4 { --cols: 4; } .gallery-columns-5 { --cols: 5; }
.gallery-columns-6 { --cols: 6; } .gallery-columns-7 { --cols: 7; } .gallery-columns-8 { --cols: 8; } .gallery-columns-9 { --cols: 9; }
.gallery-item { margin: 0; }
.gallery-item img { display: block; width: 100%; height: auto; }
.wp-block-gallery { margin: 1.8em 0; }
.wp-block-image figcaption, .blocks-gallery-caption { color: var(--ink-3); }

/* the alignments: floats are cleared by the content, and wide and full break out of the column */
.alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.aligncenter { display: block; clear: both; margin-left: auto; margin-right: auto; text-align: center; }
.alignnone { margin-top: 1.6em; margin-bottom: 1.6em; }
.entry-content > .alignwide { width: calc(100% + clamp(44px, 8vw, 80px)); max-width: none; margin-left: calc(clamp(22px, 4vw, 40px) * -1); }
.entry-content > .alignfull { width: calc(100% + clamp(44px, 8vw, 80px)); max-width: none; margin-left: calc(clamp(22px, 4vw, 40px) * -1); border-radius: 0; }
.entry-content > .alignfull img { border-radius: 0; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; max-width: 100%; margin: 1.2em 0; } }

/* buttons, cover, columns, group, media and text, details, files, embeds */
.wp-block-buttons { margin: 1.6em 0; gap: 10px; }
.wp-block-button__link, .wp-element-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--ink); color: var(--on-ink); font: 500 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .3s var(--spring), background .2s; }
.wp-block-button__link:hover, .wp-element-button:hover { transform: translateY(-1px); color: var(--on-ink); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-4); }
.wp-block-cover, .wp-block-cover-image { margin: 1.8em 0; border-radius: 18px; overflow: hidden; }
.wp-block-cover.alignfull, .wp-block-cover.alignwide { border-radius: 0; }
.wp-block-cover .wp-block-cover__inner-container { color: #fff; }
.wp-block-columns { margin: 1.6em 0; gap: 1.6em; }
.wp-block-group.has-background, .wp-block-columns.has-background { padding: 1.4em 1.6em; border-radius: 18px; }
.wp-block-media-text { margin: 1.8em 0; gap: 1.4em; }
.wp-block-media-text__media img { border-radius: 14px; }
.wp-block-details { margin: 1.4em 0; padding: .9em 1.1em; border-radius: 14px; background: var(--wash); }
.wp-block-details summary { cursor: pointer; font-weight: 600; }
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 1.4em 0; }
.wp-block-file .wp-block-file__button { padding: 8px 16px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: .85rem; text-decoration: none; }
.wp-block-embed { margin: 1.8em 0; }
.wp-block-embed__wrapper iframe { border-radius: 14px; }
.wp-block-audio audio, .wp-block-video video { width: 100%; }
.wp-block-social-links { margin: 1.4em 0; }
.wp-block-latest-posts, .wp-block-categories, .wp-block-archives, .wp-block-page-list, .wp-block-latest-comments { padding-left: 1.2em; }
.wp-block-latest-posts__post-date, .wp-block-latest-comments__comment-date { display: block; font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
.has-text-align-center { text-align: center; } .has-text-align-right { text-align: right; } .has-text-align-left { text-align: left; }
.has-drop-cap:not(:focus)::first-letter { float: left; margin: .08em .1em 0 0; font: 400 4.2em/.8 var(--serif); color: var(--accent); }
.wp-block-footnotes { margin-top: 2em; padding-top: 1em; border-top: .5px solid var(--line); font-size: .9rem; }

/* ---------- forms: search, comments, the password form, widget selects ---------- */
.is-page input[type="text"], .is-page input[type="email"], .is-page input[type="url"], .is-page input[type="password"], .is-page input[type="search"], .is-page input[type="number"], .is-page input[type="tel"], .is-page textarea, .is-page select {
  width: 100%; max-width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink);
  box-shadow: inset 0 0 0 .5px var(--ink-4); font: 400 1rem/1.4 var(--sans); transition: box-shadow .2s;
}
.is-page input:focus-visible, .is-page textarea:focus-visible, .is-page select:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.is-page textarea { min-height: 140px; resize: vertical; }
.is-page button, .is-page input[type="submit"] { cursor: pointer; }
.is-page input[type="submit"]:not(.btn), .search-submit { min-height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--ink); color: var(--on-ink); font: 500 .95rem/1 var(--sans); }
.search-form { display: flex; gap: 8px; margin: 1.2em 0; }
.search-form label { flex: 1; }
.wp-block-search__inside-wrapper { gap: 8px; }

/* ---------- moving between posts and pages ---------- */
.post-navigation { margin: 22px 0; }
.post-navigation .nav-links, .posts-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation a { display: grid; gap: 4px; height: 100%; padding: 18px 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .4s var(--spring); }
.post-navigation a:hover { transform: translateY(-2px); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.nav-k { font: 500 11px/1 var(--mono); color: var(--ink-3); }
.nav-title { font: 600 1rem/1.3 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.pagination, .comments-pagination { margin: 26px 0; }
.pagination .nav-links, .comments-pagination .nav-links, .comment-navigation .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.page-numbers.dots { background: none; box-shadow: none; }
.comment-navigation { margin: 16px 0; font-size: 14px; }
.comment-navigation .nav-links { justify-content: space-between; }

/* ---------- comments ---------- */
.comments { margin: 22px 0; padding: clamp(22px, 4vw, 40px); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.comments-title, .comment-reply-title { margin: 0 0 20px; font: 600 1.4rem/1.2 var(--display); letter-spacing: -.02em; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: clamp(16px, 5vw, 48px); }
.comment-body { position: relative; padding: 18px 0; border-top: .5px solid var(--line); }
.comment-list > li:first-child > .comment-body { border-top: 0; padding-top: 0; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-author .says { display: none; }
.comment-author .fn a { text-decoration: none; }
.comment-metadata { margin: 4px 0 0 50px; font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
.comment-metadata a { text-decoration: none; }
.comment-content { margin: 10px 0 0 50px; overflow-wrap: break-word; }
.comment-content p { margin: 0 0 .8em; }
.comment-awaiting-moderation { display: block; margin: 8px 0 0 50px; font-size: 13px; color: var(--ink-3); }
.reply { margin: 8px 0 0 50px; }
.comment-reply-link { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--wash); font-size: 13px; text-decoration: none; }
.bypostauthor > .comment-body .comment-author::after { content: '★'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; }
.pingback .comment-body, .trackback .comment-body { padding-left: 0; }
.no-comments { color: var(--ink-3); }
.comment-respond { margin-top: 24px; }
.comment-list .comment-respond { margin: 10px 0 18px 50px; }
.comment-reply-title small { margin-left: 10px; font: 500 13px/1 var(--sans); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--ink-2); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form-cookies-consent input { margin-top: 4px; }
.form-submit .btn { min-height: 46px; padding: 0 24px; font-size: .95rem; }

/* ---------- the widget area, under the content ---------- */
/* masonry columns: each widget is as tall as its content */
.widgets { columns: 3 220px; column-gap: 14px; margin-top: 40px; }
.widget { display: inline-block; width: 100%; margin: 0 0 14px; padding: 22px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); font-size: .95rem; overflow-wrap: break-word; break-inside: avoid; }
.widget-title, .widget .wp-block-heading { margin: 0 0 12px; font: 500 12px/1.2 var(--mono); letter-spacing: .02em; color: var(--ink-3); text-transform: none; }
.widget ul, .widget ol { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 6px 0; border-top: .5px solid var(--line); }
.widget li:first-child { border-top: 0; }
.widget li ul { margin: 6px 0 0 12px; }
.widget a { text-decoration: none; }
.widget a:hover { color: var(--accent); }
.widget select { width: 100%; }
.widget .search-form, .widget .wp-block-search { margin: 0; }
.tagcloud, .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a, .wp-block-tag-cloud a { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 99px; background: var(--wash); font-size: 13px !important; }
.widget_calendar table, .wp-calendar-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
.widget_calendar caption, .wp-calendar-table caption { margin-bottom: 8px; font-weight: 600; }
.widget_calendar th, .widget_calendar td { padding: 6px 2px; }
.widget_calendar #today, .wp-calendar-table #today { border-radius: 8px; background: var(--ink); color: var(--on-ink); }
.wp-calendar-nav { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.widget_rss .rss-date, .widget_rss cite { display: block; font-size: 12px; color: var(--ink-3); }
.widget img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- empty states, the foot ---------- */
.none { padding: clamp(22px, 4vw, 40px); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.none p { margin: 0 0 12px; color: var(--ink-2); }
.site-foot { padding: 0 20px 48px; text-align: center; font-size: 13px; color: var(--ink-3); }
.site-foot p { margin: 0; }
