/* Nerd Free AI v2 - "warm and friendly". Colors: cream #FFF8EE, ink #2B2118, terracotta #A63F1A (bright #E07A4F),
   teal #0F6E6E, peach #FCE6D4, soft teal #DDF1EE, sunshine #F6C453. All text pairs meet WCAG AA. */
:root{--ams-ink:#2B2118;--ams-cream:#FFF8EE;--ams-terra:#A63F1A;--ams-terra-b:#E07A4F;--ams-teal:#0F6E6E;--ams-peach:#FCE6D4;--ams-tealsoft:#DDF1EE;--ams-sun:#F6C453;--ams-gray:#5A4A3F;--ams-radius:22px;--ams-shadow:0 6px 18px rgba(122,62,30,.10);--ams-shadow-hi:0 14px 30px rgba(122,62,30,.18)}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
::selection{background:var(--ams-sun);color:var(--ams-ink)}
a:focus-visible,button:focus-visible,.wp-element-button:focus-visible{outline:3px solid var(--ams-ink);outline-offset:3px;border-radius:6px}
.skip-link:focus{background:var(--ams-sun)!important;color:var(--ams-ink)!important}

/* ---------- Header ---------- */
.site-header-bar{background:var(--ams-cream);position:relative}
.site-header-bar::after{content:"";position:absolute;left:0;right:0;bottom:-17px;height:18px;pointer-events:none;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v6c-15 0-15 10-30 10S75 6 60 6 45 16 30 16 15 6 0 6z' fill='%23FCE6D4'/%3E%3C/svg%3E") repeat-x;background-size:120px 18px;z-index:2}
.site-header-bar{border-bottom:6px solid var(--ams-peach)}
.brand{gap:.75rem!important;align-items:center}
.brand .bolt{width:58px;height:auto;flex:0 0 auto;transition:transform .3s ease}
.brand:hover .bolt{transform:rotate(-6deg)}
.wp-block-site-tagline{color:var(--ams-gray)}
.wp-block-navigation a{text-decoration:none;padding:.35rem .8rem;border-radius:999px;transition:background .2s}
.wp-block-navigation a:hover,.wp-block-navigation a:focus{background:var(--ams-peach);text-decoration:none}
.wp-block-navigation .current-menu-item>a,.wp-block-navigation a[aria-current="page"]{background:var(--ams-tealsoft);color:var(--ams-teal)}
.wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close{background:var(--ams-peach);border-radius:12px;padding:.4rem}
.wp-block-navigation__responsive-container-open svg{width:32px;height:32px}

/* ---------- Hero ---------- */
.ams-hero{position:relative;background:linear-gradient(135deg,#FFE7CF 0%,#FCE6D4 45%,#DDF1EE 100%);border-radius:36px;padding:clamp(1.5rem,4vw,3.25rem)!important;overflow:hidden}
.ams-hero::before{content:"";position:absolute;width:340px;height:340px;right:-80px;top:-110px;border-radius:50%;background:radial-gradient(circle,rgba(246,196,83,.55),rgba(246,196,83,0) 70%)}
.ams-hero::after{content:"";position:absolute;width:280px;height:280px;left:-90px;bottom:-120px;border-radius:50%;background:radial-gradient(circle,rgba(42,157,143,.25),rgba(42,157,143,0) 70%)}
.ams-hero>*{position:relative;z-index:1}
.ams-hero h1{font-size:clamp(2.2rem,5vw,3.4rem);line-height:1.1;margin:0 0 .75rem}
.ams-hero h1 .hl{color:var(--ams-terra);background:linear-gradient(transparent 62%,rgba(246,196,83,.65) 62%);padding:0 .1em}
.ams-hero p.lead{font-size:1.35rem;max-width:34ch}
.hero-buddy{display:flex;flex-direction:column;align-items:center;justify-content:center}
.speech{position:relative;background:#fff;border:3px solid var(--ams-teal);border-radius:24px;padding:.9rem 1.2rem;font-family:Nunito,system-ui,sans-serif;font-weight:800;font-size:1.25rem;line-height:1.35;color:var(--ams-ink);box-shadow:var(--ams-shadow);max-width:300px;margin:0 0 .9rem;text-align:center}
.speech::after{content:"";position:absolute;left:50%;bottom:-16px;width:26px;height:26px;background:#fff;border-right:3px solid var(--ams-teal);border-bottom:3px solid var(--ams-teal);transform:translateX(-50%) rotate(45deg);border-bottom-right-radius:6px}
.hero-buddy .bolt{width:min(240px,60vw);height:auto;animation:ams-bob 4s ease-in-out infinite}
@keyframes ams-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.btn-outline .wp-block-button__link{background:#fff!important;color:var(--ams-teal)!important;border:3px solid var(--ams-teal)!important}
.btn-outline .wp-block-button__link:hover{background:var(--ams-tealsoft)!important}

/* ---------- Wavy dividers & sections ---------- */
.wave-divider{height:34px;margin:2.75rem 0 1rem!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 34'%3E%3Cpath d='M0 17c20 0 20-11 40-11s20 22 40 22 20-22 40-22 20 11 40 11' fill='none' stroke='%23E07A4F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center;background-size:160px 34px;opacity:.55;max-width:1140px!important}
.wave-divider.teal{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 34'%3E%3Cpath d='M0 17c20 0 20-11 40-11s20 22 40 22 20-22 40-22 20 11 40 11' fill='none' stroke='%232A9D8F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E")}
.home-section h2.sec{display:flex;align-items:center;gap:.7rem;margin-bottom:.25rem}
.home-section h2.sec::before{content:"";flex:0 0 auto;width:52px;height:52px;border-radius:16px;background:var(--ams-peach) center/30px 30px no-repeat}
.sec-news::before{background-color:var(--ams-peach)!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A63F1A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='15' height='16' rx='2'/%3E%3Cpath d='M18 8h3v10a2 2 0 0 1-2 2'/%3E%3Cpath d='M7 8h7M7 12h7M7 16h4'/%3E%3C/svg%3E")!important}
.sec-try::before{background-color:var(--ams-tealsoft)!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6E6E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E")!important}
.sec-picks::before{background-color:#FFF0C7!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A63F1A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M12 8v13M3 12h18'/%3E%3Cpath d='M12 8c-1.5-3-5-4-5.5-2S9 8 12 8zm0 0c1.5-3 5-4 5.5-2S15 8 12 8z'/%3E%3C/svg%3E")!important}
.sec-intro{color:var(--ams-gray);margin-top:.25rem}
.see-all a{display:inline-block;text-decoration:none;font-family:Nunito,system-ui,sans-serif;font-weight:800;padding:.5rem 1.1rem;border-radius:999px;background:var(--ams-peach);color:var(--ams-terra)}
.see-all a:hover{background:var(--ams-sun);color:var(--ams-ink)}

/* ---------- Cards (gentle hover lift) ---------- */
.post-card,.product-card,.featured-story,.try-today{background:#fff;border:2px solid #F3DCC6;border-radius:var(--ams-radius);box-shadow:var(--ams-shadow);transition:transform .25s ease,box-shadow .25s ease,border-color .25s}
.post-card{padding:0 0 1.1rem;overflow:hidden;height:100%}
.post-card:hover,.product-card:hover,.featured-story:hover,.try-today:hover{transform:translateY(-5px);box-shadow:var(--ams-shadow-hi);border-color:var(--ams-terra-b)}
.post-card>*:not(.wp-block-post-featured-image){padding-left:1.1rem;padding-right:1.1rem}
.post-card .wp-block-post-featured-image,.post-card .wp-block-post-featured-image img{border-radius:20px 20px 0 0;margin:0}
.post-card .wp-block-post-title{font-size:1.45rem;margin-top:.8rem;line-height:1.25}
.wp-block-post-title a{text-decoration:none;color:var(--ams-ink)}
.wp-block-post-title a:hover{color:var(--ams-terra);text-decoration:underline}
.wp-block-post-featured-image{overflow:hidden;border-radius:20px}
.wp-block-post-featured-image img{transition:transform .5s ease}
.post-card:hover .wp-block-post-featured-image img,.featured-story:hover .wp-block-post-featured-image img{transform:scale(1.03)}
.wp-block-post-excerpt__more-link{font-family:Nunito,system-ui,sans-serif;font-weight:800;color:var(--ams-terra)}

/* badges */
.post-meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .6rem}
.post-meta-row .wp-block-post-date{margin:0;color:var(--ams-gray)}
.badge{display:inline-flex;align-items:center;gap:.3rem;font-family:Nunito,system-ui,sans-serif;font-weight:800;font-size:1rem;line-height:1;padding:.4rem .75rem;border-radius:999px;white-space:nowrap}
.badge-time{background:var(--ams-tealsoft);color:#0B5656}
.badge-level{background:#FFF0C7;color:#6B3A0E}
.badge-easy{background:#E3F4DC;color:#2F5D1E}
.badge-medium{background:#FFE7CF;color:#7A2E12}

/* featured latest story */
.featured-story{overflow:hidden;padding:0!important}
.featured-story .wp-block-columns{margin:0!important;gap:0!important}
.featured-story .wp-block-post-featured-image{border-radius:0;height:100%}
.featured-story .wp-block-post-featured-image img{height:100%!important;object-fit:cover}
.featured-story .fs-text{padding:1.6rem 1.8rem!important}
.featured-story .wp-block-post-title{font-size:clamp(1.7rem,3vw,2.3rem);margin:.4rem 0 .6rem}
.kicker{display:inline-block;font-family:Nunito,system-ui,sans-serif;font-weight:900;font-size:.95rem;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:var(--ams-terra);padding:.35rem .8rem;border-radius:999px;margin:0!important}
.kicker.teal{background:var(--ams-teal)}

/* try this today strip */
.try-today{background:linear-gradient(120deg,#DDF1EE,#F2FAF8)!important;border-color:#B9E0D9!important;padding:1.25rem 1.5rem!important;align-items:center}
.try-today .bolt{width:120px;height:auto}
.try-today .wp-block-post-title{font-size:1.6rem;margin:.35rem 0}
.try-today .wp-block-post-featured-image{max-width:260px}

/* ---------- Info / tip boxes with mascot avatar ---------- */
.info-box{position:relative;background:#FFF0C7;border:2px solid #F2CF7A;border-left:10px solid var(--ams-sun);border-radius:var(--ams-radius);padding:1.4rem 1.6rem 1.4rem 7.25rem;box-shadow:var(--ams-shadow)}
.info-box::before{content:"";position:absolute;left:1rem;top:1.1rem;width:84px;height:86px;background:url("beaver-tip.png") center/contain no-repeat}
.info-box h2,.info-box h3{margin-top:0;color:var(--ams-ink)}
.ams-hero .info-box,.info-box.no-bolt{padding-left:1.6rem}
.ams-hero .info-box::before,.info-box.no-bolt::before{display:none}
@media (max-width:600px){.info-box{padding:6.5rem 1.2rem 1.2rem 1.2rem}.info-box::before{left:1rem;top:.9rem;width:70px;height:72px}}

/* ---------- Disclosure, code, misc ---------- */
.disclosure-note{background:var(--ams-cream);border:2px dashed var(--ams-gray);border-radius:16px;padding:.8rem 1.25rem;font-size:1.125rem}
pre.wp-block-code{position:relative;white-space:pre-wrap;word-break:break-word;font-family:Consolas,Menlo,monospace}
pre.wp-block-code code{white-space:pre-wrap}
.copy-btn{position:absolute;right:.75rem;bottom:.6rem;background:var(--ams-teal);color:#fff;border:0;border-radius:999px;padding:.4rem 1.1rem;font-size:1rem;font-weight:800;font-family:Nunito,system-ui,sans-serif;cursor:pointer}
.copy-btn:hover,.copy-btn:focus{background:var(--ams-ink)}
.wp-block-separator{border:0!important;height:34px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 34'%3E%3Cpath d='M0 17c20 0 20-11 40-11s20 22 40 22 20-22 40-22 20 11 40 11' fill='none' stroke='%23E07A4F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center;background-size:160px 34px;opacity:.5}
.single .wp-block-post-featured-image img{border-radius:24px}

/* ---------- Tech Picks grid ---------- */
.product-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.product-grid>*{margin:0!important;max-width:none!important}
@media (max-width:900px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.product-grid{grid-template-columns:1fr}}
.product-card{display:flex;flex-direction:column;overflow:hidden;padding:0 0 1.25rem}
.product-card>*{margin-left:1.1rem!important;margin-right:1.1rem!important}
.product-card>.wp-block-image{margin:0!important}
.product-card .wp-block-image img{width:100%;height:auto;aspect-ratio:10/7;object-fit:cover;border-radius:20px 20px 0 0;display:block}
.product-card h3{font-size:1.35rem;margin-top:.9rem!important}
.product-card p{font-size:1.125rem;flex-grow:1}
.product-card .wp-block-buttons{margin-top:auto!important}
.product-card .wp-block-button__link{font-size:1.1rem;padding:.7rem 1.4rem}

/* ---------- Footer ---------- */
.site-footer-bar{position:relative;background:#2B2118!important;color:#FFF8EE}
.site-footer-bar::before{content:"";position:absolute;left:0;right:0;top:-23px;height:24px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12c15 0 15-10 30-10s15 10 30 10 15-10 30-10 15 10 30 10v12z' fill='%232B2118'/%3E%3C/svg%3E") repeat-x;background-size:120px 24px}
.site-footer-bar a{color:#FFD9B8}
.site-footer-bar a:hover{color:#fff}
.site-footer-bar .muted{color:#E9D9C8}
.footer-bolt{display:flex;align-items:center;gap:1rem}
.footer-bolt .bolt{width:64px;height:auto}

@media (max-width:781px){.hero-buddy{order:-1}.hero-buddy .bolt{width:170px}.speech{font-size:1.1rem}.try-today .wp-block-post-featured-image{max-width:none}.featured-story .wp-block-post-featured-image{height:auto}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.post-card:hover,.product-card:hover,.featured-story:hover,.try-today:hover{transform:none}}
/* v2.1 fixes: centered wave dividers, single-post header */
.wave-divider{margin:2.75rem auto 1rem!important;width:100%}
.kicker-terms{margin-bottom:.25rem}
.kicker-terms a{display:inline-block;font-family:Nunito,system-ui,sans-serif;font-weight:900;font-size:.95rem;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;color:#fff;background:var(--ams-teal);padding:.35rem .8rem;border-radius:999px}
.kicker-terms a:hover{background:var(--ams-terra)}
.single main .wp-block-post-title{margin-top:.5rem;margin-bottom:.6rem}
.post-nav a{font-family:Nunito,system-ui,sans-serif;font-weight:800}
.post-nav{gap:1rem}
@media (max-width:600px){.site-header-bar .alignwide{flex-wrap:nowrap!important;gap:.5rem}.brand{gap:.5rem!important;min-width:0}.brand .bolt{width:46px}.wp-block-site-title{font-size:1.55rem!important}.site-header-bar .wp-block-site-tagline{display:none}}
/* Wordmark lockup: mascot + "Nerd Free" + AI badge */
.wordmark{margin:0;font-family:Nunito,system-ui,sans-serif;font-weight:900;font-size:2rem;line-height:1.1;letter-spacing:-.01em}
.wordmark a{color:var(--ams-ink);text-decoration:none;display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap}
.wordmark .wm-ai{display:inline-block;background:var(--ams-terra);color:#fff;border-radius:12px;padding:.05em .32em .1em;transform:rotate(-4deg);box-shadow:0 3px 0 #7A2E12}
.wordmark a:hover .wm-words{color:var(--ams-terra)}
.wordmark a:hover .wm-ai{background:var(--ams-teal);box-shadow:0 3px 0 #0B4545}
@media (max-width:600px){.wordmark{font-size:1.55rem}}
.byline{margin:0 0 .35rem;font-family:Nunito,system-ui,sans-serif;font-weight:800;color:var(--ams-gray)}.byline::before{content:"By "}

/* v2.2 beaver mascot sizing (images are portrait, so size by height) */
.mascot-pic{display:contents}
.brand .bolt{width:auto;height:76px}
.hero-buddy .bolt{width:auto;height:min(300px,70vw)}
.try-today .bolt{width:auto;height:150px}
.footer-bolt .bolt{width:auto;height:110px}
.info-box::before{width:64px;height:96px;top:.8rem}
@media (max-width:781px){.hero-buddy .bolt{width:auto;height:220px}}
@media (max-width:600px){.brand .bolt{width:auto;height:60px}}
