/*
Theme Name: Metistic
Theme URI: https://metistic.com
Author: Metistic
Description: The Metistic blog. Same ground, type and chrome as the public site (frontend.adlens), hand-written rather than compiled from Tailwind so the theme has no build step.
Version: 1.0.12
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: metistic
Tags: blog, dark, editorial
*/

/* ============================================================ the palette
   Copied verbatim from frontend.adlens/src/styles.css. This blog is a
   separate application on a separate origin, so the tokens cannot be shared
   at build time — they are duplicated on purpose and must be changed in both
   places. Black instrument, one red reading: --signal is for observations
   and alerts, never for buttons or links.
   ==================================================================== */

:root {
  --black: #0a0a0b;
  --carbon: #151517;
  --graphite: #232326;
  --steel: #8a8a93;
  --silver: #c9c9ce;
  --white: #f4f4f2;
  --signal: #e0342b;

  --background: var(--black);
  --surface: var(--carbon);
  --surface-2: var(--graphite);
  --foreground: var(--white);
  --muted-foreground: var(--steel);
  --border: var(--graphite);
  --border-strong: #333338;

  --f-sans: "Inter", system-ui, -apple-system, sans-serif;
  --f-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 9px;
  --r-lg: 14px;

  --shell: 1152px;          /* max-w-6xl */
  --gutter: 20px;           /* px-5 */
  --display-tracking: -0.025em;

  color-scheme: dark;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }  /* sm:px-8 */
}

/* --------------------------------------------------------------- reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--background);
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: var(--display-tracking);
  color: var(--foreground);
  margin: 0;
}

h4, h5, h6 {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

/* The public site resets italics to a weight change; the blog does not.
   Editors write prose here, and an italic that renders bold is a trap. */

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

code, kbd, pre, .mono {
  font-family: var(--f-mono);
  font-feature-settings: "ss02", "zero";
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  border-radius: 4px;
}

* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-track { background: transparent; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site { min-height: 100vh; display: flex; flex-direction: column; }

/* Main column matches the header bar: 1152px shell, same gutters. Nested
   .shell wrappers keep their markup for templates that already use them,
   but drop a second set of side padding so content does not indent twice. */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.site-main .shell {
  max-width: none;
  padding-inline: 0;
}

.eyebrow,
.mono-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

/* The section spine from the public site: index, rule, label. */
.section-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-width: 0; }
.section-mark__num {
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1;
  color: var(--signal);
}
.section-mark__rule { height: 1px; width: 32px; flex-shrink: 0; background: rgb(224 52 43 / 0.7); }
.section-mark__label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.3;
  min-width: 0;
  color: var(--steel);
}
@media (min-width: 640px) {
  .section-mark__label { letter-spacing: 0.22em; line-height: 1; }
}

.press { transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1); }
.press:active { transform: scale(0.97); }

/* ------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
  border-bottom: 1px solid transparent;
  transition: background 300ms, border-color 300ms, backdrop-filter 300ms;
}
.site-header.is-scrolled {
  background: rgb(10 10 11 / 0.85);
  border-bottom-color: rgb(35 35 38 / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter) 14px;
}
@media (min-width: 640px) {
  .site-header__bar { gap: 32px; padding-block: 24px 16px; }
}

.brand { display: flex; align-items: center; flex-shrink: 0; height: 44px; }
.brand img { display: block; width: 108px; height: auto; transform: translateY(-8px); transition: transform 300ms; }
@media (min-width: 640px) { .brand img { width: 132px; } }
.brand:hover img { transform: translateY(-8px) scale(1.05); }

.nav-desktop { display: none; align-items: center; gap: 4px; height: 44px; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  transition: color 150ms ease;
}
.nav-desktop a:hover { color: var(--signal); }
.nav-desktop a.is-current { color: var(--white); }
.nav-desktop a.is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--signal);
}

.header-actions { display: flex; align-items: center; justify-content: end; gap: 6px; flex-shrink: 0; margin-left: auto; height: 44px; }
@media (min-width: 640px) { .header-actions { gap: 8px; } }

.link-quiet {
  display: none;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--foreground);
  transition: color 150ms ease;
}
.link-quiet:hover { color: var(--white); }
@media (min-width: 1024px) { .link-quiet { display: inline-flex; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn--solid { background: var(--white); color: #000; padding: 10px 18px; }
.btn--solid:hover { background: rgb(244 244 242 / 0.9); }
.header-actions .btn--solid {
  display: none;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  line-height: 1;
  background: var(--signal);
  color: #fff;
  box-shadow: 0 0 22px color-mix(in oklab, var(--signal) 32%, transparent);
}
.header-actions .btn--solid:hover { background: color-mix(in oklab, var(--signal) 86%, black); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--foreground);
  padding: 10px 18px;
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { font-size: 14.5px; padding: 12px 20px; }

@media (min-width: 640px) { .header-actions .btn--solid { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-mobile {
  border-top: 1px solid var(--border);
  background: rgb(10 10 11 / 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px var(--gutter);
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  animation: rise-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }
.nav-mobile[hidden] { display: none; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile ul a {
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}
.nav-mobile ul a:hover { background: var(--surface-2); }
.nav-mobile__cta { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nav-mobile__cta a {
  border-radius: var(--r-sm);
  padding: 10px 12px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}
.nav-mobile__cta .is-quiet { border: 1px solid var(--border); background: var(--surface); }
.nav-mobile__cta .is-solid { background: var(--signal); color: #fff; }

/* ------------------------------------------------------------- page head */

.page-head { padding: 40px 0 32px; }
@media (min-width: 640px) { .page-head { padding: 72px 0 48px; } }

.page-head__title {
  margin-top: 20px;
  font-size: clamp(28px, 8vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}
.page-head__standfirst {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---------------------------------------------------------- post cards */

.post-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* Listing pages sit flush on the CTA with no pagination (a one-page
   index). Keep a band of ground under the cards so the two sections
   do not read as one block. */
.post-feed { padding-bottom: 64px; }
@media (min-width: 640px) { .post-feed { padding-bottom: 96px; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--background);
  box-shadow: 0 0 0 1px var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 22px 20px 24px;
  transition: background-color 200ms ease;
}
@media (min-width: 640px) {
  .post-card { padding: 26px 24px 28px; }
}
.post-card:hover { background: var(--surface); }

.post-card__thumb {
  margin: -22px -20px 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
@media (min-width: 640px) {
  .post-card__thumb { margin: -26px -24px 20px; }
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 999px; background: currentColor; }

.post-card__title {
  margin-top: 14px;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.015em;
}
.post-card__title a { transition: color 150ms ease; }
.post-card:hover .post-card__title a { color: var(--white); }

.post-card__excerpt {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.post-card__more {
  margin-top: 28px;
  padding-top: 22px;
  padding-bottom: 2px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel);
  transition: color 150ms ease;
}
.post-card__more .arrow { transition: transform 150ms ease; }
.post-card__more:hover,
.post-card:hover .post-card__more { color: var(--foreground); }
.post-card__more:hover .arrow,
.post-card:hover .post-card__more .arrow { transform: translateX(3px); }

/* Push the "read on" rule to the bottom so a short excerpt does not leave
   the card's foot floating mid-height next to a long one. */
.post-card__excerpt { flex: 1; }

/* ------------------------------------------------------------- article */

.article { padding: 28px 0 56px; }
@media (min-width: 640px) { .article { padding: 40px 0 72px; } }
.article__inner { max-width: 720px; min-width: 0; }

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 150ms ease;
}
.article__back:hover { color: var(--foreground); }
.article__back-icon { transition: transform 150ms ease; }
.article__back:hover .article__back-icon { transform: translateX(-3px); }

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.article__meta .dot { width: 3px; height: 3px; border-radius: 999px; background: currentColor; }
.article__meta a:hover { color: var(--foreground); }

.article__title {
  margin-top: 18px;
  max-width: none;
  font-size: clamp(28px, 7vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.article__standfirst {
  margin-top: 20px;
  max-width: 42rem;
  font-size: 17px;
  line-height: 1.65;
  color: var(--silver);
}

.article__hero {
  margin: 36px 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.article__hero img { width: 100%; height: auto; }

.article__body { max-width: 720px; min-width: 0; }

.article__rule { margin: 28px 0; height: 1px; background: var(--border); border: 0; }

.article__related {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.article__related-title {
  margin: 20px 0 28px;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.15;
}

/* ------------------------------------------------------------- prose */

.prose { font-size: 16px; line-height: 1.75; color: rgb(244 244 242 / 0.86); }
.prose > * + * { margin-top: 1.25em; }

.prose h2 {
  margin-top: 2em;
  font-size: clamp(22px, 4.5vw, 25px);
  line-height: 1.2;
  color: var(--white);
}
.prose h3 {
  margin-top: 1.7em;
  font-size: 19px;
  line-height: 1.3;
  color: var(--white);
}
.prose h4 { margin-top: 1.6em; font-size: 16px; color: var(--white); }

.prose a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
.prose a:hover { text-decoration-color: var(--white); }

.prose strong { color: var(--white); font-weight: 600; }
.prose em { font-style: italic; }

.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--steel); }

.prose blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--signal);
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
}
.prose blockquote p + p { margin-top: 0.8em; }
.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.prose code {
  font-size: 0.88em;
  background: var(--surface-2);
  border-radius: 5px;
  padding: 2px 6px;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }

.prose img,
.prose .wp-block-image img { border-radius: var(--r-lg); border: 1px solid var(--border); }

.prose figure { margin: 2em 0; }
.prose figcaption {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--steel);
  text-align: center;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prose .wp-block-table,
.prose figure.wp-block-table {
  overflow-x: auto;
  max-width: 100%;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.prose th {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
  font-weight: 500;
  background: var(--surface);
}
.prose td { font-variant-numeric: tabular-nums; }

.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-block-image.alignwide { max-width: 900px; margin-inline: auto; }
@media (max-width: 639px) {
  .alignleft, .alignright {
    float: none;
    margin: 0 0 1em;
  }
}

iframe,
.wp-block-embed,
.wp-block-embed__wrapper {
  max-width: 100%;
}

/* --------------------------------------------------------------- tags */

.taglist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.taglist a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 11px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
  transition: color 150ms ease, border-color 150ms ease;
}
.taglist a:hover { color: var(--foreground); border-color: var(--border-strong); }

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

.post-nav {
  display: grid;
  gap: 1px;
  margin-top: 56px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a {
  display: block;
  background: var(--background);
  padding: 20px 22px;
  transition: background-color 200ms ease;
}
.post-nav a:hover { background: var(--surface); }
.post-nav .dir {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel);
}
.post-nav .label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.post-nav .is-next { text-align: right; }

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 40px 0 8px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--muted-foreground);
  transition: color 150ms, border-color 150ms, background-color 150ms;
}
.pagination a.page-numbers:hover { color: var(--foreground); border-color: var(--border-strong); }
.pagination .page-numbers.current {
  background: var(--white);
  border-color: var(--white);
  color: #000;
}
.pagination .dots { border-color: transparent; }

/* ------------------------------------------------------------- search */

.searchform { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.searchform input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: var(--foreground);
  font-family: inherit;
  font-size: 16px;
}
.searchform input[type="search"]::placeholder { color: var(--steel); }
.searchform .btn { justify-content: center; }
@media (max-width: 479px) {
  .searchform .btn { width: 100%; }
}

/* ---------------------------------------------------------- empty state */

.empty {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 40px 28px;
  text-align: center;
}
.empty h2 { font-size: 20px; }
.empty p { margin-top: 10px; color: var(--muted-foreground); font-size: 14.5px; }

/* ------------------------------------------------------------ comments
   WordPress renders comment_form() with its own markup and classes. Rather
   than fight it with a template override, the fields are styled where they
   land — the only thing this theme replaces is the textarea, so that it is
   not the one control on the page with a browser default border.
   ==================================================================== */

.comments .comment-respond { margin-top: 40px; }

.comments .comment-reply-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--display-tracking);
}

.comments .comment-notes,
.comments .logged-in-as {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.comments .comment-form { margin-top: 20px; }
.comments .comment-form p { margin-top: 16px; }

.comments .comment-form label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.comments .comment-form input[type="text"],
.comments .comment-form input[type="email"],
.comments .comment-form input[type="url"],
.comments .comment-form textarea {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.comments .comment-form textarea { resize: vertical; }

.comments .comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.comments .comment-form .comment-form-cookies-consent label {
  margin-bottom: 0;
  font-family: var(--f-sans);
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
}
.comments .comment-form .form-submit { margin-top: 20px; }
.comments .comment-form .form-submit .btn { width: 100%; justify-content: center; }
@media (min-width: 640px) {
  .comments .comment-form .form-submit .btn { width: auto; }
}

.comments .comment-list { margin-top: 24px; }
.comments .comment-list .comment-body {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.comments .comment-list .comment-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
}
.comments .comment-list .comment-author img {
  border-radius: 999px;
  display: block;
  flex-shrink: 0;
}
.comments .comment-list .comment-metadata {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
}
.comments .comment-list .comment-content { margin-top: 12px; }
.comments .comment-list .children { list-style: none; padding-left: 16px; }
@media (min-width: 640px) {
  .comments .comment-list .children { padding-left: 24px; }
}
.comments .reply { margin-top: 10px; }
.comments .reply a {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.comments .reply a:hover { color: var(--foreground); }

/* --------------------------------------------------------------- CTA */

.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
@media (min-width: 640px) { .cta { padding: 96px 0; } }

.cta__dots {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle, var(--steel) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black, transparent 72%);
}

.cta__inner { position: relative; max-width: 768px; margin-inline: auto; }

.cta__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--signal);
  box-shadow: 0 0 22px color-mix(in oklab, var(--signal) 35%, transparent);
}

.cta__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (min-width: 640px) { .cta__title { font-size: 40px; } }

.cta__period { color: var(--signal); }

.cta__body {
  margin: 20px auto 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.cta__bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px auto 0;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
@media (min-width: 640px) {
  .cta__bar {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
  }
}

.cta__bar-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--signal);
  box-shadow: 0 0 18px color-mix(in oklab, var(--signal) 28%, transparent);
}

.cta__bar-copy { min-width: 0; flex: 1; margin: 0; }
.cta__bar-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
}
.cta__bar-sub {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--muted-foreground);
}

.cta__bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--signal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  box-shadow: 0 0 22px color-mix(in oklab, var(--signal) 32%, transparent);
  transition: background-color 150ms ease;
}
.cta__bar-btn:hover { background: color-mix(in oklab, var(--signal) 86%, black); color: #fff; }

.cta__benefits {
  display: grid;
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
@media (min-width: 640px) {
  .cta__benefits { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
}

.cta__benefits li { display: flex; gap: 12px; margin: 0; }
.cta__benefit-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 8px;
  border: 1px solid rgb(224 52 43 / 0.4);
  background: var(--background);
  color: var(--signal);
}
.cta__benefit-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
}
.cta__benefit-body {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted-foreground);
}

.cta__footnote {
  margin: 40px 0 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
}
.cta__footnote-dot { margin: 0 6px; color: var(--signal); }

.interval { display: inline-flex; align-items: center; color: var(--steel); }
.interval .cap { width: 2px; height: 10px; border-radius: 999px; background: currentColor; }
.interval .bar { height: 2px; width: 80px; border-radius: 999px; background: currentColor; }

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

.site-footer { border-top: 1px solid var(--border); background: var(--background); }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer__grid { display: grid; gap: 40px; padding: 64px 0 0; }
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1.6fr auto; align-items: start; }
}
.site-footer__brand img { width: 124px; height: auto; }
.site-footer__tagline {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted-foreground);
}
/*
 * UA + WordPress treat `nav` as display:block. Without flex, the four
 * labels sit as inline text with no 24px gap and ride the top of the
 * column — which is the production blog footer looking broken next to
 * the public site.
 */
footer.site-footer nav.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: start;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}
footer.site-footer nav.site-footer__nav a {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgb(244 244 242 / 0.85);
  transition: color 150ms ease;
}
footer.site-footer nav.site-footer__nav a:hover { color: var(--foreground); }
.site-footer__connect { min-width: 0; }
.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer__social li { margin: 0; padding: 0; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: rgb(244 244 242 / 0.8);
  transition: border-color 150ms ease, color 150ms ease;
}
.site-footer__social a:hover {
  border-color: var(--border-strong);
  color: var(--foreground);
}
.site-footer__social svg { display: block; }
.site-footer__email {
  display: inline-block;
  margin-top: 16px;
  font-size: 13.5px;
  color: rgb(244 244 242 / 0.85);
  transition: color 150ms ease;
}
.site-footer__email:hover { color: var(--foreground); }

.site-footer svg { max-width: none; }

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 24px 0 64px;
  font-size: 12px;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .site-footer__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
footer.site-footer nav.site-footer__legal-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}
footer.site-footer nav.site-footer__legal-nav a {
  color: inherit;
  transition: color 150ms ease;
}
footer.site-footer nav.site-footer__legal-nav a:hover { color: var(--foreground); }

/* ---------------------------------------------------------- animation */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .rise, .nav-mobile { animation: none !important; }
  * { transition-duration: 1ms !important; }
}

/* ------------------------------------------------------------ admin bar */

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  #wpadminbar { position: fixed; }
}
