/* ==========================================================================
   Denton Technological — theme stylesheet
   Palette: warm ivory / pine green / brass / brick
   ========================================================================== */

:root{
  --paper:#F6F0E4;
  --paper-deep:#EFE6D2;
  --ink:#2A241D;
  --ink-soft:#5C5344;
  --pine:#2F4A3C;
  --pine-deep:#213629;
  --brass:#B8853A;
  --brass-light:#D9A85C;
  --brick:#A8543E;
  --card:#FFFDF8;
  --line:rgba(42,36,29,0.12);
}
/* To change these colors later: edit the hex values above directly.
   (Live color-picker wiring via theme-variables.js was intentionally
   left out of this build — see README "Customizing colors".) */

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:'Spectral', Georgia, serif;
  margin:0 0 .5em;
  color:var(--ink);
  font-weight:600;
  line-height:1.2;
}
p{ margin:0 0 1em; }

:focus-visible{
  outline:2px solid var(--brass);
  outline-offset:2px;
}

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--pine);
  font-weight:500;
}

.wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }

@media (min-width: 640px){
  .wrap{ padding:0 32px; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 22px;
  border-radius:3px;
  font-weight:600;
  font-size:14.5px;
  border:1px solid transparent;
  transition:all .15s ease;
  cursor:pointer;
}
.btn-primary{ background:var(--pine); color:var(--paper); }
.btn-primary:hover{ background:var(--pine-deep); }
.btn-ghost{ border-color:var(--ink); color:var(--ink); }
.btn-ghost:hover{ background:var(--ink); color:var(--paper); }

/* ---------- site header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,240,228,0.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:74px; gap:20px;
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand img{ height:32px; width:auto; }
.brand-mark{ width:32px; height:32px; flex-shrink:0; }
.brand-name{
  font-family:'Spectral', serif; font-weight:600; font-size:18px;
  letter-spacing:.01em; white-space:nowrap;
}
.brand-name .accent{ color:var(--pine); }

.nav-toggle{
  display:none;
  background:none; border:1px solid var(--ink); border-radius:3px;
  padding:8px 10px; cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  display:block; width:18px; height:2px; background:var(--ink); position:relative;
}
.nav-toggle span::before, .nav-toggle span::after{ content:""; position:absolute; }
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top:6px; }

.site-nav{ display:flex; align-items:center; gap:28px; flex:1; justify-content:flex-end; }
.site-nav ul.menu{
  list-style:none; display:flex; gap:26px; margin:0; padding:0;
}
.site-nav ul.menu ul.submenu{
  list-style:none; margin:0; padding:10px 0; position:absolute;
  background:var(--card); border:1px solid var(--line); border-radius:4px;
  min-width:190px; box-shadow:0 12px 24px rgba(42,36,29,.12);
}
.site-nav li{ position:relative; }
.site-nav li:hover > ul.submenu{ display:block; }
.site-nav ul.submenu{ display:none; }
.site-nav ul.submenu li a{ display:block; padding:8px 16px; }
.site-nav a{
  font-size:14.5px; font-weight:500; color:var(--ink-soft);
  padding:6px 0; display:inline-block;
}
.site-nav a:hover{ color:var(--ink); }
.header-cta{ flex-shrink:0; }

@media (max-width: 860px){
  .nav-toggle{ display:flex; flex-direction:column; justify-content:center; gap:0; }
  .site-nav{
    display:none; position:fixed; inset:74px 0 0 0; background:var(--paper);
    flex-direction:column; align-items:flex-start; padding:24px; overflow-y:auto;
    justify-content:flex-start;
  }
  .site-nav.is-open{ display:flex; }
  .site-nav ul.menu{ flex-direction:column; gap:4px; width:100%; }
  .site-nav ul.submenu{ position:static; box-shadow:none; border:none; padding-left:12px; }
  .header-cta{ margin-top:20px; }
}

/* ---------- hero ---------- */
.hero{ position:relative; padding:72px 0 76px; overflow:hidden; }
@media (min-width: 860px){ .hero{ padding:96px 0 90px; } }
.hero-grid{ display:grid; gap:48px; align-items:center; }
@media (min-width: 860px){ .hero-grid{ grid-template-columns:1.1fr .9fr; gap:56px; } }
.hero h1{ font-size:34px; line-height:1.15; letter-spacing:-.01em; margin:16px 0 20px; }
@media (min-width: 640px){ .hero h1{ font-size:44px; } }
@media (min-width: 1000px){ .hero h1{ font-size:52px; } }
.hero h1 em{ font-style:italic; color:var(--pine); }
.hero p.lede{ font-size:17px; line-height:1.6; color:var(--ink-soft); max-width:480px; margin-bottom:30px; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:36px; }
.hero-trust{ display:flex; flex-wrap:wrap; gap:24px; padding-top:24px; border-top:1px solid var(--line); }
.hero-trust div{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--ink-soft); }
.hero-trust strong{ display:block; font-family:'Spectral', serif; font-size:24px; color:var(--ink); font-weight:600; }

.motif-wrap{ position:relative; min-height:280px; }
@media (min-width: 860px){ .motif-wrap{ height:400px; } }
.motif-wrap svg{ width:100%; height:100%; }
.node{ fill:var(--card); stroke:var(--brass); stroke-width:2; }
.node-dot{ fill:var(--brass); }
.motif-label{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; fill:var(--ink-soft); letter-spacing:.04em; }

/* ---------- trust strip ---------- */
.strip{ background:var(--pine); color:var(--paper); padding:22px 0; }
.strip .wrap{ display:flex; justify-content:flex-start; flex-wrap:wrap; gap:20px; }
@media (min-width: 860px){ .strip .wrap{ justify-content:space-between; } }
.strip-item{ display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:500; color:rgba(246,240,228,.92); }

/* ---------- sections ---------- */
.section{ padding:72px 0; }
@media (min-width: 860px){ .section{ padding:96px 0; } }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:42px; gap:24px; flex-wrap:wrap; }
.section-head h2{ font-size:28px; line-height:1.2; max-width:520px; }
@media (min-width: 860px){ .section-head h2{ font-size:34px; } }
.section-head p{ color:var(--ink-soft); font-size:15px; max-width:340px; line-height:1.55; margin:0; }

.services-grid{
  display:grid; gap:1px; background:var(--line); border:1px solid var(--line);
  border-radius:6px; overflow:hidden;
}
@media (min-width: 640px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width: 960px){ .services-grid{ grid-template-columns:repeat(3,1fr); } }
.service-card{ background:var(--card); padding:32px 28px; transition:background .15s ease; }
.service-card:hover{ background:#FFFBF3; }
.service-num{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--brass); margin-bottom:16px; display:block; }
.service-card h3{ font-size:18px; margin-bottom:9px; font-weight:600; }
.service-card p{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin:0; }

/* ---------- process ---------- */
.process{ background:var(--paper-deep); }
.process-steps{ display:grid; gap:40px; position:relative; }
@media (min-width: 760px){
  .process-steps{ grid-template-columns:repeat(3,1fr); gap:48px; }
  .process-steps::before{
    content:""; position:absolute; top:22px; left:8%; right:8%; height:1px;
    background:repeating-linear-gradient(90deg, var(--brass) 0 8px, transparent 8px 16px);
  }
}
.step-num{
  width:44px; height:44px; border-radius:50%; background:var(--paper-deep);
  border:2px solid var(--brass); display:flex; align-items:center; justify-content:center;
  font-family:'Spectral', serif; font-weight:600; font-size:17px; color:var(--brass);
  margin-bottom:20px; position:relative; z-index:2;
}
.step h3{ font-size:18px; margin-bottom:8px; }
.step p{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin:0; }

/* ---------- review ---------- */
.review{
  background:var(--pine); border-radius:8px; padding:40px 28px; display:grid; gap:24px;
}
@media (min-width: 700px){
  .review{ padding:56px 60px; grid-template-columns:auto 1fr; align-items:center; gap:40px; }
}
.review blockquote{ font-family:'Spectral', serif; font-style:italic; font-size:21px; line-height:1.5; color:var(--paper); margin:0 0 16px; }
@media (min-width: 700px){ .review blockquote{ font-size:24px; } }
.review cite{ font-family:'Public Sans', sans-serif; font-style:normal; font-size:14px; color:var(--brass-light); font-weight:600; }
.quote-mark{ font-family:'Spectral', serif; font-size:70px; color:var(--brass); line-height:.7; }

/* ---------- cta band ---------- */
.cta-band{ text-align:center; padding:80px 0; }
@media (min-width: 860px){ .cta-band{ padding:100px 0; } }
.cta-band h2{ font-size:30px; margin-bottom:14px; }
@media (min-width: 860px){ .cta-band h2{ font-size:38px; } }
.cta-band p{ color:var(--ink-soft); font-size:16px; margin-bottom:28px; }
.cta-actions{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }

/* ---------- article / listing cards (posts, tag grid) ---------- */
.listing-grid{ display:grid; gap:28px; }
@media (min-width: 640px){ .listing-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width: 960px){ .listing-grid{ grid-template-columns:repeat(3,1fr); } }

.article-card{
  background:var(--card); border:1px solid var(--line); border-radius:6px; overflow:hidden;
  display:flex; flex-direction:column; transition:box-shadow .15s ease, transform .15s ease;
}
.article-card:hover{ box-shadow:0 16px 28px rgba(42,36,29,.10); transform:translateY(-2px); }
.article-card__image{ aspect-ratio:16/10; overflow:hidden; background:var(--paper-deep); }
.article-card__image img{ width:100%; height:100%; object-fit:cover; }
.article-card__body{ padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.article-card h2,.article-card h3{ font-size:19px; margin-bottom:8px; }
.article-card h2 a, .article-card h3 a{ color:var(--ink); }
.article-card h2 a:hover, .article-card h3 a:hover{ color:var(--pine); }
.article-card p{ font-size:14.5px; color:var(--ink-soft); margin-bottom:14px; flex:1; }
.article-card__meta{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--ink-soft); display:flex; align-items:center; gap:10px; }
.article-card__meta img{ width:20px; height:20px; border-radius:50%; }

.tag-header{ padding:56px 0 20px; }
@media (min-width: 860px){ .tag-header{ padding:72px 0 30px; } }
.tag-header h1{ font-size:30px; }
@media (min-width: 860px){ .tag-header h1{ font-size:40px; } }
.tag-header sup{ color:var(--ink-soft); font-family:'IBM Plex Mono', monospace; font-size:16px; font-weight:400; }
.tag-header .tag-desc{ color:var(--ink-soft); max-width:600px; margin-top:12px; }

/* ---------- single post / page ---------- */
.post-header{ padding:56px 0 30px; }
@media (min-width: 860px){ .post-header{ padding:80px 0 36px; } }
.post-header h1{ font-size:30px; max-width:800px; }
@media (min-width: 860px){ .post-header h1{ font-size:42px; } }
.page-accent-rule{ width:44px; height:4px; background:var(--brass); border-radius:2px; margin-bottom:20px; }
.post-meta{ font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--ink-soft); display:flex; align-items:center; gap:10px; margin-top:16px; }
.post-meta img{ width:24px; height:24px; border-radius:50%; }
.post-featured-image{ margin:0 0 40px; border-radius:6px; overflow:hidden; }
.post-content{ font-size:17px; line-height:1.75; }
.post-content > p, .post-content > ul, .post-content > ol, .post-content > h2,
.post-content > h3, .post-content > h4, .post-content > blockquote, .post-content > figure{
  max-width:720px;
}
/* Anything else you paste in as a raw HTML block (a div, section, etc.) is NOT
   constrained to 720px, so layouts like .services-grid below run full-width. */
.post-content h2{ font-size:24px; margin-top:1.6em; position:relative; padding-top:.3em; }
.post-content h2::before{ content:""; display:block; width:40px; height:3px; background:var(--brass); margin-bottom:16px; border-radius:2px; }
.post-content h3{ font-size:19px; margin-top:1.4em; color:var(--pine); }
.post-content img{ border-radius:6px; margin:1.5em 0; }
.post-content a{ color:var(--pine); text-decoration:underline; text-underline-offset:3px; }

.post-content > ul{ list-style:none; padding-left:0; margin:0 0 1.5em; max-width:720px; }
.post-content > ul > li{ position:relative; padding-left:26px; margin-bottom:10px; }
.post-content > ul > li::before{
  content:""; position:absolute; left:0; top:.6em;
  width:9px; height:9px; border-radius:50%; background:var(--brass);
}

.post-content > ol{ list-style:none; counter-reset:content-ol; padding-left:0; margin:0 0 1.5em; max-width:720px; }
.post-content > ol > li{ position:relative; padding-left:36px; margin-bottom:12px; counter-increment:content-ol; }
.post-content > ol > li::before{
  content:counter(content-ol); position:absolute; left:0; top:-1px;
  width:24px; height:24px; border-radius:50%; border:1.5px solid var(--brass); color:var(--brass);
  font-family:'IBM Plex Mono', monospace; font-size:12px; font-weight:500;
  display:flex; align-items:center; justify-content:center;
}

.post-content blockquote{
  border-left:3px solid var(--brass); margin:1.5em 0; padding:.2em 0 .2em 1.2em;
  font-style:italic; color:var(--ink-soft);
}
.post-tags{ display:flex; gap:10px; flex-wrap:wrap; margin-top:40px; }
.post-tags a{
  font-family:'IBM Plex Mono', monospace; font-size:12px; padding:6px 12px;
  border:1px solid var(--line); border-radius:20px; color:var(--ink-soft);
}
.post-tags a:hover{ border-color:var(--brass); color:var(--ink); }

/* ---------- pagination (fallback styling for default/custom markup) ---------- */
.pagination, nav.pagination{
  display:flex; gap:10px; justify-content:center; padding:40px 0; flex-wrap:wrap;
}
.pagination a, .pagination span,
nav.pagination a, nav.pagination span{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 12px; border-radius:4px;
  border:1px solid var(--line); font-family:'IBM Plex Mono', monospace; font-size:13px;
  color:var(--ink-soft);
}
.pagination a:hover, nav.pagination a:hover{ border-color:var(--brass); color:var(--ink); }
.pagination .is-active, nav.pagination .is-active{ background:var(--pine); color:var(--paper); border-color:var(--pine); }

/* ---------- footer ---------- */
.site-footer{ border-top:1px solid var(--line); padding:40px 0; }
.site-footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-links a{ font-size:13.5px; color:var(--ink-soft); }
.footer-links a:hover{ color:var(--ink); }
.footer-note{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--ink-soft); }

/* ---------- 404 / search ---------- */
.state-page{ padding:100px 0; text-align:center; }
.state-page h1{ font-size:36px; margin-bottom:14px; }
.state-page p{ color:var(--ink-soft); margin-bottom:28px; }

/* ---------- misc ---------- */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}
