/*
Theme Name: Designs 2 HTML (MTC)
Theme URI: https://designs2html.com
Author: Marketing the Change
Author URI: https://marketingthechange.com
Description: Custom FSE theme for designs2html.com. Dev-shop dark canvas with Ink/Slate/Paper surfaces and Wire/Amber/Mint syntax accents. Inter Tight + Inter + JetBrains Mono. Built for a developer-audience buyer: published pricing, code-in-body, tool disclosure. No em dashes, no AI tropes.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: designs2html-mtc
Tags: full-site-editing, block-theme, one-column, custom-colors, custom-menu, editor-style
*/

/* Minimal base. Most styling lives in theme.json. This file exists so WP recognises the theme. */

:root {
  --d2h-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --d2h-sans: "Inter", system-ui, -apple-system, sans-serif;
  --d2h-display: "Inter Tight", "Inter", system-ui, sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Section eyebrow: Mono, Fog, leading hash. */
.d2h-eyebrow {
  font-family: var(--d2h-mono);
  font-size: 14px;
  color: #8C93A3;
  letter-spacing: 0;
  margin: 0 0 12px 0;
  text-transform: none;
}
.d2h-eyebrow::before { content: "# "; color: #8C93A3; }

/* Price tokens: Mono, Amber. */
.d2h-price {
  font-family: var(--d2h-mono);
  color: #F4B860;
  font-weight: 500;
}

/* Turnaround SLA tokens: Mono, Chalk. */
.d2h-sla {
  font-family: var(--d2h-mono);
  font-size: 14px;
  color: #F0EEE7;
}
.d2h-sla .num { color: #F4B860; }

/* Trust strip vertical dividers. */
.d2h-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #2A303C;
  border-bottom: 1px solid #2A303C;
}
.d2h-trust-strip > * {
  padding: 20px 24px;
  border-right: 1px solid #2A303C;
  font-family: var(--d2h-mono);
  font-size: 14px;
  color: #F0EEE7;
}
.d2h-trust-strip > *:last-child { border-right: 0; }

/* Code block: Slate surface, JetBrains Mono, Prism One Dark-ish tokens. */
.wp-block-code,
pre.wp-block-code,
.d2h-code {
  background: #161B22;
  color: #F0EEE7;
  border: 1px solid #2A303C;
  border-radius: 6px;
  padding: 24px;
  font-family: var(--d2h-mono);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: auto;
}
.d2h-code .tok-tag { color: #7AA7FF; }
.d2h-code .tok-attr { color: #7AA7FF; }
.d2h-code .tok-str { color: #F4B860; }
.d2h-code .tok-kw { color: #7FD69C; }
.d2h-code .tok-com { color: #8C93A3; font-style: italic; }
.d2h-code .tok-fn { color: #F0EEE7; }
.d2h-code .tok-punc { color: #F0EEE7; }

/* Inline code: Charcoal chip, Chalk text. */
:not(pre) > code {
  background: #1F252E;
  color: #F0EEE7;
  font-family: var(--d2h-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Tool badge: Mono, Wire background, Ink text. */
.d2h-tool-badge {
  display: inline-block;
  font-family: var(--d2h-mono);
  font-size: 12px;
  font-weight: 500;
  color: #0E1116;
  background: #7AA7FF;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0;
}

/* Tool disclosure line (Mono, Fog on Ink). */
.d2h-tool-disclosure {
  font-family: var(--d2h-mono);
  font-size: 13px;
  color: #8C93A3;
  margin-top: 12px;
}
.d2h-tool-disclosure strong { color: #7FD69C; font-weight: 500; }

/* Card on Ink (Slate surface). */
.is-style-d2h-slate-card {
  background: #161B22;
  border: 1px solid #2A303C;
  border-radius: 6px;
  padding: 32px;
}

/* Card on Paper (Bone surface). */
.is-style-d2h-bone-card {
  background: #EEECE6;
  border: 1px solid #E3E1D9;
  border-radius: 6px;
  padding: 32px;
}

/* Image treatments (mirrored from image-system-prompts.md). */
.is-style-d2h-ink-wash {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 6px;
}
.is-style-d2h-ink-wash img,
.is-style-d2h-ink-wash video {
  display: block;
  width: 100%;
  height: auto;
}
.is-style-d2h-ink-wash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,17,22,0.30) 0%, rgba(14,17,22,0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

.is-style-d2h-wire-glow {
  border: 1px solid #2A303C;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(122,167,255,0.15), 0 8px 24px rgba(0,0,0,0.35);
  overflow: hidden;
}
.is-style-d2h-wire-glow img { display: block; width: 100%; height: auto; }

.is-style-d2h-paper-frame {
  padding: 12px;
  background: #F6F5F0;
  border: 1px solid #E3E1D9;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(20,24,33,0.05);
}
.is-style-d2h-paper-frame img { display: block; width: 100%; height: auto; border-radius: 2px; }

/* Button variants. */
.wp-block-button.is-style-d2h-primary .wp-block-button__link {
  background: #7AA7FF;
  color: #0E1116;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid #7AA7FF;
  font-family: var(--d2h-sans);
}
.wp-block-button.is-style-d2h-primary .wp-block-button__link:hover {
  background: #93B8FF;
  border-color: #93B8FF;
}
.wp-block-button.is-style-d2h-secondary .wp-block-button__link {
  background: transparent;
  color: #F0EEE7;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid #2A303C;
  font-family: var(--d2h-sans);
}
.wp-block-button.is-style-d2h-secondary .wp-block-button__link:hover {
  border-color: #7AA7FF;
  color: #7AA7FF;
}

/* Before/after diff container. */
.d2h-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 782px) { .d2h-diff { grid-template-columns: 1fr; } }
.d2h-diff__label {
  font-family: var(--d2h-mono);
  font-size: 12px;
  color: #7AA7FF;
  margin-bottom: 6px;
}
.d2h-diff__label.raw::before { content: "- "; color: #F07C88; }
.d2h-diff__label.shipped::before { content: "+ "; color: #7FD69C; }

/* Pricing tier card. */
.d2h-tier {
  padding: 32px;
  background: #161B22;
  border: 1px solid #2A303C;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.d2h-tier__price { font-family: var(--d2h-mono); font-size: 32px; font-weight: 500; color: #F4B860; }
.d2h-tier__sla { font-family: var(--d2h-mono); font-size: 13px; color: #7FD69C; }
.d2h-tier ul { list-style: none; padding: 0; margin: 12px 0; }
.d2h-tier li { padding-left: 22px; position: relative; color: #F0EEE7; margin: 6px 0; font-size: 15px; }
.d2h-tier li::before { content: "✓"; color: #7FD69C; position: absolute; left: 0; font-family: var(--d2h-mono); }

/* Section vertical rhythm defaults. */
.d2h-section { padding: 96px 0; }
@media (max-width: 1024px) { .d2h-section { padding: 64px 0; } }
@media (max-width: 782px) { .d2h-section { padding: 48px 0; } }

/* Skip link. */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #7AA7FF; color: #0E1116; clip: auto; clip-path: none;
  height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000;
}

/* Reduce motion: cancel entrances. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
