/*
Theme Name: Medical Editorial
Description: A responsive theme for independent health information and buying guides.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: medical-editorial
*/
:root{--surface:#fff;--ink:#122a29;--muted:#415b5b;--accent:#10695d;--tint:#e7f4ed;--line:#cfe3da;--soft:#f7faf8}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--surface);font:1rem/1.65 system-ui,-apple-system,Segoe UI,sans-serif}
body.med-p1{--ink:#18283e;--muted:#3b4e69;--accent:#244da1;--tint:#e9effc;--line:#d5dff2;--soft:#f7f9fd}
body.med-p2{--ink:#382029;--muted:#624852;--accent:#9a3459;--tint:#faeaf0;--line:#eed7e0;--soft:#fdf8fa}
body.med-p3{--ink:#312615;--muted:#5e5036;--accent:#805414;--tint:#fff2d6;--line:#ecdcb5;--soft:#fdfaf2}
body.med-p4{--ink:#292341;--muted:#514867;--accent:#59409c;--tint:#f0eafa;--line:#e2d7f0;--soft:#faf8fd}
body.med-p5{--ink:#12313c;--muted:#42636d;--accent:#146983;--tint:#e3f3f8;--line:#cee5ed;--soft:#f5fbfd}
body.med-p6{--ink:#26331f;--muted:#4e6247;--accent:#43672d;--tint:#ebf3e0;--line:#dbe8cd;--soft:#f7fbf3}
body.med-p7{--ink:#382b28;--muted:#65524d;--accent:#923d2f;--tint:#fbece3;--line:#efd8ce;--soft:#fdf8f5}
a{color:var(--accent);text-underline-offset:.2em}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.wrap{width:min(1120px,calc(100% - 2.5rem));margin-inline:auto}
.site-head{background:var(--surface);border-bottom:1px solid var(--line)}
.head-inner{display:flex;align-items:center;justify-content:space-between;gap:1.6rem;min-height:75px}
.site-brand{display:flex;align-items:center;gap:.7rem;flex:none;color:var(--ink);font-weight:750;text-decoration:none;line-height:1.2}
.site-brand img{width:42px;height:42px;border-radius:11px;object-fit:contain}
.navigation{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.35rem 1rem;margin:0;padding:0;list-style:none}
.navigation a{font-size:.875rem;line-height:1.25;color:var(--ink);text-decoration:none;padding:.35rem 0;display:block}
.navigation a:hover,.current-menu-item>a{color:var(--accent);text-decoration:underline}
.site-main{min-height:62vh}
.hero{background:var(--tint);overflow:hidden;border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1.7fr .8fr;align-items:center;gap:3rem;padding:clamp(2.6rem,7vw,6.6rem) 0}
.hero h1{font-size:clamp(2.5rem,5.75vw,5.25rem);max-width:16ch;margin:0 0 1.1rem;line-height:1;letter-spacing:-.055em;font-weight:770}
.med-layout-1 .hero h1,.med-layout-3 .hero h1{font-family:Georgia,serif;font-weight:500;letter-spacing:-.048em}
.hero p{font-size:clamp(1.05rem,2vw,1.3rem);max-width:52ch;margin:0 0 1.55rem;color:var(--muted)}
.hero-art{position:relative;display:grid;place-items:center;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--accent),transparent 65%);border-radius:50%;isolation:isolate}
.hero-art:before,.hero-art:after{content:"";position:absolute;inset:10%;border:1px solid color-mix(in srgb,var(--accent),transparent 65%);border-radius:50%;z-index:-1}
.hero-art:after{inset:21%;background:var(--surface);border-color:transparent}
.hero-art img{width:46%;height:auto;border-radius:24%;box-shadow:0 18px 36px #172f2a22}
.med-layout-1 .hero-art{border-radius:44% 15% 44% 15%}
.med-layout-2 .hero-grid{grid-template-columns:1.3fr 1fr}
.med-layout-2 .hero-art{border-radius:26%;transform:rotate(-8deg)}
.med-layout-2 .hero-art img{transform:rotate(8deg)}
.med-layout-3 .hero-art{border-radius:50% 50% 14% 14%;border-style:dashed}
.pill{display:inline-block;background:var(--accent);color:white;border:1px solid var(--accent);border-radius:999px;padding:.65rem 1.15rem;font-weight:700;text-decoration:none}
.pill:hover{filter:brightness(.85)}
.guides,.notes{padding:clamp(2.4rem,5vw,4.7rem) 0}
.notes{background:var(--soft);border-top:1px solid var(--line)}
.guides h2,.notes h2{margin:0 0 1rem;line-height:1.15;font-size:clamp(1.65rem,3vw,2.4rem);letter-spacing:-.035em}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.card{background:var(--soft);border:1px solid var(--line);border-radius:1rem;padding:1.35rem}
.med-layout-2 .card{border-radius:.15rem;border-top:4px solid var(--accent)}
.card h3{margin:0 0 .45rem;font-size:1.19rem;line-height:1.25}
.card p,.notes p{color:var(--muted);max-width:67ch;margin:0}
.page-head{background:var(--tint);padding:clamp(2.3rem,6vw,4.3rem) 0;border-bottom:1px solid var(--line)}
.page-head h1{font-size:clamp(2rem,4.5vw,3.8rem);letter-spacing:-.05em;line-height:1.08;max-width:24ch;margin:0}
.readable{max-width:760px;padding-block:2.5rem 4rem}
.readable h2{margin:2.2rem 0 .75rem;line-height:1.2;letter-spacing:-.03em}
.readable .lead{font-size:1.2rem;color:var(--muted)}
.readable li+li{margin-top:.45rem}
.readable .takeaway{padding:1.2rem 1.3rem;border-left:4px solid var(--accent);background:var(--soft);border-radius:.25rem .8rem .8rem .25rem}
.site-foot{border-top:1px solid var(--line);background:var(--soft);padding:1.35rem 0;color:var(--muted);font-size:.9rem}
.screen-reader-text,.skip-link:not(:focus){position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus{position:absolute;z-index:5;left:1rem;top:1rem;background:white;padding:.5rem}
@media(max-width:850px){.head-inner{align-items:flex-start;flex-direction:column;justify-content:flex-start;gap:.55rem;padding:.7rem 0}.navigation{justify-content:flex-start}.hero-grid{gap:1.5rem}}
@media(max-width:610px){.wrap{width:calc(100% - 1.6rem)}.hero-grid,.med-layout-2 .hero-grid{grid-template-columns:1fr;padding-block:2.6rem}.hero-art{display:none}.card-grid{grid-template-columns:1fr}.navigation{gap:.15rem .8rem}.navigation a{font-size:.84rem}}
