/*
Theme Name: Clock
Theme URI: https://clock.pencoyd.com
Author: John B. Roberts
Description: A text-first block theme for the Clock journal. The newest post leads the home page as a large text block, with no image expected. Plum and stone palette.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: clock
*/
/* Most styling lives in theme.json; this file holds only what it cannot express. */
.site-header-band,.site-footer-band{border-color:var(--wp--preset--color--brass)}
.site-header-band .wp-block-site-logo img{border-radius:50%;border:3px solid var(--wp--preset--color--brass);object-fit:cover;aspect-ratio:1}
.site-footer-band .wp-block-site-logo img{border-radius:50%;border:2px solid var(--wp--preset--color--brass);object-fit:cover;aspect-ratio:1}
.site-header-band a,.site-footer-band a,.site-header-band .wp-block-navigation-item__content,.site-footer-band .wp-block-navigation-item__content{color:#f4ecf3;text-decoration:none}
.site-header-band .wp-block-site-title a,.site-footer-band .wp-block-site-title a{color:#f4ecf3}
.wp-block-post-title a{color:var(--wp--preset--color--ink);text-decoration:none}
.wp-block-post-title a:hover,.wp-block-post-title a:focus{color:var(--wp--preset--color--plum);text-decoration:underline;text-underline-offset:4px}
.site-header-band .wp-block-navigation a:hover,.site-footer-band a:hover{text-decoration:underline;text-decoration-color:var(--wp--preset--color--brass);text-underline-offset:6px}

/* Home: newest post is featured on page 1 only (WordPress adds body.paged on later pages). */
body:not(.paged) .home-list .wp-block-post-template>li:first-child{background:var(--wp--preset--color--paper);border:1px solid var(--wp--preset--color--rule);border-left:6px solid var(--wp--preset--color--brass);padding:2rem 2.25rem;margin-bottom:2rem}
body:not(.paged) .home-list .wp-block-post-template>li:first-child .wp-block-post-title{font-size:var(--wp--preset--font-size--xx-large);line-height:1.15}
body:not(.paged) .home-list .wp-block-post-template>li:first-child .wp-block-post-excerpt__excerpt{display:block;-webkit-line-clamp:unset;font-size:var(--wp--preset--font-size--large)}
body:not(.paged) .home-list .wp-block-post-template>li:first-child::before{content:"Newest";display:block;font:600 .75rem var(--wp--preset--font-family--sans);text-transform:uppercase;letter-spacing:.14em;color:var(--wp--preset--color--brass-text);margin-bottom:.5rem}
.home-list .wp-block-post-template>li:not(:first-child),.archive-list .wp-block-post-template>li{border-bottom:1px solid var(--wp--preset--color--rule);padding:1.1rem 0}
body.paged .home-list .wp-block-post-template>li:first-child{border-top:0}
.home-list .wp-block-post-template>li:not(:first-child) .wp-block-post-excerpt__excerpt,.archive-list .wp-block-post-excerpt__excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.wp-block-post-date,.wp-block-calendar,.wp-block-archives,.wp-block-query-pagination{font-family:var(--wp--preset--font-family--sans)}
.sidebar-box{background:var(--wp--preset--color--paper);border:1px solid var(--wp--preset--color--rule);padding:1.1rem 1.25rem;margin-bottom:1.5rem}
.sidebar-box h2{font:600 .8rem var(--wp--preset--font-family--sans);text-transform:uppercase;letter-spacing:.14em;color:var(--wp--preset--color--plum);margin:0 0 .6rem}
.wp-block-calendar table{width:100%}.wp-block-calendar caption{font-family:var(--wp--preset--font-family--display);font-weight:700;text-align:left;color:var(--wp--preset--color--ink)}
.wp-block-calendar td a{display:inline-block;width:1.8em;line-height:1.8em;border-radius:50%;background:var(--wp--preset--color--plum);color:#fff;text-decoration:none;text-align:center}
.wp-block-calendar tfoot a{text-decoration:none}
.sidebar-box ul{list-style:none;margin:0;padding:0}.sidebar-box li{padding:.15rem 0}
.year-grid ul{columns:3 8rem;list-style:none;padding:0;font-size:1.2rem}
/* Posts are text-first; categories, tags and comments stay hidden for now. */
.wp-block-post-terms,.wp-block-comments,.wp-block-post-comments-form{display:none}
.wp-block-calendar tfoot a{white-space:nowrap}

/* Keep each post's date, title and excerpt tight together; separate posts clearly. */
.wp-block-post-template>li>*{margin-block:0}
.wp-block-post-template>li .wp-block-post-date{margin-bottom:.3rem}
.wp-block-post-template>li .wp-block-post-title{margin-bottom:.6rem}
.wp-block-post-template>li .wp-block-post-excerpt__more-text{margin:.4rem 0 0}
.home-list .wp-block-post-template,.archive-list .wp-block-post-template{gap:0}
.home-list .wp-block-post-template>li:not(:first-child),.archive-list .wp-block-post-template>li{padding:1.6rem 0}
.wp-block-calendar tbody td a{display:inline-block;width:1.8em;line-height:1.8em;border-radius:50%;background:var(--wp--preset--color--plum);color:#fff;text-decoration:none;text-align:center}
.wp-block-calendar tbody td{text-align:center}
.wp-calendar-nav{display:flex;justify-content:space-between;font-size:var(--wp--preset--font-size--small)}
