/* ==========================================================================
   DIGITALFLOW — WordPress additions
   --------------------------------------------------------------------------
   site.css is the original design stylesheet and is left untouched. This file
   adds only what WordPress itself needs: editor-content styling, accessibility
   helpers, pagination, form notices and block alignment. It uses the same
   custom properties defined in site.css.
   ========================================================================== */

/* ---------- Accessibility helpers ---------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 999;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 12px 18px;
  background: var(--ember);
  color: var(--carbon);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

/* ---------- Editor content ----------
   Body copy written in the block editor inherits the .lead treatment the
   static pages applied by hand. */

.entry-content > p {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.72;
  color: var(--bone-dim);
  margin-bottom: 24px;
}

.entry-content > p:last-child { margin-bottom: 0; }

.entry-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin: 40px 0 16px;
}

.entry-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--bone);
  margin: 32px 0 12px;
}

.entry-content > *:first-child { margin-top: 0; }

.entry-content a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--bone); }

.entry-content ul,
.entry-content ol {
  margin: 0 0 24px 22px;
  color: var(--bone-dim);
  font-size: 16px;
  line-height: 1.7;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }

.entry-content blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--ember);
  color: var(--bone);
  font-size: 18px;
  font-style: normal;
}

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

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.entry-content figure { margin: 32px 0; }

.entry-content figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--bone-faint);
}

.entry-content hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--bone-line);
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(243, 234, 216, 0.08);
}

.entry-content pre {
  margin: 0 0 24px;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--bone-line);
  border-radius: var(--radius);
  background: var(--carbon-3);
}

.entry-content pre code { background: none; padding: 0; }

.entry-content table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  font-size: 15px;
  color: var(--bone-dim);
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bone-line);
  text-align: left;
}

.entry-content th { color: var(--bone); font-weight: 600; }

/* Core block alignment */
.entry-content .alignleft  { float: left; margin: 6px 28px 20px 0; }
.entry-content .alignright { float: right; margin: 6px 0 20px 28px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.entry-content .alignwide,
.entry-content .alignfull { max-width: 100%; }
.entry-content::after { content: ""; display: table; clear: both; }

/* ---------- Post meta ---------- */

.post-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--bone-line);
}

/* ---------- Form notices ---------- */

.form-notice {
  margin-bottom: 28px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--bone-line);
  font-size: 15px;
  line-height: 1.6;
}

.form-notice.is-success {
  border-color: rgba(111, 207, 151, 0.4);
  background: rgba(111, 207, 151, 0.08);
  color: var(--bone);
}

.form-notice.is-error {
  border-color: rgba(229, 115, 115, 0.45);
  background: rgba(229, 115, 115, 0.08);
  color: var(--bone);
}

/* The honeypot must be reachable by bots but invisible to people. */
.df-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--bone-line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone-dim);
  transition: border-color 0.2s, color 0.2s;
}

.pagination .page-numbers:hover {
  border-color: rgba(243, 234, 216, 0.28);
  color: var(--bone);
}

.pagination .page-numbers.current {
  border-color: var(--ember);
  color: var(--ember);
}

.pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Search form ---------- */

.search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 560px;
}

.search-form label { flex: 1 1 240px; }

.search-form .search-field {
  width: 100%;
  padding: 13px 15px;
  background: var(--carbon-3);
  border: 1px solid var(--bone-line);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--ember);
}

/* ---------- Comments are not used on this site ---------- */

.comments-area { display: none; }
