/*
Theme Name: escentmachine
Theme URI: https://escentmachine.com
Author: escentmachine
Description: A precise, local-first developer workspace with dark editors and readable field notes.
Version: 1.0.0
Requires at least: 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: escentmachine
Tags: full-site-editing, wide-blocks, custom-colors, editor-style
*/
:root {
  --em-paper:#f4f5f0;
  --em-white:#fff;
  --em-ink:#202b2a;
  --em-muted:#596460;
  --em-line:#d4dad2;
  --em-teal:#086b65;
  --em-cyan:#8be6df;
  --em-mono:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  --em-width:1280px;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:20px;
}
body {
  margin:0;
  background:var(--em-paper);
  color:var(--em-ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.6;
}
button,input,select,textarea {
  font:inherit;
}
a {
  color:var(--em-teal);
  text-underline-offset:4px;
}
a:hover {
  color:#034e49;
}
a:active {
  color:#002f2c;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #087c76;
  outline-offset:4px;
}
button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent;
}
button:disabled {
  cursor:not-allowed;
  opacity:.5;
}
::selection {
  background:#b2eee5;
  color:#102e2b;
}
[hidden] {
  display:none!important;
}
h1,h2,h3,p {
  margin-top:0;
}
h1,h2,h3 {
  line-height:1.15;
  letter-spacing:-.035em;
}
h1 {
  font-size:clamp(2rem,4vw,3.4rem);
  font-weight:650;
}
h2 {
  font-size:clamp(1.6rem,2.6vw,2.25rem);
  font-weight:620;
}
h3 {
  font-size:1.25rem;
  font-weight:620;
}
p {
  margin-bottom:1em;
}
img,svg {
  max-width:100%;
}
.wp-site-blocks {
  padding:0;
}
.wp-site-blocks>* {
  margin-block-start:0;
}
.em-container {
  width:min(var(--em-width),calc(100% - clamp(32px,6vw,96px)));
  margin-inline:auto;
  min-width:0;
}
.em-skip {
  position:absolute;
  top:8px;
  left:16px;
  z-index:100;
  background:var(--em-ink);
  color:white;
  padding:12px 20px;
  transform:translateY(-160%);
  border-radius:4px;
}
.em-skip:focus {
  transform:none;
  color:white;
}
.em-header {
  border-bottom:1px solid var(--em-line);
  background:var(--em-paper);
}
.em-header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:82px;
}
.em-brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  color:var(--em-ink);
  font-size:23px;
  font-weight:700;
  letter-spacing:-1.1px;
  white-space:nowrap;
}
.em-brand:hover {
  color:var(--em-teal);
}
.em-mark {
  display:inline-grid;
  place-items:center;
  font:600 19px/1 var(--em-mono);
  width:32px;
  height:32px;
  background:var(--em-ink);
  color:var(--em-cyan);
  border-radius:4px;
  letter-spacing:-4px;
  padding-right:4px;
}
.em-header-nav {
  display:flex;
  gap:clamp(12px,3vw,32px);
  align-items:center;
}
.em-header-nav a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--em-muted);
  font-size:14px;
  font-weight:600;
  text-decoration:none;
}
.em-header-nav a:hover {
  color:var(--em-teal);
  text-decoration:underline;
}
.em-local-label {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--em-muted);
  font:11px/1.4 var(--em-mono);
  letter-spacing:.04em;
}
.em-local-label::before {
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#08796b;
  box-shadow:0 0 0 3px #dcece2;
}
.em-intro {
  display:grid;
  grid-template-columns:1fr 340px;
  gap:40px;
  align-items:end;
  padding-block:clamp(28px,4vw,48px) 32px;
}
.em-eyebrow {
  font:11px/1.5 var(--em-mono);
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--em-muted);
  margin-bottom:12px;
}
.em-intro h1 {
  margin-bottom:12px;
  max-width:800px;
}
.em-intro h1 span {
  color:var(--em-teal);
}
.em-intro p {
  font-size:15px;
  color:var(--em-muted);
  max-width:60ch;
  margin-bottom:0;
}
.em-privacy-note {
  padding-left:22px;
  border-left:1px solid var(--em-line);
  padding-bottom:3px;
}
.em-privacy-note strong {
  display:block;
  font:600 12px/1.6 var(--em-mono);
  color:var(--em-teal);
  margin-bottom:6px;
}
.em-privacy-note p {
  font-size:13px;
  line-height:1.6;
}
.em-principles {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:32px;
  padding-block:28px 46px;
}
.em-principles div {
  display:grid;
  grid-template-columns:26px 1fr;
  gap:9px;
  font-size:13px;
  color:var(--em-muted);
}
.em-principles span {
  font:11px/1.9 var(--em-mono);
  color:var(--em-teal);
}
.em-principles strong {
  display:block;
  font-size:13px;
  color:var(--em-ink);
  font-weight:650;
}
.em-guides {
  border-top:1px solid var(--em-line);
  padding-block:clamp(36px,6vw,72px);
  background:#ecefe8;
}
.em-section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}
.em-section-head h2 {
  margin-bottom:8px;
}
.em-section-head p {
  color:var(--em-muted);
  font-size:14px;
  margin:0;
}
.em-category-nav {
  display:flex;
  flex-wrap:wrap;
  gap:4px 20px;
  margin-block:16px 24px;
  padding-bottom:16px;
  border-bottom:1px solid #cbd3c7;
}
.em-category-nav a {
  min-height:44px;
  display:flex;
  align-items:center;
  color:#43534b;
  font:12px/1.4 var(--em-mono);
  text-decoration:none;
}
.em-category-nav a:hover {
  text-decoration:underline;
  color:var(--em-teal);
}
.em-guide-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0 32px;
}
.em-guide {
  padding-block:22px;
  border-bottom:1px solid #cbd3c7;
  min-width:0;
  position:relative;
}
.em-guide-meta {
  font:10px/1.5 var(--em-mono);
  letter-spacing:.075em;
  text-transform:uppercase;
  color:#516058;
  margin-bottom:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.em-guide h3 {
  font-size:clamp(1.15rem,1.8vw,1.4rem);
  line-height:1.35;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
  max-width:30ch;
  margin:0 0 10px;
}
.em-guide h3 a {
  color:var(--em-ink);
  text-decoration:none;
}
.em-guide h3 a:hover {
  text-decoration:underline;
  text-decoration-color:var(--em-teal);
}
.em-guide p {
  font-size:13px;
  color:#526156;
  line-height:1.65;
  margin-bottom:12px;
}
.em-guide-link {
  font-size:12px;
  font-weight:650;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:12px;
}
.em-guide-empty {
  padding-block:20px;
}
.em-footer {
  border-top:1px solid var(--em-line);
  padding-block:36px 24px;
}
.em-footer-top {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:24px;
}
.em-footer p {
  font-size:12px;
  color:var(--em-muted);
  max-width:44ch;
  margin-top:12px;
}
.em-footer-nav {
  display:flex;
  flex-wrap:wrap;
  gap:0 24px;
  align-items:center;
  max-width:520px;
  justify-content:end;
}
.em-footer-nav a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:12px;
  color:var(--em-muted);
}
.em-footer-bottom {
  border-top:1px solid var(--em-line);
  padding-top:18px;
  margin-top:24px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--em-muted);
  font:10px/1.7 var(--em-mono);
  flex-wrap:wrap;
}
.em-article-wrap {
  width:min(72ch,calc(100% - 32px));
  margin-inline:auto;
  padding-block:clamp(32px,6vw,80px);
}
.em-article-header {
  border-bottom:1px solid var(--em-line);
  padding-bottom:28px;
  margin-bottom:32px;
}
.em-article-header h1 {
  font-size:clamp(2rem,4.2vw,3.4rem);
  overflow-wrap:anywhere;
  margin-block:18px;
}
.em-article-header .wp-block-post-terms {
  font:12px/1.6 var(--em-mono);
}
.em-article-meta {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  color:var(--em-muted);
  font-size:12px;
}
.em-prose {
  font-size:clamp(1rem,1.4vw,1.125rem);
  line-height:1.85;
  overflow-wrap:anywhere;
}
.em-prose h2 {
  font-size:1.65em;
  margin-top:1.8em;
}
.em-prose h3 {
  font-size:1.22em;
  margin-top:1.8em;
  line-height:1.4;
}
.em-prose p,.em-prose ul,.em-prose ol {
  margin-bottom:1.4em;
}
.em-prose pre,.em-prose .wp-block-code {
  font:13px/1.8 var(--em-mono);
  background:#152423;
  color:#d8e9e5;
  border:1px solid #2c4240;
  padding:20px;
  overflow:auto;
  max-width:100%;
  border-radius:4px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.em-prose code {
  font-family:var(--em-mono);
  font-size:.85em;
}
.em-prose :not(pre)>code {
  background:#e5eae1;
  padding:2px 4px;
  border-radius:2px;
}
.em-prose blockquote {
  border-left:3px solid var(--em-teal);
  padding-left:24px;
  margin-inline:0;
  color:#42534a;
}
.em-prose table {
  border-collapse:collapse;
  width:100%;
  font-size:14px;
}
.em-prose td,.em-prose th {
  border:1px solid var(--em-line);
  padding:12px;
  text-align:left;
}
.em-article-links {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--em-line);
  margin-top:48px;
  padding-top:24px;
  font-size:14px;
}
.em-article-links a {
  overflow-wrap:anywhere;
}
.em-static-title {
  margin-bottom:32px;
}
.em-archive {
  padding-block:clamp(36px,5vw,72px);
}
.em-archive h1 {
  margin-bottom:18px;
}
.em-archive .wp-block-post-template {
  gap:32px;
}
.em-archive .wp-block-post {
  border-top:1px solid var(--em-line);
  padding-top:24px;
  min-width:0;
}
.em-archive .wp-block-post-title {
  font-size:1.4rem;
  overflow-wrap:anywhere;
  line-height:1.4;
}
.em-archive .wp-block-post-title a {
  color:var(--em-ink);
  text-decoration:none;
}
.em-archive .wp-block-post-title a:hover {
  text-decoration:underline;
}
.em-archive .wp-block-post-excerpt {
  font-size:14px;
  color:var(--em-muted);
}
.wp-block-query-pagination {
  margin-block:32px;
}
.wp-block-query-pagination a {
  display:inline-flex;
  min-height:44px;
  align-items:center;
}
.em-noscript {
  padding:16px;
  background:#fff3d2;
  color:#634604;
  border:1px solid #dbc786;
  margin-bottom:16px;
}
.screen-reader-text {
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.screen-reader-text:focus {
  position:static!important;
  width:auto;
  height:auto;
  clip:auto;
  white-space:normal;
}
.em-back {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  font-size:13px;
}
.em-404 {
  text-align:center;
  min-height:50vh;
  padding-block:80px;
}
.em-footer-menu {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:0 24px;
  margin:0;
  padding:0;
}
.em-footer-menu li {
  margin:0;
  padding:0;
}
.em-guide h3 a {
  display:block;
  min-height:44px;
}
.em-prose a,.wp-block-post-terms a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
}
.em-article-wrap {
  font-size:clamp(1rem,1.4vw,1.125rem);
}
.em-archive .wp-block-post-template {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  list-style:none;
  padding:0;
}
.em-category-nav a[aria-current="page"] {
  color:#064f4a;
  text-decoration:underline;
  text-decoration-thickness:2px;
}
@media(min-width:1600px) {
  .em-container {
    width:min(var(--em-width),calc(100% - 96px));
  }
}
@media(max-width:1024px) {
  .em-intro {
    grid-template-columns:1fr 260px;
    gap:24px;
  }
  .em-guide-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .em-local-label {
    display:none;
  }
  .em-intro h1 {
    font-size:clamp(2rem,4.6vw,3rem);
  }
}
@media(max-width:767px) {
  .em-header-inner {
    min-height:70px;
    gap:12px;
    flex-wrap:wrap;
    padding-block:12px;
  }
  .em-brand {
    font-size:21px;
  }
  .em-header-nav {
    gap:16px;
  }
  .em-header-nav a {
    font-size:12px;
  }
  .em-intro {
    grid-template-columns:1fr;
    padding-block:28px 24px;
    gap:20px;
  }
  .em-intro h1 {
    font-size:clamp(2rem,6.5vw,3rem);
  }
  .em-privacy-note {
    padding-left:14px;
  }
  .em-privacy-note p {
    font-size:12px;
  }
  .em-privacy-note strong {
    margin-bottom:2px;
  }
  .em-principles {
    grid-template-columns:1fr;
    gap:18px;
    padding-block:24px 32px;
  }
  .em-guide-grid {
    gap:0 24px;
  }
  .em-section-head {
    align-items:start;
    flex-direction:column;
    gap:12px;
  }
  .em-footer-top {
    flex-direction:column;
  }
  .em-footer-nav {
    justify-content:start;
  }
  .em-footer-bottom {
    font-size:9px;
  }
  .em-article-wrap {
    padding-block:32px;
  }
  .em-article-header h1 {
    font-size:2.2rem;
  }
}
@media(max-width:480px) {
  .em-guide-grid {
    grid-template-columns:1fr;
  }
  .em-header-nav {
    gap:14px;
  }
  .em-header-inner {
    column-gap:16px;
  }
  .em-header-nav a {
    font-size:11px;
  }
  .em-header-nav {
    width:100%;
    border-top:1px solid var(--em-line);
    justify-content:space-between;
    gap:16px;
  }
  .em-header-inner {
    padding-bottom:0;
  }
  .em-brand {
    font-size:22px;
  }
  .em-intro h1 {
    font-size:2rem;
    letter-spacing:-.04em;
  }
  .em-intro p {
    font-size:14px;
  }
  .em-category-nav {
    gap:0 20px;
  }
  .em-guide {
    padding-block:22px;
  }
  .em-footer-nav {
    gap:0 20px;
  }
  .em-article-header h1 {
    font-size:2rem;
  }
  .em-prose pre {
    padding:14px;
  }
}
@media(max-width:1024px) {
  .em-archive .wp-block-post-template {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:767px) {
  .em-archive .wp-block-post-template {
    grid-template-columns:minmax(0,1fr);
  }
}
.admin-bar .em-skip {
  top:40px;
}
@media(max-width:767px) {
  .em-intro {
    gap:16px;
  }
  .em-privacy-note {
    border:0;
    padding:0;
  }
  .em-privacy-note strong {
    font-size:10px;
    margin:0;
  }
  .em-privacy-note p {
    display:none;
  }
}
@media(max-width:480px) {
  .em-header-inner {
    flex-wrap:nowrap;
    padding-block:8px;
  }
  .em-header-nav {
    width:auto;
    border:0;
    gap:0;
  }
  .em-header-nav a:first-child {
    display:none;
  }
  .em-intro {
    padding-block:24px 20px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    animation-duration:.01ms!important;
    transition:none!important;
  }
}
@media print {
  .em-header-nav,.em-footer-nav,.em-skip,.em-app,.em-principles {
    display:none!important;
  }
  body {
    background:#fff;
    color:#000;
  }
  .em-article-wrap {
    width:100%;
    padding:0;
  }
  .em-prose pre {
    background:#f4f4f4;
    color:#111;
    border:1px solid #aaa;
    white-space:pre-wrap;
  }
  .em-header-inner {
    min-height:60px;
  }
  .em-footer {
    padding-block:16px;
  }
  a {
    color:#000;
  }
}
