/*
Theme Name: Phoenix Ridge 2026
Theme URI: http://phoenixridge.net
Author: Matthew J. Denton
Description: Ember Hour: a warm photo journal for Phoenix Ridge. Dusk masthead, justified galleries, a photo viewer, Keeper Notes with numbered entries and Files that follow a topic over time.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: phoenix
*/

/* ===================================================================== base */
:root { --barn:#8e2f36; --barn-deep:#5e1e24; --ember:#e0612b; --flame:#f2a33a; --ash:#2a2422; --smoke:#6b625d; --hay:#f7f0e4; --linen:#ece2d0;
  --fire:linear-gradient(90deg,var(--barn) 0%,var(--ember) 55%,var(--flame) 100%);
  --serif:'Playfair Display',Georgia,serif; --sans:'Source Sans 3',system-ui,sans-serif; --script:'Cormorant Garamond','Playfair Display',Georgia,serif; }
*, *::before, *::after { box-sizing:border-box; }
body { margin:0; background:var(--hay); color:var(--ash); font:17px/1.65 var(--sans); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, dl, dd, blockquote { margin:0; }
img { display:block; max-width:100%; height:auto; }
a { color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline:2px solid var(--flame); outline-offset:3px; border-radius:2px; }
.wp-site-blocks { overflow-x:clip; }
.wp-site-blocks > * + * { margin-block-start:0; }
.wrap, main.wrap { max-width:1180px; margin-left:auto; margin-right:auto; padding:0 32px; }
.screen-reader-text { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link:focus { clip:auto; width:auto; height:auto; z-index:300; background:#fff; padding:10px 16px; left:8px; top:8px; }
.ico { width:22px; height:22px; flex:none; }
.kicker { font:700 12px var(--sans); text-transform:uppercase; letter-spacing:.14em; color:var(--barn); display:flex; align-items:center; gap:6px; }
.kicker .ico { width:15px; height:15px; }
.date { font-size:13px; color:var(--smoke); }
.btn { display:inline-flex; align-items:center; gap:10px; padding:11px 24px; border:2px solid var(--barn); color:var(--barn); font:700 12px var(--sans); text-transform:uppercase; letter-spacing:.13em; transition:background .15s, color .15s; }
.btn::after { content:"→"; color:var(--ember); transition:transform .2s; } .btn:hover, .btn:focus-visible { background:var(--barn); color:#fff; } .btn:hover::after { transform:translateX(4px); color:var(--flame); }
.more { text-align:center; margin:54px 0 0; }
.more a { display:inline-flex; align-items:center; gap:10px; padding:11px 26px; border:2px solid var(--barn); color:var(--barn); font:700 13px var(--sans); text-transform:uppercase; letter-spacing:.12em; transition:background .15s, color .15s; }
.more a::after { content:"→"; color:var(--ember); transition:transform .25s; }
.more a:hover, .more a:focus-visible { background:var(--barn); color:#fff; } .more a:hover::after { transform:translateX(4px); color:var(--flame); }

/* section heading: near-cursive italic, swept rule */
.shead { display:flex; align-items:center; gap:18px; margin:64px 0 26px; }
.shead .shead-t { font:italic 600 38px/1.1 var(--script); letter-spacing:.005em; color:var(--barn); white-space:nowrap; }
.shead .sweep { flex:1; height:20px; min-width:60px; }
.shead span { font:600 12px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--smoke); white-space:nowrap; }

/* ===================================================================== masthead */
.dusk { position:relative; overflow:hidden; text-align:center; color:#fff;
  background:radial-gradient(ellipse 55% 85% at 50% 108%,#ffe6a8 0%,var(--flame) 22%,var(--ember) 42%,rgba(142,47,54,0) 72%),linear-gradient(180deg,#2b1416 0%,var(--barn-deep) 45%,var(--barn) 100%); }
.dusk .in { position:relative; z-index:3; padding:46px 20px 136px; }
.dusk .mast-h { margin:0; font:inherit; }
.mast-word { font:700 68px/1 var(--serif); letter-spacing:.01em; color:#fff6ea; }
.mast-word i { font-weight:400; color:var(--flame); transition:color .18s; }
.dusk .tagline { font:italic 18px var(--serif); color:#f6dcc6; margin-top:8px; }
.dusk .nav { display:flex; justify-content:center; flex-wrap:wrap; gap:6px 24px; margin-top:24px; font:600 13px var(--sans); text-transform:uppercase; letter-spacing:.12em; color:#f6dcc6; }
.dusk .nav a { border-bottom:2px solid transparent; padding:2px 0; transition:color .15s, border-color .15s; }
.dusk .nav a.on, .dusk .nav a:hover, .dusk .nav a:focus-visible { color:var(--flame); border-bottom-color:var(--flame); }
.dusk svg.r { position:absolute; left:0; bottom:-1px; width:100%; height:120px; z-index:2; }
.dusk.short .in { padding:26px 20px 84px; } .dusk.short .mast-word { font-size:46px; } .dusk.short .nav { margin-top:14px; }
.dusk.short svg.r { height:80px; }
/* wordmark hover: cream fill stays, a fine flame outline sits outside it */
.mast-word .px, .mw .px { -webkit-text-stroke:1px transparent; paint-order:stroke fill; transition:-webkit-text-stroke-color .18s; }
.mast-word:hover .px, .mast-word:focus-visible .px, .mw:hover .px { -webkit-text-stroke:1px var(--flame); }
.mast-word:hover i, .mast-word:focus-visible i, .mw:hover i { color:#ffd38c; }
/* slim bar once the masthead scrolls away (desktop + tablet) */
.mini { position:fixed; left:0; right:0; top:0; z-index:60; color:#f6dcc6; transform:translateY(-110%); transition:transform .22s ease-out;
  background:radial-gradient(ellipse 30% 160% at 50% 140%,rgba(242,163,58,.55),rgba(224,97,43,0) 70%),linear-gradient(180deg,#2b1416,var(--barn-deep)); box-shadow:0 6px 20px rgba(42,20,18,.25); }
.admin-bar .mini { top:32px; }
.mini::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--fire); }
.mini .in { display:flex; align-items:center; justify-content:space-between; gap:24px; height:58px; }
.mini .mw { font:700 24px/1 var(--serif); color:#fff6ea; white-space:nowrap; } .mini .mw i { font-weight:400; color:var(--flame); }
.mini .nav { display:flex; gap:20px; font:600 12px var(--sans); text-transform:uppercase; letter-spacing:.12em; white-space:nowrap; overflow-x:auto; min-width:0; scrollbar-width:none; }
.mini .nav a { border-bottom:2px solid transparent; transition:color .15s, border-color .15s; }
.mini .nav a.on, .mini .nav a:hover { color:var(--flame); border-bottom-color:var(--flame); }
body.scrolled .mini { transform:none; }
@media (max-width:1000px) { .mini .nav { gap:16px; } .mini .nav [data-home] { display:none; } .mini .mw { font-size:21px; } }
@media (max-width:767px) { .mini { display:none; } }

/* ===================================================================== home */
.feat { display:grid; grid-template-columns:1.35fr 1fr; margin-top:50px; background:#fffaf1; box-shadow:0 14px 40px rgba(42,36,34,.12); }
.feat .ph { position:relative; display:block; overflow:hidden; }
.feat .ph img { width:100%; height:100%; aspect-ratio:4/3; object-fit:cover; transition:filter .2s; }
.feat .ph .count { position:absolute; left:16px; bottom:16px; background:rgba(43,20,22,.78); color:#fff6ea; font:600 12px var(--sans); letter-spacing:.12em; text-transform:uppercase; padding:6px 12px; transition:background .2s; }
.feat .ph::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--fire); }
.feat:hover .ph img { filter:brightness(1.06) saturate(1.08); } .feat:hover .ph .count { background:var(--ember); }
.feat .txt { padding:40px 42px; display:flex; flex-direction:column; justify-content:center; position:relative; }
.feat .txt::before { content:""; position:absolute; left:0; top:12%; bottom:12%; width:4px; background:linear-gradient(180deg,var(--flame),var(--ember),var(--barn)); }
.feat h2 { font:700 38px/1.1 var(--serif); margin:10px 0 8px; }
.feat h2 a { transition:color .15s; } .feat h2 a:hover { color:var(--barn); text-decoration:underline; text-decoration-color:var(--flame); text-underline-offset:5px; text-decoration-thickness:2px; }
.feat p { color:#4f4743; margin:10px 0 20px; }
.feat .btn { align-self:flex-start; }
.wander { margin-top:70px; } .wander .shead { margin-top:0; }
.tiles { display:grid; grid-template-columns:repeat(8,1fr); gap:12px; }
.tiles a { display:flex; flex-direction:column; align-items:center; gap:8px; padding:18px 6px 14px; background:#fffaf1; border:1px solid #eadcc6; border-bottom:3px solid transparent; text-align:center; font-size:14px; transition:background .15s, border-color .15s; }
.tiles a:hover, .tiles a:focus-visible { background:#fff; border-bottom-color:var(--ember); color:var(--barn); }
.tiles .ico { width:30px; height:30px; color:var(--barn); transition:color .15s; } .tiles a:hover .ico { color:var(--ember); }
.tiles b { display:block; font:700 12px var(--sans); color:var(--ember); }

/* story cards (query loop) */
.pquery { margin:0; }
.pgrid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px 26px; list-style:none; margin:0; padding:0; }
.pgrid > li { margin:0; min-width:0; }
.pc { display:block; }
.pc .ph { position:relative; overflow:hidden; border-radius:3px; background:var(--linen); }
.pc .ph::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--fire); transition:height .15s; }
.pc img { width:100%; aspect-ratio:3/2; object-fit:cover; transition:filter .2s; }
.pc .noimg { display:flex; align-items:center; justify-content:center; aspect-ratio:3/2; background:radial-gradient(ellipse 70% 90% at 50% 120%,var(--flame),var(--ember) 40%,var(--barn-deep) 85%); color:#fff6ea; }
.pc .noimg .ico { width:46px; height:46px; opacity:.85; }
.pc .meta { display:flex; align-items:baseline; gap:8px; margin-top:11px; }
.pc .meta .ico { width:18px; height:18px; color:var(--ember); align-self:center; }
.pc .t { flex:1; font:400 16px/1.35 var(--serif); color:#3d3431; letter-spacing:.005em; transition:color .15s; }
.pc .dt { font-size:13px; color:var(--smoke); white-space:nowrap; }
.pc:hover .ph::after, .pc:focus-visible .ph::after { height:6px; } .pc:hover img { filter:brightness(1.06) saturate(1.08); }
.pc:hover .t, .pc:focus-visible .t { color:var(--barn); text-decoration:underline; text-decoration-color:var(--flame); text-underline-offset:4px; }
/* home mosaic: the first card is big on page one */
body.home:not(.paged) .mosaic > li:first-child { grid-column:span 2; grid-row:span 2; }
.pc.big { height:100%; display:flex; flex-direction:column; } .pc.big .ph { flex:1; min-height:0; } .pc.big img { position:absolute; inset:0; height:100%; aspect-ratio:auto; } .pc.big .t { font-size:19px; }
body.home:not(.paged) .pager { display:none; }
/* pagination */
.pager { margin-top:56px; gap:10px; align-items:center; font:600 14px var(--sans); }
.pager a, .pager .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 12px; border:1px solid #d8cbb6; background:#fffaf2; color:var(--ash); transition:border-color .15s, background .15s, color .15s; }
.pager .wp-block-query-pagination-numbers { display:flex; gap:6px; flex-wrap:wrap; }
.pager .page-numbers.current { background:var(--barn); border-color:var(--barn); color:#fff; }
.pager .page-numbers.dots { border:0; background:none; }
.pager a:hover, .pager a:focus-visible { border-color:var(--barn); background:#fff; color:var(--barn); text-decoration:underline; text-decoration-color:var(--flame); text-underline-offset:4px; }
.pager .wp-block-query-pagination-previous, .pager .wp-block-query-pagination-next { text-transform:uppercase; letter-spacing:.1em; font-size:12px; color:var(--barn); border-width:2px; border-color:var(--barn); }
.empty { padding:30px 0; font:italic 20px var(--serif); color:var(--smoke); }

/* keeper's almanac */
.keep { margin-top:100px; background:var(--barn-deep); color:#f3e6dc; padding:0 0 64px; }
.keep > svg { display:block; width:100%; height:70px; background:var(--hay); }
.keep .shead .shead-t { color:#fff3df; } .keep .shead span { color:#e6b9a0; }
.keep .lede { color:#e2cfc2; max-width:62ch; margin:-12px 0 26px; }
.entries { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid rgba(255,255,255,.18); }
.entries a { padding:26px 26px 10px 0; border-right:1px solid rgba(255,255,255,.14); }
.entries a + a { padding-left:26px; } .entries a:last-child { border-right:0; }
.no { font:700 54px/1 var(--serif); background:var(--fire); -webkit-background-clip:text; background-clip:text; color:transparent; display:block; }
.entries .no { background:linear-gradient(90deg,#c0464b,var(--ember) 45%,var(--flame)); -webkit-background-clip:text; background-clip:text; transition:filter .15s; }
.entries .lab { font:600 11px var(--sans); letter-spacing:.16em; text-transform:uppercase; color:#e6b9a0; display:flex; align-items:center; gap:6px; margin:8px 0 6px; }
.entries .lab .ico { width:16px; height:16px; color:var(--flame); }
.entries b { display:block; font:700 21px/1.25 var(--serif); color:#fff6ea; transition:color .15s; }
.entries a:hover b, .entries a:focus-visible b { color:var(--flame); text-decoration:underline; text-decoration-color:var(--flame); text-underline-offset:4px; }
.entries a:hover .no { filter:brightness(1.25); }
.entries p { font-size:15px; color:#e2cfc2; margin-top:8px; }
.keep .btn { color:var(--flame); border-color:var(--ember); margin-top:26px; } .keep .btn:hover, .keep .btn:focus-visible { background:var(--ember); color:#fff; }
.home .site-foot { margin-top:0; } .home .site-foot > svg { background:var(--barn-deep); }

/* ===================================================================== archives, search, 404, pages */
.ahead { margin:56px 0 34px; }
.ahead h1 { font:italic 600 54px/1.05 var(--script); color:var(--barn); margin:10px 0 8px; }
.ahead .sweep { display:block; width:min(520px,100%); height:18px; }
.ahead .adesc { max-width:64ch; margin-top:14px; color:#4f4743; font:400 18px/1.7 var(--serif); }
.ahead .adesc a { color:var(--barn); border-bottom:1px solid var(--flame); } .ahead .adesc a:hover { background:#f6e3cc; border-bottom-color:var(--barn); }
.notes-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 40px; list-style:none; margin:0; padding:0; border-top:1px solid #e2d3bd; }
.notes-list > li { margin:0; border-bottom:1px solid #e2d3bd; }
.nc { display:grid; grid-template-columns:minmax(0,44%) minmax(0,1fr); gap:24px; align-items:start; padding:28px 0; }
.nc .ph { position:relative; display:block; overflow:hidden; border-radius:3px; background:var(--linen); aspect-ratio:4/3; }
.nc .ph::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--fire); transition:height .15s; }
.nc .ph img { width:100%; height:100%; object-fit:cover; transition:transform .4s, filter .2s; }
.nc .ph.none { display:flex; align-items:center; justify-content:center; color:var(--barn);
  background:#fffdf7 repeating-linear-gradient(180deg,transparent 0 21px,#e6d8c3 21px 22px); border:1px solid #eadcc6; }
.nc .ph.none::before { content:""; position:absolute; left:28px; top:0; bottom:0; width:1px; background:rgba(224,97,43,.45); }
.nc .ico.paper { width:54px; height:54px; opacity:.75; }
.nc .no { position:absolute; z-index:1; left:0; bottom:3px; padding:7px 14px 5px 12px; font:700 28px/1 var(--serif); color:var(--flame); background:var(--barn-deep); border-top-right-radius:3px; }
.nc .ph.none .no { background:var(--barn); }
.nc .tx { display:block; min-width:0; }
.nc .lab { font:600 11px var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--ember); display:flex; align-items:center; gap:6px; margin:2px 0 6px; }
.nc .lab .ico { width:16px; height:16px; }
.nc b { display:block; font:700 22px/1.25 var(--serif); transition:color .15s; }
.nc .ex { display:block; font-size:15px; color:#574f4a; margin-top:8px; }
.nc .go { display:inline-block; margin-top:12px; font:700 11px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--barn); border-bottom:2px solid var(--flame); padding-bottom:1px; transition:color .15s, border-color .15s; }
.nc:hover b, .nc:focus-visible b { color:var(--barn); text-decoration:underline; text-decoration-color:var(--flame); text-underline-offset:4px; }
.nc:hover .ph::after, .nc:focus-visible .ph::after { height:6px; } .nc:hover .ph img { transform:scale(1.04); filter:brightness(1.06) saturate(1.08); }
.nc:hover .go, .nc:focus-visible .go { color:var(--ember); border-color:var(--barn); }
.searchbox { max-width:560px; margin:0 0 40px; }
.searchbox .wp-block-search__inside-wrapper { display:flex; border:2px solid var(--barn); background:#fffaf2; }
.searchbox input[type=search] { flex:1; border:0; background:transparent; padding:12px 14px; font:18px var(--serif); color:var(--ash); min-width:0; }
.searchbox button { border:0; background:var(--barn); color:#fff; padding:0 22px; font:700 12px var(--sans); letter-spacing:.13em; text-transform:uppercase; cursor:pointer; transition:background .15s; }
.searchbox button:hover, .searchbox button:focus-visible { background:var(--ember); }
.lost { font:400 20px/1.7 var(--serif); max-width:60ch; margin-bottom:24px; }
.page-main .wander { margin-top:40px; }
.page-title { font:700 48px/1.1 var(--serif); margin:56px 0 28px; }

/* ===================================================================== single story */
.story-hero { position:relative; margin-top:-1px; background:var(--barn-deep); }
.story-hero img { width:100%; height:78vh; min-height:440px; max-height:980px; object-fit:cover; }
.story-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(43,20,22,0) 45%,rgba(43,20,22,.82) 100%); pointer-events:none; }
.story-hero .cap { position:absolute; z-index:2; left:0; right:0; bottom:0; color:#fff6ea; padding-bottom:40px; pointer-events:none; }
.story-hero .kicker { color:var(--flame); }
.story-hero h1 { font:700 56px/1.05 var(--serif); margin:10px 0 14px; max-width:20ch; text-shadow:0 2px 14px rgba(0,0,0,.35); }
.meta { display:flex; flex-wrap:wrap; gap:8px 22px; font-size:14px; color:#f0dccd; }
.meta span { display:flex; align-items:center; gap:6px; } .meta .ico { width:17px; height:17px; color:var(--flame); }
.story-hero.plain { padding:70px 0 0; }
.story-hero.plain::after { display:none; }
.story-hero.plain .cap { position:relative; padding-bottom:20px; }
.story-hero.plain svg.r { display:block; width:100%; height:60px; }
/* story text and media */
.story .entry-content { margin-top:56px; }
.story .entry-content > * { max-width:720px; margin-left:auto; margin-right:auto; padding-left:24px; padding-right:24px; }
.story .entry-content > p, .story .entry-content > ul, .story .entry-content > ol { font:400 19px/1.75 var(--serif); color:#3a322f; margin-bottom:22px; box-sizing:content-box; }
.story .entry-content > p:first-child { font-size:21px; line-height:1.7; }
.story .entry-content > p.has-drop::first-letter { float:left; font:700 76px/.82 var(--serif); color:var(--barn); margin:6px 10px 0 0; }
.story .entry-content a, .prose a { color:var(--barn); border-bottom:1px solid var(--flame); transition:background .15s, border-color .15s; }
.story .entry-content a:hover, .prose a:hover, .story .entry-content a:focus-visible, .prose a:focus-visible { background:#f6e3cc; border-bottom-color:var(--barn); }
.story .entry-content a:has(img), .prose a:has(img) { border:0; background:none; }
.story .entry-content h2, .story .entry-content h3, .prose h2, .prose h3 { font:italic 600 34px/1.15 var(--script); color:var(--barn); margin:44px auto 14px; }
.story .entry-content h3, .prose h3 { font-size:28px; }
.story .entry-content blockquote, .prose blockquote { border-left:4px solid var(--ember); padding:4px 0 4px 22px; margin:28px auto; font:italic 400 24px/1.45 var(--serif); color:var(--barn); }
.story .entry-content > .pgal, .story .entry-content > .wp-block-gallery, .story .entry-content > .tiled-gallery, .story .entry-content > .alignwide, .story .entry-content > .wp-block-embed, .story .entry-content > .alignfull { max-width:1240px; padding-left:20px; padding-right:20px; }
.story .entry-content > .alignfull { max-width:none; padding:0; }
.story .entry-content > .pgal, .story .entry-content > p > .pgal { margin-top:36px; margin-bottom:36px; }
.story .entry-content > p:has(> .pgal) { max-width:1240px; padding:0 20px; font-size:0; }
.pgal { display:flex; flex-direction:column; gap:10px; margin:30px auto; }
.prose .pgal { margin:24px 0; }
.jrow { display:flex; gap:10px; } .jrow[style] { margin:0 auto; width:100%; }
.jrow figure { overflow:hidden; margin:0; min-width:0; position:relative; }
.jrow img { width:100%; height:auto; display:block; }
.jrow figcaption { position:absolute; left:0; right:0; bottom:0; padding:22px 12px 8px; font:italic 14px var(--serif); color:#fff6ea; background:linear-gradient(180deg,transparent,rgba(43,20,22,.75)); }
.story .entry-content figure, .story .entry-content .wp-caption, .story .entry-content .wp-block-image { margin-top:30px; margin-bottom:30px; }
.story .entry-content .wp-caption, .prose .wp-caption { max-width:100% !important; width:auto !important; }
.story .entry-content figcaption, .wp-caption-text, .prose figcaption { font:italic 15px var(--serif); color:var(--smoke); margin-top:8px; text-align:center; }
.story .entry-content img { margin:0 auto; }
.story .entry-content > p > img, .story .entry-content > p > a > img { margin:30px auto; }
.alignleft { float:left; margin:6px 24px 14px 0; } .alignright { float:right; margin:6px 0 14px 24px; } .aligncenter { margin-left:auto; margin-right:auto; text-align:center; }
.story .entry-content iframe, .prose iframe, .wp-block-embed iframe { display:block; width:100%; max-width:100%; height:auto; aspect-ratio:16/9; border:0; margin:30px auto; }
.wp-block-embed__wrapper { position:relative; }
.story .entry-content::after, .prose::after { content:""; display:table; clear:both; }
.story .entry-content > hr, .prose hr { border:0; height:2px; background:var(--fire); max-width:200px; margin:40px auto; padding:0; }
/* viewer-ready images */
@media (min-width:768px) { img.zoomable { cursor:zoom-in; } }
img.zoomable:focus-visible { outline:3px solid var(--flame); outline-offset:3px; }
.story-hero img.zoomable { cursor:zoom-in; }
/* topics row */
.tags { display:flex; justify-content:center; gap:10px; margin:44px auto 0; flex-wrap:wrap; max-width:820px; padding:0 24px; }
.tags a { padding:6px 14px; border:1px solid #d8cbb6; border-radius:999px; font-size:14px; background:#fffaf2; display:flex; gap:6px; align-items:center; transition:border-color .15s, color .15s, background .15s; }
.tags .ico { width:17px; height:17px; color:var(--ember); }
.tags a.tag { color:var(--smoke); }
.tags a:hover, .tags a:focus-visible { border-color:var(--barn); color:var(--barn); background:#fff; text-decoration:underline; text-decoration-color:var(--flame); text-underline-offset:3px; }

/* ===================================================================== previous / next: ridge windows */
.pnx { margin-top:80px; }
.pnx small { display:block; font:600 11px var(--sans); letter-spacing:.16em; text-transform:uppercase; }
.pnx .tt { display:block; font:italic 600 30px/1.1 var(--script); }
.pnx .dt { font-size:13px; opacity:.85; }
.pnx.windows { display:grid; grid-template-columns:1fr 1fr; gap:14px; max-width:1240px; margin-left:auto; margin-right:auto; padding:0 20px; }
.windows a { position:relative; display:block; height:340px; overflow:hidden; color:#fff6ea; background:var(--barn-deep); }
.windows img, .windows .noimg { width:100%; height:100%; object-fit:cover; transition:transform .5s, filter .3s; filter:brightness(.82) saturate(.95); }
.windows .noimg { display:block; background:radial-gradient(ellipse 70% 90% at 50% 120%,var(--flame),var(--ember) 40%,var(--barn-deep) 85%); }
.windows a::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,rgba(43,20,22,0) 25%,rgba(43,20,22,.55) 55%,rgba(43,20,22,.88)); }
.windows .cut { position:absolute; left:0; right:0; bottom:-1px; z-index:3; width:100%; height:46px; }
.windows .lab { position:absolute; z-index:2; left:28px; right:28px; bottom:50px; }
.windows .next .lab { text-align:right; }
.windows small { color:var(--flame); text-shadow:0 1px 6px rgba(0,0,0,.7); } .windows .tt, .windows .dt { text-shadow:0 1px 8px rgba(0,0,0,.55); }
.windows .arr { display:inline-block; transition:transform .25s; }
.windows a:hover img, .windows a:focus-visible img { transform:scale(1.04); filter:brightness(1) saturate(1.1); }
.windows a:hover .tt, .windows a:focus-visible .tt { text-decoration:underline; text-decoration-color:var(--flame); text-decoration-thickness:2px; text-underline-offset:6px; }
.windows a.prev:hover .arr { transform:translateX(-6px); } .windows a.next:hover .arr { transform:translateX(6px); }
.windows .none { display:block; }

/* ===================================================================== keeper note */
.nhead { background:var(--barn-deep); color:#f3e6dc; margin-top:-1px; padding:46px 0 0; }
.nhead .in { display:grid; grid-template-columns:auto 1fr; gap:34px; align-items:end; }
.nhead .no { font:700 150px/.8 var(--serif); }
.nhead .no small { display:block; font:600 12px var(--sans); letter-spacing:.18em; text-transform:uppercase; color:#e6b9a0; -webkit-text-fill-color:#e6b9a0; margin-bottom:12px; }
.nhead .kicker { color:var(--flame); }
.nhead h1 { font:700 54px/1.05 var(--serif); color:#fff6ea; margin-top:8px; }
.nhead .meta { margin-top:12px; color:#e2cfc2; }
.nhead .meta a { border-bottom:1px solid var(--flame); transition:color .15s; } .nhead .meta a:hover, .nhead .meta a:focus-visible { color:var(--flame); }
.nhead > svg { display:block; width:100%; height:60px; margin-top:34px; }
.note-main { padding-top:44px; }
.prose { font:400 19px/1.75 var(--serif); color:#3a322f; max-width:720px; margin:0 auto; }
.prose > * { margin-bottom:18px; }
.prose ul, .prose ol { padding-left:1.3em; }
.prose li { margin-bottom:6px; }
.prose img { margin:6px 0 10px; }
.prose figure, .prose .wp-caption { display:block; margin:24px 0; }
.note-main .tags { margin-top:36px; }
/* ruled list: every line box is 34px and every rule sits 1px under the text, so rules never cross text */
.prose ul.routine, .routine { --lh:34px; list-style:none; padding:var(--lh) 24px 4px; background-color:#fffdf7; border:1px solid #eadcc6; margin:8px 0 26px; font:400 17px/var(--lh) var(--sans);
  background-image:repeating-linear-gradient(180deg,transparent 0 29px,#e6d8c3 29px 30px,transparent 30px var(--lh)); background-position:0 calc(var(--lh) + 1px); }
.routine li { list-style:none; display:flex; gap:12px; align-items:flex-start; margin:0; padding:0; line-height:var(--lh); }
.routine li::before { content:""; flex:none; width:16px; height:16px; margin-top:9px; border:2px solid var(--barn); border-radius:3px; }
/* file timeline */
.file { margin:70px auto 0; max-width:1180px; background:var(--barn-deep); color:#f3e6dc; padding:34px 36px 30px; }
.story .file { width:calc(100% - 40px); }
.note-main .file { width:auto; }
.file h2 { font:italic 600 33px/1.15 var(--script); color:#fff3df; display:flex; align-items:center; gap:14px; } .file h2 .sweep { flex:1; height:14px; }
.file p.sub { color:#e2cfc2; font-size:15px; margin:4px 0 22px; }
.file p.sub a { color:var(--flame); border-bottom:1px solid transparent; margin-left:6px; white-space:nowrap; transition:border-color .15s; }
.file p.sub a::after { content:" →"; } .file p.sub a:hover, .file p.sub a:focus-visible { border-bottom-color:var(--flame); color:#ffd38c; }
.tl { position:relative; display:grid; grid-template-columns:repeat(var(--n,3),minmax(0,1fr)); gap:24px; }
.tl::before { content:""; position:absolute; left:0; right:0; top:9px; height:2px; background:linear-gradient(90deg,var(--flame),var(--ember),rgba(224,97,43,.2)); }
.tl > a, .tl > .here { position:relative; padding-top:30px; display:block; }
.tl > a::before, .tl > .here::before { content:""; position:absolute; left:0; top:2px; width:16px; height:16px; border-radius:50%; background:var(--barn-deep); border:3px solid var(--flame); box-sizing:border-box; transition:background .15s; }
.tl > .here::before { background:var(--flame); }
.tl small { font:600 11px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--flame); }
.tl b { display:block; font:700 19px/1.25 var(--serif); color:#fff6ea; margin:4px 0; transition:color .15s; }
.tl > a:hover b, .tl > a:focus-visible b { color:var(--flame); text-decoration:underline; text-decoration-color:var(--flame); text-underline-offset:4px; }
.tl > a:hover::before { background:var(--ember); }
.tl span { font-size:14px; color:#e2cfc2; display:block; }
/* keeper prose: diamond-marked notes, nested lists as chips, tips, a snapshot photo */
.prose ul:not(.routine) { list-style:none; padding:0; font:400 17px/1.6 var(--sans); }
.prose ul:not(.routine) > li { position:relative; padding:12px 0 12px 30px; margin:0; border-bottom:1px dashed #dccbb0; }
.prose ul:not(.routine) > li::before { content:""; position:absolute; left:4px; top:21px; width:9px; height:9px; transform:rotate(45deg); background:var(--fire); }
.prose ul:not(.routine) ul { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; padding:0; }
.prose ul:not(.routine) ul > li { padding:3px 11px; border:1px solid #e2cdb2; border-radius:999px; background:#fffaf1; font-size:14px; border-bottom:1px solid #e2cdb2; }
.prose ul:not(.routine) ul > li::before { display:none; }
.prose ol:not(.routine) { font:400 17px/1.6 var(--sans); }
.prose .tip { background:#fffaf1; border:1px solid #eadcc6; border-left:4px solid var(--ember); padding:14px 18px; font:400 17px/1.6 var(--sans); }
.prose .tip strong, .prose .tip em { font-style:normal; font-weight:700; color:var(--barn); }
.prose .wp-caption { display:inline-block !important; width:auto !important; background:#fff; padding:8px 8px 10px; box-shadow:0 8px 22px rgba(42,36,34,.12); margin:10px 0 18px; }
.prose .wp-caption img { margin:0; }
.prose .wp-caption .wp-caption-text { text-align:left; margin-top:6px; }
.routine li:has(s)::before { background:var(--barn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff6ea' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.routine li s { color:var(--smoke); text-decoration-color:var(--ember); }
/* long files read down the columns */
.tl.long { display:block; columns:3 240px; column-gap:34px; }
.tl.long::before { display:none; }
.tl.long > a, .tl.long > .here { break-inside:avoid; padding:0 0 20px 30px; border-left:2px solid rgba(242,163,58,.45); margin-left:7px; }
.tl.long > a::before, .tl.long > .here::before { left:-9px; top:2px; }
/* keeper previous / next: plain text, notes only */
.pn { display:flex; justify-content:space-between; gap:20px; margin-top:40px; font-size:15px; }
.pn a { padding:10px 14px; border:1px solid transparent; transition:border-color .15s, background .15s, box-shadow .15s; }
.pn a small { display:block; font:600 11px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--ember); } .pn a b { font:700 18px var(--serif); }
.pn .next { margin-left:auto; text-align:right; }
.pn .edge { padding:10px 14px; color:var(--smoke); font:italic 16px var(--serif); align-self:center; }
.pn.txt a:hover, .pn.txt a:focus-visible { border-color:var(--ember); background:#fff; box-shadow:0 6px 18px rgba(42,36,34,.1); }
.pn.txt a:hover b, .pn.txt a:focus-visible b { color:var(--barn); text-decoration:underline; text-decoration-color:var(--flame); text-underline-offset:4px; }
.pn.txt a:hover small { color:var(--barn); }

/* ===================================================================== comments */
.comments { max-width:720px; margin:70px auto 0; padding:0 24px; }
.comments h3, .comments .comment-reply-title { font:italic 600 30px/1.2 var(--script); color:var(--barn); margin:0 0 18px; }
.comments .wp-block-comment-template { list-style:none; padding:0; margin:0 0 30px; }
.comments .wp-block-comment-template ol { list-style:none; padding-left:28px; }
.comment { padding:18px 0; border-top:1px solid #e2d3bd; }
.comment .wp-block-comment-author-name { font:700 16px var(--serif); display:inline; }
.comment .wp-block-comment-date { display:inline; margin-left:10px; font-size:13px; color:var(--smoke); }
.comment .wp-block-comment-content { margin-top:6px; }
.comment a:hover { color:var(--barn); text-decoration:underline; text-decoration-color:var(--flame); }
.comment-reply-link { font:600 12px var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--barn); }
.comment-form p { margin-bottom:14px; }
.comment-form label { display:block; font:600 13px var(--sans); color:var(--smoke); margin-bottom:4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width:100%; padding:10px 12px; border:1px solid #d8cbb6; background:#fffaf2; font:16px var(--sans); color:var(--ash); }
.comment-form input:focus, .comment-form textarea:focus { border-color:var(--barn); outline:2px solid var(--flame); outline-offset:1px; }
.comment-form .submit, .wp-block-post-comments-form input[type=submit] { border:2px solid var(--barn); background:transparent; color:var(--barn); padding:11px 24px; font:700 12px var(--sans); letter-spacing:.13em; text-transform:uppercase; border-radius:0; cursor:pointer; transition:background .15s, color .15s; }
.comment-form .submit:hover, .comment-form .submit:focus-visible { background:var(--barn); color:#fff; }
.comment-form-cookies-consent { display:flex; gap:8px; align-items:flex-start; } .comment-form-cookies-consent label { display:inline; font-weight:400; }
.phx-hp { position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ===================================================================== footer */
.site-foot { margin-top:100px; background:#2b1416; color:#d9c4b8; font-size:15px; }
.site-foot > svg { display:block; width:100%; height:90px; background:var(--hay); }
.site-foot .cols { display:grid; grid-template-columns:1fr 1.2fr; gap:40px; padding-top:30px; padding-bottom:40px; }
.site-foot .fw { font:700 30px var(--serif); color:#fff6ea; } .site-foot .fw i { font-weight:400; color:var(--flame); }
.site-foot .about p + p { margin-top:10px; max-width:38ch; color:#cdb6a8; }
.site-foot .fh { font:600 11px var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--flame); margin-bottom:12px; }
.site-foot .topics { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; }
.site-foot .topics a { display:flex; align-items:center; gap:8px; color:#e8d6ca; transition:color .15s; justify-self:start; }
.site-foot .topics a:hover, .site-foot .topics a:focus-visible { color:var(--flame); text-decoration:underline; text-underline-offset:4px; }
.site-foot .topics .ico { width:17px; height:17px; color:var(--ember); }
.site-foot .else { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.site-foot .else a { padding:4px 12px; border:1px solid rgba(255,255,255,.25); border-radius:4px; font:700 14px var(--serif); display:flex; flex-direction:column; line-height:1.25; color:#e8d6ca; transition:border-color .15s, color .15s, background .15s; }
.site-foot .else a:hover, .site-foot .else a:focus-visible { border-color:var(--flame); color:#fff6ea; background:rgba(255,255,255,.06); }
.site-foot .else a span { font:11px var(--sans); opacity:.65; }
.site-foot .bar { align-items:center; border-top:1px solid rgba(255,255,255,.12); padding-top:16px; padding-bottom:60px; font-size:13px; color:#a8918a; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }

/* ===================================================================== photo viewer (desktop + tablet) */
.lb { position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; padding:24px 0 64px;
  background:rgba(24,14,14,.82); -webkit-backdrop-filter:grayscale(1) blur(3px); backdrop-filter:grayscale(1) blur(3px); }
.lb[hidden] { display:none; }
.lb img { max-width:calc(100vw - 180px); max-height:calc(100vh - 110px); width:auto; height:auto; object-fit:contain; box-shadow:0 20px 60px rgba(0,0,0,.55); cursor:zoom-out; background:#1b1414; }
.lb button { position:absolute; display:flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:50%; cursor:pointer; padding:0;
  background:rgba(43,20,22,.7); color:#fff6ea; border:1.5px solid rgba(255,246,234,.35); font:400 30px/1 var(--serif); transition:background .15s, border-color .15s; }
.lb button:hover, .lb button:focus-visible { background:var(--ember); border-color:var(--flame); outline:none; }
.lb .lb-prev { left:28px; top:50%; margin-top:-27px; } .lb .lb-next { right:28px; top:50%; margin-top:-27px; }
.lb .lb-x { top:20px; right:24px; width:44px; height:44px; font-size:26px; }
.lb .lb-count { position:absolute; bottom:22px; left:50%; transform:translateX(-50%); font:600 12px var(--sans); letter-spacing:.16em; color:#e6cfc0; background:rgba(43,20,22,.7); padding:6px 14px; border-radius:999px; }
.lb .lb-count::before { content:""; display:inline-block; width:18px; height:2px; background:var(--fire); vertical-align:middle; margin-right:10px; }
body.lb-open { overflow:hidden; }

/* ===================================================================== responsive */
@media (max-width:1000px) { .tiles { grid-template-columns:repeat(4,1fr); } }
@media (max-width:900px) { .pgrid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:860px) {
  .feat { grid-template-columns:1fr; }
  .entries { grid-template-columns:1fr; } .entries a, .entries a + a { padding:22px 0; border-right:0; border-bottom:1px solid rgba(255,255,255,.14); }
  .site-foot .cols { grid-template-columns:1fr; gap:28px; }
  .notes-list { grid-template-columns:1fr; }
  .nc { grid-template-columns:minmax(0,40%) minmax(0,1fr); }
}
@media (max-width:760px) { .pnx.windows { grid-template-columns:1fr; } .windows a { height:240px; } .windows .none { display:none; } }
@media (max-width:700px) {
  .story-hero img { height:66vh; min-height:0; } .story-hero h1 { font-size:34px; }
  .story .entry-content { margin-top:36px; } .story .entry-content > p, .story .entry-content > ul, .story .entry-content > ol { font-size:17px; padding-left:20px; padding-right:20px; } .story .entry-content > p:first-child { font-size:18px; }
  .story .entry-content > .pgal, .story .entry-content > p:has(> .pgal) { padding-left:12px; padding-right:12px; }
  .jrow { flex-wrap:wrap; } .jrow figure.p { flex:1 1 calc(50% - 5px) !important; } .jrow figure.l { flex:1 1 100% !important; }
  .jrow figure img { aspect-ratio:auto !important; height:100%; object-fit:cover; }
  .jrow[style] { max-width:none !important; }
  .nhead .in { grid-template-columns:1fr; gap:10px; } .nhead .no { font-size:90px; } .nhead h1 { font-size:38px; } .prose { font-size:17px; }
  .tl { grid-template-columns:1fr; } .tl::before { left:7px; right:auto; top:0; bottom:0; width:2px; height:auto; } .tl > a, .tl > .here { padding:0 0 0 30px; } .tl > a::before, .tl > .here::before { top:4px; }
  .file { padding:26px 20px; } .story .file { width:calc(100% - 24px); }
  .pn { flex-direction:column; } .pn .next { margin-left:0; }
  .alignleft, .alignright { float:none; margin:20px auto; }
}
@media (max-width:600px) {
  .wrap, main.wrap { padding:0 18px; }
  .dusk .in { padding:32px 16px 96px; } .mast-word { font-size:44px; } .dusk .nav { gap:4px 14px; font-size:12px; } .dusk.short .mast-word { font-size:36px; }
  .feat .txt { padding:26px 22px; } .feat h2 { font-size:28px; } .tiles { grid-template-columns:repeat(2,1fr); }
  .pgrid { grid-template-columns:1fr; }
  body.home:not(.paged) .mosaic > li:first-child { grid-column:auto; grid-row:auto; } .pc.big img { position:static; aspect-ratio:3/2; height:auto; }
  .shead .shead-t { font-size:30px; } .shead span { display:none; }
  .ahead h1 { font-size:40px; } .page-title { font-size:34px; }
  .nc { grid-template-columns:1fr; gap:14px; } .nc b { font-size:21px; }
  .story .entry-content h2, .prose h2 { font-size:29px; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { transition:none !important; scroll-behavior:auto !important; } }
