/* Soft White + Signal Orange — clean shared editorial palette. */
:root {
  --ej-paper: #FAFAF7;
  --ej-paper-deep: #EEEFEA;
  --ej-ink: #20211F;
  --ej-muted: #62665F;
  --ej-rule: rgba(32, 33, 31, .18);
  --ej-accent: #FF6D00;
  --ej-photo-mat: #232522;
  --ej-marker-light: #FFC59A;
  --ej-marker-hover: #FF9950;
}
body { font-size: 19px; }
.site-masthead {
  min-height: 112px;
  font-size: 13px;
  letter-spacing: .075em;
}
.wordmark { font-size: 15px; }
.wordmark-tag,
.site-context { font-size: 11px; }
.site-masthead nav { gap: clamp(14px, 1.8vw, 26px); font-size: 13px; }
.library-card p { color: var(--ej-muted); font-size: 18px; }
.hero-aside p,
.method-details p,
.build-journal p:not(.eyebrow),
.about-copy p { color: var(--ej-muted); }
.about-copy .about-lead { color: var(--ej-ink); }
.template-resource__lead { font-size: clamp(21px, 1.7vw, 24px); }
.template-resource__browser { background: var(--ej-photo-mat); }
.template-resource__mockup,
.library-card__image-link .template-resource__browser:hover { border-color: var(--ej-rule); }

/* In-article links retain the soft orange half-height marker effect. */
body .desk-prose a,
.about-copy p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  background-image: linear-gradient(var(--ej-marker-light), var(--ej-marker-light));
  background-position: 0 88%;
  background-size: 100% 42%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-image .16s ease;
}
body .desk-prose a:hover,
body .desk-prose a:focus-visible,
.about-copy p a:hover,
.about-copy p a:focus-visible {
  color: inherit;
  background-image: linear-gradient(var(--ej-marker-hover), var(--ej-marker-hover));
}

/* Deep charcoal photo and preview surrounds contrast with the soft-white page. */
.library-card__image-link,
.template-resource__visual { background-color: transparent; }
.template-resource__browser { background: var(--ej-photo-mat); box-shadow: 18px 22px 0 var(--ej-photo-mat); }
.desk-prose figure:has(img),
.desk-prose > p:has(> img:only-child) {
  background: var(--ej-photo-mat);
  padding: clamp(10px, 1.35vw, 20px);
}
.desk-prose figure:has(img) figcaption { color: var(--ej-paper); }

/* From The Desk is long-form writing, not tiny product-card copy. */
body .desk-prose { font-size: clamp(21px, calc(1.1vw + 10px), 24px); line-height: 1.72; }
body .desk-card > p { font-size: 18px; color: var(--ej-muted); }
body .desk-hero > p,
body .desk-article-deck,
body .desk-related > p:not(.eyebrow) { color: var(--ej-muted); }

@media (max-width: 1050px) {
  .site-masthead { grid-template-columns: 1fr auto; }
  .site-context { display: none; }
}
@media (max-width: 760px) {
  .site-masthead {
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: center;
    gap: 11px;
    min-height: 0;
    padding-block: 18px;
  }
  .wordmark { font-size: 14px; }
  .wordmark-tag { display: inline; font-size: 10px; }
  .site-masthead nav {
    justify-self: start;
    flex-wrap: wrap;
    white-space: normal;
    gap: 2px 18px;
    font-size: 12px;
  }
  .site-masthead nav a:last-child { display: inline-block; }
  body .desk-prose { font-size: 21px; line-height: 1.68; }
  .template-resource__browser { box-shadow: 9px 12px 0 var(--ej-photo-mat); }
  .template-resource__lead { font-size: 21px; }
  .template-resource__eyebrow,
  .template-resource__back { font-size: 11px; }
}
@media (max-width: 420px) {
  .site-masthead nav { gap: 2px 14px; }
  .site-masthead nav a { font-size: 11px; }
}
