/*
 * DOPE MUSE POSE | Editorial Atelier — Visual Refinements
 * Version 2.1.0
 *
 * Designed as a NON-DESTRUCTIVE layer after assets/css/editorial.css.
 * It preserves the approved demo's grid, section order, type hierarchy,
 * photography, cropping, and core colors.
 *
 * Standalone use: WordPress > Appearance > Customize > Additional CSS
 * (or Appearance > Editor > Styles > Additional CSS on supported setups).
 * Do not paste this if v2.1+ is installed; it is already loaded there.
 */

/* 01 — Small but deliberate finishing touches */
:root {
  --dmp-hairline: rgba(23, 24, 25, 0.16);
  --dmp-surface-lift: rgba(255, 255, 255, 0.55);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent, #cf6d57);
  color: #fff;
}

html { scroll-padding-top: 1.5rem; }
:where(#the-edit, #pose-lab, #muses, #magazine, #learn, #submit, #for-models, #for-photographers, #philosophy) {
  scroll-margin-top: 1.5rem;
}

/* 02 — Subtle interactions; nothing changes until hover or focus */
:where(.btn-dark, .btn-light, .under-link, .main-nav a, .footer-cols a, .path-grid a, .story-card a) {
  transition: color 180ms ease, background-color 180ms ease,
              box-shadow 180ms ease, border-color 180ms ease;
}

:where(.btn-dark, .btn-light, .wp-block-button__link):hover {
  box-shadow: 0 7px 22px rgba(23, 24, 25, 0.12);
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent, #cf6d57);
  outline-offset: 4px;
}

.story-card a { display: block; }
.story-card .story-media { isolation: isolate; }
.story-card a:hover .read-more,
.story-card a:focus-visible .read-more { text-decoration: underline; text-underline-offset: 4px; }

.path-grid a:hover,
.path-grid a:focus-visible { background-color: var(--dmp-surface-lift); }

.nav-list a:hover,
.nav-list a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }

/* 03 — More polished WordPress article and page interiors */
:where(.entry-content, .dmp-body-copy) {
  color: #292b2c;
  overflow-wrap: break-word;
}

:where(.entry-content, .dmp-body-copy) > :is(p, ul, ol, blockquote, figure, pre, table) {
  margin-block: 0 1.55em;
}

:where(.entry-content, .dmp-body-copy) :is(h2, h3, h4) {
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink, #171819);
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin-block: 1.7em 0.55em;
}

:where(.entry-content, .dmp-body-copy) h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
:where(.entry-content, .dmp-body-copy) h3 { font-size: clamp(1.45rem, 2.7vw, 2.2rem); }
:where(.entry-content, .dmp-body-copy) h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

:where(.entry-content, .dmp-body-copy) :is(ul, ol) { padding-left: 1.4em; }
:where(.entry-content, .dmp-body-copy) li { margin-bottom: 0.4em; }
:where(.entry-content, .dmp-body-copy) a:not(.wp-block-button__link) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent, #cf6d57);
  text-underline-offset: 4px;
}

:where(.entry-content, .dmp-body-copy) :is(blockquote, .wp-block-quote) {
  border-left: 3px solid var(--accent, #cf6d57);
  background: rgba(255,255,255,.55);
  padding: 1.2rem 1.5rem;
  margin-inline: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.45;
}

:where(.entry-content, .dmp-body-copy) :is(figcaption, .wp-element-caption) {
  color: #62666a;
  font-size: .78rem;
  letter-spacing: .02em;
  line-height: 1.6;
  margin-top: .6rem;
}

:where(.entry-content, .dmp-body-copy) :is(figure, img, video, iframe) { max-width: 100%; }
:where(.entry-content, .dmp-body-copy) :is(img, video) { height: auto; }
:where(.entry-content, .dmp-body-copy) .wp-block-image img { display: block; }
:where(.entry-content, .dmp-body-copy) .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--dmp-hairline);
  margin-block: 2rem;
}

/* 04 — Editorial treatment for Gutenberg buttons and forms */
:where(.entry-content, .dmp-body-copy) .wp-block-button__link,
:where(.entry-content, .dmp-body-copy) .wp-element-button {
  border-radius: 0;
  background: var(--ink, #171819);
  color: #fff;
  padding: .95rem 1.35rem;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

:where(.entry-content, .dmp-body-copy) .wp-block-button__link:hover {
  background: var(--accent, #cf6d57);
}

:where(.entry-content, .dmp-body-copy) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, select),
.wp-block-search__input {
  max-width: 100%;
  background: #fff;
  border: 1px solid #bfc1c3;
  border-radius: 0;
  padding: .85rem 1rem;
  color: var(--ink, #171819);
  font: inherit;
}

:where(.entry-content, .dmp-body-copy) :is(input[type="submit"], button[type="submit"]),
.wp-block-search__button {
  border: 0;
  border-radius: 0;
  padding: .95rem 1.35rem;
  background: var(--ink, #171819);
  color: #fff;
  font: 800 .7rem/1.4 'DM Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
}

:where(.entry-content, .dmp-body-copy) :is(input[type="submit"], button[type="submit"]):hover,
.wp-block-search__button:hover { background: var(--accent, #cf6d57); }

/* 05 — WordPress archives, captions, code blocks, pagination */
.dmp-body-copy pre,
.entry-content pre,
.wp-block-code {
  max-width: 100%;
  overflow-x: auto;
  background: #e8e5e1;
  border: 1px solid var(--dmp-hairline);
  border-radius: 0;
  padding: 1.25rem;
  font-size: .85rem;
  line-height: 1.6;
}

:where(.entry-content, .dmp-body-copy) table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .95rem;
}
:where(.entry-content, .dmp-body-copy) :is(td, th) {
  border-bottom: 1px solid var(--dmp-hairline);
  padding: .8rem 1rem;
  text-align: left;
}

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .5rem .7rem;
  border: 1px solid var(--dmp-hairline);
  font-size: .75rem;
  font-weight: 800;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--ink, #171819); color: #fff; }

/* 06 — Narrow viewport guardrails, without redesigning mobile */
@media (max-width: 680px) {
  .header-core { gap: 1rem; }
  .hero-kicker, .hero-bottom { flex-wrap: wrap; }
  .hero-actions { gap: 1.2rem; }
  .issue-detail { gap: .75rem; }
  .footer-cols { row-gap: 1.75rem; }
  .interior { padding-block: 3.75rem; }
}

@media (max-width: 420px) {
  /* Prevent overly long editorial titles from running outside the viewport. */
  .hero h1 { font-size: clamp(3.05rem, 13.9vw, 4.2rem); }
  .pose-band-art strong { font-size: clamp(4.6rem, 20vw, 6rem); }
  .section-heading h2, .editorial-head h2 { overflow-wrap: break-word; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}

/* 07 — Honor readers' motion and contrast preferences */
@media (prefers-reduced-motion: reduce) {
  :where(.btn-dark, .btn-light, .under-link, .main-nav a, .footer-cols a,
         .path-grid a, .story-card a) { transition: none !important; }
}
@media (forced-colors: active) {
  :where(a, button, input, textarea, select):focus-visible { outline: 2px solid Highlight; }
}
