/*
Theme Name:   NovaHost
Theme URI:    https://yourdomain.com/
Author:       Luka K.
Author URI:   https://yourdomain.com/
Description:  Ultra-light classic theme for a managed web-hosting business. Landing page with an admin-managed portfolio marquee, two pricing plans, FAQ and a contact form, plus a fully native blog. No framework, no jQuery, no page builder. Ships its own SEO meta tags and Schema.org JSON-LD.
Version:      1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  novahost
Tags:         one-column, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, blog, translation-ready
*/

/* ==========================================================================
   NovaHost — the theme's only stylesheet.
   Mobile-first. No framework. Animations use transform/opacity only.

   TABLE OF CONTENTS
   01 Design tokens
   02 Reset & base
   03 Utilities
   04 Buttons, tags, badges
   05 Header & navigation
   06 Hero
   08 Features
   09 Pricing
   10 FAQ
   11 CTA band
   12 Footer
   13 Blog
   14 Motion & reveal
   15 WordPress-specific
   16 Brand wordmark + contact form
   17 Portfolio marquee

   (07 was the old single-slide carousel, replaced by 17.)
   ========================================================================== */


/* ==========================================================================
   01 · DESIGN TOKENS
   Change the palette here and the whole site follows.
   ========================================================================== */
:root {
  /* ---- The whole brand. Three colours, nothing else. -------------------- */
  --black: #0A0A0A;   /* 60% - the ground almost every section stands on   */
  --white: #F7F7F5;   /* 30% - the cut-out sections, and the ink on black  */
  --red:   #D40D02;   /* 10% - accent only. Never an action, never a button */

  /* Which way this surface runs. `.section--light` swaps these two and every
     token below re-derives itself from them. */
  --ground: var(--black);
  --ink:    var(--white);

  /* ---- Type: the theme's own pair, unchanged ---------------------------- */
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);

  --fs-h1:   clamp(2.05rem, 1.35rem + 3.3vw, 3.9rem);
  --fs-h2:   clamp(1.6rem,  1.25rem + 1.7vw, 2.5rem);
  --fs-h3:   clamp(1.05rem, 1rem + .35vw, 1.25rem);
  --fs-lead: clamp(1rem,    .96rem + .3vw, 1.15rem);

  /* ---- Space & shape: unchanged ----------------------------------------- */
  --container: 1180px;
  --gutter: clamp(1rem, .4rem + 2.4vw, 2rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;

  /* The red weld: black and white never touch on a bare edge. */
  --seam: clamp(6px, .5vw, 10px);
  --shadow: 0 24px 60px -34px color-mix(in srgb, var(--black) 92%, transparent);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Everything here is mixed out of --ground and --ink, so flipping those two
   flips a whole section without a fourth colour entering the palette.
   The list is repeated for `.section--light` on purpose: a var() inside a
   custom property resolves where it is declared, so the light surface has to
   derive its own copy rather than inherit ours. */
:root,
.section--light {
  --bg:        var(--ground);
  --bg-soft:   var(--ground);
  --surface:   color-mix(in srgb, var(--ink) 5%, var(--ground));
  --surface-2: color-mix(in srgb, var(--ink) 9%, var(--ground));
  --raise:     color-mix(in srgb, var(--ink) 5%, transparent);

  --line:        color-mix(in srgb, var(--ink) 15%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 32%, transparent);

  --text:     var(--ink);
  --text-dim: color-mix(in srgb, var(--ink) 70%, var(--ground));
  --muted:    color-mix(in srgb, var(--ink) 55%, var(--ground));

  --accent:      var(--red);
  --accent-soft: color-mix(in srgb, var(--red) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--red) 55%, transparent);
  --accent-ink:  var(--white);   /* text sitting on red */
}


/* ==========================================================================
   02 · RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;   /* sticky header offset for #anchors */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* `clip`, not `hidden`: `hidden` would turn <body> into a scroll container
     and break the sticky header. This only contains the hero glow. */
  overflow-x: clip;
}

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

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

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }

p { text-wrap: pretty; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }


/* ==========================================================================
   03 · UTILITIES
   ========================================================================== */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section--tint {
  background: linear-gradient(180deg, transparent, var(--bg-soft) 18%, var(--bg-soft) 82%, transparent);
}

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section__lead {
  margin-top: .9rem;
  color: var(--text-dim);
  font-size: var(--fs-lead);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%; top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateX(-50%);
}
.skip-link:focus { top: 0; }

.dot-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}


/* ==========================================================================
   04 · BUTTONS, TAGS, BADGES
   Every interactive control is at least 44px tall (touch target).
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, opacity .18s;
}
.btn:active { transform: translateY(1px); }

/* Red is the accent, never the action: a red button reads as a warning and
   suppresses the click. The primary action takes the strongest neutral the
   palette has instead — full ink, inverted — in every state. */
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn--primary:hover { box-shadow: inset 0 0 0 3px var(--ground); }

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }

.btn--lg { min-height: 52px; padding: .9rem 1.6rem; font-size: 1rem; }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }

.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-dim);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
a.tag { transition: color .18s, border-color .18s; }
a.tag:hover { color: var(--accent); border-color: var(--accent-line); }

.tag--accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.badge {
  padding: .1rem .4rem;
  border-radius: 5px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .68rem;
  font-weight: 700;
}


/* ==========================================================================
   05 · HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.is-scrolled .site-header {
  border-bottom-color: var(--line);
  background: rgba(8, 9, 11, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;      /* touch target, not just the text height */
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.brand__mark { color: var(--accent); }
.brand__accent { color: var(--accent); }

/* --- mobile: nav is a panel that drops from the header --- */
.nav {
  position: absolute;
  left: 0; right: 0; top: 100%;
  display: grid;
  gap: .25rem;
  padding: .75rem var(--gutter) 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 15, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.js .nav {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.js .nav-open .nav,
.js body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }

.nav__list { display: grid; }
.nav__list a {
  display: block;
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-weight: 500;
  transition: color .18s;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--text); }

.nav__cta { margin-top: .9rem; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -.5rem;
  border-radius: var(--r-sm);
}
.nav-toggle__box { position: relative; width: 20px; height: 12px; }
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .22s var(--ease), opacity .15s;
}
.nav-toggle__bar { top: 5px; }
.nav-toggle__bar::before { content: ""; top: -5px; }
.nav-toggle__bar::after  { content: ""; top: 5px; }

[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(5px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-5px) rotate(-45deg); }

/* --- desktop nav --- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .js .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { display: flex; gap: 1.75rem; }
  .nav__list a { padding: .25rem 0; border: 0; font-size: .93rem; }
  .nav__cta { margin: 0; }
}


/* ==========================================================================
   06 · HERO
   ========================================================================== */
.hero, .page-head { position: relative; padding-top: clamp(2.5rem, 1rem + 6vw, 5rem); }
.hero { padding-bottom: clamp(2.5rem, 1rem + 5vw, 4.5rem); }
.page-head { padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* Single, cheap decorative glow — no animation, composited once. */
.hero__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  right: auto;
  z-index: -1;
  /* 100% of the section, never of the viewport: 150vw used to push the page
     80-166px wider than the screen on every device under 768px. */
  width: min(1100px, 100%);
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--red) 30%, transparent), transparent 70%);
  background-position: 22% 38%;
  background-size: 66% 66%;
  background-repeat: no-repeat;
  filter: blur(26px);
  opacity: .62;
  pointer-events: none;
}

.hero__intro { max-width: 54rem; }

.hero__lead {
  margin-top: 1.15rem;
  max-width: 40rem;
  color: var(--text-dim);
  font-size: var(--fs-lead);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.9rem;
}
.hero__actions .btn { flex: 1 1 min(100%, 15rem); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  letter-spacing: -.02em;
}
.hero__stats span { color: var(--muted); font-size: .8rem; }

@media (min-width: 768px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__stats { max-width: 34rem; gap: 2rem; }
  .hero__stats span { font-size: .875rem; }
}


/* ==========================================================================
   08 · FEATURES
   ========================================================================== */
.features { display: grid; gap: 1rem; }

.feature {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
  transition: border-color .22s, transform .22s var(--ease);
}
.feature:hover { border-color: var(--accent-line); transform: translateY(-2px); }

.feature__icon {
  width: 28px; height: 28px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--text-dim); font-size: .93rem; }

/* A card may hold a short bullet list instead of a paragraph.
   No markers — the text keeps the indent the checkmarks used to occupy. */
.feature ul { display: grid; gap: .55rem; }
.feature li {
  padding-left: calc(15px + .6rem);
  color: var(--text-dim);
  font-size: .93rem;
}

@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }


/* ==========================================================================
   09 · PRICING
   ========================================================================== */
/* The pricing header is centred at every width: eyebrow, heading, lead and the
   billing toggle all sit on one axis under the title.
   The eyebrow and the toggle are inline-flex, so text-align carries them along
   with the heading and the lead; margin-inline centres the block itself, which
   is otherwise capped at 46rem and would sit flush left in a wider container. */
#pricing .section__head { text-align: center; margin-inline: auto; }
#pricing .section__lead { margin-inline: auto; }

.billing {
  display: inline-flex;
  gap: .25rem;
  margin-top: 1.75rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}
.billing__opt {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .4rem 1rem;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}
.billing__opt.is-active { background: var(--surface-2); color: var(--text); }

/* `stretch`, not `start`: both cards take the full row height so the two are
   always the same size no matter how many features each lists. */
.plans { display: grid; gap: 1.25rem; align-items: stretch; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.plan--featured {
  border-color: var(--accent-line);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}

.plan__badge {
  position: absolute;
  top: -.75rem; left: 1.4rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.plan__name { font-size: 1.3rem; }
.plan__for {
  margin-top: .4rem;
  min-height: 2.8em;
  color: var(--muted);
  font-size: .88rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  margin-top: 1.25rem;
  font-family: var(--font-display);
}
.plan__cur { color: var(--text-dim); font-size: 1.25rem; }
.plan__num { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; }
.plan__per { color: var(--muted); font-size: .95rem; font-family: var(--font-body); }

.plan__billnote { color: var(--muted); font-size: .8rem; }
/* the two notes swap with the billing toggle */
[data-period="monthly"] [data-note-yearly],
[data-period="yearly"]  [data-note-monthly] { display: none; }

.plan .btn { margin-top: 1.35rem; }

.plan__list {
  display: grid;
  gap: .7rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--text-dim);
}
/* Check mark drawn with a CSS mask — no repeated inline SVG in the markup */
.plan__list li::before {
  content: "";
  flex: none;
  width: 17px; height: 17px;
  margin-top: .28em;
  background-color: var(--accent);
  -webkit-mask: var(--check) center / contain no-repeat;
          mask: var(--check) center / contain no-repeat;
}
.plan__list li strong { color: var(--text); }

:root {
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m4 12.6 5.1 5.1L20 6.6'/%3E%3C/svg%3E");
}

.plans__note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}
.plans__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Three plans. One column on phones, capped so a lone card never stretches the
   full container; three abreast from 940px, where each still has room for its
   feature list without the text going to a two-word measure. */
.plans { max-width: 30rem; margin-inline: auto; }

@media (min-width: 940px) {
  .plans {
    max-width: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .plan { padding: 2rem 1.5rem; }
}


/* ==========================================================================
   10 · FAQ — native <details>, no JavaScript
   ========================================================================== */
.faq { display: grid; gap: .5rem; }

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .2s;
}
.faq__item[open] { border-color: var(--line-strong); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }

.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .22s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.faq__item > p {
  padding: 0 1.15rem 1.15rem;
  color: var(--text-dim);
  font-size: .93rem;
}


/* ==========================================================================
   11 · CTA BAND
   ========================================================================== */
.cta { padding-block: var(--section-y); }
.cta__inner {
  padding: clamp(2rem, 1rem + 4vw, 3.5rem) clamp(1.25rem, .5rem + 3vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 130% at 15% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  text-align: center;
}
.cta__inner h2 { max-width: 22ch; margin-inline: auto; }
.cta__inner > p {
  max-width: 46ch;
  margin: 1rem auto 0;
  color: var(--text-dim);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.9rem;
}
.cta__actions .btn { flex: 1 1 min(100%, 16rem); }
@media (min-width: 768px) { .cta__actions .btn { flex: 0 0 auto; } }


/* ==========================================================================
   12 · FOOTER
   ========================================================================== */
.site-footer {
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer__grid { display: grid; gap: 2rem; }
.footer__tag { margin-top: .9rem; max-width: 28ch; color: var(--muted); font-size: .88rem; }
/* Must be block-level flex, not inline-flex: the brand above it is also an
   inline-flex box, so the two would share a line whenever the tagline between
   them is empty. */
.footer__status {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: .82rem;
}

.footer__title {
  margin-bottom: .9rem;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__col ul { display: grid; gap: .1rem; }
.footer__col li { color: var(--text-dim); font-size: .9rem; }
.footer__col a {
  display: inline-block;
  padding: .35rem 0;
  transition: color .18s;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  margin-top: clamp(2rem, 1rem + 3vw, 3rem);
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

/* --- social icons --------------------------------------------------------- */
/* Scoped to .footer__col so it outranks `.footer__col ul { display: grid }`,
   which would otherwise stack the icons one per row. */
.footer__col .socials {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.1rem;
}
.footer__col .socials li { border: 0; }

/* Scoped to .footer__col so it outranks `.footer__col a`, whose
   `display:inline-block; padding:.35rem 0` would knock the glyph off-centre. */
.footer__col .socials__link {
  display: grid;
  place-items: center;            /* centres the glyph in the circle */
  flex: none;
  width: 44px; height: 44px;      /* touch target */
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color .18s, border-color .18s, background-color .18s;
}
.footer__col .socials__link svg { display: block; }
.footer__col a.socials__link:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
/* No URL yet: visible but plainly not clickable. */
.footer__col .socials__link.is-empty { opacity: .4; cursor: default; }

@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; } }


/* ==========================================================================
   13 · BLOG
   ========================================================================== */
.crumbs { margin-bottom: 1.25rem; color: var(--muted); font-size: .82rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { transition: color .18s; }
.crumbs a:hover { color: var(--accent); }

.page-head__lead {
  max-width: 46rem;
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: var(--fs-lead);
}

.blog-layout {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  padding-bottom: var(--section-y);
}
/* Grid items default to min-width:auto, so one wide child can push the whole
   column past the viewport. Opt out. */
.blog-layout > *,
.posts > * { min-width: 0; }

.posts-section { margin-top: clamp(2.5rem, 1.5rem + 3vw, 3.5rem); }
.section-title {
  margin-bottom: 1.5rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
}

.posts { display: grid; gap: 1.25rem; }

/* --- post card --- */
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .22s, transform .22s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card__media { display: block; background: var(--bg-soft); }
.card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.25rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
  color: var(--muted);
  font-size: .78rem;
}
.readtime { display: inline-flex; align-items: center; gap: .35rem; }

.card__title { font-size: 1.08rem; line-height: 1.3; }
.card__title a { transition: color .18s; }
.card__title a:hover { color: var(--accent); }

.card__excerpt {
  margin-top: .65rem;
  color: var(--text-dim);
  font-size: .91rem;
}

.card__foot {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.15rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
.byline { color: var(--text-dim); font-weight: 500; }

.card--featured .card__title { font-size: clamp(1.3rem, 1.1rem + 1.2vw, 1.85rem); }
.card--featured .card__excerpt { font-size: .97rem; }
.card--featured .card__media img { aspect-ratio: 16 / 8; }

/* --- pagination --- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.pager__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-dim);
  transition: color .18s, border-color .18s;
}
.pager__link:hover { color: var(--text); border-color: var(--line-strong); }
.pager__link.is-disabled { opacity: .35; pointer-events: none; }

.pager__pages { display: flex; gap: .25rem; }
.pager__pages a {
  display: grid;
  place-items: center;
  min-width: 44px; min-height: 44px;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  transition: background-color .18s, color .18s;
}
.pager__pages a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.pager__pages a.is-current { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* --- sidebar --- */
.blog-aside { display: grid; gap: 1.25rem; align-content: start; }

.widget {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.widget--cta {
  border-color: var(--accent-line);
  background: radial-gradient(120% 80% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface);
}
.widget__title {
  margin-bottom: .85rem;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.widget__text { color: var(--text-dim); font-size: .9rem; }
.widget .btn { margin-top: 1.1rem; }

.widget__list { display: grid; }
.widget__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .92rem;
  transition: color .18s;
}
.widget__list li:last-child a { border-bottom: 0; }
.widget__list a:hover { color: var(--accent); }
.widget__list span { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

.widget__posts { display: grid; gap: 1rem; counter-reset: p; }
.widget__posts li { display: grid; gap: .25rem; }
.widget__posts a {
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color .18s;
}
.widget__posts a::before {
  counter-increment: p;
  content: "0" counter(p) " ";
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .8rem;
}
.widget__posts a:hover { color: var(--accent); }
.widget__posts .readtime { color: var(--muted); font-size: .78rem; }

.subscribe { display: grid; gap: .6rem; margin-top: 1rem; }
.subscribe__input {
  width: 100%;
  min-height: 46px;
  padding: .65rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 1rem;  /* 16px — stops iOS from zooming on focus */
}
.subscribe__input::placeholder { color: var(--muted); }
.subscribe__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.subscribe .btn { margin-top: 0; }
.subscribe__note { color: var(--muted); font-size: .74rem; text-align: center; }

.tagcloud { display: flex; flex-wrap: wrap; gap: .4rem; }

@media (min-width: 600px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .card--featured { flex-direction: row; align-items: stretch; }
  .card--featured .card__media { flex: 0 0 46%; }
  .card--featured .card__media img { height: 100%; aspect-ratio: auto; }
  .card--featured .card__body { justify-content: center; padding: 1.75rem; }
}

@media (min-width: 1024px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .blog-aside { position: sticky; top: 5.5rem; }
}


/* ==========================================================================
   14 · MOTION & REVEAL
   Only opacity + transform. Disabled entirely for reduced-motion users.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}


/* ==========================================================================
   15 · WORDPRESS-SPECIFIC
   Everything core outputs that sections 01-14 do not already cover.
   ========================================================================== */

/* --- core-required classes ------------------------------------------------ */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.screen-reader-text:focus {
  z-index: 100;
  width: auto; height: auto;
  padding: .75rem 1.25rem;
  clip-path: none;
  background: var(--accent);
  color: var(--accent-ink);
}

.alignleft   { float: left;  margin: .5rem 1.5rem 1rem 0; }
.alignright  { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { margin-inline: 0; }

.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

.sticky > .card { border-color: var(--accent-line); }

/* --- single post ---------------------------------------------------------- */
.post-head { max-width: 780px; }
.post-head .card__meta { margin-bottom: 1.1rem; }
.post-head h1 { margin-bottom: 1rem; }
.post-head__lead { color: var(--text-dim); font-size: var(--fs-lead); }

.post-cover {
  margin-top: clamp(1.75rem, 1rem + 3vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry-content {
  max-width: 720px;
  margin-top: clamp(2rem, 1rem + 3vw, 3rem);
  color: var(--text-dim);
  font-size: 1.03rem;
  line-height: 1.75;
}
.entry-content > * + * { margin-top: 1.25rem; }

.entry-content h2 {
  margin-top: 2.75rem;
  color: var(--text);
  font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem);
}
.entry-content h3 {
  margin-top: 2rem;
  color: var(--text);
  font-size: 1.15rem;
}
.entry-content h2 + *,
.entry-content h3 + * { margin-top: .85rem; }

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content strong { color: var(--text); }

.entry-content ul, .entry-content ol { padding-left: 1.35rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-top: .5rem; }
.entry-content li::marker { color: var(--accent); }

.entry-content blockquote {
  padding: .35rem 0 .35rem 1.35rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: 1.1rem;
}

.entry-content code {
  padding: .12em .4em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: .88em;
}
.entry-content pre {
  overflow-x: auto;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: .86rem;
  line-height: 1.6;
}
.entry-content pre code { padding: 0; border: 0; background: none; color: var(--text-dim); }

.entry-content img { border-radius: var(--r); }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.entry-content th, .entry-content td {
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.entry-content th { color: var(--text); font-weight: 600; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); }

/* --- post footer, tags, prev/next ----------------------------------------- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Deliberately NOT inside .entry-content: that rule set adds
   `> * + * { margin-top }`, which pushed the second card down, and underlines
   every link. */
.post-nav {
  display: grid;
  gap: .75rem;
  align-items: stretch;      /* both cards take the taller one's height */
  max-width: 720px;
  margin-top: 2rem;
}
.post-nav a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .2s;
}
.post-nav a:hover { border-color: var(--accent-line); }
.post-nav span {
  display: block;
  margin-bottom: .3rem;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.post-nav strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.35;
}
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }

/* --- native pagination (the_posts_pagination) ----------------------------- */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.nav-links .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px; min-height: 44px;
  padding: 0 .75rem;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: .9rem;
  transition: background-color .18s, color .18s;
}
.nav-links a.page-numbers:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.nav-links .page-numbers.current { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.nav-links .page-numbers.dots { min-width: 26px; padding: 0; }

/* --- search form ---------------------------------------------------------- */
.searchform { display: flex; gap: .5rem; min-width: 0; }
.searchform input[type="search"] {
  /* width:0 + flex-grow, so the input's intrinsic ~228px does not become the
     widget's min-content width and blow out the sidebar column at 320px. */
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 46px;
  padding: .65rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 1rem;
}
.searchform input[type="search"]::placeholder { color: var(--muted); }

/* --- comments ------------------------------------------------------------- */
.comments {
  max-width: 720px;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.comments__title { margin-bottom: 1.5rem; font-size: 1.15rem; }

.commentlist, .commentlist .children { display: grid; gap: 1rem; }
.commentlist .children {
  margin-top: 1rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}
.comment-body {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
  color: var(--muted);
  font-size: .8rem;
}
.comment-author { color: var(--text); font-weight: 600; }
.comment-body p { color: var(--text-dim); font-size: .93rem; }
.comment-reply-link { color: var(--accent); font-size: .82rem; }

.comment-respond { margin-top: 2rem; }
.comment-form { display: grid; gap: .75rem; }
.comment-form label { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .82rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  min-height: 46px;
  padding: .65rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 1rem;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .form-submit { margin: 0; }
.comment-form input[type="submit"] {
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
}
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: .5rem; }
.comment-form .comment-form-cookies-consent label { margin: 0; }

/* --- admin bar offset ----------------------------------------------------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* --- empty states (shown to admins when a section has no content yet) ------ */
.notice-empty {
  padding: 2rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  color: var(--muted);
  text-align: center;
}
.notice-empty a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }



/* ==========================================================================
   16 · BRAND WORDMARK + CONTACT FORM
   ========================================================================== */

/* --- the wordmark in the header and footer -------------------------------- */
/* Inherits font, size, weight and tracking from .brand (section 05), so it is
   exactly the size the previous wordmark was. Text: NOVAHOST_SITE_LABEL. */
.brand__site {
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

/* --- contact form --------------------------------------------------------- */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 620px;
  margin: 2rem auto 0;
  text-align: left;
}

.contact-form .field { display: grid; gap: .4rem; }

.contact-form label {
  color: var(--text-dim);
  font-size: .85rem;
  font-weight: 500;
}
.field__opt { color: var(--muted); font-weight: 400; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;      /* 16px — stops iOS zooming on focus */
  line-height: 1.5;
  transition: border-color .18s, background-color .18s;
}
.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-line);
  background: var(--surface);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Web3Forms honeypot. display:none is what their own sample uses and what
   their bot filter expects; it is also out of the tab order via tabindex. */
.botcheck { display: none !important; }

.contact-form__submit {
  gap: .75rem;
  margin-top: .25rem;
  text-align: center;
}
.contact-form__submit .btn { width: 100%; }

/* Live region under the submit button. Empty until the form is sent, so it
   must not reserve space or the layout jumps. */
.form-status:empty { display: none; }
.form-status {
  margin-top: .25rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: .88rem;
}
.form-status.is-ok {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}
.form-status.is-error {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 14%, transparent);
  color: var(--text);
}
.contact-form button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* Two columns for name + e-mail once there is room. */
@media (min-width: 560px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form .field--wide { grid-column: 1 / -1; }
  /* .field is a grid, so a grid item with width:auto stretches. Centre it. */
  .contact-form__submit { justify-items: center; }
  .contact-form__submit .btn { width: auto; min-width: 240px; }
  .contact-form__submit .form-status { justify-self: stretch; }
}

/* --- form status message -------------------------------------------------- */
.form-notice {
  max-width: 620px;
  margin: 1.5rem auto 0;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: .92rem;
}
.form-notice--ok {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}
.form-notice--error {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 14%, transparent);
  color: var(--text);
}



/* ==========================================================================
   17 · PORTFOLIO MARQUEE
   Two edge-to-edge rows that scroll continuously in opposite directions.

   The whole effect is one CSS animation on `transform` per row, so it runs on
   the compositor thread: no JavaScript, no layout, no paint per frame. Each
   track holds the item list 3x and travels exactly -33.3333% (one repetition),
   which is why the loop has no visible seam.
   ========================================================================== */
.portfolio { overflow: hidden; }
.portfolio__head {
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  margin-inline: auto;          /* .section__head is max-width 46rem */
  text-align: center;
}
.portfolio__head h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.75rem); }

.marquee {
  display: grid;
  gap: clamp(.75rem, .4rem + 1.2vw, 1.25rem);
}

.marquee__row {
  overflow: hidden;
  /* Fade the two edges so cards enter and leave instead of being chopped. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  gap: clamp(.75rem, .4rem + 1.2vw, 1.25rem);
  width: max-content;
  will-change: transform;
  animation: nh-marquee 56s linear infinite;
}
.marquee__row--reverse .marquee__track {
  animation-duration: 74s;
  animation-direction: reverse;
}

/* Travels exactly one repetition of the list. --nh-loops is printed on the
   track by the template, which decides how many repetitions it needs. */
@keyframes nh-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-100% / var(--nh-loops, 3)), 0, 0); }
}

/* Hold still while the visitor is aiming at a card. :active covers touch,
   where there is no hover. */
.marquee:hover .marquee__track,
.marquee:active .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* --- one card ------------------------------------------------------------- */
.pcard {
  flex: 0 0 auto;
  width: clamp(260px, 74vw, 460px);
}

.pcard__link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pcard__link:hover { border-color: var(--accent-line); transform: translateY(-3px); }

/* The screenshot floats inside the card with air around it, as in a mockup. */
.pcard__frame {
  display: block;
  padding: clamp(.75rem, .3rem + 1.6vw, 1.5rem);
}
.pcard__frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--r) - 2px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .95);
  transition: transform .4s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}
.pcard__link:hover .pcard__frame img { transform: scale(1.015); }

/* --- hover / focus overlay ------------------------------------------------ */
.pcard__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: .15rem;
  padding: 2.5rem 1.15rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 11, .93) 55%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ease);
}
.pcard__link:hover .pcard__overlay,
.pcard__link:focus-visible .pcard__overlay { opacity: 1; transform: none; }

.pcard__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.pcard__meta { color: var(--muted); font-size: .8rem; }
.pcard__go {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .35rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
}

/* Touch devices have no hover: keep the caption permanently visible so the
   card is never a mystery, and make the tap target obvious. */
@media (hover: none) {
  .pcard__overlay {
    position: static;
    padding: 0 1.15rem 1.15rem;
    background: none;
    opacity: 1;
    transform: none;
  }
  .pcard__link:hover { transform: none; }
}

/* --- reduced motion: stop the animation, hand control to the user --------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    width: auto;
  }
  .marquee__row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .pcard { scroll-snap-align: start; }
}


/* ==========================================================================
   18 - BRAND: three colours, 60 / 30 / 10

     #0A0A0A  the ground the page is built on            60%
     #F7F7F5  the two sections cut out of it, ink on black  30%
     #D40D02  the accent                                 10%

   Layout, type and shape are the theme's own and are left alone. This section
   only carries the palette: the light cut-outs, the places the old dark theme
   hard-coded a colour no token could reach, and two standing rules.

   1. No control is red, in any state. Red on a button reads as a warning and
      costs the click, so actions take full ink and invert instead.
   2. Red never carries small text on black - it lands at 3.7:1 there. On black
      it is a bar, a fill, a mark or a border (3:1, which a non-text mark
      passes) or display type above 24px. On the white cut-outs it is 4.9:1
      and may be read.
   ========================================================================== */

/* --- the light cut-outs, and the weld between them and the black ---------- */
.section--light {
  --ground: var(--white);
  --ink:    var(--black);
  position: relative;
  background: var(--ground);
  color: var(--ink);
  padding-block: calc(var(--section-y) + var(--seam));
}
.section--light::before,
.section--light::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: var(--seam);
  background: var(--accent);
}
.section--light::before { top: 0; }
.section--light::after  { bottom: 0; }

/* Lifts that were written as rgba(255,255,255,...) and so are invisible on a
   white cut-out. --raise is mixed from the ink, so it lifts either way. */
.eyebrow,
.tag,
.billing { background: var(--raise); }
.feature { background: linear-gradient(180deg, var(--raise), transparent); }
.pager__pages a:hover,
.nav-links a.page-numbers:hover { background: var(--raise); color: var(--text); }

/* --- header --------------------------------------------------------------- */
/* The header sits over a white section as well as the black ground, so it is
   opaque enough to stay black through the backdrop blur. */
.is-scrolled .site-header {
  background: color-mix(in srgb, var(--black) 94%, transparent);
  border-bottom-color: color-mix(in srgb, var(--white) 14%, transparent);
}
/* Only the mobile drop-down panel. Above 900px the nav is transparent and must
   stay that way, or it paints a black block across the header. */
@media (max-width: 899.98px) {
  .nav { background: color-mix(in srgb, var(--black) 97%, transparent); }
}

/* The wordmark and its glyph are identity, not accent: white. */
.brand,
.brand__mark,
.brand__site { color: var(--white); }

/* Every item reads at full strength. Dimmed links made the one real page link
   (Blog) look disabled next to the anchors. */
.nav__list a,
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--white); }

@media (min-width: 900px) {
  /* The red rule is a hover response only, wiping in from the left. Nothing in
     the header carries a standing bar. */
  .nav__list a { position: relative; }
  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: -.4rem;
    height: 2px;
    background: var(--accent);
    transition: right .28s var(--ease);
  }
  .nav__list a:hover::after,
  .nav__list a:focus-visible::after { right: 0; }
}

/* --- controls: ink, never red --------------------------------------------- */
.skip-link,
.screen-reader-text:focus { background: var(--white); color: var(--black); }
.comment-form input[type="submit"] { background: var(--ink); color: var(--ground); }
.comment-form input[type="submit"]:hover { box-shadow: inset 0 0 0 3px var(--ground); }
.pager__pages a.is-current,
.nav-links .page-numbers.current { background: var(--ink); color: var(--ground); }

/* --- red underlines the link, it never becomes the link -------------------- */
.entry-content a,
.plans__note a,
.notice-empty a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.entry-content a:hover { text-decoration-thickness: 3px; }

.footer__col a:hover,
.card__title a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.crumbs a:hover,
.widget__list a:hover,
.widget__posts a:hover,
.comment-reply-link,
.entry-content code { color: var(--text); }
.widget__posts a::before { color: var(--muted); }

a.tag:hover { color: var(--text); border-color: var(--accent-line); }
.tag--accent { color: var(--text); border-color: var(--accent-line); }

.pcard__go { color: var(--white); padding-bottom: 3px; box-shadow: inset 0 -2px 0 0 var(--accent); }

/* The portfolio caption sits on a scrim over a screenshot, so it stays light. */
.pcard__overlay {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--black) 93%, transparent) 55%);
}
/* --- the wordmark, 10px larger ------------------------------------------- */
/* Both halves grow together: the glyph is sized in CSS so it overrides the
   width/height attributes the templates print (26px header, 24px footer). */
.brand { font-size: calc(1.05rem + 10px); }
.brand__mark { width: 36px; height: 36px; }
.site-footer .brand__mark { width: 34px; height: 34px; }