/* TOKENS */
:root{
  --oat:#F6F7FB; --paper:#FFFFFFFFF; --cypress:#0B1030; --terra:#0A6CFF; --terra-ink:#0857CC; --muted:#4B5377;
  --line:rgba(11,16,48,.18); --line-2:rgba(11,16,48,.4);
  --font:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --serif:Georgia,"Iowan Old Style","Times New Roman",serif;
  --r:12px; --gap:1.25rem; --wrap:68rem; --read:42rem;
}
*,::before,::after{box-sizing:border-box}
body{margin:0;background:var(--oat);color:var(--cypress);font:1.0625rem/1.6 var(--font);-webkit-text-size-adjust:100%}
a{color:var(--terra-ink);text-underline-offset:3px; cursor:pointer;}
h1,h2,h3{margin:0;line-height:1.1;letter-spacing:-.03em;text-wrap:balance}
p{margin:0 0 1em} ul,ol{margin:0;padding:0}
.hidden { display: none !important; }
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gap)}
.sec{margin-top:clamp(3rem,7vw,5rem)}

/* HEADER & FOOTER */
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;min-height:4.5rem}
.logo{display:flex;align-items:center;gap:.6rem;font-size:1.3rem;font-weight:800;letter-spacing:-.04em;color:var(--cypress);text-decoration:none}
.logo::before{content:"";width:1.2rem;height:1.2rem;background:var(--terra);border-radius:50% 50% 50% 0}
.nav ul{display:flex;gap:2rem;list-style:none;}
.nav a{display:block;padding:.6rem 0;color:var(--cypress);font-weight:600;text-decoration:none}
.nav a:hover,.nav a[aria-current]{text-decoration:underline;text-decoration-color:var(--terra);text-decoration-thickness:3px;text-underline-offset:6px}
.site-footer{background:var(--cypress);color:var(--oat);margin-top:clamp(4rem,9vw,7rem);padding:3rem 0 2rem;font-size:.95rem}
.foot{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}
.foot>div:first-child{grid-column:span 2;max-width:22rem}
.site-footer .logo{color:var(--oat)}
.foot h2{font-size:.95rem;letter-spacing:0;margin-bottom:.7rem}
.foot ul{list-style:none;display:grid;gap:.55rem; padding:0;}
.foot a{color:rgba(246,247,251,.8);text-decoration:none} .foot a:hover{color:#FFFFFF;text-decoration:underline}
.legal{margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid rgba(246,247,251,.2);color:rgba(246,247,251,.6);font-size:.85rem}

/* BLOG LISTING GRID */
.page-head{padding:clamp(1.5rem,5vw,3rem) 0 2rem}
.page-head h1{font-size:clamp(2.4rem,7vw,4.25rem);font-weight:800;letter-spacing:-.045em;line-height:1.02;max-width:16ch}
.page-head p{margin-top:1.25rem;max-width:36rem;font-size:1.2rem;color:var(--muted)}

.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); margin-bottom: 4rem; }
.blog-card { display: flex; flex-direction: column; padding: 1.75rem; background: var(--paper); border: 2px solid var(--cypress); border-radius: calc(var(--r) + 4px); text-decoration: none; color: var(--cypress); transition: transform 0.2s, border-color 0.2s; }
.blog-card:hover { border-color: var(--terra); transform: translateY(-3px); }
.blog-card time { font-size: 0.9rem; color: var(--muted); font-weight: 600; margin-bottom: 0.75rem; display: block; }
.blog-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--cypress); transition: color 0.2s; }
.blog-card:hover h3 { color: var(--terra-ink); }
.blog-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* INDIVIDUAL POST TYPOGRAPHY */
.post-view { max-width: 48rem; margin: 0 auto; }
.back-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 2rem; cursor: pointer; padding: 0.5rem 0; }
.back-btn:hover { color: var(--terra); }
.post-head-article h1{font-size:clamp(2.2rem,6vw,3.5rem);font-weight:800;letter-spacing:-.04em;line-height:1.05;margin-bottom:1rem;}
.byline{display:flex;gap:1rem;margin-bottom:2.5rem;font-size:1rem;color:var(--cypress); font-weight:600; border-bottom: 1px solid var(--line-2); padding-bottom: 1.5rem;}
.byline span { color: var(--muted); font-weight: 400; }

.prose{font-family:var(--serif); font-size:1.15rem; line-height:1.75; color: var(--cypress);}
.prose h2{margin-top:2.25em; font-family:var(--font); font-size:1.8rem; font-weight:750;}
.prose h3{margin-top:1.75em; font-family:var(--font); font-size:1.3rem;}
.prose p{margin-bottom:1.2em;}
.prose :is(ul,ol){padding-left:1.5rem;margin:0 0 1.25em}
.prose li{margin-bottom:.45em}
.prose li::marker{color:var(--terra); font-weight:bold;}
.prose img{border-radius:calc(var(--r) - 4px); width:100%; margin: 2rem 0; border: 1px solid var(--line);}
.prose blockquote{margin:2em 0;padding-left:1.5rem;border-left:4px solid var(--terra);font-style:italic; font-size:1.3rem;line-height:1.5; color:var(--cypress);}
