/* polish.css — lizpeek.com editorial refinement layer
   Namespaced under body/page classes; no leakage to other sites.
   Mobile-first. All motion 150-250ms ease-out with reduced-motion guard. */

/* ============================================================
   0. GLOBAL — selection, focus, motion guard
   ============================================================ */

::selection {
  background: #e82c2c;
  color: #fff;
}

:focus-visible {
  outline: 2px solid #14525b;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   1. NAV — letter-spacing, hover underline reveal
   ============================================================ */

nav#dp-scrollnav .dp-menu li a {
  letter-spacing: 0.04em;
  position: relative;
}

nav#dp-scrollnav .dp-menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e82c2c;
  transition: width 200ms ease-out;
}

nav#dp-scrollnav .dp-menu li a:hover::after,
nav#dp-scrollnav .dp-menu li a:focus-visible::after {
  width: 100%;
}

nav#dp-scrollnav .dp-menu li.active a::after {
  width: 100%;
  background: #e82c2c;
}

nav#dp-scrollnav .logo img {
  transition: opacity 200ms ease-out;
}

nav#dp-scrollnav .logo a:hover img {
  opacity: 0.85;
}

/* ============================================================
   2. SECTION TITLES — small-caps + brand-red short rule
   ============================================================ */

.sec-title {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding-bottom: 10px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.sec-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: #e82c2c;
  border-radius: 1px;
}

/* ============================================================
   3. HOMEPAGE — lead story lockup
   ============================================================ */

.home .feat-mantle .masthead {
  margin-bottom: 10px;
}

.home .spotlight .post-meta-top {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: #14525b;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.home .spotlight .feat-descr .dp-txt\:h2 {
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.home .spotlight .feat-descr .dp-fnt\:2.dp-fnt\:400 {
  line-height: 1.55;
  color: #333;
}

.home .spotlight .image-thumb {
  overflow: hidden;
  border-radius: 3px;
}

.home .spotlight .image-thumb img {
  transition: transform 250ms ease-out;
  display: block;
  width: 100%;
  height: auto;
}

.home .spotlight .feat-descr:hover .image-thumb img {
  transform: scale(1.03);
}

.home .spotlight .button {
  letter-spacing: 0.04em;
}

/* Kicker / eyebrow above date */
.home .spotlight .polish-kicker {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #e82c2c;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ============================================================
   4. HOMEPAGE — article cards (article-block)
   ============================================================ */

.article-link {
  transition: background-color 200ms ease-out;
}

.article-link .image-thumb {
  overflow: hidden;
  border-radius: 3px;
}

.article-link .image-thumb img {
  transition: transform 250ms ease-out;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-link:hover .image-thumb img {
  transform: scale(1.04);
}

.article-link .details h3 {
  transition: color 200ms ease-out;
}

.article-link:hover .details h3 {
  color: #e82c2c;
}

.article-link .details .props .cat {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.article-link .details .excerpt {
  line-height: 1.55;
}

.article-link .post-meta,
.article-link .post-meta-top {
  font-size: 0.78rem;
  color: #656464;
}

/* ============================================================
   5. HOMEPAGE — popular block
   ============================================================ */

.popular ul {
  counter-reset: popular-rank;
  list-style: none;
  padding: 0;
}

.popular ul li {
  counter-increment: popular-rank;
  position: relative;
  padding-left: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.popular ul li:last-child {
  border-bottom: none;
}

.popular ul li::before {
  content: counter(popular-rank);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(232, 44, 44, 0.25);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.popular ul li a {
  transition: background-color 200ms ease-out;
  border-radius: 3px;
}

.popular ul li a:hover {
  background-color: rgba(0,0,0,0.02);
}

.popular ul li a h3 {
  transition: color 200ms ease-out;
}

.popular ul li a:hover h3 {
  color: #e82c2c;
}

.popular ul li .image {
  border-radius: 3px;
  min-width: 60px;
  min-height: 44px;
}

/* ============================================================
   6. HOMEPAGE — latest news masonry grid
   ============================================================ */

.home .masonry-layout .article-link {
  margin-bottom: 10px;
}

.home .masonry-grid-header {
  margin-bottom: 5px;
}

/* ============================================================
   7. ARTICLE PAGE — editorial header
   ============================================================ */

.single .article-detail {
  text-align: left;
}

.single .article-detail .posted .cat {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  font-weight: 600;
  color: #e82c2c;
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: none;
}

.single .article-detail h1.dp-txt\:headline {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 8px;
}

.single .article-detail .subheader {
  color: #656464;
  line-height: 1.4;
  margin-top: 6px;
}

.single .article-detail .meta {
  font-size: 0.82rem;
  color: #656464;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-top: 12px;
  padding-bottom: 12px;
  margin-top: 15px;
}

.single .article-detail .meta .author {
  letter-spacing: 0.02em;
}

/* ============================================================
   8. ARTICLE PAGE — body copy
   ============================================================ */

.single .article-content {
  max-width: 72ch;
}

.single .article-content p {
  line-height: 1.7;
  margin-bottom: 1.4em;
  color: #1D343C;
}

.single .article-content a {
  color: #14525b;
  text-decoration: underline;
  text-decoration-color: rgba(20, 82, 91, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 200ms ease-out;
}

.single .article-content a:hover {
  text-decoration-color: #14525b;
}

/* Blockquotes / pull-quotes */
.single .article-content blockquote {
  border-left: 3px solid #e82c2c;
  margin: 1.8em 0;
  padding: 0.6em 0 0.6em 1.2em;
  font-style: italic;
  color: #333;
}

.single .article-content blockquote p {
  margin-bottom: 0.5em;
}

.single .article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Figcaptions */
.single .article-content .wp-caption-text,
.single .caption .wp-caption-text {
  font-size: 0.78rem;
  color: #656464;
  line-height: 1.4;
  margin-top: 6px;
  font-style: italic;
}

/* Images in article body */
.single .article-content img {
  border-radius: 3px;
}

/* ============================================================
   9. ARTICLE PAGE — mantle image
   ============================================================ */

.single .article-img.treatedimg {
  border-radius: 3px;
  overflow: hidden;
}

.single .article-img.treatedimg img {
  display: block;
  width: 100%;
  height: auto;
}

.single .caption .wp-caption-text {
  padding-right: 4px;
}

/* ============================================================
   10. ARTICLE PAGE — share row
   ============================================================ */

.single .sharelink-holder {
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.single .sharelink-holder h3 {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.single .sharelink-holder .sharelink {
  transition: opacity 200ms ease-out;
}

.single .sharelink-holder .sharelink:hover {
  opacity: 0.7;
}

/* ============================================================
   11. ARTICLE PAGE — next article card
   ============================================================ */

.single .next-article {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ============================================================
   12. FOOTER — hierarchy and polish
   ============================================================ */

footer.scrolltoggle {
  position: relative;
}

footer .footer-newsletter h3 {
  line-height: 1.3;
  letter-spacing: -0.01em;
}

footer .footer-newsletter .sendy-footer-form input[type="email"] {
  font-size: 0.9rem;
  transition: box-shadow 200ms ease-out;
}

footer .footer-newsletter .sendy-footer-form input[type="email"]:focus {
  box-shadow: 0 0 0 2px rgba(232, 44, 44, 0.4);
  outline: none;
}

footer .footer-bottom .footer-links li a {
  transition: color 200ms ease-out;
  letter-spacing: 0.03em;
}

footer .footer-bottom .footer-links li a:hover {
  color: #e82c2c;
}

footer .social-links ul li a {
  transition: opacity 200ms ease-out;
}

footer .social-links ul li a:hover {
  opacity: 0.75;
}

footer .copyright {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

footer .peek-footer {
  border-radius: 4px 4px 0 0;
}

/* ============================================================
   13. FEATURED BLOCK — homepage featured appearance
   ============================================================ */

.feat-block .featured-block .article-link .image-thumb {
  border-radius: 3px;
  overflow: hidden;
}

/* ============================================================
   14. RESPONSIVE REFINEMENTS
   ============================================================ */

@media (max-width: 767px) {
  .home .spotlight .feat-descr .dp-txt\:h2 {
    font-size: 1.5rem;
  }

  .single .article-detail h1.dp-txt\:headline {
    font-size: 1.6rem;
  }

  .single .article-content {
    max-width: 100%;
  }

  .popular ul li {
    padding-left: 28px;
  }

  .popular ul li::before {
    font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .single .article-content {
    max-width: 68ch;
  }
}

@media (min-width: 1024px) {
  .home .spotlight .feat-descr .dp-txt\:h2 {
    font-size: 2rem;
  }

  .single .article-detail h1.dp-txt\:headline {
    font-size: 2.2rem;
  }
}

/* Overflow clip: pre-existing negative-margin grid bleed (18px at 390px viewport).
   clip() avoids creating a scroll container and preserves position:sticky. */
html.home main {
  overflow-x: clip;
}
