/*
Theme Name: thechaotic.world
Theme URI: https://thechaotic.world
Author: thechaotic.world
Description: A bold, clean block theme for thechaotic.world. Built on native WordPress blocks and the Site Editor, with no required plugins. Follows the thechaotic.world brand guidelines (Ink, Signal Orange, Teal, Paper; Inter).
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thechaotic
*/

/* ---------- Header ---------- */
header.wp-block-template-part{position:sticky;top:0;z-index:20}
body.admin-bar header.wp-block-template-part{top:32px}
@media(max-width:782px){body.admin-bar header.wp-block-template-part{top:46px}}
.site-header{padding:12px var(--wp--style--root--padding-right,24px);border-bottom:1.5px solid var(--wp--preset--color--line)}
.site-header .alignwide{align-items:center;min-height:56px;gap:16px}
.brand-link{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;letter-spacing:-.02em;color:var(--wp--preset--color--ink);text-decoration:none}
.brand-link:hover{color:var(--wp--preset--color--ink)}
.brand-link svg{width:40px;height:40px;flex:none}
.brand-link .o{color:var(--wp--preset--color--orange)}
.site-header .wp-block-navigation{font-weight:600;font-size:15px}
.site-header .wp-block-navigation a{text-decoration:none;color:var(--wp--preset--color--ink)}
.site-header .wp-block-navigation a:hover{color:var(--wp--preset--color--orange-deep)}
.site-header .wp-block-button__link{padding:10px 20px;font-size:15px}
@media(max-width:781px){.hide-mobile{display:none}}

/* ---------- Typography helpers ---------- */
.eyebrow,.eyebrow a{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--wp--preset--color--teal-deep);text-decoration:none;margin-bottom:0}
.eyebrow--teal,.eyebrow--teal a{color:var(--wp--preset--color--teal)}
.meta{font-size:14px;font-weight:600;color:var(--wp--preset--color--ink-soft)}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--wp--preset--color--ink);border:2px solid var(--wp--preset--color--ink)}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper)}
.wp-block-button__link{transition:background .2s,color .2s}

/* ---------- Page sections ---------- */
.site-main{padding-top:48px;padding-bottom:80px}
.hero{position:relative;overflow:hidden;padding-top:88px;padding-bottom:72px}
.hero>*{position:relative;z-index:1}
.hero::after{content:"";position:absolute;right:-140px;top:-30px;width:520px;max-width:80vw;height:190px;border:8px solid var(--wp--preset--color--orange);border-right-color:transparent;border-radius:50%;transform:rotate(-25deg);opacity:.25;pointer-events:none}
.hero .hero-sub{font-size:20px;color:var(--wp--preset--color--ink-soft);max-width:560px}
.section{padding-top:24px;padding-bottom:80px}
.news-section{padding-top:80px;padding-bottom:80px}
.news-section .wp-block-paragraph:not(.eyebrow),.news-section p:not(.eyebrow){color:#B8B5AC;font-size:18px;max-width:520px}
@media(max-width:700px){.hero{padding-top:56px;padding-bottom:48px}.section{padding-bottom:56px}.news-section{padding-top:56px;padding-bottom:56px}}

/* ---------- Post cards and grids ---------- */
.wp-block-post-template.is-layout-grid{gap:24px}
.wp-block-post-template.is-layout-grid>li{display:flex}
.post-card{width:100%;display:flex;flex-direction:column;background:var(--wp--preset--color--white);border:1.5px solid var(--wp--preset--color--line);border-radius:12px;overflow:hidden;transition:box-shadow .2s,transform .2s}
.post-card:hover{box-shadow:0 8px 24px rgba(20,20,26,.12);transform:translateY(-3px)}
.post-card>*{margin-block-start:0}
.post-card .wp-block-post-featured-image{margin:0;width:100%}
.post-card .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover;display:block}
.post-card__body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.post-card__body>*{margin:0}
.post-card .wp-block-post-title{font-size:22px;line-height:1.2}
.post-card .wp-block-post-excerpt{color:var(--wp--preset--color--ink-soft);font-size:16px;line-height:1.55}
.post-card .wp-block-post-excerpt__excerpt{margin:0}
.post-card .meta{margin-top:auto;padding-top:8px}
.thumb-fallback{aspect-ratio:16/9;background:var(--wp--preset--color--ink);position:relative;overflow:hidden;margin:0}
.thumb-fallback::before{content:"";position:absolute;left:50%;top:50%;width:230px;height:84px;margin:-42px 0 0 -115px;border:6px solid var(--wp--preset--color--orange);border-right-color:transparent;border-radius:50%;transform:rotate(-25deg)}
.thumb-fallback::after{content:"";position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border:6px solid var(--wp--preset--color--paper);border-radius:50%}
li:nth-child(4n+2) .thumb-fallback{background:var(--wp--preset--color--orange)}
li:nth-child(4n+2) .thumb-fallback::before,li:nth-child(4n+2) .thumb-fallback::after{border-color:var(--wp--preset--color--ink);border-right-color:transparent}
li:nth-child(4n+2) .thumb-fallback::after{border-right-color:var(--wp--preset--color--ink)}
li:nth-child(4n+3) .thumb-fallback{background:var(--wp--preset--color--teal)}
li:nth-child(4n+3) .thumb-fallback::before{border-color:var(--wp--preset--color--ink);border-right-color:transparent;transform:rotate(30deg)}
li:nth-child(4n) .thumb-fallback{background:var(--wp--preset--color--paper)}
li:nth-child(4n) .thumb-fallback::after{border-color:var(--wp--preset--color--ink)}
@media(max-width:960px){.wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.wp-block-post-template.is-layout-grid{grid-template-columns:1fr!important}}

/* ---------- Single post ---------- */
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;font-size:15px;font-weight:600;color:var(--wp--preset--color--ink-soft)}
.post-meta>*{margin:0}
.post-meta a{color:inherit;text-decoration:none}
.single-post-content{font-size:19px;line-height:1.75}
.single-post-content h2{margin-top:2.2em}
.single-post-content h3{margin-top:1.8em}
.single-post-content img{border-radius:12px}
.single-post-content a{text-underline-offset:3px}
.post-tags a{display:inline-block;border:1.5px solid var(--wp--preset--color--line);border-radius:999px;padding:4px 14px;margin:0 6px 6px 0;font-size:14px;font-weight:600;text-decoration:none;color:var(--wp--preset--color--ink)}
.post-tags a:hover{border-color:var(--wp--preset--color--orange);color:var(--wp--preset--color--orange-deep)}
.author-box{background:var(--wp--preset--color--white);border:1.5px solid var(--wp--preset--color--line);border-radius:12px;padding:24px}
.author-box img{border-radius:999px}

/* ---------- Footer ---------- */
.site-footer{border-top:1.5px solid var(--wp--preset--color--line);padding:48px var(--wp--style--root--padding-right,24px) 32px}
.site-footer h4,.site-footer .footer-title{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--ink-soft);margin:0 0 12px;font-weight:700}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:8px 0}
.site-footer a{color:var(--wp--preset--color--ink);text-decoration:none}
.site-footer a:hover{color:var(--wp--preset--color--orange-deep)}
.footer-copy{margin-top:32px;padding-top:20px;border-top:1px solid var(--wp--preset--color--line);font-size:14px;color:var(--wp--preset--color--ink-soft)}
