/* jonathanmall.com — dark premium stage theme. No framework, no build step. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/bricolage-grotesque-v9-latin_latin-ext-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/bricolage-grotesque-v9-latin_latin-ext-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/bricolage-grotesque-v9-latin_latin-ext-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122;
}

:root {
  color-scheme: dark;

  --stage: oklch(0.15 0.015 270);
  --stage-deep: oklch(0.12 0.015 270);
  --surface: oklch(0.20 0.02 270);
  --line-dark: oklch(0.32 0.02 270);
  --ink-dark: oklch(0.96 0.005 90);
  --muted-dark: oklch(0.78 0.015 270);
  --spot: oklch(0.83 0.16 80);
  --spot-ink: oklch(0.22 0.05 80);

  --canvas: #ffffff;
  --ink: #1a1a1a;
  --muted: #555555;
  --link: #1560d4;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: 190ms ease-out;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-dark);
  background: var(--stage);
}

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

/* Default link color is tuned for the DARK stage surfaces (amber); light
   reading surfaces re-scope to the classic blue below. */
a {
  color: var(--spot);
  transition: color var(--ease);
}

.content-canvas a,
.hp-media-logos a,
.hp-testimonials a {
  color: var(--link);
}

h1, h2, h3, .site-title, .hp-btn {
  font-family: var(--font-display);
}

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

/* ---------- Header ---------- */

.site-header {
  background: var(--stage-deep);
  border-bottom: 1px solid var(--line-dark);
  position: static;
}

.site-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-title {
  font-weight: 800;
  text-decoration: none;
  color: var(--ink-dark);
  margin-right: auto;
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-nav a {
  position: relative;
  color: var(--ink-dark);
  text-decoration: none;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--spot);
  transition: width var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 3px;
  outline: 1px solid var(--line-dark);
  outline-offset: 0;
  opacity: 0.6;
  transition: opacity var(--ease);
  line-height: 0;
}

.lang-flag:hover,
.lang-flag:focus-visible {
  opacity: 1;
}

.lang-flag-current {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--spot);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--stage-deep);
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
}

.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted-dark);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--spot);
}

/* ---------- Main page-type shells ---------- */

.main-home {
  /* full-bleed bands, no max-width here — each .hp-* band supplies its own
     .band-inner max-width wrapper */
}

.main-article {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.main-archive {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ---------- Article pages ---------- */

.post-title {
  font-family: var(--font-display);
  font-weight: 800;
  max-width: 72ch;
  margin: 2.5rem auto 1.5rem;
  padding: 0 1.25rem;
  text-align: center;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink-dark);
}

.post-hero {
  --hero-overlap: 60px;
  margin: 2rem auto calc(-1 * var(--hero-overlap));
  max-width: 960px;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* The canvas sits var(--hero-overlap) underneath the hero image — its top
   padding must compensate for the overlap ON TOP of its normal padding, or
   the image covers the first lines of content. */
.post-hero + .content-canvas {
  padding-top: calc(60px + clamp(1.5rem, 4vw, 3rem));
}

.post-hero img {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.content-canvas {
  background: var(--canvas);
  color: var(--ink);
  max-width: min(100%, 940px);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 16px 16px 0 0;
}

.content-canvas a {
  color: var(--link);
}

/* Pages with no hero image/canvas offset still read fine since post-hero is
   simply absent — no extra rule needed. */

/* ---------- Archive pages ---------- */

.archive-header {
  padding-block: 1rem 1.5rem;
}

.archive-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.4rem;
  color: var(--ink-dark);
}

.archive-count {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.95rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.post-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--spot);
}

.post-card .card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body {
  padding: 1.1rem;
  position: relative;
}

.post-card .meta {
  color: var(--muted-dark);
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
}

.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.post-card h2 a {
  color: var(--ink-dark);
  text-decoration: none;
  transition: color var(--ease);
}

.post-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card:hover h2 a,
.post-card:focus-within h2 a {
  color: var(--spot);
}

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

.post-card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
}

.post-card--feature .card-img {
  aspect-ratio: 16 / 9;
}

.post-card--feature h2 {
  font-size: 1.6rem;
}

@media (min-width: 820px) {
  .post-card--feature {
    grid-template-columns: 55% 45%;
    align-items: stretch;
  }

  .post-card--feature .card-img {
    height: 100%;
    aspect-ratio: auto;
  }

  .post-card--feature .post-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem;
  }
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.pagination a {
  display: inline-block;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  color: var(--ink-dark);
  text-decoration: none;
  transition: border-color var(--ease), color var(--ease);
}

.pagination a:hover,
.pagination a:focus-visible {
  border-color: var(--spot);
  color: var(--spot);
}

/* ---------- Buttons ---------- */

.hp-btn {
  display: inline-block;
  background: var(--spot);
  color: var(--spot-ink);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--ease), background var(--ease);
}

.hp-btn:hover,
.hp-btn:focus-visible {
  background: oklch(0.88 0.16 80);
  transform: translateY(-1px);
}

.hp-btn-ghost {
  display: inline-block;
  color: var(--ink-dark);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-dark);
  transition: border-color var(--ease), color var(--ease);
}

.hp-btn-ghost:hover,
.hp-btn-ghost:focus-visible {
  color: var(--spot);
  border-color: var(--spot);
}

/* Brevo booking popup trigger — functional attributes untouched, styling only */
.hp-btn-book {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
  border-radius: 999px;
}

/* ---------- Homepage bands ---------- */

.band-inner {
  max-width: 1140px;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.hp-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 760px);
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hp-hero .band-inner {
  position: relative;
  z-index: 1;
}

.hp-hero-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hp-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Gradient scrim so hp-hero-copy stays legible over an unknown-brightness
   photo — stronger/near-opaque behind the text (left), fading toward the
   right and bottom edge of the frame. See hp-hero-copy note below for the
   text-color contrast call this scrim depends on. */
.hp-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(0.12 0.015 270 / 0.94) 0%, oklch(0.12 0.015 270 / 0.78) 45%, oklch(0.12 0.015 270 / 0.28) 100%),
    linear-gradient(0deg, oklch(0.12 0.015 270 / 0.85) 0%, transparent 45%);
}

.hp-eyebrow {
  font-size: 0.95rem;
  color: var(--muted-dark);
  margin: 0 0 0.5rem;
  text-transform: none;
  letter-spacing: normal;
}

.hp-hero h1 {
  margin: 0 0 1.25rem;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink-dark);
}

.hp-hero-copy {
  max-width: 660px;
}

/* DECISION: --muted-dark (oklch 0.78) is tuned for opaque --stage-deep
   backgrounds. Over the hero photo the scrim only reaches 0.78 alpha at its
   lightest (right edge under the copy block's max-width), so bright photo
   content can still bleed through and erode contrast below 4.5:1 in the
   worst case. Rather than change --muted-dark globally (used across footer,
   nav, and other dark bands with guaranteed-opaque backgrounds), the hero's
   secondary text is scoped to --ink-dark here — same near-white already used
   for h1/headings, safe against any photo brightness. */
.hp-hero-subtext {
  max-width: 58ch;
  margin: 0 0 1.75rem;
  color: var(--ink-dark);
}

.hp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
}

@media (max-width: 720px) {
  .hp-hero {
    min-height: auto;
  }

  .hp-hero-image::after {
    background: oklch(0.12 0.015 270 / 0.84);
  }
}

/* ---------- Media logos (light band) ---------- */

.hp-media-logos {
  background: var(--canvas);
  color: var(--ink);
  text-align: center;
  padding-block: 0.75rem 0.9rem;
}

/* Slim strip: the generic .band-inner padding would triple the band height —
   only its horizontal padding is wanted here. */
.hp-media-logos .band-inner {
  padding-block: 0;
}

.hp-media-logos h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
  text-transform: none;
  letter-spacing: normal;
}

/* Single-band logo marquee, CSS-only. Two identical .hp-logo-set halves;
   the track translates from -50% to 0 for a seamless left-to-right drift. */
.hp-logo-marquee {
  overflow: hidden;
  width: 100%;
  /* soft fade at both ends so logos don't hard-clip at the band edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.hp-logo-track {
  display: flex;
  width: max-content;
  animation: hp-logo-scroll 45s linear infinite;
}

.hp-logo-marquee:hover .hp-logo-track {
  animation-play-state: paused;
}

.hp-logo-set {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
}

.hp-logo-set figure {
  margin: 0;
  flex: 0 0 auto;
}

.hp-logo-set img {
  max-height: 28px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter var(--ease), opacity var(--ease);
}

.hp-logo-set figure:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes hp-logo-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Owner decision 2026-07-13: the logo drift runs for ALL visitors, including
   prefers-reduced-motion — it's a slow (45s), gentle, non-essential strip and
   the site owner explicitly wants it always moving. Deliberately no
   reduced-motion exception here (all other animations keep theirs). */

/* ---------- Showreel (dark band) ---------- */

.hp-showreel {
  background: var(--stage);
}

.hp-showreel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink-dark);
  margin: 0 0 1.5rem;
  text-align: center;
}

.hp-showreel-frame {
  max-width: 880px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px oklch(0.83 0.16 80 / 0.12);
}

.hp-showreel-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hp-showreel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 880px;
  margin: 1.5rem auto 0;
}

.hp-showreel-item {
  margin: 0;
}

.hp-showreel-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
}

.hp-showreel-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hp-showreel-item figcaption {
  font-size: 0.85rem;
  color: var(--muted-dark);
  margin-top: 0.5rem;
}

/* ---------- About (dark band) ---------- */

.hp-about {
  background: var(--stage);
}

.hp-about h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink-dark);
  margin: 0 0 1.5rem;
  text-align: left;
}

.hp-about-lead p,
.hp-about-value h3,
.hp-about-value ul {
  color: var(--muted-dark);
}

.hp-about-lead p {
  max-width: 62ch;
  margin: 0 0 1.1rem;
}

.hp-about-lead p:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .hp-about-cols {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(3rem, 5vw, 4.5rem);
    align-items: start;
  }
}

.hp-about h3 {
  color: var(--ink-dark);
  font-size: 1.1rem;
  margin-top: 0;
}

.hp-about ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.hp-about li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.9rem;
}

.hp-about li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--spot);
}

/* ---------- Topics / Keynotes (dark band, hairline rows) ---------- */

.hp-topics {
  background: var(--stage);
}

.hp-topics h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink-dark);
  margin: 0 0 0.5rem;
}

.hp-topic {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line-dark);
}

.hp-topic:first-of-type {
  border-top: 1px solid var(--line-dark);
  margin-top: 1rem;
}

@media (min-width: 820px) {
  .hp-topic {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 2rem;
  }
}

.hp-topic h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--ink-dark);
  transition: color var(--ease);
}

.hp-topic:hover h3 {
  color: var(--spot);
}

.hp-topic p {
  margin: 0;
  color: var(--muted-dark);
}

/* ---------- Testimonials (light band) ---------- */

.hp-testimonials {
  background: var(--canvas);
  color: var(--ink);
}

.hp-testimonials h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.hp-testimonials .band-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  padding-top: clamp(1.25rem, 4vw, 2.5rem);
}

.hp-testimonials h2 {
  grid-column: 1 / -1;
}

.hp-testimonial {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.hp-testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.2rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--spot);
  line-height: 1;
}

.hp-testimonial p {
  margin: 0.5rem 0 1.25rem;
  color: var(--ink);
  position: relative;
}

.hp-testimonial footer {
  /* Two lines: headshot + company logo on the first, name + company on the
     second (cite takes the full row via flex-basis). */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hp-testimonial footer cite {
  flex-basis: 100%;
  font-style: normal;
}

.hp-testimonial footer img {
  max-height: 30px;
  width: auto;
}

.hp-testimonial footer img.hp-testimonial-avatar {
  width: 52px;
  height: 52px;
  max-height: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-dark);
  flex: 0 0 auto;
}

.hp-testimonial cite {
  font-style: normal;
}

/* ---------- Contact (dark band) ---------- */

.hp-contact {
  background: var(--stage-deep);
  padding-block: clamp(3.5rem, 9vw, 6rem);
  text-align: center;
}

.hp-contact h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink-dark);
  margin: 0 0 1rem;
}

.hp-contact > .band-inner > p:not(.hp-contact-cta) {
  max-width: 55ch;
  margin: 0 auto 2rem;
  color: var(--muted-dark);
}

.hp-contact-cta {
  margin: 0;
}

/* ---------- Consent banner ---------- */

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--line-dark);
  color: var(--ink-dark);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.consent-banner a {
  color: var(--spot);
}

.consent-banner-text {
  flex: 1 1 20rem;
  margin: 0;
}

.consent-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.consent-banner button {
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}

.consent-banner button.hp-btn {
  /* inherits amber .hp-btn styling */
}

.consent-banner button.consent-decline {
  background: transparent;
  color: var(--ink-dark);
  border: 1px solid var(--line-dark);
  transition: border-color var(--ease), color var(--ease);
}

.consent-banner button.consent-decline:hover,
.consent-banner button.consent-decline:focus-visible {
  border-color: var(--spot);
  color: var(--spot);
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  /* Deliberate exemption (owner decision 2026-07-13): the logo drift keeps
     running under reduced motion — slow, gentle, non-essential. The class
     selector outranks the * blanket above, both being !important. */
  .hp-logo-track {
    animation: hp-logo-scroll 45s linear infinite !important;
  }

  .post-card:hover,
  .post-card:focus-within,
  .hp-btn:hover,
  .hp-btn:focus-visible {
    transform: none !important;
  }
}
