/*
Theme Name: Purple Footsteps
Theme URI: https://purplefootsteps.co.uk
Author: Linda Scoon
Description: Custom portfolio theme for purplefootsteps.co.uk. Fixed, hand-built layout with everything stylable from Appearance -> Customize: one accent colour (titles and hover highlights follow it), heading/body fonts, section + body text sizes, hero/footer image focus, and all text. Projects you add appear on the home page automatically.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: purplefootsteps
*/

/* ========================================================================
   Design tokens live in :root and are WRITTEN BY THE CUSTOMIZER at runtime
   (see inc/customizer-css.php). The fallbacks below are only used if a value
   has never been set, so the theme still looks right the moment it is active.
   ======================================================================== */
:root {
  --paper: #ffffff;
  --paper-2: #f4f5f8;
  --ink: #2c2c33;
  --ink-soft: #707680;
  --line: #e2e2ea;
  --blue: #7b3fb0;        /* accent — the Customizer overrides this */
  --blue-ink: #5f2e94;    /* derived darker tone */
  --blue-deep: #3a1b5e;   /* derived deepest tone */
  --dark: #2b2b33;
  --shadow: 0 2px 4px rgba(44,44,51,.05), 0 14px 30px -18px rgba(44,44,51,.28);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Karla", system-ui, sans-serif;
  --fs-section: clamp(1.8rem, 5vw, 2.6rem);
  --fs-body: 1rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.55; }
/* Short pages: the page fills the window, so the footer sits at the bottom (the WordPress toolbar, when shown, is allowed for). */
body { display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); }
#content { flex: 1 0 auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
embed, iframe, object, video { max-width: 100%; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--blue-ink); padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Site header: logo/title + top menu. Clear over the hero, solid once you scroll ---- */
html { scroll-padding-top: 84px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; color: #fff; transition: background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -32px; background: linear-gradient(rgba(20,22,34,.5), rgba(20,22,34,0)); pointer-events: none; transition: opacity .2s ease; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header-inner { position: relative; max-width: 1140px; margin: 0 auto; height: 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; transition: height .2s ease; }
.site-header.is-solid, .site-header.nav-open { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(44,44,51,.55); }
.site-header.is-solid::before, .site-header.nav-open::before { opacity: 0; }
.site-header.is-solid .site-header-inner { height: 60px; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .03em; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 10px rgba(0,0,0,.35); transition: color .2s ease; }
.is-solid .brand-name, .nav-open .brand-name { color: var(--blue); text-shadow: none; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 44px; width: auto; transition: max-height .2s ease; }
.is-solid .custom-logo { max-height: 38px; }

.site-nav .menu, .site-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; align-items: center; gap: .2rem; }
.site-nav li { position: relative; display: flex; align-items: center; }
.site-nav a { display: block; position: relative; padding: .55rem .65rem; font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: inherit; text-decoration: none; white-space: nowrap; }
.site-header:not(.is-solid):not(.nav-open) .menu > li > a, .site-header:not(.is-solid):not(.nav-open) .sub-toggle { text-shadow: 0 1px 10px rgba(0,0,0,.45); filter: drop-shadow(0 1px 6px rgba(0,0,0,.25)); }
.site-nav .menu > li > a::after { content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .2rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.site-nav .menu > li > a:hover::after,
.site-nav .menu > li.current-menu-item > a::after,
.site-nav .menu > li.current-menu-ancestor > a::after,
.site-nav .menu > li.current-menu-parent > a::after { transform: scaleX(1); }
.is-solid .site-nav .menu > li > a::after { background: var(--blue); }
.is-solid .site-nav .menu > li > a:hover,
.is-solid .site-nav .menu > li.current-menu-item > a,
.is-solid .site-nav .menu > li.current-menu-ancestor > a { color: var(--blue-ink); }
.site-nav a:not([href]) { cursor: pointer; }
.site-nav .obfx-menu-icon { margin-right: .4em; }
.sub-toggle { display: inline-grid; place-items: center; padding: .45rem .3rem; margin-left: -.5rem; background: none; border: 0; color: inherit; cursor: pointer; line-height: 0; }
.sub-toggle svg { transition: transform .18s ease; }
.is-open > .sub-toggle svg { transform: rotate(180deg); }

.site-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 5; min-width: 220px; padding: .4rem 0; background: var(--paper); color: var(--ink); border-top: 3px solid var(--blue); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(44,44,51,.45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.site-nav .menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.site-nav li:hover > .sub-menu, .site-nav li.is-open > .sub-menu, .no-js .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav .sub-menu a { flex: 1; padding: .62rem 1.1rem; font-size: .72rem; letter-spacing: .06em; text-shadow: none; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu .current-menu-item > a { background: color-mix(in srgb, var(--blue) 8%, #fff); color: var(--blue-ink); }
.site-nav .sub-menu .sub-toggle { margin: 0 .6rem 0 0; transform: rotate(-90deg); }
.site-nav .sub-menu .sub-menu { top: calc(-.4rem - 3px); left: 100%; right: auto; }

.nav-toggle { display: none; }
.nav-toggle-bars { position: relative; display: block; width: 22px; height: 14px; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars > span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars > span { top: 6px; }
.nav-toggle-bars::after { top: 12px; }
.nav-open .nav-toggle-bars::before { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars > span { opacity: 0; }
.nav-open .nav-toggle-bars::after { top: 6px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .site-header-inner, .site-header.is-solid .site-header-inner { height: 60px; }
  .js .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: inherit; cursor: pointer; }
  .site-header:not(.is-solid):not(.nav-open) .nav-toggle { filter: drop-shadow(0 1px 6px rgba(0,0,0,.4)); }
  .js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 60px); overflow-y: auto; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(44,44,51,.5); }
  .js .nav-open .site-nav { display: block; }
  .site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 .6rem; }
  .site-nav li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .site-nav .menu > li > a { flex: 1; padding: 1rem max(16px, env(safe-area-inset-left, 0px)); font-size: .8rem; }
  .site-nav .menu > li > a::after { display: none; }
  .site-nav .menu > li.current-menu-item > a, .site-nav .menu > li.current-menu-ancestor > a { color: var(--blue-ink); box-shadow: inset 4px 0 0 var(--blue); }
  .site-nav .sub-toggle { align-self: stretch; width: 56px; margin: 0; border-left: 1px solid var(--line); }
  .site-nav .sub-menu, .site-nav .sub-menu .sub-menu { display: none; position: static; width: 100%; min-width: 0; padding: 0 0 .4rem; background: var(--paper-2); border-top: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .site-nav li.is-open > .sub-menu { display: block; }
  .site-nav .sub-menu li { border-bottom: 0; }
  .site-nav .sub-menu a { padding: .7rem 16px .7rem 34px; font-size: .74rem; }
  .site-nav .sub-menu .sub-menu a { padding-left: 52px; }
  .site-nav .sub-menu .sub-toggle { transform: none; border-left: 0; width: 56px; margin: 0; }
  /* No JavaScript: show the menu as a wrapped row under the title. */
  .no-js .site-header { position: absolute; }
  .no-js .site-header-inner { flex-wrap: wrap; height: auto; padding-block: .6rem; }
  .no-js .site-nav .menu { flex-direction: row; flex-wrap: wrap; }
  .no-js .site-nav li { border: 0; }
}

/* ---- HERO with painted brush bottom edge ---- */
.hero { position: relative; min-height: clamp(320px, 48vw, 520px); background-color: var(--blue-deep); background-image: var(--hero, linear-gradient(135deg, var(--blue-deep), var(--blue))); background-size: var(--hero-size, cover); background-position: var(--hero-pos, center); background-repeat: var(--hero-repeat, no-repeat); display: grid; place-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,22,34,.08), rgba(20,22,34,.30)); }
.hero-title { position: relative; z-index: 2; text-align: center; color: #fff; padding-bottom: clamp(24px,5vw,52px); }
.hero-title .w { display: block; font-family: var(--font-head); font-weight: var(--hero-weight, 700); letter-spacing: .14em; font-size: clamp(2rem, 7vw, 4.2rem); line-height: 1.06; text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.hero-title .line { width: clamp(60px,10vw,120px); height: 2px; background: rgba(255,255,255,.85); margin: .5rem auto; }
.brush { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px,7.5vw,92px); display: block; transform: scaleY(-1); }
.brush path { fill: var(--paper); }

/* ---- Section heading ---- */
.sec-head { display: flex; justify-content: center; margin: clamp(1.4rem,4vw,2.4rem) 0 1.4rem; text-align: center; flex-wrap: wrap; }
.sec-head h2 { font-size: var(--fs-section); font-weight: 800; letter-spacing: .02em; color: var(--blue); text-transform: uppercase; width: 100%; }
.count { color: var(--ink-soft); font-family: var(--font-head); font-size: .78rem; margin-top: .3rem; }

/* ---- Project cards: hard angles, image fits, info reveals on hover ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.card { position: relative; border: 1px solid var(--line); background: var(--paper); overflow: hidden; border-radius: 0; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; display: flex; flex-direction: column; }
.card > a.card-link { position: absolute; inset: 0; z-index: 3; text-indent: -9999px; overflow: hidden; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(44,44,51,.06), 0 22px 42px -22px color-mix(in srgb, var(--blue) 65%, transparent); border-color: var(--blue); }
.thumb { aspect-ratio: 1/1; background: var(--paper-2); position: relative; overflow: hidden; display: grid; place-items: center; padding: 16px; }
.thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.thumb .noimg { font-family: var(--font-head); font-weight: 700; color: #aab0ba; text-align: center; padding: 1rem; }
.thumb .reveal { position: absolute; inset: 0; background: #ffffff; color: #111111; padding: 1rem; display: flex; flex-direction: column; justify-content: center; gap: .6rem; opacity: 0; transition: opacity .18s ease; }
.card:hover .reveal, .card:focus-within .reveal { opacity: 1; }
.reveal p { margin: 0; font-size: .92rem; font-weight: 500; color: #111111; }
.reveal .go { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #000000; }
.card .body { padding: .75rem 1rem; }
.card h3 { font-size: 1.08rem; font-weight: 700; }
.ai-tag { display: inline-block; padding: .28em .7em; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--font-head); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; white-space: nowrap; }
.thumb .ai-tag { position: absolute; top: 10px; left: 10px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.ai-tag--page { margin: -.4rem 0 1.4rem; }
.projects-section + .projects-section { margin-top: clamp(2.4rem, 6vw, 3.6rem); }

.empty-note { color: var(--ink-soft); text-align: center; border: 1px dashed var(--line); padding: 2rem; }

/* ---- About: words on the left, photo right beside them (not centred in its own column) ---- */

/* ---- Single project page (content is yours, via shortcodes) ---- */
.project-single { padding-top: clamp(1.4rem,4vw,2.4rem); padding-bottom: 2rem; }
.project-single h1 { font-size: clamp(2rem,6vw,3rem); font-weight: 800; margin: .4rem 0 1.2rem; }
/* Project text uses the same styles as every other page and post (.entry-content). */

/* ---- Generic page/post ---- */
.page-wrap { padding-top: clamp(1.4rem,4vw,2.4rem); padding-bottom: 2.4rem; }
/* No banner on this page: the top bar takes its own space above the content (and stays at the top when scrolling), then a gap. */
.pf-no-hero .site-header { position: sticky; }
.pf-no-hero #content { padding-top: clamp(2.2rem,6vw,3.2rem); }
.page-wrap h1.page-title { font-size: clamp(1.9rem,5vw,2.8rem); font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .02em; text-align: center; margin-bottom: 1.4rem; }
.entry-content { font-size: 1.02rem; line-height: 1.7; }
.entry-content a { color: var(--blue-ink); }

/* ---- WordPress basics: accessibility helpers, focus, alignments, captions, galleries ---- */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; display: block; left: 8px; top: 8px; z-index: 100000; padding: .8em 1.2em; background: #fff; color: var(--blue-ink); font-size: .9rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.site-header:not(.is-solid):not(.nav-open) :focus-visible { outline-color: #fff; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { width: min(1108px, calc(100vw - 32px)); max-width: none; margin-left: calc(50% - min(554px, 50vw - 16px)); }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; margin-bottom: 1.2rem; }
.wp-caption img { display: block; }
.wp-caption-text, .gallery-caption, .entry-content figcaption { margin-top: .45rem; font-size: .82rem; color: var(--ink-soft); text-align: center; }
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(var(--pf-gallery-cols, 3), minmax(0, 1fr)); margin: 0 0 1.4rem; }
.gallery-columns-1 { --pf-gallery-cols: 1; } .gallery-columns-2 { --pf-gallery-cols: 2; } .gallery-columns-4 { --pf-gallery-cols: 4; } .gallery-columns-5 { --pf-gallery-cols: 5; } .gallery-columns-6 { --pf-gallery-cols: 6; } .gallery-columns-7 { --pf-gallery-cols: 7; } .gallery-columns-8 { --pf-gallery-cols: 8; } .gallery-columns-9 { --pf-gallery-cols: 9; }
.gallery-item { margin: 0; }
.gallery-item img { display: block; width: 100%; }
.sticky .entry-title::before { content: "★ "; color: var(--blue); }
.bypostauthor > .comment-body { border-left: 4px solid var(--blue); }

/* ---- Text inside pages and posts ---- */
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); margin: 2rem 0 .7rem; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin: .25rem 0; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 1.6rem 0; padding: .3rem 0 .3rem 1.2rem; border-left: 4px solid var(--blue); font-size: 1.08rem; }
.entry-content blockquote p { margin: .3rem 0; }
.entry-content cite { display: block; margin-top: .4rem; font-size: .82rem; font-style: normal; color: var(--ink-soft); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.entry-content .wp-block-table { margin: 1.4rem 0; overflow-x: auto; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .8rem; text-align: left; }
.entry-content thead th { background: var(--paper-2); font-family: var(--font-head); font-size: .8rem; letter-spacing: .03em; }
code, kbd, pre, samp { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; }
:not(pre) > code { background: var(--paper-2); border: 1px solid var(--line); padding: .08em .35em; }
pre { background: #11131a; color: #e8eef2; padding: 1rem 1.2rem; overflow-x: auto; line-height: 1.5; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---- Forms and buttons ---- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], textarea, select { width: 100%; max-width: 100%; padding: .65em .8em; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 30%, transparent); outline-offset: 0; }
.pf-btn, input[type="submit"] { display: inline-block; padding: .85em 1.4em; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 0; text-decoration: none; cursor: pointer; transition: background-color .14s ease; }
.pf-btn:hover, input[type="submit"]:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.search-form { display: flex; max-width: 480px; margin: 0 auto 1.6rem; }
.search-form .search-field { flex: 1; min-width: 0; border-right: 0; }
.post-password-form input[type="password"] { max-width: 320px; }

/* ---- Lists of posts (categories, search, blog) ---- */
.list-header .page-title { margin-bottom: 1rem; }
.archive-desc { max-width: 60ch; margin: 0 auto 1.6rem; color: var(--ink-soft); text-align: center; }
.post-list { display: grid; gap: 1.1rem; margin-top: 1rem; }
.post-card { position: relative; padding: 1.3rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease; }
.post-card:hover, .post-card:focus-within { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(44,44,51,.06), 0 22px 42px -24px color-mix(in srgb, var(--blue) 60%, transparent); }
.post-card .entry-title { font-size: 1.3rem; }
.post-card .entry-title a { color: var(--blue-ink); text-decoration: none; }
.post-card .entry-title a::before { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.post-card .entry-meta a { position: relative; z-index: 1; }
.post-card .entry-summary p { margin: .5rem 0 .6rem; color: var(--ink-soft); }
.entry-meta { margin: 0 0 .5rem; font-family: var(--font-head); font-weight: 600; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--blue-ink); }
.read-more { font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); text-decoration: none; }
.pagination .nav-links, .page-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pagination .nav-links { justify-content: center; margin: 2.2rem 0 0; }
.page-numbers, .post-page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .7rem; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current, .post-page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
a.page-numbers:hover, a.post-page-numbers:hover { border-color: var(--blue); color: var(--blue-ink); }
.page-numbers.dots { border: 0; background: none; }
.page-links { margin: 1.8rem 0 0; }
.page-links-title { font-family: var(--font-head); font-weight: 700; font-size: .78rem; margin-right: .3rem; }

/* ---- Single post ---- */
.post-single { max-width: 900px; padding-top: clamp(1.4rem,4vw,2.4rem); padding-bottom: 2.4rem; }
.post-single .entry-header { text-align: center; margin-bottom: 1.8rem; }
.cat-links { margin: 0 0 .5rem; font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.cat-links a { color: var(--blue); text-decoration: none; }
.post-single .entry-title { font-size: clamp(1.9rem,5vw,2.8rem); font-weight: 800; color: var(--ink); margin: 0 0 .6rem; }
.post-single .entry-content { font-size: 1.02rem; line-height: 1.75; }
.post-thumb { margin: 0 0 1.8rem; }
.post-thumb img { display: block; width: 100%; border: 1px solid var(--line); }
.tags-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.6rem 0 0; }
.tags-links a { padding: .25em .75em; font-size: .78rem; color: var(--ink-soft); border: 1px solid var(--line); text-decoration: none; }
.tags-links a:hover { color: var(--blue-ink); border-color: var(--blue); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.6rem 0 0; }
.post-navigation a { display: block; height: 100%; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: border-color .14s ease; }
.post-navigation a:hover { border-color: var(--blue); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.nav-subtitle { display: block; font-family: var(--font-head); font-weight: 700; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.nav-title { display: block; margin-top: .2rem; font-family: var(--font-head); font-weight: 700; color: var(--blue-ink); }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }

/* ---- Comments ---- */
.comments-area { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin: 0 0 1.2rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: clamp(1rem,4vw,2.2rem); }
.comment-body { margin-bottom: 1rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; margin-bottom: .4rem; font-size: .82rem; color: var(--ink-soft); }
.comment-author { display: flex; gap: .6rem; align-items: center; font-weight: 700; color: var(--ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content p { margin: .4rem 0; }
.reply a, .comment-reply-link { font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); text-decoration: none; }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--font-head); font-weight: 600; font-size: .78rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-family: var(--font-body); font-weight: 400; font-size: .88rem; }
.comment-notes, .logged-in-as, .no-comments { font-size: .88rem; color: var(--ink-soft); }

/* ---- 404 ---- */
.error-404 { text-align: center; }
.error-404 .big { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem,14vw,8rem); line-height: 1; color: var(--blue); }
.error-404-pic { display: block; width: auto; max-width: min(100%, 440px); height: auto; margin: 1rem auto 1.6rem; border-radius: 6px; }
.error-404 p:not(.big) { max-width: 46ch; margin: 0 auto 1.6rem; color: var(--ink-soft); }

/* ---- Footer: straight small image strip + dark bar with links ---- */
.footstrip + .darkfoot { margin-top: 0; }
.footstrip { height: clamp(64px, 10vw, 96px); background-image: var(--footer); background-size: var(--footer-size, cover); background-position: var(--footer-pos, center); background-repeat: var(--footer-repeat, no-repeat); margin-top: 3rem; }
.darkfoot { margin-top: 3rem; background: var(--dark); color: #cfd0d6; font-size: .82rem; }
.darkfoot .wrap { padding-block: 1.3rem; display: flex; justify-content: space-between; gap: 1rem 1.6rem; flex-wrap: wrap; align-items: center; }
.darkfoot nav { font-family: var(--font-head); font-weight: 600; font-size: .78rem; }
.darkfoot .foot-menu { display: flex; gap: 1.1rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.darkfoot a { color: #cfd0d6; text-decoration: none; }
.darkfoot a:hover { color: var(--blue); }
.darkfoot .legal { color: #8f9099; font-size: .72rem; }

@media (prefers-reduced-motion: reduce) { .card, .thumb .reveal, .site-header, .site-header-inner, .site-nav a::after, .site-nav .sub-menu, .sub-toggle svg, .nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars > span, .post-card { transition: none; } }
