/*
Theme Name: Daymuse
Theme URI: https://www.daymuse.com/
Author: Hiro (for Daymuse)
Description: Custom WordPress theme recreating the Daymuse Drupal 7 design at 80-90% fidelity. Based on the 2026-10-09 theme survey.
Version: 1.0.13
License: GNU General Public License v2 or later
Text Domain: daymuse
*/

/* ============ Design tokens ============ */
:root {
  --dm-coral: #F2836B;
  --dm-coral-hover: #f3846b;
  --dm-text: #635656;
  --dm-teal-h1: #63A69F;
  --dm-teal-h2: #59958F;
  --dm-teal-h3: #4F857F;
  --dm-link: #CD2C24;
  --dm-link-hover: #F2836B;
  --dm-body-link: #B82820;
  --dm-tan: #DACA9B;
  --dm-meta: #C2B48A;
  --dm-cta: #A4231D;
  --dm-cta-hover: #D75650;
  --dm-cta-text: #faffff;
  --dm-quote: #F2E1AC;
  --dm-cream: #fcf9ee;
  --dm-breadcrumb: #f7f7f7;
  --dm-tag-bg: #f5f5f5;
  --dm-rule: #eeeeee;
  --dm-font-head: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
  --dm-font-body: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
  --dm-max-width: 54em;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: var(--dm-font-body);
  font-size: 1.35em;
  line-height: 1.65;
  color: var(--dm-text);
  background: #fff;
}
h1, h2, h3, h4, h5, h6,
.site-nav, .dm-button, button, .dm-label {
  font-family: var(--dm-font-head);
}
h1 { font-size: 2.4em; color: var(--dm-teal-h1); text-align: center; font-weight: 600; }
h2 { font-size: 2.1em; color: var(--dm-teal-h2); }
h3 { font-size: 1.6em; color: var(--dm-teal-h3); }
h4 { font-size: 1.5em; color: var(--dm-teal-h3); }
h5 { font-size: 1.4em; color: var(--dm-teal-h3); }
a { color: var(--dm-link); }
a:hover { color: var(--dm-link-hover); }
.entry-content a { color: var(--dm-body-link); text-decoration: underline; }
.entry-content a:hover { text-decoration: none; }
.entry-content p { text-indent: 2em; }
.entry-content p:first-of-type { text-indent: 0; }
hr, .dm-hr {
  border: 0;
  border-top: 2px dashed var(--dm-tan);
  margin: 2em 0;
}
blockquote {
  position: relative;
  font-style: italic;
  padding: 0 2em;
  margin: 2em 0;
}
blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.4em;
  font-size: 4em;
  color: var(--dm-quote);
  font-family: var(--dm-font-head);
}
img { max-width: 100%; height: auto; }

/* ============ Layout ============ */
.dm-container {
  max-width: var(--dm-max-width);
  margin: 0 auto;
  padding: 0 1.5em;
}
.dm-main { background: var(--dm-cream); padding: 2em 0 4em; }
body.home .dm-main { background: #fff; padding: 0; }

/* ============ Header ============ */
.site-header {
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .dm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 70em;
  padding-top: 0.6em;
  padding-bottom: 0.6em;
}
.site-logo img { height: 32px; width: auto; display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6em;
}
.site-nav a {
  font-family: var(--dm-font-head);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--dm-link);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--dm-coral-hover); }
.site-nav .current-menu-item a,
.site-nav .current-page-ancestor a { border-bottom-color: var(--dm-link); }

/* ============ Buttons ============ */
.dm-button, .wp-block-button__link {
  display: inline-block;
  background: var(--dm-cta);
  color: var(--dm-cta-text) !important;
  font-family: var(--dm-font-head);
  font-weight: 600;
  padding: 0.8em 1.8em;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.dm-button:hover, .wp-block-button__link:hover {
  background: var(--dm-cta-hover);
  color: var(--dm-cta-text) !important;
}
.dm-pill {
  display: inline-block;
  background: rgba(0,0,0,.65);
  color: #fff !important;
  border-radius: 14px;
  padding: 0.5em 1.4em;
  font-family: var(--dm-font-head);
  text-decoration: none !important;
}
.dm-pill::after { content: " \2192"; }

/* ============ Breadcrumb ============ */
.dm-breadcrumb {
  background: var(--dm-breadcrumb);
  font-family: var(--dm-font-head);
  font-size: 0.75em;
  padding: 0.6em 0;
  text-align: left;
  color: #999;
}
.dm-breadcrumb a { color: var(--dm-coral-hover); text-decoration: none; }

/* ============ Footer ============ */
.site-footer {
  background: var(--dm-coral);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,.2);
  padding: 2.5em 0 1.5em;
}
.site-footer .dm-container { max-width: 70em; }
.dm-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2em;
  margin-bottom: 1.5em;
}
.dm-social { display: flex; gap: 0.7em; margin-top: 1em; }
.dm-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--dm-link);
  color: #fff !important;
  text-decoration: none;
  font-size: 1.1em;
}
.dm-nap { text-align: right; font-family: var(--dm-font-head); font-size: 0.95em; }
.dm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.35);
  padding-top: 1em;
  display: flex;
  justify-content: space-between;
  font-family: var(--dm-font-head);
  font-size: 0.85em;
}
.dm-footer-bottom a { color: var(--dm-link); }
.dm-footer-bottom ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2em;
}
.dm-footer-bottom ul li { display: inline; margin: 0; }

/* ============ Blog / archive ============ */
.dm-post-row {
  display: flex;
  gap: 1.5em;
  padding: 1.5em 0;
  border-bottom: 2px dashed var(--dm-tan);
}
.dm-post-row .dm-thumb { flex: 0 0 200px; }
.dm-post-meta { color: var(--dm-meta); font-style: italic; font-size: 0.9em; }
.dm-tags { margin: 2em 0; text-align: center; }
.dm-tags a {
  display: inline-block;
  background: var(--dm-tag-bg);
  border: 1px solid var(--dm-rule);
  border-radius: 3px;
  padding: 0.25em 0.8em;
  margin: 0.2em;
  font-family: var(--dm-font-head);
  font-size: 0.8em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dm-text);
}
.dm-byline {
  text-align: center;
  font-style: italic;
  border-top: 1px solid var(--dm-rule);
  border-bottom: 1px solid var(--dm-rule);
  padding: 1em 0;
  margin: 2em 0;
}
.dm-byline img.avatar { border-radius: 50%; vertical-align: middle; }

/* ============ Project single ============ */
.dm-project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
  gap: 1em;
  margin: 2em 0;
}
.dm-project-meta .dm-meta-item { font-family: var(--dm-font-head); }
.dm-project-meta .dm-meta-label {
  font-weight: 600;
  color: var(--dm-teal-h3);
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
}

/* ============ Contact form ============ */
.dm-contact-grid { display: grid; gap: 2em; }
.wpforms-container label,
.dm-label {
  font-family: var(--dm-font-head) !important;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
}
.wpforms-container .wpforms-required-label { color: var(--dm-link) !important; }
.wpforms-container fieldset { border-top: 2px dashed var(--dm-tan); }

/* ============ Unified listing (cards) ============ */
.dm-listing-header { text-align: center; margin-bottom: 2em; }
.dm-listing-header .page-title { margin-bottom: 0.4em; }
.dm-listing-desc { max-width: 640px; margin: 0 auto 1.5em; color: #555; }
/* Wider content area for listings */
.dm-container:has(.dm-card-grid) { max-width: 1200px; padding-left: 2em; padding-right: 2em; }
.dm-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  margin-bottom: 2.5em;
}
.dm-card {
  background: #fff;
  border: 1px solid #e8e0cc;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.dm-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.10); transform: translateY(-2px); }
.dm-card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.dm-card-body { padding: 1.2em 1.3em 1.4em; display: flex; flex-direction: column; flex: 1; }
.dm-card-badge {
  display: inline-block;
  align-self: flex-start;
  background: #f5f0e1;
  border-radius: 3px;
  padding: 0.25em 0.7em;
  font-size: 0.78em;
  font-family: var(--dm-font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a6f52;
  margin-bottom: 0.7em;
}
.dm-card-title { margin: 0 0 0.5em; font-size: 1.15em; line-height: 1.3; }
.dm-card-title a { color: #8B1A1A; text-decoration: none; }
.dm-card-title a:hover { text-decoration: underline; }
.dm-card-excerpt { font-size: 0.92em; color: #555; }
.dm-card-excerpt p { margin: 0; }
.dm-pagination { text-align: center; margin: 2em 0; font-family: var(--dm-font-head); }
.dm-pagination .page-numbers { padding: 0.4em 0.8em; margin: 0 0.2em; border: 1px solid var(--dm-tan); border-radius: 4px; text-decoration: none; }
.dm-pagination .page-numbers.current { background: var(--dm-coral); border-color: var(--dm-coral); color: #fff; }
@media (max-width: 44em) { .dm-card-grid { grid-template-columns: 1fr; } }
.dm-blog-layout { display: flex; gap: 2em; }
.dm-blog-main { flex: 0 0 72%; }
.dm-blog-sidebar { flex: 0 0 26%; }
.dm-blog-intro { text-align: center; margin-bottom: 2em; }
.dm-blog-post { margin-bottom: 2.5em; padding-bottom: 2em; border-bottom: 1px solid var(--dm-tan); }
.dm-date-badge {
  display: inline-block;
  background: #f5f0e1;
  border-radius: 4px;
  padding: 0.3em 0.8em;
  font-size: 0.85em;
  font-family: var(--dm-font-head);
  margin-bottom: 0.8em;
}
.dm-date-badge .fa { margin-right: 0.4em; }
.dm-blog-post .entry-title { margin: 0 0 0.6em 0; font-size: 1.4em; }
.dm-blog-post .entry-title a { color: #8B1A1A; text-decoration: none; }
.dm-blog-post .entry-title a:hover { text-decoration: underline; }
.dm-post-image { margin: 1em 0; }
.dm-post-image img { width: 100%; height: auto; }
.dm-blog-sidebar .dm-widget { margin-bottom: 2em; }
.dm-blog-sidebar .dm-widget h3 { font-size: 0.95em; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8em; }
.dm-blog-sidebar .dm-widget ul { list-style: none; margin: 0; padding: 0; }
.dm-blog-sidebar .dm-widget ul li { margin-bottom: 0.4em; }
@media (max-width: 44em) {
  .dm-blog-layout { flex-direction: column; }
  .dm-blog-main, .dm-blog-sidebar { flex: none; }
}

/* ============ Project filter ============ */
.dm-filter { margin: 1.5em 0; display: flex; flex-wrap: wrap; gap: 0.5em; align-items: center; }
.dm-filter-label { font-family: var(--dm-font-head); font-weight: 700; margin-right: 0.5em; }
.dm-filter-pill {
  display: inline-block;
  padding: 0.4em 1em;
  border: 1px solid var(--dm-tan);
  border-radius: 2em;
  font-family: var(--dm-font-head);
  font-size: 0.85em;
  text-decoration: none !important;
  color: var(--dm-teal-dark);
}
.dm-filter-pill:hover { border-color: var(--dm-coral); color: var(--dm-link); }
.dm-filter-pill.active { background: var(--dm-coral); border-color: var(--dm-coral); color: #fff !important; }

/* ============ CTA buttons ============ */
a.but-cta, .but-cta {
  display: inline-block;
  background: #A4231D;
  color: #fff !important;
  font-family: var(--dm-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.9em 2em;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
a.but-cta:hover, .but-cta:hover {
  background: #CD2C24;
  color: #fff !important;
}

/* ============ Responsive ============ */
@media (max-width: 44em) {
  body { font-size: 75%; }
  .site-nav { overflow-x: auto; }
  .site-nav ul { gap: 1em; }
  .dm-footer-top { flex-direction: column; }
  .dm-nap { text-align: left; }
  .dm-post-row { flex-direction: column; }
  .dm-post-row .dm-thumb { flex: none; }
}
@media (min-width: 70em) {
  .site-logo img { height: 44px; }
  .dm-container { padding-left: 15%; padding-right: 15%; }
  .site-header .dm-container,
  .site-footer .dm-container { padding-left: 1.5em; padding-right: 1.5em; }
}
