/*
Theme Name: Vanessa Fox 2026
Theme URI: https://www.vanessafox.com/
Author: Vanessa Fox
Description: Block theme for vanessafox.com. Evolves the site's existing identity: the condensed green wordmark, bold-italic Crimson titles with a green date bar, Source Sans body, a main column of work beside a narrow side column. Built from the October 2026 mockups.
Version: 1.0.5
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vanessafox-2026
*/

/* ---------- colour and type tokens (light, then dark) ---------- */
:root{
  --vf-bg:#FFFFFF; --vf-ink:#1C1D1A; --vf-soft:#F3F4EE; --vf-green:#3F6B3E; --vf-olive:#625E44; --vf-rule:#D9D8CD;
  --vf-ok:#2C6A3A; --vf-bad:#A23420;
  --vf-logo:"Sofia Sans Extra Condensed","Arial Narrow",Arial,sans-serif;
  --vf-title:"Crimson Pro","Crimson Text",Georgia,serif;
  --vf-text:"Source Sans 3","Segoe UI",Verdana,Arial,sans-serif;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --vf-bg:#171915; --vf-ink:#ECEBE4; --vf-soft:#21241E; --vf-green:#9DCC99; --vf-olive:#BDB99B; --vf-rule:#373A31;
    --vf-ok:#9DCC99; --vf-bad:#F0907C; color-scheme:dark;
    --wp--preset--color--base:#171915; --wp--preset--color--contrast:#ECEBE4; --wp--preset--color--soft:#21241E;
    --wp--preset--color--green:#9DCC99; --wp--preset--color--olive:#BDB99B; --wp--preset--color--rule:#373A31;
  }
}
:root[data-theme="dark"]{
  --vf-bg:#171915; --vf-ink:#ECEBE4; --vf-soft:#21241E; --vf-green:#9DCC99; --vf-olive:#BDB99B; --vf-rule:#373A31;
  --vf-ok:#9DCC99; --vf-bad:#F0907C; color-scheme:dark;
  --wp--preset--color--base:#171915; --wp--preset--color--contrast:#ECEBE4; --wp--preset--color--soft:#21241E;
  --wp--preset--color--green:#9DCC99; --wp--preset--color--olive:#BDB99B; --wp--preset--color--rule:#373A31;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background:var(--vf-bg);color:var(--vf-ink);font-family:var(--vf-text);font-size:1.125rem;line-height:1.6;margin:0}
a{color:var(--vf-green);text-decoration:underline;text-underline-offset:.15em}
a:hover{text-decoration-thickness:.14em}
a:focus-visible{outline:3px solid var(--vf-green);outline-offset:2px}
p{margin:0 0 1rem}
img{display:block;height:auto;max-width:100%}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);word-wrap:normal!important}
.skip-link{left:-9999rem;top:1rem;z-index:999;background:var(--vf-green);color:var(--vf-bg);padding:.5rem .9rem;text-decoration:none}
.skip-link:focus{left:1rem;outline:0}

/* the page column: 80rem max, 16-40px gutters */
.vf-wrap{max-width:80rem;margin:0 auto;padding-inline:clamp(16px,4vw,40px)}
.wp-site-blocks{padding:0}

/* ---------- header ---------- */
.vf-top{padding-block:1.6rem 1.1rem;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:.4rem 2rem}
.vf-logo{font-family:var(--vf-logo);font-weight:800;font-size:clamp(2.6rem,6vw,3.6rem);line-height:.9;text-transform:uppercase;text-decoration:none;color:var(--vf-ink);display:inline-block}
.vf-logo b{color:var(--vf-green);font-weight:800}
.vf-logo:hover{color:var(--vf-green)}
.vf-tagline{margin:0;color:var(--vf-olive);font-size:1.05rem;max-width:26rem;text-align:right}

.vf-nav{border-block:1px solid var(--vf-rule);font-size:1.125rem}
.vf-nav .wp-block-navigation__container{gap:0 1.75rem;flex-wrap:wrap}
.vf-nav .wp-block-navigation-item__content{display:block;padding-block:.7rem;color:var(--vf-ink);text-decoration:none;font-weight:600}
.vf-nav .wp-block-navigation-item__content:hover{color:var(--vf-green);text-decoration:underline}
.vf-nav .current-menu-item>.wp-block-navigation-item__content{color:var(--vf-green)}
.vf-nav .wp-block-navigation__responsive-container-open,
.vf-nav .wp-block-navigation__responsive-container-close{color:var(--vf-ink);padding-block:.6rem}
nav.vf-nav .wp-block-navigation__responsive-container.is-menu-open{background-color:var(--vf-bg);color:var(--vf-ink);padding:1.5rem clamp(16px,4vw,40px)}
nav.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{padding-top:2.5rem}
nav.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{flex-direction:column;align-items:flex-start;gap:.2rem}
nav.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:1.4rem;color:var(--vf-ink);padding-block:.5rem}
nav.vf-nav .wp-block-navigation__responsive-container-close{color:var(--vf-ink)}

/* ---------- home ---------- */
.vf-intro{padding-block:2.75rem}
.vf-intro h1{font-family:var(--vf-title);font-style:italic;font-weight:700;font-size:clamp(1.9rem,4.2vw,2.75rem);line-height:1.14;margin:0 0 1rem;max-width:22em;text-wrap:balance}
.vf-intro p{max-width:40em}
.vf-actions{display:flex;flex-wrap:wrap;gap:.8rem 1.5rem;align-items:center;margin-top:1.4rem}
.vf-btn,.vf-btn:visited,.wp-block-button__link{background:var(--vf-green);color:var(--vf-bg);font-weight:600;text-decoration:none;padding:.6rem 1.15rem;border-radius:3px;display:inline-block;font-size:1.125rem;line-height:1.4}
.vf-btn:hover,.wp-block-button__link:hover{text-decoration:underline;color:var(--vf-bg)}

.vf-cols{display:grid;grid-template-columns:minmax(0,1fr) 17.5rem;gap:3rem 3.5rem;padding-block:2.5rem 3.5rem;border-top:1px solid var(--vf-rule)}
.vf-cols>*{min-width:0}

.vf-datebar,.wp-block-post-date.vf-datebar{display:inline-block;background:var(--vf-green);color:var(--vf-bg);font-size:.8rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:.2rem .6rem;margin-bottom:.6rem;font-family:var(--vf-text)}
.vf-datebar a{color:inherit;text-decoration:none}
.vf-kicker{font-family:var(--vf-text);font-style:normal;font-size:1rem;font-weight:600;color:var(--vf-olive);margin:3rem 0 1.25rem;padding-bottom:.4rem;border-bottom:1px solid var(--vf-rule)}
.vf-kicker:first-child{margin-top:0}

/* post lists (query loops) */
.wp-block-post-template{list-style:none;margin:0;padding:0}
.wp-block-post-template>li{margin-bottom:2.25rem}
.vf-list .wp-block-post-title{font-family:var(--vf-title);font-style:italic;font-weight:700;font-size:1.6rem;line-height:1.2;margin:0 0 .35rem;text-wrap:balance}
.vf-list .wp-block-post-title a{color:var(--vf-ink);text-decoration-color:var(--vf-rule)}
.vf-list .wp-block-post-title a:hover{color:var(--vf-green);text-decoration-color:var(--vf-green)}
.vf-when,.wp-block-post-date.vf-when{color:var(--vf-olive);font-size:.92rem;margin:0 0 .5rem;font-family:var(--vf-text)}
.vf-list .wp-block-post-excerpt{max-width:38em}
.vf-list .wp-block-post-excerpt__more-text{display:none}
.vf-list .wp-block-post-featured-image{margin:1rem 0 0}
.vf-list .wp-block-post-featured-image img{border:1px solid var(--vf-rule)}
.vf-more{margin-top:.5rem}
.wp-block-query-pagination{display:flex;flex-wrap:wrap;gap:1rem 2rem;margin-top:2rem;font-weight:600}

/* side column */
.vf-side section,.vf-side .vf-section{margin-bottom:2.5rem}
.vf-side h2{font-family:var(--vf-text);font-style:normal;font-size:1rem;font-weight:600;color:var(--vf-olive);margin:0 0 .8rem;padding-bottom:.4rem;border-bottom:1px solid var(--vf-rule)}
.vf-side p,.vf-side li{font-size:1rem;line-height:1.5}
.vf-side ul{list-style:none;margin:0;padding:0;display:grid;gap:.85rem}
.vf-side li span{display:block;color:var(--vf-olive);font-size:.9rem}
.vf-side .wp-block-image{margin:0 0 .8rem}
.vf-book img{width:150px;border:1px solid var(--vf-rule)}
.vf-portrait img{width:200px}
.vf-box{background:var(--vf-soft);padding:1.1rem 1.2rem .5rem;border-top:4px solid var(--vf-green)}
.vf-box h2{border:0;padding:0}
.vf-box .vf-btn{margin:.2rem 0 .9rem}

/* ---------- inner pages ---------- */
.vf-page{display:grid;grid-template-columns:minmax(0,1fr) 17.5rem;gap:2.5rem 3.5rem;padding-block:2.75rem 3.5rem}
.vf-page>*{min-width:0}
.vf-page h1,.vf-post h1,.vf-title{font-family:var(--vf-title);font-style:italic;font-weight:700;font-size:clamp(2rem,4.4vw,2.9rem);line-height:1.12;margin:0 0 .8rem;text-wrap:balance}
.vf-byline{color:var(--vf-olive);font-size:1rem;margin:0 0 1.75rem}
.vf-byline a{color:inherit}
.vf-byline .wp-block-post-terms{display:inline}
.vf-byline .wp-block-post-date{display:inline}

/* long-form text: pages and posts */
.vf-prose,.entry-content{max-width:41em}
/* pages with a side column: the column is wider than a comfortable line, so text
   keeps a reading width while tables, code and screenshots use the whole column */
.vf-page .entry-content{max-width:none}
.vf-page .entry-content>*{max-width:38em}
.vf-page .entry-content>:is(.wp-block-table,.wp-block-code,pre,figure,.wp-block-image,.vf-tool,.vf-tbl){max-width:none}
.vf-prose h2,.entry-content h2{font-family:var(--vf-title);font-style:italic;font-weight:700;font-size:1.75rem;line-height:1.2;margin:2.5rem 0 .7rem;text-wrap:balance}
.vf-prose h3,.entry-content h3{font-family:var(--vf-text);font-size:1.2rem;font-weight:600;margin:2rem 0 .5rem}
.entry-content h4{font-size:1.05rem;font-weight:600;margin:1.5rem 0 .4rem}
.vf-prose ul,.vf-prose ol,.entry-content ul,.entry-content ol{padding-left:1.2rem;margin:0 0 1rem}
.vf-prose li,.entry-content li{margin-bottom:.55rem}
.entry-content figure,.entry-content .wp-block-image{margin:1.75rem 0}
.entry-content img{border:1px solid var(--vf-rule)}
.entry-content figcaption,.wp-element-caption{color:var(--vf-olive);font-size:.88rem;margin-top:.4rem;text-align:left}
.entry-content a{overflow-wrap:anywhere}
.entry-content blockquote{margin:1.5rem 0;padding:.2rem 0 .2rem 1.2rem;border-left:4px solid var(--vf-rule);color:var(--vf-olive)}
.entry-content pre,.entry-content code{font-family:ui-monospace,Consolas,"Courier New",monospace;font-size:.92em}
.entry-content pre{background:var(--vf-soft);padding:1rem;overflow-x:auto}
.entry-content hr{border:0;border-top:1px solid var(--vf-rule);margin:2rem 0}
.entry-content .alignleft{float:left;margin:.3rem 1.5rem 1rem 0}
.entry-content .alignright{float:right;margin:.3rem 0 1rem 1.5rem}
.entry-content .aligncenter{margin-inline:auto}
.entry-content::after{content:"";display:table;clear:both}

.vf-tldr{background:var(--vf-soft);border-left:4px solid var(--vf-green);padding:1.1rem 1.3rem .4rem;margin:0 0 1.75rem}
.vf-tldr .vf-lab,.vf-tldr>p:first-child strong{display:block;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase;color:var(--vf-green);margin-bottom:.5rem}

/* tables (reference pages, tools) */
.vf-tbl,.wp-block-table{overflow-x:auto;margin:1.1rem 0}
table{border-collapse:collapse;width:100%;min-width:30rem;font-size:.98rem}
th,td{text-align:left;padding:.5rem .8rem .5rem 0;border-bottom:1px solid var(--vf-rule)}
thead th{font-weight:600;color:var(--vf-olive);font-size:.9rem}
tbody th{font-weight:600}
.wp-block-table td,.wp-block-table th{border:0;border-bottom:1px solid var(--vf-rule)}
td.vf-ok{color:var(--vf-ok);font-weight:600}
td.vf-bad{color:var(--vf-bad);font-weight:600}

/* dated lists: "The short version", "What changed" */
dl.vf-time{display:grid;grid-template-columns:6.5rem minmax(0,1fr);gap:.7rem 1.25rem;margin:0 0 1rem}
dl.vf-time dt{font-weight:600;color:var(--vf-olive)}
dl.vf-time dd{margin:0}

/* "On this page" (reference template) */
.vf-toc{position:sticky;top:1.5rem;max-height:calc(100vh - 3rem);overflow-y:auto}
/* the side column fills its grid row (it sits inside a template-part wrapper), so the
   sticky "On this page" list stays in view while reading */
.vf-page>.wp-block-template-part>.vf-tocside{height:100%}
.vf-toc h2{font-style:normal}
.vf-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:.55rem;font-size:1rem;line-height:1.35}
.vf-toc ol ol{margin:.45rem 0 0 1rem;font-size:.95rem}

/* ---------- single post ---------- */
.vf-post{max-width:44rem;padding-block:2.75rem 3.5rem}
.vf-post .entry-content{max-width:none}
.vf-post .entry-content p{max-width:41em}
.vf-after{margin-top:3rem;display:grid;gap:2rem}
.vf-after .vf-box h2{font-family:var(--vf-text);font-style:normal;font-size:1rem;font-weight:600;color:var(--vf-olive);margin:0 0 .6rem}
.vf-older{border-top:1px solid var(--vf-rule);padding-top:1.25rem;display:grid;gap:1rem}
.vf-older p,.vf-older .wp-block-post-navigation-link{margin:0}
.vf-older span,.vf-older .post-navigation-link__label{display:block;color:var(--vf-olive);font-size:.9rem}
.vf-older a{font-weight:600}

/* forms (contact page, tools) */
.entry-content label,.vf-form label{display:block;font-weight:600;margin-bottom:.3rem}
.entry-content input[type=text],.entry-content input[type=email],.entry-content input[type=url],.entry-content input[type=tel],.entry-content textarea,.entry-content select,
.wp-block-search__input{font:inherit;padding:.55rem .7rem;border:1px solid var(--vf-olive);border-radius:3px;background:var(--vf-bg);color:var(--vf-ink);width:100%;max-width:32rem}
.entry-content input:focus-visible,.entry-content textarea:focus-visible,.wp-block-search__input:focus-visible{outline:3px solid var(--vf-green);outline-offset:1px}
.entry-content input[type=submit],.entry-content button,.wp-block-search__button{font:inherit;font-weight:600;border:0;cursor:pointer;background:var(--vf-green);color:var(--vf-bg);padding:.6rem 1.15rem;border-radius:3px}
.entry-content input[type=submit]:hover,.entry-content button:hover,.wp-block-search__button:hover{text-decoration:underline}
.vf-formnote{color:var(--vf-olive);font-size:.95rem;margin:.8rem 0 0;max-width:41em}
.wp-block-search__inside-wrapper{display:flex;gap:.6rem;flex-wrap:wrap;max-width:32rem}
.wp-block-search__input{flex:1 1 14rem}

/* tools page sections */
.vf-tool{border-top:1px solid var(--vf-rule);margin-top:2.5rem;padding-top:2rem}
.vf-tool .vf-datebar{margin-bottom:.4rem}
.vf-tool h2{margin-top:0}

/* archive / search / 404 */
.vf-archive-title{font-family:var(--vf-title);font-style:italic;font-weight:700;font-size:clamp(1.9rem,4.2vw,2.6rem);line-height:1.14;margin:0 0 .6rem}
.vf-archive-title .wp-block-query-title{display:inline}
.vf-lede{max-width:41em;color:var(--vf-olive)}

/* ---------- footer ---------- */
.vf-footer{background:var(--vf-soft);border-top:1px solid var(--vf-rule);padding-block:2rem 2.5rem;font-size:1rem;margin-top:0}
.vf-footer .vf-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem 3rem}
.vf-footer p{margin:0;max-width:30em}
.vf-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem 1.4rem}

/* ---------- responsive ---------- */
@media (max-width:860px){
  .vf-cols,.vf-page{grid-template-columns:minmax(0,1fr)}
  .vf-page>.vf-tocside{order:-1}
  .vf-toc{position:static;max-height:none}
  .vf-tagline{text-align:left}
}
@media (min-width:861px){
  /* reference pages: a narrower "On this page" column leaves more room for tables */
  .vf-page:has(.vf-tocside){grid-template-columns:minmax(0,1fr) 15rem}
}
@media (min-width:1040px){
  /* wider screens: let table columns size to their content (the note columns get the room)
     instead of WordPress's equal-width "fixed" columns; narrower screens keep fixed, which
     never overflows. 1040px is where the vendor table on the Reference page still fits. */
  .vf-page .entry-content .wp-block-table table.has-fixed-layout{table-layout:auto}
  .vf-page .entry-content .wp-block-table table.has-fixed-layout :is(td,th){word-break:normal}
}
@media (max-width:560px){
  body{font-size:1.0625rem}
}

/* ---------- editor-only tweaks ---------- */
.editor-styles-wrapper{background:var(--vf-bg);color:var(--vf-ink);font-family:var(--vf-text)}
