/*
Theme Name: AI Starters Guide
Theme URI: https://aistartersguide.com
Description: Warm, highly legible block theme for AI Starters Guide. AI made simple.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aistarters
*/

:root{--r-card:22px;--r-pill:999px}
body{-webkit-font-smoothing:antialiased}
a:focus-visible,button:focus-visible,.wp-element-button:focus-visible{outline:3px solid var(--wp--preset--color--clay);outline-offset:3px}

/* Header */
.site-header{padding:22px var(--wp--preset--spacing--gutter);border-bottom:1px solid var(--wp--preset--color--line);gap:24px}
.brand{display:flex;align-items:center;gap:12px}
.brand svg{flex-shrink:0}
.brand .wp-block-site-title{margin:0;font-family:var(--wp--preset--font-family--display);font-size:25px;font-weight:600;letter-spacing:-.01em}
.brand .wp-block-site-title a{text-decoration:none;color:var(--wp--preset--color--ink)}
.main-nav{font-weight:700;font-size:17px}
.main-nav a{text-decoration:none}
.header-right{gap:32px}
.pill-small .wp-block-button__link{padding:12px 22px;font-size:17px}

/* Buttons */
.wp-block-button.is-style-outline .wp-block-button__link{border:2px solid var(--wp--preset--color--ink);color:var(--wp--preset--color--ink);background:transparent}
.btn-light .wp-block-button__link{background:var(--wp--preset--color--paper)!important;color:var(--wp--preset--color--ink)!important}

/* Hero */
.hero{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:72px;align-items:center;padding:96px var(--wp--preset--spacing--gutter) 88px;max-width:1440px;margin:0 auto;box-sizing:border-box}
.eyebrow{font-size:16px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--clay);margin:0}
.hero-title{font-size:clamp(44px,5.4vw,76px)!important;line-height:1.02!important;letter-spacing:-.025em!important;margin:24px 0!important}
.hero-lead{font-size:23px;line-height:1.55;color:var(--wp--preset--color--muted);max-width:560px}
.rules{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:28px;padding:44px;box-shadow:0 24px 60px -30px rgba(31,42,46,.25)}
.rules h2{font-size:30px;margin:0 0 8px}
.rules ol{list-style:none;counter-reset:r;padding:0;margin:0;display:flex;flex-direction:column;gap:22px}
.rules li{counter-increment:r;position:relative;display:block;padding-left:62px;min-height:44px}
.rules li::before{content:counter(r);position:absolute;left:0;top:0;width:44px;height:44px;border-radius:50%;background:var(--wp--preset--color--brand-soft);color:var(--wp--preset--color--brand);font-weight:700;display:flex;align-items:center;justify-content:center;font-size:20px}

/* Grid children: cancel WordPress block-gap margins so cards align */
.hero > *,.grid-4 > *,.grid-3 > *,.brief > *,.cards-list > *,.single-grid > *{margin-top:0!important;margin-bottom:0!important}

/* Sections */
.band{background:var(--wp--preset--color--sand)}
.section{padding:80px var(--wp--preset--spacing--gutter);max-width:1440px;margin:0 auto;box-sizing:border-box}
.section h2.section-title{font-size:clamp(32px,3.4vw,48px);letter-spacing:-.02em;margin:0 0 10px}
.section-lead{color:var(--wp--preset--color--muted);font-size:20px;margin:0 0 36px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.card{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:var(--r-card);padding:32px;display:flex;flex-direction:column;gap:12px}
.card > *{margin:0!important}
.card-label{font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5F6B6F}
.card h3{font-size:32px;margin:0}
.card p{color:var(--wp--preset--color--muted);font-size:18px}
.card .card-link{margin-top:auto!important;font-weight:700}
.card .card-link a{color:var(--wp--preset--color--brand);text-decoration:none}
.topic{border-radius:var(--r-card);padding:32px;display:flex;flex-direction:column;gap:14px}
.topic > *{margin:0!important}
.topic h3{font-size:27px}
.topic h3 a{text-decoration:none;color:var(--wp--preset--color--ink)}
.topic p{color:var(--wp--preset--color--muted);font-size:17px}
.topic-green{background:#EAF2EE}.topic-clay{background:#FBE9DF}.topic-violet{background:#F1EAF6}.topic-blue{background:#E8EEF6}

/* Latest list */
.latest-list{list-style:none;padding:0;margin:0}
.latest-list > li{border-top:1px solid var(--wp--preset--color--line);padding:22px 0}
.latest-list > li:last-child{border-bottom:1px solid var(--wp--preset--color--line)}
.latest-item{justify-content:space-between;align-items:baseline;gap:24px}
.latest-item .wp-block-post-title{font-size:25px;margin:0}
.latest-item .wp-block-post-title a{text-decoration:none}
.latest-item .wp-block-post-terms{font-size:16px;color:#5F6B6F;flex-shrink:0}
.latest-item .wp-block-post-terms a{color:#5F6B6F;text-decoration:none}

/* Newsletter */
.brief{background:var(--wp--preset--color--brand);color:#fff;border-radius:32px;padding:72px;margin:0 var(--wp--preset--spacing--gutter) 96px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px;align-items:center}
.brief h2{color:#fff;font-size:52px;line-height:1.05;margin:0 0 12px}
.brief p{color:#E4F0EB;font-size:21px;margin:0}
.brief .wp-block-buttons{justify-content:flex-end}

/* Footer */
.site-footer{background:var(--wp--preset--color--ink);color:#D5DCDD;padding:64px var(--wp--preset--spacing--gutter);font-size:17px;gap:48px}
.site-footer a{color:#D5DCDD;text-decoration:none}
.site-footer a:hover{color:#fff}
.site-footer .footer-name{font-family:var(--wp--preset--font-family--display);font-size:26px;font-weight:600;color:#fff;margin:0}
.site-footer p{margin:0}
.footer-cols{gap:80px}
.footer-cols .wp-block-group > *{margin:0 0 10px}

/* Single */
.single-head{padding:64px var(--wp--preset--spacing--gutter) 0;max-width:1440px;margin:0 auto;box-sizing:border-box}
.single-head > *{max-width:1000px}
.single-head .wp-block-post-terms{font-size:16px}
.single-head .wp-block-post-terms a{color:#5F6B6F;text-decoration:none}
.single-head h1{font-size:clamp(40px,4.6vw,64px);line-height:1.05;letter-spacing:-.025em;margin:16px 0}
.meta{font-size:16px;color:#5F6B6F;font-weight:700;gap:8px}
.meta p,.meta .wp-block-post-date{margin:0}
.single-grid{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:64px;padding:48px var(--wp--preset--spacing--gutter) 96px;max-width:1440px;margin:0 auto;box-sizing:border-box}
.summary-box{background:var(--wp--preset--color--brand-soft);border-radius:var(--r-card);padding:32px 36px;margin-bottom:12px}
.summary-box > *{margin:0!important}
.summary-box .summary-label{font-size:15px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--brand);margin-bottom:8px!important}
.summary-box .wp-block-post-excerpt__excerpt{margin:0;font-size:20px}
.sidebar{display:flex;flex-direction:column;gap:28px;position:sticky;top:32px;align-self:start}
.side-card{border-radius:var(--r-card);padding:32px}
.side-card > *{margin:0 0 14px!important}
.side-card > *:last-child{margin-bottom:0!important}
.side-card h3{font-size:26px;line-height:1.2}
.side-brand{background:var(--wp--preset--color--brand);color:#fff}
.side-brand h3{color:#fff}.side-brand p{color:#E4F0EB;font-size:17px}
.side-plain{background:#fff;border:1px solid var(--wp--preset--color--line)}

/* Article content */
.entry-content{font-size:20px;line-height:1.7}
.entry-content h2{font-size:38px;letter-spacing:-.015em;line-height:1.2;margin-top:1.6em}
.entry-content h3{font-size:28px;margin-top:1.4em}
.entry-content a{color:var(--wp--preset--color--brand);text-decoration-thickness:2px;text-underline-offset:3px}
.entry-content a:hover{color:var(--wp--preset--color--clay)}
.entry-content ul{padding-left:1.2em}
.entry-content ul li{margin-bottom:.5em}
.entry-content ul li::marker{color:var(--wp--preset--color--clay)}
.entry-content ol{list-style:none;counter-reset:step;padding:0;display:flex;flex-direction:column;gap:18px}
.entry-content ol li{counter-increment:step;position:relative;display:block;padding-left:64px;min-height:44px}
.entry-content ol li::before{content:counter(step);position:absolute;left:0;top:0;width:44px;height:44px;border-radius:50%;background:var(--wp--preset--color--brand);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.try-box{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:var(--r-card);padding:36px}
.warning-box{background:var(--wp--preset--color--clay-soft);border-radius:var(--r-card);padding:32px 36px}

/* Archive cards */
.archive-head{padding:64px var(--wp--preset--spacing--gutter) 8px;max-width:1440px;margin:0 auto;box-sizing:border-box}
.archive-head h1{font-size:clamp(40px,4.4vw,60px);letter-spacing:-.02em;margin:0}
.cards-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.cards-list > li{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:var(--r-card);padding:32px;display:flex;flex-direction:column;gap:10px}
.cards-list .wp-block-post-title{font-size:25px;line-height:1.25;margin:0}
.cards-list .wp-block-post-title a{text-decoration:none}
.cards-list .wp-block-post-excerpt{font-size:17px;color:var(--wp--preset--color--muted);margin:0}
.cards-list .wp-block-post-terms{font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.cards-list .wp-block-post-terms a{color:#5F6B6F;text-decoration:none}
.page-wrap{padding:64px var(--wp--preset--spacing--gutter) 96px}

/* Responsive */
@media (max-width:1100px){
 .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cards-list,.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
 .single-grid{grid-template-columns:1fr}
 .sidebar{position:static}
}
@media (max-width:781px){
 :root{--wp--preset--spacing--gutter:20px}
 .hero,.brief{grid-template-columns:1fr;gap:32px}
 .hero{padding-top:40px;padding-bottom:40px}
 .hero-lead{font-size:19px}
 .rules{padding:26px}
 .section{padding-top:48px;padding-bottom:48px}
 .grid-3,.cards-list{grid-template-columns:1fr}
 .grid-4{gap:12px}
 .topic{padding:20px}.topic p{display:none}.topic h3{font-size:20px}.topic svg{display:none}
 .card{padding:24px}.card h3{font-size:26px}
 .latest-item{flex-direction:column;gap:4px}
 .brief{padding:32px 24px;margin:0 20px 40px!important}
 .brief h2{font-size:34px}
 .brief .wp-block-buttons{justify-content:flex-start}
 .header-right .pill-small{display:none}
 .site-footer,.footer-cols{flex-direction:column;gap:28px}
 .entry-content{font-size:18px}
 .entry-content h2{font-size:30px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
