/*
Theme Name: Context Digest Journal
Description: An image-led journal with an editorial card grid and informational pages. No plugin dependencies.
Version: 2.1.1
Text Domain: contextdigest-editorial
*/
:root{--ink:#17343e;--muted:#586e71;--accent:#176b63;--accent-dark:#10534d;--navy:#102e3a;--paper:#f5f2e9;--line:#d8dfd8;--white:#fffefa;--wide:1200px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;font-size:17px;line-height:1.7}h1,h2,h3,.brand{font-family:Georgia,"Times New Roman",serif}a{color:var(--accent-dark);text-underline-offset:4px}a:hover{color:var(--accent)}img{max-width:100%;height:auto}button,input,textarea{font:inherit}.wrap{width:min(var(--wide),calc(100% - 48px));margin-inline:auto}.skip-link{position:absolute;top:-100px;left:20px;padding:10px;background:white;z-index:10}.skip-link:focus{top:10px}:focus-visible{outline:3px solid #bc8a36;outline-offset:4px}.site-header{background:var(--white);border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:88px}.brand{font-size:27px;font-weight:700;letter-spacing:-1px;text-decoration:none;color:var(--navy);white-space:nowrap}.brand span{color:var(--accent)}.site-nav{display:flex;align-items:center;gap:25px;font-size:14px;font-weight:650}.site-nav a{text-decoration:none;color:var(--ink)}.site-nav a:hover{color:var(--accent)}.hero{background:linear-gradient(112deg,#102e3a 0%,#153e48 55%,#1b635c 100%);color:#fffefa;padding:46px 0 48px}.hero-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(28px,5vw,72px);min-height:445px}.kicker{font-family:"Segoe UI",Arial,sans-serif;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;font-weight:750;color:var(--accent);margin:0 0 16px}.hero .kicker{color:#a7d7c2}.hero h1{font-size:clamp(38px,4vw,56px);line-height:1.08;letter-spacing:-1.2px;margin:0 0 22px}.hero-copy{color:#dce9e3;font-size:19px;line-height:1.6;max-width:560px;margin:0 0 28px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px}.button{display:inline-block;padding:11px 21px;background:#a7d7c2;border:1px solid #a7d7c2;border-radius:5px;text-decoration:none;color:#12372f;font-size:14px;font-weight:750}.button:hover{background:#c0e4d4;border-color:#c0e4d4;color:#12372f}.button-outline{background:transparent;color:#fffefa;border-color:#b0c9c6}.button-outline:hover{background:#ffffff12;color:white;border-color:white}.hero-feature{margin:0;min-width:0}.hero-image{display:block;border-radius:12px;overflow:hidden;background:#dce5df;aspect-ratio:16/9}.hero-image img{display:block;width:100%;height:100%;object-fit:cover}.hero-feature figcaption{font-size:11px;line-height:1.55;color:#cee1d8;margin-top:10px}.hero-feature figcaption a{color:#e5f5ee}.hero-feature-title{display:block;font-family:Georgia,"Times New Roman",serif;color:#fffefa;font-size:20px;line-height:1.35;text-decoration:none;margin-top:16px}.hero-feature-title:hover{color:#c0e4d4}.trust-band{background:#e5eee7;border-bottom:1px solid #cedbd0}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);padding-block:23px;gap:28px}.trust-item{display:flex;align-items:center;gap:13px}.trust-number{font-family:Georgia,serif;border:1px solid #aac4b6;color:var(--accent);border-radius:50%;width:36px;height:36px;display:grid;place-items:center;flex-shrink:0}.trust-item strong{font-family:Georgia,serif;display:block;font-size:16px;line-height:1.3}.trust-item small{display:block;color:var(--muted);font-size:12px}.section{padding:48px 0}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:25px}.section-heading h2{font-size:32px;line-height:1.2;letter-spacing:-.5px;margin:0}.section-heading p{color:var(--muted);font-size:14px;margin:0}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.post-card{display:flex;flex-direction:column;padding:13px;background:var(--white);border:1px solid #cdd8cf;border-radius:18px;box-shadow:0 8px 20px #14382e0d;min-width:0}.card-image{display:flex;align-items:center;justify-content:center;background:#e4e9e2;aspect-ratio:16/9;border-radius:11px;overflow:hidden;flex-shrink:0}.card-image img{display:block;width:100%;height:100%;object-fit:cover}.card-copy{display:flex;flex:1;flex-direction:column;padding:15px 7px 7px}.card-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:11px;line-height:1.4;color:var(--muted);margin-bottom:10px}.card-label{text-transform:uppercase;letter-spacing:.9px;font-weight:750;color:var(--accent)}.card-copy h3{font-size:23px;line-height:1.2;letter-spacing:-.3px;margin:0 0 13px}.card-copy h3 a{text-decoration:none;color:var(--ink)}.card-copy h3 a:hover{color:var(--accent)}.card-copy p{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 20px}.read-link{align-self:flex-end;margin-top:auto;border:1px solid var(--accent);border-radius:4px;padding:7px 11px;font-size:12px;line-height:1.2;font-weight:700;text-decoration:none}.read-link:hover{background:var(--accent);color:white}.principles{border-top:1px solid var(--line);background:#eeeee4}.principle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.principle-card{background:var(--white);border:1px solid var(--line);border-radius:15px;padding:27px}.principle-card h3{font-size:23px;line-height:1.25;margin:0 0 12px}.principle-card p{font-size:14px;line-height:1.65;color:var(--muted);margin:0 0 16px}.principle-card a{font-size:13px;font-weight:650}.site-footer{background:var(--navy);color:#d6e3df;padding:38px 0 20px}.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px;margin-bottom:27px}.footer-brand{font-family:Georgia,serif;font-size:26px;font-weight:700;margin:0 0 8px;color:#fffefa}.footer-copy{font-size:14px;max-width:440px;margin:0}.footer-note{font-size:14px;margin:0;padding-left:24px;border-left:1px solid #52716f}.footer-note strong{font-family:Georgia,serif;display:block;font-size:20px;color:#fffefa;margin-bottom:8px}.footer-links{display:flex;flex-wrap:wrap;gap:14px 26px;margin-bottom:22px}.site-footer a{color:#e8f3eb;font-size:13px}.footer-bottom{border-top:1px solid #3b5962;padding-top:15px;display:flex;justify-content:space-between;gap:20px;font-size:12px}.footer-bottom p{margin:0}.article-shell{padding:45px 0 70px}.article{width:min(920px,calc(100% - 48px));margin:auto;background:var(--white);padding:44px 60px;border:1px solid var(--line);border-radius:16px}.breadcrumb{font-size:12px;margin:0 0 26px;color:var(--muted)}.article h1{font-size:clamp(32px,3.4vw,44px);line-height:1.18;letter-spacing:-.8px;margin:12px 0 20px;overflow-wrap:anywhere}.article-meta{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px;color:var(--muted);padding-bottom:24px;margin-bottom:30px;border-bottom:1px solid var(--line)}.entry-content{overflow-wrap:anywhere}.entry-content h2{font-size:30px;line-height:1.25;letter-spacing:-.3px;margin:38px 0 17px}.entry-content h3{font-size:23px;line-height:1.35;margin:27px 0 13px}.entry-content p{margin:0 0 22px}.entry-content figure{width:100%;max-width:100%;margin:28px 0}.entry-content figure:has(>img){background:#edf0e8;padding:12px;border-radius:20px}.entry-content figure:first-child{margin-top:0}.entry-content figure img,.entry-content img{display:block;max-width:100%;width:auto;height:auto;margin-inline:auto;border-radius:12px}.entry-content figcaption{font-size:12px;line-height:1.6;color:var(--muted);padding:12px 3px 3px}.entry-content figure+p:has(>em:only-child){background:#eaf2ec;border-left:3px solid var(--accent);padding:16px 18px;font-size:14px}.entry-content table{display:block;max-width:100%;overflow:auto}.entry-content iframe,.entry-content video{max-width:100%}.entry-content ul{padding-left:23px}.entry-content li{margin-bottom:8px}.entry-content .notice{background:#eaf2ec;border-left:3px solid var(--accent);padding:18px}.pagination{margin-top:30px}.empty{color:var(--muted)}.back-link{display:inline-block;font-size:14px;margin-top:30px}.search-form{display:flex;gap:8px;margin-bottom:30px}.search-field{min-width:0;max-width:100%;padding:9px}.search-submit{padding:9px}.page-intro{font-size:20px;color:var(--muted);line-height:1.65}.page-updated{font-size:12px;color:var(--muted);margin-bottom:28px}
@media(max-width:960px){.header-inner{flex-wrap:wrap;gap:10px;padding-block:18px}.site-nav{gap:20px}.hero-grid{gap:30px}.hero h1{font-size:42px}.hero-copy{font-size:17px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article{padding:35px 40px}}
@media(max-width:760px){.hero-grid{grid-template-columns:1fr;min-height:0;gap:35px}.hero{padding:40px 0}.hero h1{max-width:550px}.hero-feature{max-width:600px}.trust-grid{gap:18px}.trust-item{align-items:flex-start}.trust-item small{font-size:11px}.trust-number{display:none}.principle-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr;gap:20px}.footer-note{padding:0;border:0}.article{padding:30px}.article-shell{padding-top:28px}}
@media(max-width:580px){.wrap{width:calc(100% - 36px)}.article{width:calc(100% - 24px);padding:25px 19px;border-radius:12px}.header-inner{gap:16px}.brand{font-size:25px}.site-nav{width:100%;gap:10px 20px;flex-wrap:wrap;font-size:13px}.hero h1{font-size:39px}.hero-copy{font-size:17px}.hero-feature-title{font-size:20px}.hero-feature figcaption{font-size:11px}.trust-grid{grid-template-columns:1fr;gap:13px;padding-block:20px}.trust-item{align-items:center;gap:12px}.trust-number{display:grid;width:30px;height:30px;font-size:13px}.trust-item small{font-size:12px}.post-grid{grid-template-columns:1fr}.section{padding:35px 0}.section-heading{display:block}.section-heading h2{font-size:29px}.section-heading p{margin-top:10px}.card-copy{padding-top:16px}.card-copy h3{font-size:24px}.footer-bottom{display:block}.footer-bottom p+p{margin-top:10px}.entry-content h2{font-size:27px}.entry-content h3{font-size:23px}.article h1{font-size:33px}.entry-content figure:has(>img){padding:8px;border-radius:14px}.entry-content figure img{border-radius:9px}.entry-content figcaption{font-size:11px}.article-meta{font-size:12px}.page-intro{font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.hero,.trust-band,.principles{width:min(1280px,calc(100% - 48px));margin-inline:auto;border-radius:18px;overflow:hidden}.hero{margin-top:26px;padding-block:40px}.hero .wrap,.trust-band .wrap,.principles .wrap{width:calc(100% - 72px)}.trust-band{margin-top:16px;border:1px solid #cedbd0}.principles{margin-bottom:45px;border:1px solid var(--line)}.hero-grid{gap:40px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hero-newsletter{margin-top:30px;border-top:1px solid #ffffff35;padding-top:22px;max-width:520px}.hero-newsletter h2{font-size:21px;line-height:1.3;margin:0 0 7px;color:#fffefa}.hero-newsletter p{font-size:13px;line-height:1.5;margin:0 0 12px;color:#cee1d8}.newsletter-row{display:flex;gap:9px}.newsletter-row input{background:#fffefa;color:#526564;border:1px solid #cedbd0;border-radius:5px;padding:10px 12px;min-width:0;width:100%;opacity:1;font-size:14px}.newsletter-row input::placeholder{color:#647471}.newsletter-row button{white-space:nowrap;background:#b4cabe;color:#25483f;border:1px solid #b4cabe;border-radius:5px;padding:10px 15px;font-size:13px;font-weight:700}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;word-wrap:normal}
@media(max-width:960px){.hero-grid{gap:28px}.hero .wrap,.trust-band .wrap,.principles .wrap{width:calc(100% - 48px)}.hero h1{font-size:39px}.newsletter-row{flex-wrap:wrap}.newsletter-row button{width:100%}}
@media(max-width:760px){.hero-grid{grid-template-columns:1fr}.newsletter-row{flex-wrap:nowrap}.newsletter-row button{width:auto}.hero-newsletter{max-width:none}.hero-image{aspect-ratio:16/9}}
@media(max-width:580px){.hero,.trust-band,.principles{width:calc(100% - 28px);border-radius:14px}.hero{margin-top:16px;padding-block:29px}.hero .wrap,.trust-band .wrap,.principles .wrap{width:calc(100% - 36px)}.hero h1{font-size:36px}.hero-copy{font-size:16px}.hero-grid{gap:28px}.hero-newsletter h2{font-size:20px}.newsletter-row{flex-wrap:wrap}.newsletter-row button{width:100%}.principles{margin-bottom:30px}.hero-actions .button{font-size:13px}}
