/* wp.css
   WordPress-side additions that the static prototype had no need for: the form honeypot,
   the inner-page layout used by single-case_study.php and index.php, editor output
   classes, and the admin-bar offset for the fixed header. Loaded after site.css so it can
   lean on the same tokens. Nothing here overrides a prototype rule. */

/* ---- contact form honeypot: off-screen, never focusable, never announced ---- */
.fform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- inner pages (case study detail, blog fallback, search) ---- */
.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.25rem, 4vw, 3rem) clamp(4.5rem, 9vw, 8rem);
}
.inner__back {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.inner__back:hover { color: var(--maroon); }
.inner__kicker {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--maroon);
}
.inner__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-top: .6rem;
  max-width: 20ch;
}
.inner__lede {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 1.2rem;
  max-width: 62ch;
}
.inner__media {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper, #F3F0E8);
}
.inner__media img,
.inner__media video { display: block; width: 100%; height: auto; }

.inner__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.inner__metric b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--maroon);
}
.inner__metric span {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.inner__block { margin-top: clamp(2.5rem, 5vw, 4rem); }
.inner__h {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: .9rem;
}

/* long-form body copy from the editor */
.rte { max-width: 68ch; color: var(--ink-soft); line-height: 1.75; }
.rte > * + * { margin-top: 1.1em; }
.rte h2,
.rte h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.2;
}
.rte h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 2em; }
.rte h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); margin-top: 1.6em; }
.rte a { color: var(--maroon); text-underline-offset: .18em; }
.rte a:hover { color: var(--maroon-soft); }
.rte ul,
.rte ol { padding-left: 1.3em; }
.rte li + li { margin-top: .4em; }
.rte blockquote {
  border-left: 2px solid var(--maroon);
  padding-left: 1.1em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15em;
  color: var(--ink);
}
.rte code,
.rte pre { font-family: var(--font-mono); font-size: .92em; }
.rte pre {
  background: var(--surface, #FBFAF6);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
}
.rte img { max-width: 100%; height: auto; border-radius: 8px; }

.inner__list { list-style: none; }
.inner__list li {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}

.inner__posts { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.inner__post { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.inner__post h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  letter-spacing: -.015em;
  line-height: 1.2;
}
.inner__post h2 a { color: var(--ink); text-decoration: none; }
.inner__post h2 a:hover { color: var(--maroon); }

.inner__cta {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.inner__cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

/* pagination */
.inner .nav-links {
  display: flex;
  gap: .75rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
}
.inner .nav-links a,
.inner .nav-links span {
  padding: .4em .8em;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  text-decoration: none;
}
.inner .nav-links .current { border-color: var(--maroon); color: var(--maroon); }

/* ---- editor + core output ---- */
.alignwide { max-width: min(1100px, 100%); }
.alignfull { max-width: none; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.wp-caption-text,
.wp-element-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-top: .6rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  padding: .7em 1.1em;
  background: var(--maroon);
  color: var(--cream);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 14px;
}

/* ---- admin bar: push the fixed header clear of it ---- */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
