/*
Theme Name: Digital Sense
Theme URI: https://digitalsense.ca/
Author: Digital Sense
Author URI: https://digitalsense.ca/
Description: Dark and lime marketing theme for Digital Sense. Built from the static reference build; tokens and components are the design system.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
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: digital-sense
*/

/* ============================================================
   DIGITAL SENSE — HOMEPAGE STATIC BUILD
   Reference for Elementor rebuild. Tokens below are the design system.
   ============================================================ */
:root{
  --ink:#0E0E0E;        /* page background, dark sections */
  --ink-2:#1A1A1A;      /* cards on dark */
  --ink-3:#232323;
  --line:#262626;       /* dividers on dark */
  --line-2:#3A3A3A;     /* input borders, pills */
  --paper:#F4F1EA;      /* light sections, text on dark */
  --paper-2:#DDD8CC;    /* placeholders, dividers on light */
  --muted:#B8B4AA;      /* secondary text on dark */
  --muted-2:#5F5B52;    /* secondary text on light */
  --accent:#0054D6;     /* brand blue — fills: buttons, brand mark, book section */
  --accent-soft:#7FB3FF;/* brand blue for accent text and borders on dark surfaces */
  --accent-ring:#3D82FF;/* focus ring — ≥3:1 on both ink and paper surfaces */
  --alert:#E5484D;
  --font-display:'Bricolage Grotesque',system-ui,sans-serif;
  --font-body:'DM Sans',system-ui,sans-serif;
  --max:1400px;
  --pad:clamp(20px,5vw,64px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--ink);color:var(--paper);font-family:var(--font-body);font-size:17px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,select{font-family:inherit;font-size:inherit}
:focus-visible{outline:3px solid var(--accent-ring);outline-offset:3px}
h1,h2,h3{font-family:var(--font-display);font-weight:800;letter-spacing:-0.03em;line-height:1;margin:0}
.wrap{max-width:var(--max);margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
.kicker{font-size:14px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-soft)}
.light .kicker{color:var(--muted-2)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--accent);color:var(--paper);font-weight:700;border-radius:999px;border:0;cursor:pointer;padding:18px 30px;font-size:18px;min-height:56px;transition:transform .15s ease}
.btn:hover{transform:translateY(-2px)}
.btn.small{padding:12px 20px;font-size:15px;min-height:44px}
.link{font-weight:600;border-bottom:2px solid var(--line-2);padding-bottom:4px}
.link:hover{border-color:var(--accent-soft)}
.light{background:var(--paper);color:var(--ink)}

/* NAV */
.nav{border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(14,14,14,.92);backdrop-filter:blur(8px);z-index:10}
.nav .wrap{height:84px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:12px;font-family:var(--font-display);font-weight:600;font-size:20px}
.brand-mark{width:34px;height:34px;border-radius:8px;background:var(--accent);color:var(--paper);display:grid;place-items:center;font-weight:800;font-size:18px}
.brand-logo{height:34px;width:auto;max-width:200px;object-fit:contain;flex-shrink:0}
.nav-links{display:flex;gap:36px;font-size:15px;font-weight:500}
.nav-links a:hover{color:var(--accent-soft)}
.nav-right{display:flex;align-items:center;gap:24px}
.nav-phone{font-size:15px;color:var(--muted)}
.nav-toggle{display:none;background:none;border:1px solid var(--line-2);color:var(--paper);border-radius:8px;width:44px;height:44px}
@media (max-width:960px){
  .nav-links,.nav-phone{display:none}
  .nav-toggle{display:grid;place-items:center}
  .nav.open .nav-links{display:flex;flex-direction:column;position:absolute;left:0;right:0;top:84px;background:var(--ink);padding:24px var(--pad) 32px;border-bottom:1px solid var(--line);gap:20px;font-size:18px}
}

/* HERO */
.hero .wrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;align-items:center;padding-top:clamp(56px,8vw,96px);padding-bottom:clamp(48px,6vw,80px)}
.hero h1{font-size:clamp(44px,6.2vw,84px);line-height:.98}
.hero-sub{font-family:var(--font-display);font-weight:600;font-size:clamp(22px,2.6vw,34px);line-height:1.15;color:var(--accent-soft);letter-spacing:-.01em}
.hero-body{font-size:clamp(17px,1.5vw,20px);color:var(--muted);max-width:620px}
.hero-copy{display:flex;flex-direction:column;gap:28px}
.hero-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:8px}
.scene{position:relative;display:flex;justify-content:center;min-height:480px}
.phone{width:320px;background:var(--ink-2);border:2px solid #333;border-radius:44px;padding:22px 16px;display:flex;flex-direction:column;gap:14px;box-shadow:0 40px 80px rgba(0,0,0,.6)}
.phone-notch{height:6px;width:90px;background:#333;border-radius:3px;align-self:center;margin-bottom:6px}
/* bounded spacer: keeps the notification pinned low without the old dead gap */
.phone-gap{flex:0 0 56px}
.card{border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px}
.card-search{background:var(--paper);color:var(--ink);gap:10px}
.card-search .q{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted-2)}
.card-search hr{border:0;height:1px;background:var(--paper-2);margin:0}
.card-search .r{display:flex;flex-direction:column;gap:4px}
.card-search .r small{font-size:10px;color:var(--muted-2);letter-spacing:.08em;text-transform:uppercase}
.card-search .r b{font-size:14px}
.card-search .r span{font-size:11px;color:var(--muted-2)}
.card-search .r.dim{opacity:.45}
.card-search .you{font-size:11px;color:#9A958A;font-style:italic}
.card-ai{background:var(--ink-3)}
.card-ai small{font-size:11px;color:#9A958A;display:flex;align-items:center;gap:6px}
.card-ai p{margin:0;font-size:13px;line-height:1.4;color:#E8E4DA}
.card-ai em{font-style:normal;color:var(--accent-soft);font-weight:700}
.card-missed{background:#2A1414;border:1px solid #5A2323;flex-direction:row;align-items:center;gap:12px}
.card-missed .ico{width:38px;height:38px;border-radius:50%;background:var(--alert);display:grid;place-items:center;flex-shrink:0}
.card-missed b{font-size:14px;color:#FFD9DB;display:block}
.card-missed span{font-size:12px;color:#C9A0A3}
.sticker{position:absolute;right:0;bottom:40px;background:var(--accent);color:var(--paper);padding:14px 18px;border-radius:14px;font-family:var(--font-display);font-weight:800;font-size:18px;line-height:1.1;max-width:170px;transform:rotate(4deg)}

/* HERO MOTION — transitions driven by the small hero script (front-page.php).
   transform/opacity only, no scroll triggers. Everything here is off under
   prefers-reduced-motion, and the script restores the full text if it ever fails. */
@keyframes ds-float{50%{transform:translateY(-10px)}}
@keyframes ds-alert{50%{border-color:var(--alert)}}
@keyframes ds-caret{50%{opacity:0}}
@media (prefers-reduced-motion:no-preference){
  .scene{animation:ds-float 7s ease-in-out infinite}
  /* held back until the script walks through them in order */
  .js .ds-fade,.js .ds-type{opacity:0}
  .js .ds-fade{transform:translateY(12px);transition:opacity .6s ease,transform .6s ease}
  .js .ds-type{transition:opacity .25s ease}
  .js .scene .ds-in{opacity:1;transform:none}
  .js .card-missed.ds-in{animation:ds-alert 3s ease-in-out .8s infinite}
  .js .ds-typing::after{content:'';display:inline-block;width:1px;height:1em;background:currentColor;vertical-align:-.15em;margin-left:2px;animation:ds-caret 1s step-end infinite}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover){
  .phone{transition:transform .35s ease}
  .phone:hover{transform:translateY(-10px) scale(1.015)}
}
@media (max-width:960px){
  .hero .wrap{grid-template-columns:1fr}
  .scene{min-height:0;flex-direction:column;align-items:center}
  .phone{width:100%;max-width:340px}
  .card-search .r.dim{display:none}
  .sticker{position:static;transform:none;max-width:none;margin-top:16px}
}

/* CHECK */
.check .wrap{display:grid;grid-template-columns:4fr 8fr;gap:48px;padding-top:72px;padding-bottom:72px;align-items:start}
.check h2{font-size:clamp(36px,4vw,52px)}
.check-intro{display:flex;flex-direction:column;gap:20px}
.check-intro p{margin:0;font-size:18px;color:var(--muted-2)}
.progress{display:flex;gap:8px;margin-top:8px}
.progress i{height:6px;flex:1;border-radius:3px;background:var(--paper-2);transition:background .2s}
.progress i.on{background:var(--accent)}
.panel{background:var(--ink);color:var(--paper);border-radius:28px;padding:clamp(28px,4vw,48px);min-height:440px;display:flex;flex-direction:column;justify-content:center;gap:32px}
.panel .q{font-family:var(--font-display);font-weight:600;font-size:clamp(24px,2.8vw,36px);line-height:1.15;letter-spacing:-.02em}
.answers{display:flex;gap:16px}
.answers button{flex:1;padding:22px;border-radius:16px;border:2px solid var(--line-2);background:transparent;color:var(--paper);font-size:18px;font-weight:600;cursor:pointer;min-height:56px;transition:border-color .15s}
.answers button:hover{border-color:var(--accent-soft)}
.panel .verdict{font-size:clamp(30px,3.4vw,44px)}
.panel .detail{font-size:18px;color:var(--muted);margin:0}
.panel .result-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.panel .reset{background:none;border:0;color:var(--muted);text-decoration:underline;cursor:pointer;font-size:15px}
.step{display:none;flex-direction:column;gap:32px}
.step.active{display:flex}
@media (max-width:960px){
  .check .wrap{grid-template-columns:1fr}
  .answers{flex-direction:column}
}

/* DOORS */
.doors{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}
.door{padding:72px var(--pad);display:flex;flex-direction:column;justify-content:space-between;gap:40px;min-height:520px;transition:background .2s}
.door:first-child{border-right:1px solid var(--line)}
.door:hover{background:var(--ink-2)}
.door h2{font-size:clamp(40px,4.8vw,64px)}
.door p{margin:0;font-size:19px;color:var(--muted);max-width:520px}
.door .inner{display:flex;flex-direction:column;gap:20px;max-width:640px;margin-left:auto}
.door:last-child .inner{margin-left:0;margin-right:auto}
.pills{display:flex;flex-wrap:wrap;gap:10px;max-width:640px;margin-left:auto;width:100%}
.door:last-child .pills{margin-left:0;margin-right:auto}
.pills span{border:1px solid var(--line-2);border-radius:999px;padding:8px 14px;font-size:14px}
@media (max-width:960px){
  .doors{grid-template-columns:1fr}
  .door:first-child{border-right:0;border-bottom:1px solid var(--line)}
  .door{min-height:0;padding:56px var(--pad)}
  .door .inner,.pills{margin:0}
}

/* STATS */
.stats .wrap{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding-top:56px;padding-bottom:56px;border-bottom:1px solid var(--line)}
.stat b{display:block;font-family:var(--font-display);font-weight:800;font-size:clamp(56px,7vw,96px);line-height:1;letter-spacing:-.04em;color:var(--accent-soft);font-variant-numeric:tabular-nums}
.stat p{margin:8px 0 0;color:var(--muted);max-width:340px}
.stat b .od{display:inline-block;height:1em;overflow:hidden;line-height:1em;vertical-align:bottom}
.od-strip{display:block;transition:transform 2s cubic-bezier(.12,.68,.22,1)}
.od-strip>span{display:block;height:1em;line-height:1em}
@media (prefers-reduced-motion:reduce){.od-strip{transition:none}}
@media (max-width:960px){.stats .wrap{grid-template-columns:1fr}}

/* PROJECTS */
.projects .wrap{padding-top:72px;padding-bottom:72px;display:flex;flex-direction:column;gap:40px}
.projects-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.projects h2{font-size:clamp(36px,4vw,52px)}
.projects-head span{color:var(--muted)}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.project{background:var(--ink-2);border-radius:24px;padding:36px;display:flex;flex-direction:column;gap:24px}
.project .tag{font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.project dl{margin:0;display:flex;flex-direction:column;gap:14px;font-size:16px;line-height:1.45}
.project dl div{display:flex;gap:12px}
.project dt{color:var(--accent-soft);font-weight:700;width:64px;flex-shrink:0}
.project dd{margin:0;color:var(--muted)}
.project .num{margin-top:auto;font-family:var(--font-display);font-weight:800;font-size:clamp(32px,5.5vw,64px);line-height:1;letter-spacing:-.03em}
.project .cap{font-size:14px;color:var(--muted)}
@media (max-width:960px){.project-grid{grid-template-columns:minmax(0,1fr)}}

/* FOUNDER */
.founder .wrap{display:grid;grid-template-columns:5fr 7fr;gap:64px;align-items:center;padding-top:64px;padding-bottom:64px}
.founder-photo{aspect-ratio:1/1;border-radius:24px;background:var(--paper-2);display:grid;place-items:center;color:var(--muted-2);font-weight:600;text-align:center;padding:24px;overflow:hidden}
.founder-photo img{width:100%;height:100%;object-fit:cover}
.founder-photo:has(img){padding:0}
.founder blockquote{margin:0;font-family:var(--font-display);font-weight:600;font-size:clamp(26px,3vw,40px);line-height:1.15;letter-spacing:-.02em}
.founder-copy{display:flex;flex-direction:column;gap:24px}
.founder-copy p{margin:0;color:var(--muted-2)}
@media (max-width:960px){.founder .wrap{grid-template-columns:1fr;gap:32px}}

/* BOOK */
.book{background:var(--accent);color:var(--paper)}
.book .wrap{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;padding-top:72px;padding-bottom:72px}
.book h2{font-size:clamp(40px,5vw,68px);line-height:.98}
.book .kicker{color:var(--paper)}
.book-copy{display:flex;flex-direction:column;gap:24px}
.book-copy p{margin:0;font-size:19px;max-width:520px}
.book-copy .promise{font-weight:600;font-size:16px}
.form{background:var(--ink);color:var(--paper);border-radius:28px;padding:clamp(24px,3vw,40px);display:flex;flex-direction:column;gap:16px}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.form input,.form select{padding:14px;border-radius:12px;border:1px solid var(--line-2);background:var(--ink-2);color:var(--paper);font-size:16px;min-height:50px}
.form .btn{margin-top:8px;width:100%}
.form .fine{font-size:13px;color:var(--muted);text-align:center;margin:0}
@media (max-width:960px){.book .wrap{grid-template-columns:1fr}}
@media (max-width:560px){.form .row{grid-template-columns:1fr}}

/* FOOTER */
.footer .wrap{padding-top:56px;padding-bottom:32px;display:grid;grid-template-columns:4fr 3fr 3fr 2fr;gap:32px}
.footer h3{font-family:var(--font-body);font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin-bottom:16px}
.footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:15px;color:var(--muted)}
.footer ul a:hover{color:var(--accent-soft)}
.footer .about{display:flex;flex-direction:column;gap:16px;color:var(--muted);font-size:15px}
.footer .about .brand{color:var(--paper)}
.legal{grid-column:1/-1;border-top:1px solid var(--line);padding-top:24px;font-size:13px;color:#8A867C;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
@media (max-width:960px){.footer .wrap{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.footer .wrap{grid-template-columns:1fr}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ============ INNER PAGES ============ */
.page-hero .wrap{padding-top:clamp(56px,8vw,96px);padding-bottom:clamp(48px,6vw,72px);display:flex;flex-direction:column;gap:24px}
.page-hero h1{font-size:clamp(40px,5.6vw,76px)}
.page-hero .promise{font-size:clamp(18px,1.7vw,22px);color:var(--muted);max-width:720px;margin:0}
.familiar .wrap{padding-top:72px;padding-bottom:72px;display:flex;flex-direction:column;gap:0}
.familiar h2{font-family:var(--font-body);font-weight:700;font-size:14px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2);margin-bottom:16px}
.familiar p{margin:0;padding:28px 0;border-top:1px solid var(--paper-2);font-family:var(--font-display);font-weight:600;font-size:clamp(24px,3.2vw,40px);line-height:1.15;letter-spacing:-.02em;max-width:900px}
.familiar p:last-child{border-bottom:1px solid var(--paper-2)}
.included .wrap{padding-top:72px;padding-bottom:72px;display:flex;flex-direction:column;gap:40px}
.included h2{font-size:clamp(36px,4vw,52px)}
.included-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
.included-grid div{background:var(--ink);padding:32px;scroll-margin-top:100px}
.included-grid h3{font-family:var(--font-display);font-weight:600;font-size:24px;letter-spacing:-.02em;margin-bottom:10px}
.included-grid p{margin:0;color:var(--muted)}
@media (max-width:960px){.included-grid{grid-template-columns:1fr}}
.one-project .wrap{padding-bottom:72px}
.one-project .project{max-width:640px}

/* VIDEO FEATURE — simple boxed YouTube embed, click to play (no autoplay, no animation) */
.video-feature .wrap{padding-top:72px;padding-bottom:40px;text-align:center}
.video-feature h2{font-size:clamp(32px,3.8vw,52px);max-width:860px;margin:0 auto}
.video-feature .lead{margin:14px auto 0;color:var(--muted);font-size:19px;max-width:640px}
.video-frame{position:relative;width:min(1100px,calc(100% - 48px));margin:40px auto 0;aspect-ratio:16/9;overflow:hidden;background:var(--ink-2);border:1px solid var(--line-2);border-radius:20px}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-poster{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:var(--ink-2);cursor:pointer}
.video-poster img{width:100%;height:100%;object-fit:cover}
.video-play-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:88px;height:88px;border-radius:50%;background:var(--accent);color:var(--paper);display:grid;place-items:center;transition:transform .15s ease}
.video-play-btn::before{content:"";border-style:solid;border-width:13px 0 13px 22px;border-color:transparent transparent transparent currentColor;margin-left:6px}
.video-poster:hover .video-play-btn,.video-poster:focus-visible .video-play-btn{transform:translate(-50%,-50%) scale(1.05)}
@media (max-width:560px){
  .video-feature .wrap{padding-top:56px;padding-bottom:56px}
  .video-frame{margin-top:28px;border-radius:14px}
  .video-play-btn{width:64px;height:64px}
  .video-play-btn::before{border-width:10px 0 10px 17px;margin-left:5px}
}
.prose{max-width:720px}
.light .prose{color:#2B2924}
.prose>:first-child{margin-top:0}
.prose p{font-size:19px;line-height:1.65;margin:0 0 24px}
.prose h1,.prose h2,.prose h3,.prose h4{color:var(--ink)}
.prose h2{font-size:clamp(28px,3vw,36px);margin:48px 0 16px}
.prose h3{font-size:clamp(22px,2.3vw,27px);margin:36px 0 12px}
.prose h4{font-size:19px;margin:28px 0 10px}
.prose ul,.prose ol{font-size:19px;line-height:1.65;margin:0 0 24px;padding-left:24px}
.prose li{margin-bottom:8px}
.prose li:last-child{margin-bottom:0}
.prose a{color:var(--accent);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.prose a:hover{color:var(--ink)}
.prose strong,.prose b{font-weight:700;color:var(--ink)}
.prose blockquote{margin:32px 0;padding:4px 0 4px 24px;border-left:3px solid var(--accent)}
.prose blockquote p{font-family:var(--font-display);font-weight:600;font-size:clamp(21px,2.2vw,26px);line-height:1.35;letter-spacing:-.01em;color:var(--ink)}
.prose blockquote cite{font-family:var(--font-body);font-style:normal;font-weight:500;font-size:15px;color:var(--muted-2)}
.prose img{border-radius:16px;height:auto}
.prose figure{margin:32px 0}
.prose figcaption{font-size:14px;color:var(--muted-2);margin-top:10px;text-align:center}
.prose hr{border:0;border-top:1px solid var(--paper-2);margin:40px 0}
.prose table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 24px}
.prose th,.prose td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--paper-2)}
.prose th{font-weight:700;color:var(--ink)}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:rgba(14,14,14,.06);padding:2px 6px;border-radius:6px}
.prose pre{background:var(--ink);color:var(--paper);padding:20px;border-radius:14px;overflow:auto;font-size:15px;line-height:1.6}
.prose pre code{background:none;padding:0;color:inherit;font-size:inherit}
.prose .alignleft{float:left;margin:6px 24px 20px 0;max-width:50%}
.prose .alignright{float:right;margin:6px 0 20px 24px;max-width:50%}
.prose .aligncenter{margin-left:auto;margin-right:auto}
@media (max-width:560px){.prose .alignleft,.prose .alignright{float:none;margin:0 0 24px;max-width:100%}}
.contact .wrap{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding-top:72px;padding-bottom:72px;align-items:start}
.contact-ways{display:flex;flex-direction:column;gap:28px}
.contact-ways .way b{display:block;font-family:var(--font-display);font-weight:600;font-size:22px;letter-spacing:-.02em}
.contact-ways .way a{color:var(--muted);border-bottom:1px solid var(--line-2)}
.contact-ways .way a:hover{color:var(--accent-soft);border-color:var(--accent-soft)}
@media (max-width:960px){.contact .wrap{grid-template-columns:1fr}}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.post-card{display:flex;flex-direction:column;gap:14px;background:#fff;border-radius:20px;overflow:hidden;color:var(--ink)}
.post-card .thumb{aspect-ratio:16/10;background:var(--paper-2);display:grid;place-items:center;color:var(--muted-2);font-size:13px}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .meta{padding:0 24px;font-size:13px;color:var(--muted-2);display:flex;gap:10px}
.post-card h3{padding:0 24px 24px;font-family:var(--font-display);font-weight:600;font-size:22px;line-height:1.2;letter-spacing:-.02em}
.post-card:hover h3{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:3px}
@media (max-width:960px){.post-grid{grid-template-columns:1fr}}
.post-head .wrap{padding-top:clamp(56px,8vw,96px);padding-bottom:56px;display:flex;flex-direction:column;gap:20px}
.post-head h1{font-size:clamp(36px,5vw,64px);line-height:1.02}
.post-head .meta{color:var(--muted);display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:15px}
.post-head .meta .cat{border:1px solid var(--line-2);border-radius:999px;padding:7px 14px;color:var(--accent-soft);font-weight:700;font-size:13px;letter-spacing:.1em;text-transform:uppercase}
.post-lede{margin:0;color:var(--muted);font-size:clamp(17px,1.6vw,20px);line-height:1.5;max-width:760px}
.post-thumb{margin-bottom:40px;border:1px solid var(--paper-2);border-radius:24px;overflow:hidden;background:var(--paper-2)}
.post-thumb img{width:100%;height:auto}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:0 0 32px;padding-bottom:20px;border-bottom:1px solid var(--paper-2);font-size:14px;color:var(--muted-2)}
.post-meta b{color:var(--ink);font-weight:700}
.post-meta .share{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-left:auto}
.post-meta .share a{color:var(--ink);font-weight:600;border-bottom:2px solid var(--paper-2);padding-bottom:2px}
.post-meta .share a:hover{color:var(--accent);border-color:var(--accent)}
@media (max-width:560px){.post-meta .share{margin-left:0}}
.post-body .wrap{padding-top:64px;padding-bottom:72px}
.post-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:clamp(36px,5vw,72px);align-items:start}
.post-main{min-width:0}
.post-body .cta-inline{margin-top:48px;padding:32px;border-radius:20px;background:var(--ink);color:var(--paper);display:flex;flex-direction:column;gap:16px;max-width:720px}
.post-body .cta-inline p{color:var(--muted);margin:0}
/* RELATED */
.related{margin-top:56px;padding-top:40px;border-top:1px solid var(--paper-2)}
.related h2{font-size:clamp(22px,2.4vw,28px);margin:0 0 24px}
.related .post-grid{gap:20px}
.related .post-card{border:1px solid var(--paper-2)}
.related .post-card .meta{padding:0 18px;font-size:12px}
.related .post-card h3{padding:0 18px 18px;font-size:18px}
/* SIDEBAR */
.post-sidebar{display:flex;flex-direction:column;gap:28px}
.widget{background:#fff;border:1px solid var(--paper-2);border-radius:20px;padding:24px}
.widget h2{font-family:var(--font-body);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2);margin:0 0 16px}
.widget ul{list-style:none;margin:0;padding:0}
.widget-cats li{border-bottom:1px solid var(--paper-2)}
.widget-cats li:last-child{border-bottom:0}
.widget-cats a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;font-weight:600;font-size:16px;color:var(--ink)}
.widget-cats a:hover{color:var(--accent)}
.widget-cats .count{color:var(--muted-2);font-weight:500;font-size:14px;font-variant-numeric:tabular-nums}
.widget-posts ul{display:flex;flex-direction:column;gap:16px}
.widget-posts a{display:flex;align-items:center;gap:14px}
.widget-posts .thumb{width:60px;height:60px;flex-shrink:0;border-radius:12px;overflow:hidden;background:var(--paper-2);display:grid;place-items:center;color:var(--muted-2)}
.widget-posts .thumb img{width:100%;height:100%;object-fit:cover}
.widget-posts .post-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.widget-posts b{font-family:var(--font-display);font-weight:600;font-size:16px;line-height:1.25;letter-spacing:-.01em}
.widget-posts a:hover b{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:3px}
.widget-posts time{font-size:13px;color:var(--muted-2)}
.widget-tags ul{display:flex;flex-wrap:wrap;gap:8px}
.widget-tags a{display:inline-block;border:1px solid var(--paper-2);border-radius:999px;padding:7px 13px;font-size:14px;color:var(--ink);transition:border-color .15s,color .15s}
.widget-tags a:hover{border-color:var(--accent);color:var(--accent)}
@media (max-width:960px){
  .post-layout{grid-template-columns:minmax(0,1fr)}
  .post-sidebar{order:2}
}
.thanks .wrap{min-height:60vh;display:flex;flex-direction:column;justify-content:center;gap:24px;padding-top:96px;padding-bottom:96px}
.thanks h1{font-size:clamp(40px,5.6vw,76px)}
.thanks p{font-size:20px;color:var(--muted);margin:0;max-width:720px}
.book.compact .wrap{padding-top:56px;padding-bottom:56px}
.post-pagination{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px;font-size:15px}
.post-pagination .page-numbers{padding:8px 14px;border:1px solid var(--paper-2);border-radius:999px}
.post-pagination .page-numbers.current{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* ============ 404 ============ */
.notfound .wrap{gap:16px}
.nf-code{margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(96px,16vw,196px);line-height:.82;letter-spacing:-.05em;color:var(--accent-soft)}
.notfound h1{font-size:clamp(32px,4.2vw,56px)}
.notfound-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:12px}
.notfound-routes .wrap{padding-bottom:72px;display:flex;flex-direction:column;gap:32px}
.notfound-routes h2{font-size:clamp(28px,3vw,40px)}
.nf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:24px;overflow:hidden}
.nf-grid a{background:var(--ink);padding:28px 24px;display:flex;flex-direction:column;gap:10px;min-height:184px;transition:background .2s}
.nf-grid a:hover{background:var(--ink-2)}
.nf-grid b{font-family:var(--font-display);font-weight:600;font-size:20px;letter-spacing:-.02em}
.nf-grid .nf-desc{color:var(--muted);font-size:15px;line-height:1.45}
.nf-grid .nf-arrow{margin-top:auto;color:var(--accent-soft);font-weight:700;font-size:18px;transition:transform .2s}
.nf-grid a:hover .nf-arrow{transform:translateX(4px)}
@media (max-width:960px){.nf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.nf-grid{grid-template-columns:1fr}.nf-grid a{min-height:0}}
@media (prefers-reduced-motion:reduce){.nf-grid a:hover .nf-arrow{transform:none}}
