/*
Theme Name: Domain Matrix Starter
Theme URI: https://example.com/domain-matrix-starter
Description: Domain Matrix starter child theme for WordPress CMS sites.
Author: Domain Matrix
Template: blocksy
Version: 0.1.0
Text Domain: domain-matrix-starter
*/

:root {
  --dm-color-bg: #f3efe6;
  --dm-color-surface: #fffaf2;
  --dm-color-text: #1c1712;
  --dm-color-muted: #6a5c4f;
  --dm-color-accent: #b64224;
  --dm-color-accent-soft: #dfb08b;
  --dm-color-border: rgba(28, 23, 18, 0.12);
  --dm-radius-card: 22px;
  --dm-shadow-card: 0 24px 70px rgba(53, 34, 20, 0.08);
}

body {
  background:
    radial-gradient(circle at top, rgba(223, 176, 139, 0.28), transparent 32%),
    linear-gradient(180deg, #f8f3ea 0%, #efe4d4 100%);
  color: var(--dm-color-text);
}

.site {
  min-height: 100vh;
}

.entry-content,
.ct-container {
  color: var(--dm-color-text);
}

.entry-content > p,
.entry-content > div,
.entry-content > ul,
.entry-content > h2,
.entry-content > h3 {
  max-width: 78ch;
}

.entry-content > p:first-child,
.entry-content > div:first-child {
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content > p img {
  display: block;
  width: min(100%, 780px);
  border-radius: var(--dm-radius-card);
  box-shadow: var(--dm-shadow-card);
}

.entry-content > ul {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--dm-color-border);
  border-radius: calc(var(--dm-radius-card) - 8px);
  background: rgba(255, 250, 242, 0.88);
}

.entry-content > h1,
.entry-content > h2,
.entry-content > h3 {
  letter-spacing: -0.03em;
}

.entry-content a {
  color: var(--dm-color-accent);
}

.wp-site-blocks,
.ct-container > article,
.ct-container > main {
  position: relative;
}

.ct-container > article {
  padding: clamp(1.25rem, 2vw, 2.25rem);
  border-radius: 28px;
  border: 1px solid rgba(28, 23, 18, 0.08);
  background: rgba(255, 250, 242, 0.78);
  box-shadow: var(--dm-shadow-card);
  backdrop-filter: blur(4px);
}

.dm-wrap {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.dm-site-header,
.dm-site-footer {
  padding: 24px 0;
}

.dm-site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
}

.dm-site-brand__eyebrow,
.dm-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dm-color-muted);
}

.dm-site-brand__title {
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.dm-site-main {
  padding: 12px 0 48px;
}

.dm-card {
  padding: clamp(1.25rem, 2vw, 2.25rem);
  border-radius: 28px;
  border: 1px solid rgba(28, 23, 18, 0.08);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--dm-shadow-card);
}

.dm-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--dm-color-muted);
}

.dm-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.dm-breadcrumbs a:not(:last-child)::after {
  content: "/";
  margin-left: 0.6rem;
}

.dm-profile {
  display: grid;
  gap: 2rem;
}

.dm-profile__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.dm-profile__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--dm-shadow-card);
}

.dm-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}

.dm-facts div,
.dm-services {
  padding: 0.9rem 1rem;
  border: 1px solid var(--dm-color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.dm-facts dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dm-color-muted);
}

.dm-facts dd {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.dm-services ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 820px) {
  .dm-profile__hero {
    grid-template-columns: 1fr;
  }
}
