/* Photosparks theme — blog styles. Mirrors the static marketing site. */

:root {
  --bg: #232323;
  --bg-deep: #1d1d1d;
  --panel: #fafaf5;
  --ink: #ffffff;
  --dim: #b1b1b1;
  --faint: #808080;
  --accent: #9a87a3;
  --line: rgba(255, 255, 255, 0.08);
  --panel-ink: #55534e;
  --panel-dim: #8f8d86;
  --font: "Open Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  --side-w: 270px;
  --top-h: 96px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--dim);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; }

ul { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #1d1d1d; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #1d1d1d;
  padding: 10px 18px;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* ---------- sidebar (desktop) ---------- */

.side {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-w);
  background: var(--panel);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 30px;
  text-align: center;
  z-index: 40;
  overflow-y: auto;
}

.side-logo img {
  width: 188px;
  height: auto;
  margin: 0 auto;
}

.side-nav { margin-top: 52px; width: 100%; }

.side-nav a {
  display: block;
  position: relative;
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--panel-ink);
  transition: color 0.25s ease;
}

.side-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.side-nav a:hover,
.side-nav a.active { color: #26241f; }

.side-nav a:hover::after,
.side-nav a.active::after { width: 22px; }

.side-foot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.socials { display: flex; gap: 20px; }

.socials a {
  color: #a09e97;
  transition: color 0.25s ease, transform 0.25s ease;
}

.socials a:hover { color: var(--accent); transform: translateY(-2px); }

.socials svg { width: 16px; height: 16px; fill: currentColor; }

.copy {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--panel-dim);
}

/* ---------- top bar (mobile) ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(29, 29, 29, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.topbar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.topbar-logo img { height: 24px; width: auto; }

.topbar-nav {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 6px;
}

.topbar-nav::-webkit-scrollbar { display: none; }

.topbar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.topbar-nav a:hover,
.topbar-nav a.active { color: var(--ink); }

.topbar-nav a.active::after { transform: scaleX(1); }

/* ---------- layout ---------- */

.site { min-height: 100vh; }

.main { margin-left: 0; }

/* ---------- shared bits ---------- */

.title {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-left: 0.1em;
}

.title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--accent);
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: #1d1d1d;
}

/* ---------- page hero (blog / archive headers) ---------- */

.page-hero {
  position: relative;
  padding: 84px clamp(22px, 6vw, 72px) 44px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 120% at 50% -20%, rgba(154, 135, 163, 0.14), transparent 60%),
    var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.page-hero .title { display: inline-block; }

.page-hero-lede {
  max-width: 56ch;
  margin: 26px auto 0;
  font-size: 1.05rem;
  color: var(--faint);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px clamp(22px, 6vw, 72px) 24px;
}

/* ---------- post list ---------- */

.post-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.post-row:last-child { border-bottom: none; }

.post-row-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.92);
  transition: filter 0.35s ease;
}

.post-row:hover .post-row-img img { filter: saturate(1); }

.post-row-meta {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.post-row-meta .sep { margin: 0 10px; color: #5a5a5a; }

.post-row-meta .cats a { color: var(--accent); transition: color 0.25s ease; }

.post-row-meta .cats a:hover { color: var(--ink); }

.post-row-title {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
}

.post-row-title a { color: var(--ink); transition: color 0.25s ease; }

.post-row-title a:hover { color: var(--accent); }

.post-row-excerpt {
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 62ch;
}

.post-row-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.25s ease;
}

.post-row-more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

.post-row-more:hover { color: var(--ink); }

/* ---------- pagination ---------- */

.ps-pag .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 40px 0 16px;
}

.ps-pag .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--dim);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.ps-pag .page-numbers:hover { border-color: var(--accent); color: var(--ink); }

.ps-pag .page-numbers.current { border-color: var(--accent); color: var(--accent); }

.ps-pag .dots {
  display: inline-flex;
  align-items: center;
  color: var(--faint);
}

/* ---------- single post ---------- */

.post-single { padding-top: 40px; }

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s ease;
}

.page-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.page-back:hover { color: var(--accent); }

.post-head { margin: 34px auto 30px; max-width: 760px; }

.post-title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  max-width: 24ch;
}

.post-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--accent);
  margin-top: 18px;
}

.post-feature { margin: 0 auto 40px; max-width: 980px; }

.post-feature img { width: 100%; height: auto; }

.post-content {
  font-size: 1.06rem;
  line-height: 1.75;
  color: #d9d9d9;
  max-width: 70ch;
  margin: 0 auto;
}

.post-content p { margin: 0 0 1.25em; }

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.post-content a:hover { color: var(--ink); }

.post-content h2,
.post-content h3,
.post-content h4 { margin: 1.8em 0 0.6em; }

.post-content h2 { font-size: 1.5rem; letter-spacing: 0.04em; }

.post-content h3 { font-size: 1.25rem; }

.post-content h4 { font-size: 1.1rem; }

.post-content ul,
.post-content ol { margin: 0 0 1.25em; padding-left: 1.4em; }

.post-content ul { list-style: disc; }

.post-content ol { list-style: decimal; }

.post-content li { margin-bottom: 0.4em; }

.post-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-size: 1.15rem;
  font-style: italic;
  color: #d9d9d9;
}

.post-content img { width: 100%; height: auto; }

.post-content figure { margin: 0 0 1.5em; }

.post-content figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--faint);
  text-align: center;
}

.post-content pre {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.post-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 0.95rem; }

.post-content th,
.post-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

.post-content th { color: var(--ink); }

.post-content hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

.page-links { margin-top: 1.5em; }

/* ---------- post navigation ---------- */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px auto 8px;
  max-width: 70ch;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.post-nav-link { display: block; min-width: 0; }

.post-nav-dir {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.post-nav-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dim);
  transition: color 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-link:hover .post-nav-title { color: var(--accent); }

.post-nav-older { grid-column: 1; text-align: left; }

.post-nav-newer { grid-column: 2; text-align: right; }

/* ---------- author box ---------- */

.post-author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 40px auto 8px;
  max-width: 70ch;
  padding: 24px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}

.post-author img { border-radius: 50%; width: 64px; height: 64px; flex: none; }

.post-author-name { font-weight: 700; color: var(--ink); margin: 0 0 4px; }

.post-author-bio { font-size: 0.95rem; color: var(--dim); margin: 0; max-width: 60ch; }

/* ---------- comments ---------- */

.comments { margin: 56px auto 8px; max-width: 70ch; padding-top: 32px; border-top: 1px solid var(--line); }

.comments-title {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.comment-list { list-style: none; }

.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--line); }

.comment-list .children { list-style: none; margin-left: 32px; }

.comment-author { font-weight: 700; color: var(--ink); }

.comment-metadata {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 8px;
}

.comment-metadata a { color: var(--faint); transition: color 0.25s ease; }

.comment-metadata a:hover { color: var(--accent); }

.comment-content { font-size: 0.98rem; color: var(--dim); max-width: 68ch; }

.comment-reply-link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.comment-reply-link:hover { color: var(--ink); }

.comment-form { margin-top: 32px; }

.comment-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); outline: none; }

.comment-notes,
.comment-form-cookies-consent { font-size: 0.9rem; color: var(--faint); margin-bottom: 14px; }

.comment-form-cookies-consent input { margin-right: 8px; }

.comment-form .form-submit { margin: 0; }

.comment-form .form-submit input {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.comment-form .form-submit input:hover { background: var(--accent); color: #1d1d1d; }

.no-comments { color: var(--faint); }

/* ---------- misc ---------- */

.page-404 { text-align: center; padding-top: 80px; }

.page-404 .title::after { margin-left: auto; margin-right: auto; }

.page-404-copy { max-width: 46ch; margin: 24px auto 0; color: var(--dim); }

.no-results { padding: 40px 0; color: var(--faint); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 30px clamp(22px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #9a9a9a;
}

.footer .socials { gap: 16px; }

.footer .socials a { color: var(--faint); }

/* ---------- responsive ---------- */

@media (min-width: 960px) {
  html { scroll-padding-top: 40px; }

  .side { display: flex; }

  .topbar { display: none; }

  .main { margin-left: var(--side-w); }
}

@media (max-width: 959px) {
  html { scroll-padding-top: calc(var(--top-h) + 16px); }

  .page-hero { padding-top: calc(var(--top-h) + 40px); }

  .post-single { padding-top: calc(var(--top-h) + 24px); }

  .page-404 { padding-top: calc(var(--top-h) + 40px); }

  .post-row { grid-template-columns: 1fr; gap: 18px; }

  .post-row-img img { height: 240px; }

  .post-nav { grid-template-columns: 1fr; gap: 20px; }

  .post-nav-older,
  .post-nav-newer { grid-column: auto; text-align: left; }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

/* ---------- contact form (Contact Form 7) ----------
   CF7 renders its own <form> inside #contact-form (a div); map its
   structure onto the static site's .cform / .field design. */

.cform .wpcf7-form { display: grid; gap: 26px; }

.cform .wpcf7-form-control-wrap { display: grid; gap: 8px; margin: 0; }

.cform .wpcf7-form-control-wrap::before {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.cform .wpcf7-form-control-wrap.your-name::before { content: "Name"; }
.cform .wpcf7-form-control-wrap.your-email::before { content: "Email"; }
.cform .wpcf7-form-control-wrap.your-phone::before { content: "Cell phone"; }
.cform .wpcf7-form-control-wrap.your-subject::before { content: "What type of photos do you need?"; }
.cform .wpcf7-form-control-wrap.your-message::before { content: "Tell me more!"; }
.cform .wpcf7-form-control-wrap.submit::before,
.cform .wpcf7-form-control-wrap.cf7-simple-turnstile::before { content: none; }

.cform input.wpcf7-form-control,
.cform textarea.wpcf7-form-control {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 2px;
  transition: border-color 0.3s ease;
}

.cform input.wpcf7-form-control::placeholder,
.cform textarea.wpcf7-form-control::placeholder { color: #6d6d6d; opacity: 1; }

.cform input.wpcf7-form-control:focus,
.cform textarea.wpcf7-form-control:focus { outline: none; border-color: var(--accent); }

.cform textarea.wpcf7-form-control { resize: vertical; min-height: 110px; }

.cform .wpcf7-submit {
  display: inline-flex;
  margin-top: 8px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.cform .wpcf7-submit:hover,
.cform .wpcf7-submit:focus-visible { background: var(--accent); color: #1d1d1d; }

.cform .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #d08770;
}

.cform .wpcf7-response-output {
  min-height: 1.4em;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  color: var(--accent);
}

.cform .wpcf7-response-output.wpcf7-display-none { display: none; }

/* ---------- front page: latest from the blog ---------- */

.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  position: relative;
  display: block;
}

/* Stretched link: the title anchor covers the whole card (no nested <a>). */
.blog-card-title a::after { content: ""; position: absolute; inset: 0; }

.blog-card-img {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  margin: 0 0 16px;
}

.blog-card-img img {
  width: 100%;
  aspect-ratio: 640 / 427;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.04); filter: saturate(1); }

.blog-card-meta {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.blog-card-meta .cats { color: var(--accent); }

.blog-card-meta .sep { margin: 0 10px; color: #5a5a5a; }

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
  transition: color 0.25s ease;
}

.blog-card-title a { color: inherit; text-decoration: none; }

.blog-card:hover .blog-card-title { color: var(--accent); }

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-teaser-more { margin-top: 44px; text-align: center; }

@media (max-width: 900px) {
  .blog-teaser-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  * { transition: none !important; }
}
