/*
Theme Name: Wiley's Walk
Theme URI: https://wileyswalk.com/
Author: Kerry Ann Wiley
Description: An accessible, image-conscious reading theme for Wiley's Walk.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wileys-walk
*/
:root{--ink:#211b31;--muted:#4b4654;--paper:#f8f8f5;--white:#fff;--line:#d5d2da;--accent:#493178;--focus:#211b31;--max:72rem;--read:44rem}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:normal 1.0625rem/1.72 Arial,Helvetica,sans-serif;overflow-wrap:break-word}
a{color:var(--accent);text-decoration-thickness:.09em;text-underline-offset:.16em}
a:hover{text-decoration-thickness:.16em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.skip-link{position:absolute;top:-6rem;left:1rem;z-index:1000;padding:.7rem 1rem;background:var(--ink);color:var(--white)}
.skip-link:focus{top:1rem}
.site-header{background:var(--white);border-bottom:1px solid var(--line)}
.header-inner,.site-nav,.site-footer-inner{max-width:var(--max);margin-inline:auto;padding-inline:clamp(1rem,4vw,2rem)}
.header-inner{display:flex;align-items:center;gap:1rem;padding-block:1.25rem}
.brand{display:flex;align-items:center;gap:1rem;color:var(--ink);text-decoration:none;min-width:0}
.brand img{display:block;width:4.5rem;height:4.5rem;object-fit:contain;flex:none}
.brand-name{display:block;font-size:clamp(1.35rem,3vw,1.8rem);font-weight:750;line-height:1.2}
.brand-tagline{display:block;color:var(--muted);font-size:.9rem;line-height:1.4;margin-top:.2rem}
.site-nav{padding-block:0 1rem}
.site-nav ul,.footer-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;margin:0;padding:0}
.site-nav a,.footer-nav a{display:inline-block;padding:.35rem 0;font-weight:600}
.site-main{max-width:var(--max);margin:0 auto;padding:clamp(1.5rem,4vw,3rem) clamp(1rem,4vw,2rem) 4rem;min-height:50vh}
.reading-column{max-width:var(--read);margin-inline:auto}
h1,h2,h3{line-height:1.22;letter-spacing:-.015em}
h1{font-size:clamp(2rem,4.8vw,3rem);margin:0 0 .8rem}
h2{font-size:clamp(1.55rem,3vw,2rem);margin-top:2.3rem}
h3{font-size:clamp(1.2rem,2.5vw,1.5rem)}
p{margin:0 0 1.15rem}
.entry-meta{color:var(--muted);font-size:.95rem;margin-bottom:2rem}
.entry-content{max-width:100%}
.entry-content>*,.entry-content .wp-block-group{max-width:100%}
.entry-content img,.entry-summary img{display:block;max-width:100%;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important}
.entry-content figure{max-width:100%;height:auto;margin:1.7rem auto}
.entry-content .wp-block-image img,.entry-content .wp-caption img{width:auto!important;max-width:min(100%,34rem)!important;height:auto!important;margin-inline:auto}
.entry-content figcaption{text-align:center;color:var(--muted);font-size:.92rem}
.entry-content iframe,.entry-content video{max-width:100%}
.entry-content table{display:block;max-width:100%;overflow-x:auto}
.entry-content blockquote{border-left:4px solid var(--accent);margin:1.5rem 0;padding:.3rem 1.3rem;color:var(--muted)}
.front-content{max-width:var(--max)}
.front-content .entry-content{max-width:none}
.front-content .entry-content>div{max-width:100%!important;padding-inline:0!important}
.front-content .entry-content section{max-width:100%}
.front-content .entry-content article img{max-width:100%!important;height:100%!important;object-fit:contain!important}
.listing-title{margin-bottom:1.5rem}
.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1.25rem}
.post-card{background:var(--white);border:1px solid var(--line);border-radius:.5rem;overflow:hidden;display:flex;flex-direction:column}
.post-card-image{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#efedf3;overflow:hidden}
.post-card-image img{display:block;width:100%;height:100%!important;object-fit:contain!important}
.post-card-body{padding:1.1rem 1.25rem 1.35rem;flex:1}
.post-card h2{font-size:1.35rem;margin:0 0 .5rem}
.post-card time{color:var(--muted);font-size:.9rem}
.post-card p{margin:.8rem 0 0}
.pagination{margin:2rem 0}.pagination .nav-links{display:flex;flex-wrap:wrap;gap:.65rem}.page-numbers{padding:.35rem .65rem;border:1px solid var(--line);border-radius:.2rem}
.post-navigation{border-top:1px solid var(--line);padding-top:1.5rem;margin-top:2.5rem;display:flex;justify-content:space-between;gap:1rem}
.site-footer{background:var(--white);border-top:1px solid var(--line)}
.site-footer-inner{padding-block:2rem 2.5rem}
.footer-nav{margin-bottom:1.5rem}
.site-rights{max-width:60rem;color:var(--muted);font-size:.92rem;line-height:1.6}
.site-rights p{margin:0 0 .65rem}
.comments-area{margin-top:3rem;border-top:1px solid var(--line);padding-top:1rem}
input,textarea,button{font:inherit}input,textarea{max-width:100%;padding:.6rem;border:1px solid #686270;border-radius:.2rem}button,input[type=submit]{min-height:2.75rem;padding:.5rem 1rem;background:var(--accent);color:var(--white);border:2px solid var(--accent);border-radius:.25rem;cursor:pointer}
button:hover,input[type=submit]:hover{background:var(--ink)}
@media(max-width:600px){.brand img{width:3.6rem;height:3.6rem}.site-nav ul{gap:.1rem .9rem}.site-nav a{min-height:2.75rem;display:inline-flex;align-items:center}.post-navigation{display:block}.post-navigation>*{display:block;margin-bottom:1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Keyboard destinations and narrow-screen form reflow. */
#main[tabindex="-1"]:focus,
#ww-recent[tabindex="-1"]:focus,
#ww-collections[tabindex="-1"]:focus { outline:3px solid var(--focus); outline-offset:3px; }
.wp-block-search__inside-wrapper { min-width:0; }
.wp-block-search__input { min-width:0; width:0; flex:1 1 auto; }
.wp-block-search__button { flex:0 0 auto; }
@media(max-width:360px) {
 .wp-block-search__inside-wrapper { flex-wrap:wrap; gap:.5rem; }
 .wp-block-search__input { flex-basis:100%; width:100%; }
 .wp-block-search__button { margin-left:0; }
}

/* Reader improvements: compact screens, touch navigation, and printed essays. */
.entry-content a { overflow-wrap:anywhere; }
.site-nav a,.footer-nav a { min-height:44px; display:inline-flex; align-items:center; }
.site-nav a[aria-current="page"],.footer-nav a[aria-current="page"] { text-decoration-thickness:.18em; }
@media print {
  body { background:#fff; color:#000; font-size:12pt; line-height:1.5; }
  .skip-link,.site-header,.site-footer,.post-navigation,.comments-area,
  .entry-content .sharedaddy,.entry-content .jetpack-likes-widget-wrapper,
  .entry-content .wp-block-jetpack-subscriptions { display:none!important; }
  .site-main { max-width:none; margin:0; padding:0; min-height:0; }
  .reading-column { max-width:none; }
  a { color:#000; }
  h1,h2,h3 { break-after:avoid; }
  figure,img,blockquote { break-inside:avoid; }
  p { orphans:3; widows:3; }
}

/* Homepage reading layout, November 2026. */
.front-content .wp-block-latest-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;list-style:none;padding:0;margin:1.25rem 0 0}
.front-content .wp-block-latest-posts>li{margin:0;padding:1.25rem;background:var(--white);border:1px solid var(--line);border-radius:.5rem;min-width:0}
.front-content .wp-block-latest-posts__post-title{display:block;font-size:1.2rem;font-weight:700;line-height:1.35}
.front-content .wp-block-latest-posts__post-date{display:block;margin:.6rem 0;color:var(--muted);font-size:.9rem}
.front-content .wp-block-latest-posts__post-excerpt{margin:.75rem 0 0;line-height:1.65}
@media(max-width:760px){
 .front-content .wp-block-latest-posts{grid-template-columns:1fr}
}
@media(max-width:480px){
 .header-inner{padding-block:1rem}
 .brand{gap:.75rem}
 .site-main{padding-top:1.5rem}
 .site-nav ul{column-gap:1rem;row-gap:0}
}

.front-content nav[aria-label="Homepage sections"] ul{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;list-style:none;padding:0;margin:0}
.front-content nav[aria-label="Homepage sections"] li{margin:0}
.front-content nav[aria-label="Homepage sections"] a{display:inline-flex;align-items:center;min-height:44px}

.ww-home-intro .ww-home-logo{mix-blend-mode:multiply}

/* Keep keyboard destinations visible for readers and signed-in editors. */
.skip-link{z-index:100000}
#main,#ww-recent,#ww-collections{scroll-margin-top:1rem}
.admin-bar .skip-link:focus{top:calc(32px + 1rem)}
.admin-bar #main,.admin-bar #ww-recent,.admin-bar #ww-collections{scroll-margin-top:calc(32px + 1rem)}
@media(max-width:782px){
 .admin-bar .skip-link:focus{top:calc(46px + 1rem)}
 .admin-bar #main,.admin-bar #ww-recent,.admin-bar #ww-collections{scroll-margin-top:calc(46px + 1rem)}
}

/* A single, responsive homepage introduction. */
.home .site-nav{padding-top:.75rem}
.front-content>article>h1{text-align:center;margin:0 0 1.25rem}
.front-content .ww-home-intro{
 display:grid!important;grid-template-columns:160px minmax(0,1fr);
 align-items:center!important;gap:2rem!important;
 padding:0 0 2rem!important;margin:0 auto;
}
.front-content .ww-home-intro .ww-home-logo{
 width:160px!important;max-width:100%;height:auto!important;
 justify-self:center;
}
.front-content .ww-home-intro>div{min-width:0}
.front-content .ww-home-intro p{max-width:42rem}
.front-content .wp-block-search{max-width:42rem;margin:0 0 .5rem}
.front-content section[aria-labelledby="ww-collections"] article{
 display:flex;flex-direction:column;
}
.front-content section[aria-labelledby="ww-collections"] article>p:last-child{
 margin-top:auto!important;padding-top:.5rem;
}
@media(max-width:600px){
 .front-content>article>h1{margin-bottom:1rem}
 .front-content .ww-home-intro{
  grid-template-columns:minmax(0,1fr);gap:1rem!important;text-align:center;
  padding-bottom:1.5rem!important;
 }
 .front-content .ww-home-intro .ww-home-logo{width:120px!important}
 .front-content .ww-home-intro p{margin-inline:auto!important}
 .front-content nav[aria-label="Homepage sections"] ul{justify-content:center}
}

/* Existing article images on the latest-writing cards. */
.front-content .wp-block-latest-posts__featured-image{
 margin:0 0 1rem;aspect-ratio:3/2;width:100%;overflow:hidden;
 display:flex;align-items:center;justify-content:center;background:#f4f4f4;border-radius:.3rem;
}
.front-content .wp-block-latest-posts__featured-image>a{
 display:flex;width:100%;height:100%;align-items:center;justify-content:center;
}
.front-content .entry-content .wp-block-latest-posts__featured-image img{
 width:100%!important;height:100%!important;max-height:100%;object-fit:contain!important;
}
