/* Dealsmaster v6.0.16 — illustrated field-guide identity. */

:root {
  --dmfg-paper: #f6efdf;
  --dmfg-paper-bright: #fffaf0;
  --dmfg-ink: #201e19;
  --dmfg-copy: #51493e;
  --dmfg-olive: #5e6740;
  --dmfg-olive-deep: #3f492b;
  --dmfg-rust: #a75b36;
  --dmfg-walnut: #7a4c2d;
  --dmfg-line: rgba(49, 43, 33, .24);
  --dmfg-soft-line: rgba(49, 43, 33, .12);
  --dmfg-paper-shadow: 0 18px 48px rgba(70, 49, 25, .11);
}

html[data-dm-theme="dark"] {
  --dmfg-paper: #171b15;
  --dmfg-paper-bright: #21251d;
  --dmfg-ink: #f6eddc;
  --dmfg-copy: #d4c9b8;
  --dmfg-olive: #a9b47b;
  --dmfg-olive-deep: #c3ce92;
  --dmfg-rust: #dd8a61;
  --dmfg-walnut: #c98a5d;
  --dmfg-line: rgba(245, 234, 215, .27);
  --dmfg-soft-line: rgba(245, 234, 215, .13);
  --dmfg-paper-shadow: 0 22px 52px rgba(0, 0, 0, .28);
}

body.dm-field-guide-system {
  color: var(--dmfg-ink);
  background-color: var(--dmfg-paper);
  background-image:
    radial-gradient(circle at 14% 20%, rgba(91, 74, 47, .045) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 63%, rgba(91, 74, 47, .035) 0 1px, transparent 1.6px);
  background-size: 19px 23px, 29px 31px;
}

.dm-field-guide-system :is(h1, h2, h3, h4, .wp-block-post-title) {
  color: var(--dmfg-ink);
  font-family: Fraunces, Georgia, "Times New Roman", serif;
}

.dm-field-guide-system :is(a, button, input, summary):focus-visible {
  outline: 3px solid var(--dmfg-rust);
  outline-offset: 4px;
}

/* Masthead: an editorial cover line rather than an app bar. */
.dm-field-guide-system .dm-site-header {
  border-bottom: 3px double var(--dmfg-line);
  background: color-mix(in srgb, var(--dmfg-paper-bright) 94%, transparent);
  box-shadow: 0 10px 28px rgba(61, 44, 25, .06);
  backdrop-filter: blur(14px);
}

.dm-field-guide-system .dm-site-header .dm-brand-row {
  position: relative;
}

.dm-field-guide-system .dm-site-header .dm-brand-row::after {
  position: absolute;
  right: clamp(1rem, 3vw, 2.6rem);
  bottom: 0;
  left: clamp(1rem, 3vw, 2.6rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dmfg-line) 12%, var(--dmfg-line) 88%, transparent);
  content: "";
}

.dm-field-guide-system .dm-brand-name {
  color: var(--dmfg-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase;
}

.dm-field-guide-system .dm-brand-tagline,
.dm-field-guide-system .dm-header-desk,
.dm-field-guide-system .dm-wayfinder {
  color: var(--dmfg-copy) !important;
}

.dm-field-guide-system .dm-monogram,
.dm-field-guide-system .dm-logo-mark {
  border: 1px solid var(--dmfg-olive) !important;
  border-radius: 50% 45% 50% 44% !important;
  color: var(--dmfg-olive-deep) !important;
  background: var(--dmfg-paper-bright) !important;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--dmfg-rust) 26%, transparent) !important;
  transform: rotate(-2deg);
}

.dm-field-guide-system .dm-nav-bar {
  background: var(--dmfg-olive-deep) !important;
}

.dm-field-guide-system .dm-nav-bar :is(a, button) {
  color: #fff8e9 !important;
  letter-spacing: .055em;
}

.dm-field-guide-system .dm-header-search .wp-block-search__inside-wrapper {
  border: 1px solid var(--dmfg-line) !important;
  border-radius: .25rem !important;
  background: var(--dmfg-paper-bright) !important;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--dmfg-olive) 16%, transparent);
}

.dm-field-guide-system .dm-header-search :is(input, button) {
  color: var(--dmfg-ink) !important;
}

/* Homepage: an illustrated field journal. */
.dm-field-guide-system .dm-home-rebuild {
  --dmh-ink: var(--dmfg-ink);
  --dmh-copy: var(--dmfg-copy);
  --dmh-paper: var(--dmfg-paper);
  --dmh-card: var(--dmfg-paper-bright);
  --dmh-forest: var(--dmfg-olive-deep);
  --dmh-forest-soft: var(--dmfg-olive);
  --dmh-rust: var(--dmfg-rust);
  --dmh-rust-deep: var(--dmfg-walnut);
  --dmh-line: var(--dmfg-line);
  background-color: var(--dmfg-paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 30px, rgba(76, 62, 40, .025) 30px 31px);
}

.dm-field-guide-system .dm-home-rebuild__hero {
  padding-block: clamp(3rem, 6vw, 6rem);
  border-bottom: 3px double var(--dmfg-line);
  background:
    radial-gradient(circle at 8% 18%, color-mix(in srgb, var(--dmfg-rust) 12%, transparent), transparent 24%),
    radial-gradient(circle at 94% 78%, color-mix(in srgb, var(--dmfg-olive) 18%, transparent), transparent 28%),
    var(--dmfg-paper);
}

.dm-field-guide-system .dm-home-rebuild__hero::after {
  position: absolute;
  top: 1.25rem;
  right: max(1rem, calc((100% - 80rem) / 2));
  color: var(--dmfg-olive);
  content: "✦  FIELD NOTES FOR REAL ROOMS  ✦";
  font: 800 .62rem/1.2 var(--dm-sans, sans-serif);
  letter-spacing: .16em;
}

.dm-field-guide-system .dm-home-rebuild__hero-copy h1 {
  max-width: 10.7ch;
  color: var(--dmfg-ink) !important;
  font-weight: 760;
  letter-spacing: -.047em;
  line-height: .89;
}

.dm-field-guide-system .dm-home-rebuild__eyebrow {
  color: var(--dmfg-rust) !important;
}

.dm-field-guide-system .dm-home-rebuild__hero-copy :is(.dm-home-rebuild__dek, .dm-home-rebuild__promise) {
  color: var(--dmfg-copy) !important;
}

.dm-field-guide-system .dm-home-rebuild__hero-copy .dm-home-rebuild__promise {
  border-color: var(--dmfg-line) !important;
}

.dm-field-guide-system .dm-home-rebuild__hero-copy .dm-home-rebuild__text-link {
  color: var(--dmfg-walnut) !important;
}

.dm-field-guide-system .dm-home-rebuild__hero-figure {
  padding: .7rem;
  border: 1px solid var(--dmfg-ink);
  border-radius: .2rem;
  background: var(--dmfg-paper-bright);
  box-shadow: 8px 9px 0 color-mix(in srgb, var(--dmfg-olive) 25%, transparent), var(--dmfg-paper-shadow);
  transform: rotate(.35deg);
}

.dm-field-guide-system .dm-home-rebuild__hero-figure::before {
  inset: .35rem;
  width: auto;
  height: auto;
  border: 1px solid var(--dmfg-soft-line);
  border-radius: 0;
  background: transparent;
  transform: none;
}

.dm-field-guide-system .dm-home-rebuild__hero-figure img {
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.025);
}

.dm-field-guide-system .dm-home-rebuild__hero-figure figcaption {
  padding: .85rem .45rem .2rem;
  color: var(--dmfg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .85rem;
  font-style: italic;
}

.dm-field-guide-system .dm-home-rebuild__hero-figure figcaption span {
  color: var(--dmfg-olive-deep);
  font-family: var(--dm-sans, sans-serif);
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dmfg-visual-key {
  position: absolute;
  z-index: 3;
  inset: .7rem;
  pointer-events: none;
}

.dmfg-visual-key__note {
  position: absolute;
  display: inline-flex;
  gap: .38rem;
  align-items: center;
  max-width: 10.5rem;
  padding: .48rem .62rem;
  border: 1px solid rgba(39, 34, 27, .62);
  color: #28231c;
  background: rgba(255, 250, 239, .92);
  box-shadow: 3px 3px 0 rgba(96, 103, 64, .3);
  font-family: var(--dm-sans, sans-serif);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.25;
  text-transform: uppercase;
  transform: rotate(-1deg);
  backdrop-filter: blur(4px);
}

.dmfg-visual-key__note::before {
  color: #a75b36;
  content: "↗";
  font-family: Georgia, serif;
  font-size: 1rem;
}

.dmfg-visual-key__note:nth-child(1) { top: 9%; left: 4%; }
.dmfg-visual-key__note:nth-child(2) { right: 4%; bottom: 33%; transform: rotate(1deg); }
.dmfg-visual-key__note:nth-child(3) { bottom: 7%; left: 25%; transform: rotate(.5deg); }

.dm-field-guide-system .dm-home-rebuild__section-head {
  border-top: 3px double var(--dmfg-line);
  padding-top: 1.15rem;
}

.dm-field-guide-system .dm-home-rebuild__section-head h2 {
  font-weight: 720;
  letter-spacing: -.035em;
}

.dm-field-guide-system :is(.dm-home-rebuild__pressure-card, .dm-home-rebuild__feature, .dm-home-rebuild__field-card, .dm-home-rebuild__measure-card, .dm-home-rebuild__difficult-card, .dm-home-rebuild__room-card) {
  border: 1px solid var(--dmfg-line) !important;
  border-radius: .2rem !important;
  background: var(--dmfg-paper-bright) !important;
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--dmfg-olive) 13%, transparent) !important;
}

.dm-field-guide-system :is(.dm-home-rebuild__feature-media, .dm-home-rebuild__field-media, .dm-home-rebuild__measure-media, .dm-home-rebuild__difficult-media) img {
  border-radius: 0 !important;
  filter: saturate(.9) contrast(1.035) sepia(.04);
  transition: filter .35s ease, transform .45s cubic-bezier(.2,.75,.2,1);
}

.dm-field-guide-system :is(.dm-home-rebuild__feature, .dm-home-rebuild__field-card, .dm-home-rebuild__measure-card, .dm-home-rebuild__difficult-card):hover img {
  filter: saturate(1.03) contrast(1.04) sepia(0);
  transform: scale(1.018);
}

.dm-field-guide-system .dm-home-rebuild__number {
  border: 1px solid var(--dmfg-olive) !important;
  border-radius: 50% !important;
  color: var(--dmfg-olive-deep) !important;
  background: transparent !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

.dm-field-guide-system :is(.dm-home-rebuild__button, .dm-read-link) {
  border-radius: .2rem !important;
  color: #fff8e9 !important;
  background: var(--dmfg-olive-deep) !important;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--dmfg-rust) 36%, transparent) !important;
}

body.dm-field-guide-system .dm-home-rebuild__hero a.dm-home-rebuild__button {
  color: #fff8e9 !important;
  -webkit-text-fill-color: #fff8e9;
}

/* Article covers and reading surfaces. */
.dm-field-guide-system.single-post main {
  color: var(--dmfg-copy);
}

.dm-field-guide-system.single-post .dm-single {
  position: relative;
}

.dm-field-guide-system.single-post .dm-single .wp-block-post-title {
  max-width: 18ch;
  color: var(--dmfg-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.65rem, 6vw, 6.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.045em !important;
  line-height: .93 !important;
}

.dm-field-guide-system.single-post .dm-single .wp-block-post-title::before {
  display: block;
  margin-bottom: .85rem;
  color: var(--dmfg-rust);
  content: "THE DEALSMASTER FIELD GUIDE";
  font-family: var(--dm-sans, sans-serif);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .17em;
  line-height: 1.3;
}

.dm-field-guide-system.single-post .dm-article-hero {
  margin-top: 1.25rem;
  padding: .55rem;
  border: 1px solid var(--dmfg-ink);
  border-radius: .15rem !important;
  background: var(--dmfg-paper-bright);
  box-shadow: 7px 8px 0 color-mix(in srgb, var(--dmfg-olive) 20%, transparent), var(--dmfg-paper-shadow);
}

.dm-field-guide-system.single-post .dm-article-hero img {
  border-radius: 0 !important;
  filter: saturate(.96) contrast(1.035) sepia(.035);
}

.dmfg-cover-notes {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  pointer-events: none;
}

.dmfg-cover-notes::before {
  padding: .45rem .6rem;
  border: 1px solid rgba(39, 34, 27, .62);
  color: #fff9ec;
  background: rgba(63, 73, 43, .94);
  content: "READ THE ROOM";
  font-family: var(--dm-sans, sans-serif);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.dmfg-cover-notes span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: .42rem .62rem;
  border: 1px solid rgba(39, 34, 27, .62);
  color: #28231c;
  background: rgba(255, 250, 239, .93);
  box-shadow: 2px 2px 0 rgba(167, 91, 54, .35);
  font-family: var(--dm-sans, sans-serif);
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .045em;
  line-height: 1.2;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.dm-field-guide-system.single-post .dm-article-content {
  color: var(--dmfg-copy);
}

.dm-field-guide-system.single-post .dm-article-content :is(p, li) {
  font-size: clamp(1rem, .97rem + .16vw, 1.12rem);
  line-height: 1.78;
}

.dm-field-guide-system.single-post .dm-article-content h2 {
  position: relative;
  margin-top: clamp(3.4rem, 7vw, 6rem);
  padding: 1.05rem 0 .45rem;
  border-top: 3px double var(--dmfg-line);
  color: var(--dmfg-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: .98;
}

.dm-field-guide-system.single-post .dm-article-content h2::before {
  display: block;
  margin-bottom: .55rem;
  color: var(--dmfg-olive);
  content: "✦  FIELD NOTE";
  font-family: var(--dm-sans, sans-serif);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.2;
}

.dm-field-guide-system.single-post .dm-article-content h3 {
  margin-top: 2.6rem;
  color: var(--dmfg-olive-deep) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -.02em;
}

.dm-field-guide-system.single-post .dm-article-content :is(figure, .dm-image-study) {
  margin-block: clamp(2rem, 5vw, 4rem);
  padding: .55rem;
  border: 1px solid var(--dmfg-line);
  border-radius: .15rem !important;
  background: var(--dmfg-paper-bright) !important;
  box-shadow: 6px 7px 0 color-mix(in srgb, var(--dmfg-olive) 15%, transparent), var(--dmfg-paper-shadow);
}

.dm-field-guide-system.single-post .dm-article-content figure img {
  width: 100%;
  border-radius: 0 !important;
  filter: saturate(.96) contrast(1.035) sepia(.025);
}

.dm-field-guide-system.single-post .dm-article-content :is(figcaption, caption) {
  padding: .8rem .55rem .25rem;
  color: var(--dmfg-copy) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .84rem;
  font-style: italic;
  line-height: 1.5;
}

.dm-field-guide-system.single-post .dm-article-content :is(blockquote, aside, .wp-block-group.has-background, details) {
  position: relative;
  margin-block: 2.2rem;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  border: 1px solid var(--dmfg-line) !important;
  border-left: 5px solid var(--dmfg-rust) !important;
  border-radius: .15rem !important;
  color: var(--dmfg-copy) !important;
  background: color-mix(in srgb, var(--dmfg-paper-bright) 92%, var(--dmfg-olive) 8%) !important;
  box-shadow: 4px 5px 0 color-mix(in srgb, var(--dmfg-rust) 12%, transparent);
}

.dm-field-guide-system.single-post .dm-article-content :is(ul, ol) {
  padding-left: 1.5rem;
}

.dm-field-guide-system.single-post .dm-article-content li::marker {
  color: var(--dmfg-rust);
  font-weight: 850;
}

.dm-field-guide-system.single-post .dm-article-content table {
  overflow: hidden;
  width: 100%;
  border: 2px solid var(--dmfg-ink);
  border-collapse: collapse;
  color: var(--dmfg-copy);
  background: var(--dmfg-paper-bright);
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--dmfg-olive) 17%, transparent);
}

.dm-field-guide-system.single-post .dm-article-content :is(th, td) {
  padding: .85rem;
  border: 1px solid var(--dmfg-line);
  text-align: left;
}

.dm-field-guide-system.single-post .dm-article-content th {
  color: #fff8e9;
  background: var(--dmfg-olive-deep);
  font-family: var(--dm-sans, sans-serif);
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dm-field-guide-system.single-post aside[aria-label="In this guide"],
.dm-field-guide-system.single-post .dm-guide-companion {
  border: 1px solid var(--dmfg-line) !important;
  border-radius: .15rem !important;
  color: var(--dmfg-copy) !important;
  background: var(--dmfg-paper-bright) !important;
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--dmfg-olive) 17%, transparent) !important;
}

/* Related guides and directory cards become small illustrated plates. */
.dm-field-guide-system .dm-next-reads--contextual {
  border-top: 3px double var(--dmfg-line);
  background: var(--dmfg-paper) !important;
}

.dm-field-guide-system .dm-next-reads--contextual .dm-next-grid > article,
.dm-field-guide-system .dm-guide-directory .dm-experience-card {
  border: 1px solid var(--dmfg-line) !important;
  border-radius: .15rem !important;
  background: var(--dmfg-paper-bright) !important;
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--dmfg-olive) 14%, transparent) !important;
}

.dm-field-guide-system .dm-next-reads--contextual .dm-next-image,
.dm-field-guide-system .dm-guide-directory .dm-experience-card__media {
  border-radius: 0 !important;
}

.dm-field-guide-system .dm-next-reads--contextual img,
.dm-field-guide-system .dm-guide-directory .dm-experience-card__media img {
  filter: saturate(.92) contrast(1.04) sepia(.03);
}

.dm-field-guide-system .dm-next-reads--contextual h3 a,
.dm-field-guide-system .dm-guide-directory h3 a {
  color: var(--dmfg-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
}

/* Footer: a closing page, not a leftover widget area. */
.dm-field-guide-system footer {
  border-top: 5px double var(--dmfg-line);
  color: var(--dmfg-copy) !important;
  background: var(--dmfg-paper-bright) !important;
}

.dm-field-guide-system footer :is(h2, h3, h4, a) {
  color: var(--dmfg-ink) !important;
}

.dm-field-guide-system footer .dm-footer-snapshot {
  padding: .45rem;
  border: 1px solid var(--dmfg-ink);
  border-radius: .15rem !important;
  background: var(--dmfg-paper);
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--dmfg-olive) 18%, transparent);
}

.dm-field-guide-system footer .dm-footer-snapshot img {
  border-radius: 0 !important;
  filter: saturate(.9) contrast(1.04) sepia(.05);
}

html[data-dm-theme="dark"] .dm-field-guide-system :is(.dm-home-rebuild__section-head--light, .dm-home-rebuild__section-head--light h2, .dm-home-rebuild__section-head--light p) {
  color: var(--dmfg-ink) !important;
}

@media (max-width: 900px) {
  .dm-field-guide-system .dm-home-rebuild__hero::after {
    position: static;
    display: block;
    width: min(calc(100% - 2rem), 80rem);
    margin: 0 auto 1.2rem;
    text-align: center;
  }

  .dm-field-guide-system .dm-home-rebuild__hero-figure {
    box-shadow: 5px 6px 0 color-mix(in srgb, var(--dmfg-olive) 22%, transparent);
    transform: none;
  }
}

@media (max-width: 600px) {
  .dm-field-guide-system .dm-brand-name {
    letter-spacing: .02em !important;
  }

  .dm-field-guide-system .dm-home-rebuild__hero {
    padding-top: 2rem;
  }

  .dm-field-guide-system .dm-home-rebuild__hero-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4.1rem);
    line-height: .93;
  }

  .dm-field-guide-system .dm-home-rebuild__hero-figure {
    padding: .35rem;
  }

  .dmfg-visual-key {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: .6rem .15rem .15rem;
  }

  .dmfg-visual-key__note:nth-child(n) {
    position: static;
    max-width: none;
    transform: none;
  }

  .dmfg-cover-notes {
    position: static;
    padding: .55rem .1rem 0;
  }

  .dmfg-cover-notes::before,
  .dmfg-cover-notes span {
    flex: 1 1 auto;
    justify-content: center;
  }

  .dm-field-guide-system.single-post .dm-single .wp-block-post-title {
    font-size: clamp(2.35rem, 12vw, 3.8rem) !important;
    line-height: .95 !important;
  }

  .dm-field-guide-system.single-post .dm-article-content h2 {
    margin-top: 3.25rem;
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .dm-field-guide-system.single-post .dm-article-content :is(figure, .dm-image-study) {
    width: auto;
    margin-inline: -.15rem;
    padding: .35rem;
    box-shadow: 4px 5px 0 color-mix(in srgb, var(--dmfg-olive) 14%, transparent);
  }

  .dm-field-guide-system.single-post .dm-article-content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-field-guide-system *,
  .dm-field-guide-system *::before,
  .dm-field-guide-system *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
