/* Developing Themes Dot — editorial pass.
   Loaded last on every public page. Calmer palette, serif headings,
   plain lists instead of floating cards, and no decorative motion. */

/* ---------- Tokens ---------- */
.site-body{
  --ink:#1f1f1c;--muted:#64625b;--line:#e3e0d6;--paper:#fcfbf7;--white:#fff;
  --blue:#1f4fc4;--accent:#1f4fc4;--orange:#b4501c;--green:#eef2e4;
  --blue-tint:#e5edff;--green-tint:#eef5df;--orange-tint:#fff0e4;
  --serif:"Iowan Old Style","Charter","Palatino Linotype",Palatino,Georgia,serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font:16px/1.6 var(--sans);
  background:var(--paper);color:var(--ink)
}
html[data-color=dark] .site-body{
  --ink:#e7e5de;--muted:#a3a197;--line:#35342f;--paper:#191917;--white:#21211e;
  --blue:#8fb2ff;--accent:#8fb2ff;--orange:#e9925f;--green:#262d22;
  --blue-tint:#202d49;--green-tint:#292f23;--orange-tint:#39291f
}
.site-body .wrap{width:min(1120px,calc(100% - 48px))}
.site-body ::selection{background:#ffe59a;color:#1f1f1c}
.site-body :focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.site-body h1,.site-body h2,.site-body h3{font-family:var(--serif);font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.site-body code,.site-body pre,.site-body kbd{font-family:var(--mono)}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Small labels: plain text, not letter-spaced monospace capitals */
.site-body .eyebrow,.site-body .section-kicker,.site-body .intro-label,.site-body .mega-kicker{
  display:block;font:600 13px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)
}
.site-body .eyebrow:before{display:none}
.site-body .category{font:600 13px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--blue)}
.site-body .category:hover{text-decoration:underline}
.site-body .meta{font-size:14px;color:var(--muted)}

/* ---------- Header ---------- */
.site-body .dx-header{position:sticky;top:0;background:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid var(--line);box-shadow:none}
.site-body .dx-header.is-scrolled{box-shadow:none}
.site-body .dx-header .header-row,.site-body .dx-header.is-scrolled .header-row{min-height:70px;gap:24px}
.site-body .dx-header .brand-logo,.site-body .dx-header.is-scrolled .brand-logo{height:40px}
.site-body .dx-header .site-nav{gap:2px;font-size:15px;font-weight:500}
.site-body .dx-header .nav-link{padding:6px 10px!important;border-radius:0;color:var(--ink)}
.site-body .dx-header .nav-link:hover{text-decoration:underline;text-underline-offset:5px}
.site-body .dx-header .nav-link.active{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px;text-decoration-color:var(--blue)}
.site-body .dx-header .nav-link.active::after{display:none}
.site-body .nav-indicator,.site-body .scroll-progress{display:none}
.site-body .mega-chev{font-size:10px;color:var(--muted)}
.site-body .header-actions{gap:8px}
.site-body .search-trigger{height:34px;padding:0 12px;border-radius:4px;background:transparent;font-size:14px!important;color:var(--ink)}
.site-body .search-trigger:hover{border-color:var(--ink)}
.site-body .search-trigger-icon{font-size:15px}
.site-body .dx-header .mode-toggle{width:auto;height:34px;padding:0 12px;border-radius:4px;font-size:14px!important;color:var(--ink)}
.site-body .dx-header .mode-toggle:hover{transform:none;border-color:var(--ink)}
.site-body .nav-toggle{border-radius:4px;width:38px;height:38px}

/* Mega menu: a simple two-column dropdown */
.site-body .mega-panel{box-shadow:0 12px 24px -16px rgba(0,0,0,.25);background:var(--paper);transform:none;transition:opacity .12s ease,visibility 0s linear .12s}
.site-body .has-mega.is-open .mega-panel{transition:opacity .12s ease,visibility 0s}
.site-body .mega-inner{grid-template-columns:1.4fr 1fr;gap:40px;padding-top:24px}
.site-body .mega-icon{display:grid;flex-basis:32px;height:32px;border-radius:4px;background:var(--blue-tint);color:var(--blue)}
.site-body .mega-cat:nth-child(3n+2) .mega-icon{background:var(--green-tint);color:var(--ink)}
.site-body .mega-cat:nth-child(3n) .mega-icon{background:var(--orange-tint);color:var(--orange)}
.site-body .dx-header .site-nav .mega-cat.is-current .mega-icon{background:var(--blue);color:var(--paper)}
.site-body .dx-header .site-nav .mega-cat{padding:10px 12px;border-radius:4px;transform:none!important}
.site-body .dx-header .site-nav .mega-cat:hover,.site-body .dx-header .site-nav .mega-cat.is-current{background:var(--blue-tint);border-color:var(--line)}
.site-body .dx-header .site-nav .mega-cat-text strong{font-size:15px}
.site-body .mega-count{background:none;padding:0;color:var(--muted);font:13px var(--sans)}
.site-body .mega-pane{animation:none}
.site-body .dx-header .site-nav .mega-post{border-bottom:1px solid var(--line)}
.site-body .dx-header .site-nav .mega-post-title{font-family:var(--serif);font-size:16px;font-weight:600}
.site-body .dx-header .site-nav .mega-post-meta{font-size:13px}
.site-body .dx-header .site-nav .mega-all,.site-body .dx-header .site-nav .mega-head-link{font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:3px}

/* Search dialog */
.site-body .dx-search-backdrop{background:rgba(20,20,18,.45);-webkit-backdrop-filter:none;backdrop-filter:none}
.site-body .dx-search-box{border-radius:6px;box-shadow:0 20px 40px -20px rgba(0,0,0,.45);animation:none}
.site-body .dx-result{border-radius:3px}
.site-body .dx-result-type{font:600 12px var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
.site-body .dx-result-title{font-size:15px}
.site-body .dx-search-group{font:600 12px var(--sans);letter-spacing:0;text-transform:none}
.site-body .dx-search-esc{font:12px var(--sans)!important;border-radius:3px}
.site-body .dx-result-title mark{background:#ffe59a;color:#1f1f1c}

/* ---------- Home ---------- */
.site-body .intro{padding:56px 0 44px;border-bottom:1px solid var(--line);background:var(--green-tint)}
.site-body .intro-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:64px;align-items:start}
.site-body .intro h1{font-size:clamp(34px,4.4vw,48px);line-height:1.12;margin:0 0 18px;max-width:18ch}
.site-body .intro-copy p{font-size:18px;line-height:1.65;color:var(--muted);max-width:60ch;margin:0 0 16px}
.site-body .intro-copy .intro-label{margin:0 0 8px}
.site-body .intro-links{font-size:16px!important;color:var(--muted)}
.site-body .intro-links a,.site-body .more-link{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.site-body .intro-links a:hover,.site-body .more-link:hover{text-decoration-thickness:2px}
.site-body .intro-topics{border-left:1px solid var(--line);padding-left:32px}
.site-body .intro-topics h2{font-size:19px;margin:4px 0 12px}
.site-body .intro-topics ul{list-style:none;margin:0 0 16px;padding:0}
.site-body .intro-topics li{padding:7px 0;font-size:15px;color:var(--muted);border-bottom:1px solid var(--line)}
.site-body .intro-topics li:last-child{border-bottom:0}
.site-body .intro-topics li a{color:var(--blue);font-weight:600}
.site-body .intro-topics li a:hover{color:var(--blue);text-decoration:underline}
.site-body .more-link{font-size:15px}

.site-body .content-section{padding:40px 0 72px}
.site-body .section-heading{align-items:center;margin:0 0 16px}
.site-body .section-heading h2{font-size:28px;letter-spacing:-.01em;margin:0}
.site-body .search-box{width:260px;padding:0 12px;border-radius:4px;gap:0}
.site-body .search-box input{padding:8px 0;font-size:15px}
.site-body .feed-toolbar{padding:10px 0;align-items:center}
.site-body .filter-tabs{gap:2px}
.site-body .filter-tab,.site-body .saved-filter,.site-body .show-saved{font-size:14px!important;border-radius:3px}
.site-body .filter-tab{padding:5px 9px;color:var(--muted)}
.site-body .filter-tab:hover{background:none;color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.site-body .filter-tab.is-active{background:var(--blue-tint);color:var(--blue);font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px;text-decoration-color:var(--blue)}
.site-body .saved-filter{padding:5px 12px;color:var(--ink)}
.site-body .saved-filter[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.site-body .feed-layout{grid-template-columns:minmax(0,1fr) 280px;gap:56px;margin-top:8px}
.site-body .feed-status{font:14px var(--sans);color:var(--muted);margin:12px 0 0}

/* Posts as a list, not floating cards */
.site-body .post-grid{grid-template-columns:1fr;gap:0}
.site-body .post-card{display:grid;grid-template-columns:1fr;gap:24px;padding:26px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;overflow:visible;transition:none}
.site-body .post-card:hover{transform:none;border-color:var(--line)}
.site-body .post-card:has(> .media){grid-template-columns:200px minmax(0,1fr)}
.site-body .post-card .media{height:auto;aspect-ratio:16/9;border-radius:3px;overflow:hidden;background:var(--blue-tint);background-image:none}
.site-body .post-card .media img{display:block;width:100%;height:100%;object-fit:cover}
.site-body .card-copy{padding:0}
.site-body .post-card .card-top{gap:12px}
.site-body .post-card h3{font-size:24px;line-height:1.25;letter-spacing:-.01em;margin:4px 0 8px}
.site-body .post-card h3 a:hover{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.site-body .post-card p{font-size:16px;line-height:1.6;color:var(--muted);margin:0 0 12px;max-width:68ch}
.site-body .card-bottom{justify-content:flex-start;gap:18px;border-top:0;padding-top:0}
.site-body .read-link{font-size:14px;color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.site-body .bookmark{font-size:18px!important;color:var(--muted);padding:2px 4px}
.site-body .bookmark:hover{color:var(--ink)}
.site-body .bookmark[aria-pressed=true]{color:var(--orange)}
.site-body .empty-state{padding:32px 20px;border-radius:3px;font-size:15px}

/* Sidebar */
.site-body .feed-sidebar{padding-top:16px}
.site-body .sidebar-note,.site-body .reading-note{position:static;background:none;color:var(--ink);border-radius:0;padding:14px 0 20px;margin:0;border-top:1px solid var(--line);overflow:visible}
.site-body .sidebar-note{border-top:2px solid var(--blue);background:var(--blue-tint);padding-inline:16px}
.site-body .sidebar-note h2,.site-body .reading-note h2{font-size:19px;line-height:1.3;letter-spacing:0;margin:0 0 8px}
.site-body .sidebar-note p,.site-body .reading-note p{font-size:15px;line-height:1.6;color:var(--muted);opacity:1;max-width:none;margin:0 0 10px}
.site-body .sidebar-note a,.site-body .reading-note a{font-size:15px;color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.site-body .show-saved{padding:0;border:0;background:none;color:var(--blue);font-weight:400;text-decoration:underline;text-underline-offset:3px}

/* ---------- Archive (/news) ---------- */
.site-body .news-masthead{padding:48px 0 28px}
.site-body .news-masthead h1{font-size:clamp(34px,4vw,44px);letter-spacing:-.01em;margin:0 0 10px}
.site-body .news-masthead p{font-size:17px;max-width:60ch}
.site-body .news-toolbar{position:static;background:none}
.site-body .news-toolbar .search-box{width:240px;padding:0 12px}
.site-body .news-layout{grid-template-columns:minmax(0,1fr) 260px;gap:56px;padding:28px 0 72px}
.site-body .news-list{border-top:0;counter-reset:none}
.site-body .news-row,.site-body .news-row:first-child{display:grid;grid-template-columns:120px minmax(0,1fr) 32px;gap:24px;padding:20px 0}
.site-body .news-row:before{content:none}
.site-body .news-date{padding-top:4px;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.site-body .news-row h3,.site-body .news-row:first-child h3{font-size:21px;line-height:1.3;letter-spacing:-.01em;margin:0 0 6px}
.site-body .news-row p,.site-body .news-row:first-child p{font-size:15px;-webkit-line-clamp:2;margin:0}
.site-body .news-row .card-top{justify-content:flex-start;gap:12px;margin-top:8px}
.site-body .news-aside{position:static;gap:0}
.site-body .news-aside-block{background:none;border:0;border-top:2px solid var(--ink);border-radius:0;padding:14px 0 24px}
.site-body .news-aside-block+.news-aside-block{border-top-width:1px;border-top-color:var(--line)}
.site-body .news-aside-block h2{font-size:19px;margin:0 0 6px}
.site-body .news-aside-block p{font-size:15px;color:var(--muted);margin:0 0 10px}
.site-body .news-topics{margin-top:4px}
.site-body .news-topics a{font-size:15px;font-weight:500;padding:8px 0}
.site-body .news-topics a:hover{color:var(--blue);text-decoration:underline}
.site-body .news-topic-count{background:none;padding:0;font:14px var(--sans);color:var(--muted)}
.site-body .news-aside-home{font-size:15px;color:var(--blue);text-decoration:underline}

/* ---------- Articles, pages, contact ---------- */
.site-body .article-main{padding:56px 20px 80px}
.site-body .article-wrap{max-width:700px}
.site-body .article-wrap>h1{font-size:clamp(32px,4.4vw,46px);line-height:1.15;letter-spacing:-.015em;margin:8px 0 14px}
.site-body .article-lead{font:20px/1.55 var(--serif);color:var(--muted);margin:0 0 16px}
.site-body .article-wrap>.meta{padding-bottom:22px;margin:0 0 28px;border-bottom:1px solid var(--line)}
.site-body .article-image{display:block;width:100%;height:auto;object-fit:contain;border-radius:3px;margin:0 0 28px}
.site-body .article-content{font:19px/1.75 var(--serif)}
.site-body .article-content h2{font-size:27px;line-height:1.25;margin:1.8em 0 .5em}
.site-body .article-content h3{font-size:22px;margin:1.5em 0 .4em}
.site-body .article-content a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.site-body .article-content code{font-size:.85em;padding:.1em .3em;background:var(--green);border-radius:3px}
.site-body .article-content pre{font-size:14px;line-height:1.6;padding:16px 18px;background:#1f1f1c;color:#eceae2;border-radius:4px;overflow:auto}
.site-body .article-content pre code{background:none;padding:0}
.site-body .article-content blockquote{margin:1.5em 0;padding:0 0 0 18px;border-left:3px solid var(--line);color:var(--muted)}
.site-body .comments-section{margin-top:56px;padding-top:28px;border-top:1px solid var(--line)}
.site-body .comments-section h2{font-size:24px}
.site-body .comments-section h3{font-size:20px;margin:0 0 4px}
.site-body .comment{padding:14px 0;border-bottom:1px solid var(--line)}
.site-body .comment p{margin:4px 0 0}

/* Forms (comments + contact) */
.site-body .panel{background:none;border:1px solid var(--line);border-radius:4px;box-shadow:none;padding:24px}
.site-body .panel label{font-size:15px;font-weight:600}
.site-body .panel input,.site-body .panel textarea{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #cfccc2;border-radius:3px;background:var(--white);color:var(--ink);font:16px/1.5 var(--sans);box-shadow:none}
html[data-color=dark] .site-body .panel input,html[data-color=dark] .site-body .panel textarea{border-color:var(--line)}
.site-body .panel input:focus,.site-body .panel textarea:focus{outline:2px solid var(--blue);outline-offset:0;border-color:var(--blue)}
.site-body .form-note{font-size:14px;color:var(--muted);margin:0}
.site-body .primary,.site-body button.primary{align-self:flex-start;padding:10px 20px;border:0;border-radius:3px;background:var(--ink);color:var(--paper);font-size:15px;font-weight:600;transform:none;box-shadow:none}
.site-body .primary:hover{background:var(--blue);color:#fff}
.site-body .notice{padding:12px 16px;margin:0 0 20px;border:0;border-left:3px solid var(--blue);border-radius:0;background:var(--green);color:var(--ink);font-size:15px}

/* ---------- Tools ---------- */
.site-body .tools-hero{background:none;border-bottom:1px solid var(--line);padding:48px 0 32px}
.site-body .tools-hero h1{font-size:clamp(34px,4vw,44px);letter-spacing:-.01em;margin:0 0 12px}
.site-body .tools-hero p{font-size:17px;color:var(--muted);opacity:1;max-width:64ch}
.site-body .tools-sidebar,.site-body .tool-panel{min-width:0}
.site-body .tools-filter{border-radius:4px;padding:7px 12px}
.site-body .tool-link{border-radius:3px;padding:7px 10px}
.site-body .tool-link:hover{transform:none;background:var(--white)}
.site-body .tool-icon,.site-body .tool-icon--lg{flex:0 0 32px;width:32px;height:32px;border:1px solid var(--line);border-radius:3px;background:var(--white);color:var(--ink);font:600 11px var(--mono)}
.site-body .tool-link.is-active .tool-icon{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.site-body .tool-icon--lg{display:none}
.site-body .tool-link-text strong{font-size:14px;font-weight:600}
.site-body .tool-link-text span{font-size:12px}
.site-body .tools-privacy{border-top:1px solid var(--line);padding:14px 0 0;font-size:14px}
.site-body .tool-panel{border-radius:4px;padding:26px}
.site-body .tools-ready .tool-panel{animation:none}
.site-body .tool-panel-head h2{font-size:26px}
.site-body .tool-panel-head p{font-size:15px}
.site-body .tool-field>span{font:600 14px var(--sans);letter-spacing:0;text-transform:none;color:var(--ink)}
.site-body .tool-body textarea,.site-body .tool-body input:not([type=checkbox]):not([type=color]),.site-body .tool-body select{border-radius:3px}
.site-body .tool-btn{border-radius:3px;padding:8px 14px}
.site-body .tool-btn:hover{transform:none;background:var(--blue);border-color:var(--blue);color:#fff}
.site-body .tool-btn--ghost:hover{background:transparent;color:var(--blue)}
.site-body .tool-segment,.site-body .tool-segment button{border-radius:3px}
.site-body .tool-table,.site-body .tool-hash,.site-body .tool-regex,.site-body .tool-highlight,.site-body .tool-stats>div,.site-body .tool-now,.site-body .tool-slug{border-radius:3px}
.site-body .tool-swatch{border-radius:4px}
.site-body .tool-stats span,.site-body .tool-table span{font:600 12px var(--sans);letter-spacing:0;text-transform:none}

/* ---------- Footer ---------- */
.site-body .site-footer{padding:36px 0 44px;margin-top:0;font-size:14px;color:var(--muted);background:var(--paper)}
.site-body .site-footer .footer-row{align-items:flex-start;justify-content:space-between;gap:32px}
.site-body .footer-about strong{display:block;font:700 17px var(--serif);color:var(--ink);margin-bottom:4px}
.site-body .footer-about p{margin:0;max-width:48ch;line-height:1.55}
.site-body .site-footer .footer-links{justify-content:flex-end;gap:6px 20px;margin:2px 0 0}
.site-body .site-footer .footer-links a{padding:0;border:0;font-size:14px;font-weight:500;letter-spacing:0;color:var(--muted)}
.site-body .site-footer .footer-links a:hover{color:var(--ink);text-decoration:underline;border:0}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .site-body .feed-layout{grid-template-columns:minmax(0,1fr) 230px;gap:36px}
  .site-body .news-layout{grid-template-columns:1fr;gap:16px}
  .site-body .news-aside{grid-template-columns:1fr 1fr;gap:0 32px}
}
@media (max-width:900px){
  .site-body .tools-layout{grid-template-columns:minmax(0,1fr)}
  .site-body .dx-header .nav-link{padding:13px 4px!important;text-decoration:none}
  .site-body .dx-header .nav-link.active{text-decoration:none;font-weight:600}
}
@media (max-width:760px){
  .site-body .wrap{width:calc(100% - 36px)}
  .site-body .intro{padding:36px 0 28px}
  .site-body .intro-row{grid-template-columns:1fr;gap:28px}
  .site-body .intro-topics{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:20px}
  .site-body .intro-copy p{font-size:17px}
  .site-body .section-heading{flex-direction:column;align-items:stretch;gap:12px}
  .site-body .search-box{width:100%}
  .site-body .feed-toolbar{flex-direction:row;flex-wrap:wrap;align-items:center}
  .site-body .feed-layout{grid-template-columns:1fr;gap:16px}
  .site-body .feed-sidebar{display:block}
  .site-body .post-card:has(> .media){grid-template-columns:1fr;gap:14px}
  .site-body .post-card .media{height:auto}
  .site-body .post-card h3{font-size:21px}
  .site-body .news-row,.site-body .news-row:first-child{grid-template-columns:minmax(0,1fr) 32px;gap:4px 12px}
  .site-body .news-date{grid-column:1;padding-top:0;font-size:13px}
  .site-body .news-row .card-copy,.site-body .news-row:first-child .card-copy{grid-column:1}
  .site-body .news-row .bookmark,.site-body .news-row:first-child .bookmark{grid-column:2;grid-row:1}
  .site-body .news-aside{grid-template-columns:1fr}
  .site-body .news-toolbar .search-box{width:auto}
  .site-body .article-main{padding:36px 18px 64px}
  .site-body .article-content{font-size:18px}
  .site-body .site-footer .footer-row{flex-direction:column;gap:18px}
  .site-body .site-footer .footer-links{justify-content:flex-start}
}
@media (max-width:480px){
  .site-body .wrap{width:calc(100% - 28px)}
  .site-body .intro h1{font-size:32px}
}
