/*
Theme Name: PictureEcho Blog
Theme URI: https://www.pictureecho.com/blog/
Author: Sorcim Technologies
Description: Light blog theme for the PictureEcho site. Shared product CTAs. SEO tags stay with All in One SEO.
Version: 1.0.20
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: pe-blog
*/

:root {
  --pe-bg: #f7f6f3;
  --pe-bg-elev: #ffffff;
  --pe-ink: #1c1c1c;
  --pe-muted: #5c5c5c;
  --pe-line: #e6e4de;
  --pe-blue: #1f6fb2;
  --pe-blue-dark: #165a92;
  --pe-navy: #14324f;
  --pe-radius: 8px;
  --pe-nav-h: 57px;
  --pe-measure: 680px;
  --pe-wide: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--pe-bg);
  color: var(--pe-ink);
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--pe-blue); }

.pe-skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--pe-navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 2000;
}
.pe-skip:focus { top: 8px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pe-wrap { width: min(var(--pe-wide), calc(100% - 40px)); margin: 0 auto; }
.pe-measure { width: min(var(--pe-measure), calc(100% - 48px)); margin: 0 auto; }

.pe-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pe-bg-elev);
  border-bottom: 1px solid var(--pe-line);
}
.pe-nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--pe-nav-h);
  min-height: var(--pe-nav-h);
}
.pe-logo { display: flex; align-items: center; min-width: 0; line-height: 0; }
.pe-logo img {
  height: 29px !important;
  max-height: 29px !important;
  width: auto !important;
  max-width: min(210px, calc(100vw - 5.5rem)) !important;
  display: block;
}
.pe-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.pe-nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.2rem 0.6rem;
  color: var(--pe-ink);
  white-space: nowrap;
}
.pe-nav-links a[aria-current="page"],
.pe-nav-links a:hover { color: var(--pe-blue); }
.pe-nav-register {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  background: var(--pe-navy);
  color: #fff !important;
  border: 1px solid var(--pe-navy);
  border-radius: var(--pe-radius);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.9rem !important;
  line-height: 1;
}
.pe-nav-register:hover { background: var(--pe-blue); color: #fff !important; }
.pe-store { height: 29px !important; width: auto !important; margin-left: 8px; display: block; }
.pe-nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--pe-line);
  background: #fff;
  border-radius: var(--pe-radius);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}
.pe-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--pe-ink);
  margin: 4px 0;
}

.pe-page-head {
  background: var(--pe-bg-elev);
  border-bottom: 1px solid var(--pe-line);
  padding: 1.15rem 0 1rem;
}
.entry-content a { color: var(--pe-blue); text-underline-offset: 2px; }
.entry-content a:hover { color: var(--pe-blue-dark); }
.pe-page-head h1 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  color: var(--pe-ink);
}
.single .pe-page-head h1 { font-size: clamp(1.7rem, 2.8vw, 2.15rem); max-width: 40rem; }
.pe-page-head .pe-measure h1 { max-width: none; text-align: left; }
.pe-title {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}
.pe-title--article,
.pe-sheet--body { position: relative; left: 64px; }
.pe-title--article { width: min(700px, calc(100% - 40px)); }
.pe-title h1 { max-width: 18em; margin-left: auto; margin-right: auto; }
.pe-page-head p { margin: 0.4rem 0 0; max-width: 38rem; color: var(--pe-muted); font-size: 1rem; line-height: 1.5; }

.pe-list { padding: 4px 0 64px; }
.pe-post {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--pe-line);
  text-decoration: none;
  color: inherit;
}
.pe-post:hover h2 { color: var(--pe-blue); }
.pe-post time { color: var(--pe-muted); font-size: 0.82rem; padding-top: 4px; }
.pe-post h2 {
  margin: 0 0 6px;
  font-size: 1.22rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pe-ink);
}
.pe-post p {
  margin: 0;
  color: var(--pe-muted);
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.pe-product {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pe-blue);
}

.pe-sheet--body {
  width: min(700px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  padding: 36px 0 8px;
}
.pe-toc {
  position: absolute;
  top: 36px;
  bottom: 0;
  right: calc(100% + 140px);
  width: 200px;
  padding: 0;
  border: 0;
}
.pe-toc__sticky {
  position: sticky;
  top: calc(var(--pe-nav-h) + 24px);
  max-height: calc(100vh - var(--pe-nav-h) - 48px);
  overflow: auto;
  padding: 0 0 0 16px;
  border-left: 2px solid #fed52f;
}
.pe-toc__check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.pe-toc__label {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pe-muted);
}
.pe-toc__list { list-style: none; margin: 0; padding: 4px 0 0; }
.pe-toc__list li { margin: 0; }
.pe-toc__list a {
  display: block;
  color: #4e4e4e;
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.45;
  padding: 8px 10px 8px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
}
.pe-toc__list a:hover { color: var(--pe-navy); }
.pe-toc__list a.is-current {
  color: var(--pe-navy);
  font-weight: 700;
  background: #e7eef5;
  border-left-color: var(--pe-navy);
}
.pe-sheet .pe-article { padding-top: 0; }
.pe-sheet .entry-content > h2:first-child { margin-top: 0; }
.pe-article { padding: 28px 0 32px; }
.entry-content p { margin: 0 0 1.05rem; font-size: 1.05rem; line-height: 1.75; color: #2a2a2a; }
.entry-content > p:first-of-type { font-size: 1.12rem; line-height: 1.65; }
.entry-content h2 {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  margin: 1.7rem 0 0.55rem;
  line-height: 1.3;
  font-weight: 800;
  scroll-margin-top: calc(var(--pe-nav-h) + 16px);
}
.entry-content img { border-radius: var(--pe-radius); }
.entry-content h3 { font-size: 1.1rem; margin: 1.4rem 0 0.5rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.15rem; padding-left: 1.2rem; }
.entry-content li { margin: 0 0 0.35rem; }
.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption {
  color: var(--pe-muted);
  font-size: 0.86rem;
  margin-top: 0.35rem;
}
.entry-content .wp-block-image,
.entry-content figure {
  width: min(920px, calc(100vw - 48px));
  max-width: none;
  margin: 1.6rem 0 1.6rem 50%;
  transform: translateX(-50%);
}
.pe-sheet .entry-content .wp-block-image,
.pe-sheet .entry-content figure {
  width: auto;
  max-width: 100%;
  margin: 1.6rem 0;
  transform: none;
}
.pe-related {
  width: min(var(--pe-wide), calc(100% - 48px));
  padding: 8px 0 72px;
}
.pe-related h2 {
  margin: 0 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--pe-line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pe-muted);
}
.pe-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.pe-related a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius);
  padding: 18px 18px 20px;
  text-decoration: none;
  color: inherit;
}
.pe-related a:hover { border-color: #cfcabd; }
.pe-related time {
  display: block;
  color: var(--pe-muted);
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.pe-related h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.pe-related a:hover h3 { color: var(--pe-blue); }
.entry-content iframe,
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper { max-width: 100%; }
.entry-content .wp-block-embed { margin: 1.6rem 0; }

.pe-cta,
.entry-content .pe-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 1.75rem 0;
  padding: 16px 18px 16px 20px;
  background: #fff;
  border: 1px solid var(--pe-line);
  border-left: 3px solid var(--pe-navy);
  border-radius: var(--pe-radius);
}
.entry-content .pe-cta p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--pe-muted);
}
.pe-cta__body { min-width: 0; }
.pe-cta__name,
.entry-content .pe-cta p.pe-cta__name {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--pe-blue);
}
.pe-cta__text,
.entry-content .pe-cta p.pe-cta__text {
  margin: 0;
  color: var(--pe-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}
.pe-cta__logo { height: 28px; width: auto; display: block; margin-bottom: 8px; }
.pe-cta__btn,
.entry-content .pe-cta a.pe-cta__btn {
  flex: 0 0 auto;
  align-self: center;
  background: var(--pe-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.72rem 1.05rem;
  border-radius: var(--pe-radius);
  white-space: nowrap;
}
.pe-cta__btn:hover,
.entry-content .pe-cta a.pe-cta__btn:hover {
  background: var(--pe-blue);
  color: #fff;
}

.navigation.pagination { padding: 28px 0 64px; }
.navigation.pagination .nav-links { display: flex; gap: 14px; flex-wrap: wrap; }
.navigation.pagination a,
.navigation.pagination span { text-decoration: none; font-weight: 700; color: var(--pe-ink); }

.pe-footer { background: var(--pe-bg-elev); border-top: 1px solid var(--pe-line); }
.pe-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0 32px;
}
.pe-footer h2 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pe-muted);
  font-weight: 700;
}
.pe-footer ul { list-style: none; margin: 0; padding: 0; }
.pe-footer li { margin: 0 0 8px; }
.pe-footer a { color: var(--pe-ink); text-decoration: none; font-size: 0.92rem; }
.pe-footer a:hover { color: var(--pe-blue); }
.pe-footer .pe-blurb { max-width: 260px; color: #8b95a3; font-size: 0.92rem; line-height: 1.6; }
.pe-footer-bottom { border-top: 1px solid var(--pe-line); padding: 16px 0; text-align: center; font-size: 0.92rem; }
.pe-footer-bottom a { color: #b86e00; font-weight: 700; text-decoration: none; }

.pe-empty { padding: 48px 0 72px; color: var(--pe-muted); }

@media (max-width: 1320px) {
  .pe-page-head .pe-title--article,
  .pe-sheet--body {
    width: min(var(--pe-measure), calc(100% - 48px));
    left: 0;
  }
  .pe-sheet--body { padding-top: 20px; }
  .pe-toc {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .pe-toc__sticky { position: static; max-height: none; overflow: visible; padding: 0; border: 0; }
  .pe-toc__label {
    cursor: pointer;
    border: 1px solid var(--pe-line);
    background: #fff;
    border-radius: var(--pe-radius);
    padding: 0.7rem 0.9rem;
    margin: 0;
  }
  .pe-toc__label::after {
    content: "";
    float: right;
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-right: 2px solid var(--pe-muted);
    border-bottom: 2px solid var(--pe-muted);
    transform: rotate(45deg);
  }
  .pe-toc__list { display: none; padding: 12px 4px 0; }
  .pe-toc__check:checked + .pe-toc__label::after { transform: rotate(225deg); margin-top: 8px; }
  .pe-toc__check:checked ~ .pe-toc__list { display: block; }
  .pe-toc__check:focus-visible + .pe-toc__label { outline: 2px solid var(--pe-blue); outline-offset: 2px; }
}
@media (max-width: 860px) {
  .pe-nav { position: sticky; }
  .pe-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .pe-nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: var(--pe-nav-h);
    background: #fff;
    border: 1px solid var(--pe-line);
    border-radius: var(--pe-radius);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .pe-nav-links.is-open { display: flex; }
  .pe-store { display: none; }
  .pe-nav-register { margin: 6px 0 0; justify-content: center; }
  .pe-post, .pe-footer-grid, .pe-related-grid { display: block; }
  .pe-related a { margin-bottom: 12px; }
  .pe-related a:last-child { margin-bottom: 0; }
  .pe-post time { display: block; margin-bottom: 6px; }
  .pe-cta, .entry-content .pe-cta { display: block; }
  .entry-content .pe-cta a.pe-cta__btn { display: inline-flex; margin-top: 14px; }
  .pe-cta__btn { display: inline-flex; margin-top: 12px; }
}
