/*
Theme Name: Shepherd Code
Theme URI: https://shepherd-code.com/
Author: Shepherd Code
Description: Original high-contrast editorial theme for Shepherd Code lessons and field notes.
Version: 1.0.1
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: shepherd-code
*/

:root{--bg:#080807;--surface:#15130f;--surface2:#1b1712;--ink:#f7f3ea;--muted:#d1c9bd;--gold:#e4c078;--red:#b93228;--line:#554936;--max:1120px;--read:760px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.7}a{color:var(--gold);text-underline-offset:.2em}a:hover{color:var(--ink)}img{max-width:100%;height:auto}.skip{position:absolute;left:-9999px;top:0;background:var(--gold);color:#080807;padding:.75rem 1rem;z-index:999}.skip:focus{left:1rem;top:1rem}.site-header{border-bottom:1px solid var(--line);background:rgba(8,8,7,.96)}.nav{max-width:var(--max);margin:auto;min-height:72px;padding:0 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{color:var(--ink);font-size:.98rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase;text-decoration:none}.nav-links{display:flex;gap:.75rem;align-items:center}.nav-link{display:inline-flex;align-items:center;min-height:44px;padding:.45rem .9rem;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-weight:800;text-decoration:none}.nav-link:hover,.nav-link:focus-visible{background:var(--red);border-color:var(--red);color:var(--ink)}.hero{min-height:510px;display:flex;align-items:flex-end;border-bottom:1px solid var(--line);background:radial-gradient(circle at 20% 35%,rgba(185,50,40,.2),transparent 34%),linear-gradient(125deg,#17100d 0%,#080807 62%)}.hero-inner{width:100%;max-width:var(--max);margin:auto;padding:clamp(5rem,10vw,8.5rem) 1.25rem 4rem}.eyebrow{margin:0 0 .7rem;color:var(--gold);font-size:.78rem;font-weight:900;letter-spacing:.22em;text-transform:uppercase}.hero h1,.page-title,.article-title{font-family:Georgia,"Times New Roman",serif;line-height:.98;letter-spacing:-.035em}.hero h1{max-width:900px;margin:.2rem 0 1.4rem;font-size:clamp(3.15rem,8.8vw,7.5rem)}.hero p{max-width:760px;margin:0;color:var(--muted);font-size:clamp(1.05rem,2vw,1.3rem)}.notice{border-bottom:1px solid var(--line);background:var(--surface)}.notice-inner{max-width:var(--max);margin:auto;padding:1.05rem 1.25rem;display:flex;gap:1rem;align-items:flex-start}.notice strong{color:var(--gold)}.content{max-width:var(--max);margin:auto;padding:clamp(4rem,8vw,7rem) 1.25rem}.section-head{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:2rem}.section-head h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.25rem,5vw,4.1rem);line-height:1.05;margin:.2rem 0}.section-head>p{max-width:300px;color:var(--muted)}.post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.post-card{display:flex;flex-direction:column;min-height:340px;padding:clamp(1.5rem,4vw,2.4rem);border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);text-decoration:none;transition:transform .18s ease,border-color .18s ease}.post-card:hover,.post-card:focus-visible{transform:translateY(-3px);border-color:var(--gold);outline:2px solid var(--gold);outline-offset:3px}.post-card h3{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.65rem,3vw,2.35rem);line-height:1.12;margin:1rem 0 .75rem}.post-card p{color:var(--muted);margin:0}.post-meta{color:var(--gold);font-size:.73rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.read-more{margin-top:auto;padding-top:2rem;color:var(--ink);font-weight:900}.empty-state{padding:2rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--muted)}.article-hero{border-bottom:1px solid var(--line);background:radial-gradient(circle at 18% 36%,rgba(185,50,40,.18),transparent 34%)}.article-hero-inner{max-width:var(--read);margin:auto;padding:clamp(4.5rem,9vw,7rem) 1.25rem 3.5rem}.article-title{font-size:clamp(2.7rem,7vw,5.5rem);margin:.5rem 0 1.3rem}.article-meta{color:var(--muted)}.article{max-width:var(--read);margin:auto;padding:clamp(3.5rem,7vw,6rem) 1.25rem;font-family:Georgia,"Times New Roman",serif;font-size:1.18rem}.article h2,.article h3{color:var(--ink);line-height:1.18;margin-top:2.5rem}.article h2{font-size:2rem}.article h3{font-size:1.45rem}.article p,.article li{color:var(--ink)}.article blockquote{margin:2rem 0;padding:1.35rem 1.5rem;border-left:4px solid var(--red);background:var(--surface);font-size:1.25rem}.article code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em}.article pre{overflow:auto;padding:1rem;border:1px solid var(--line);border-radius:8px;background:#111}.post-nav{max-width:var(--read);margin:0 auto;padding:0 1.25rem 4rem;display:flex;justify-content:space-between;gap:1rem}.post-nav a{display:inline-flex;min-height:44px;align-items:center;padding:.6rem .9rem;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none;font-weight:800}.pagination{margin-top:2.5rem}.site-footer{border-top:1px solid var(--line);color:var(--muted)}.footer-inner{max-width:var(--max);margin:auto;padding:2rem 1.25rem;display:flex;justify-content:space-between;gap:1rem}.error-page{max-width:var(--read);margin:auto;padding:8rem 1.25rem}.error-page h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(3rem,8vw,6rem)}@media(max-width:720px){.hero{min-height:430px}.hero-inner{padding-top:5rem}.section-head,.footer-inner{display:block}.post-grid{grid-template-columns:1fr}.notice-inner{display:grid;grid-template-columns:auto 1fr}.nav{min-height:64px}.nav-link{font-size:.85rem}.article{font-size:1.08rem}.post-nav{flex-direction:column}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.post-card-media{display:block;margin:-1.75rem -1.75rem 1.35rem;overflow:hidden;border-bottom:1px solid var(--line);border-radius:15px 15px 0 0;background:var(--surface2)}.post-card-media img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.article-featured{margin:0 0 2rem}.article-featured img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:16px}@media(max-width:700px){.post-card-media{margin:-1.25rem -1.25rem 1.1rem}.article-featured{margin-bottom:1.4rem}}


/* Responsive lesson tables */
.article table{width:100%;border-collapse:collapse;margin:2rem 0;font-size:.96em}.article th,.article td{padding:.85rem .9rem;border:1px solid var(--line);vertical-align:top;text-align:left}.article th{background:var(--surface2);color:var(--gold)}
@media(max-width:700px){.article table,.article tbody,.article tr,.article td{display:block;width:100%}.article thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.article tr{margin:0 0 1rem;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.article td{position:relative;min-height:3rem;padding:.75rem .85rem .75rem 7.2rem;border:0;border-bottom:1px solid var(--line)}.article td:last-child{border-bottom:0}.article td:before{position:absolute;left:.85rem;top:.75rem;width:5.7rem;color:var(--gold);font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.article td:nth-child(1):before{content:"Category"}.article td:nth-child(2):before{content:"Observation"}.article td:nth-child(3):before{content:"Reference"}}
