/* Dark cream/brown alternate palette + CV layout components */

body.cv-dark-page {
  background: #2c1606;
  color: #fcefd8;
}

body.cv-dark-page a {
  color: #ffd9a6;
}

body.cv-dark-page a:hover {
  color: #ffebc9;
}

body.cv-dark-page header {
  background: rgba(14, 7, 2, 0.88);
  border-bottom: 2px solid rgba(255, 194, 120, 0.35);
}

body.cv-dark-page .nav-bar a {
  color: #fff5e1;
}

body.cv-dark-page .nav-bar a:hover {
  color: #ffeedc;
}

body.cv-dark-page footer {
  background: rgba(20, 10, 3, 0.92);
  color: #fcefd8;
}

body.cv-dark-page footer a {
  color: #ffd9a6;
}

body.cv-dark-page footer a:hover {
  color: #ffebc9;
}

body.cv-dark-page .footer-badges img {
  filter: saturate(0.9) brightness(0.95);
}

body.cv-dark-page .title-section {
  color: #fcefd8;
}

.cv-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  position: relative;
  z-index: 2;
}

.cv-card {
  background: rgba(47, 24, 10, 0.82);
  border: 1px solid rgba(255, 221, 168, 0.45);
  border-radius: 12px;
  padding: 1.45rem;
  margin-bottom: 2.4rem;
  box-shadow: 5px 7px 0 rgba(0, 0, 0, 0.35);
}

.cv-card h2 {
  font-family: "Lyno-Jean", sans-serif;
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  color: #ffe5be;
}

.cv-card h3 {
  font-family: "Lyno-Stan", sans-serif;
  font-size: 1.1rem;
  margin: 1.2rem 0 0.35rem;
  color: #ffcf96;
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2.4rem;
}

@media (min-width: 860px) {
  .cv-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.cv-meta {
  font-size: 0.95rem;
  color: #f4cfa2;
  margin: 0.2rem 0 0.6rem;
  font-family: "Lyno-Stan", sans-serif;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.cv-tag {
  border: 1px solid rgba(255, 210, 150, 0.45);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  font-size: 0.85rem;
  font-family: "Lyno-Stan", sans-serif;
  background: rgba(255, 221, 168, 0.15);
  color: #ffe9c5;
}

.cv-card p,
.cv-card li {
  font-family: "Lyno-Stan", Arial, sans-serif;
  line-height: 1.55;
  color: #fcefd8;
}

.cv-card ul {
  margin: 0.35rem 0 0.6rem 1.25rem;
}

.cv-card a {
  color: #ffd9a6;
  text-decoration: underline;
}

.cv-card a:hover {
  color: #ffebc9;
}

.cv-role + .cv-role {
  margin-top: 1.5rem;
}

.cv-role h3 em {
  font-style: normal;
  font-family: "Lyno-Ulys", serif;
  color: #ffd294;
}

.cv-intro p {
  font-family: "ecommandfont", monospace;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.48;
  margin-bottom: 0.9rem;
  color: #ffe9c5;
}

.cv-exhibits {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.2rem;
}

.cv-exhibit {
  background: rgba(57, 29, 10, 0.78);
  border: 1px solid rgba(255, 221, 168, 0.35);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.cv-exhibit-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(163, 85, 32, 0.45), rgba(255, 213, 170, 0.25));
}

.cv-exhibit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cv-exhibit-info {
  padding: 0.75rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fcefd8;
}

.cv-exhibit-info h4 {
  margin: 0;
  font-size: 1rem;
  font-family: "Lyno-Stan", sans-serif;
  color: #ffe5be;
}

.cv-exhibit-info p {
  margin: 0;
  font-size: 0.92rem;
  color: #f6d7ad;
}

.cv-exhibit-info a {
  margin-top: auto;
  color: #ffd9a6;
  font-weight: 600;
  text-decoration: none;
}

.cv-exhibit-info a:hover {
  color: #ffebc9;
}

.cv-footer-note {
  text-align: center;
  font-family: "Lyno-Stan", sans-serif;
  font-size: 0.95rem;
  color: #ffe5be;
}

body.service-page {
  background-color: #f5ead7;
  background-repeat: repeat;
  background-size: 220px 220px;
  color: inherit;
}

.service-tile-repair {
  background-image: url("/images/200-1.webp");
}

.service-tile-consult {
  background-image: url("/images/200-4.webp");
}

.service-tile-engineering {
  background-image: url("/images/200-7.webp");
}

.service-tile-install {
  background-image: url("/images/200-10.webp");
}

.service-tile-commission {
  background-image: url("/images/200-12.webp");
}

.service-page main {
  background-color: rgba(245, 234, 215, 0.88);
  backdrop-filter: blur(1.5px);
}
