/* ============================================================
   Jordan J. Caron — personal site
   Custom layout on top of Marketing Well Core tokens.
   Only layout/composition lives here; all colour, type and
   spacing come from the design-system token variables.
   ============================================================ */

body { overflow-x: hidden; }

/* Chromium mis-measures `text-wrap: balance` height during webfont swap with
   Cormorant Garamond, leaving multi-line headings painting over the next
   element. Force normal wrapping on every display heading so the box always
   grows to fit its paint. */
.jjc-app :is(h1, h2, h3, h4),
.jjc-app .mwc-secthead__title,
.jjc-app .jjc-venture__name,
.jjc-app .jjc-postcard__title,
.jjc-app .jjc-featured__title,
.jjc-app .jjc-mix__t { text-wrap: normal; }
/* Content is statically visible. No opacity fade of any kind — every
   transition/animation FROM opacity:0 can stall at 0 in a throttled/backgrounded
   iframe and trap the whole page invisible. Visibility must never depend on a
   timeline advancing. */
.jjc-app { opacity: 1; }
/* Headline emphasis: use the theme's readable accent on light backgrounds
   (teal's mint is too pale for cream); keep the bright accent on dark bands. */
.jjc-app :is(h1, h2, h3) em { color: var(--eyebrow); }
.jjc-app .jjc-band :is(h1, h2, h3) em { color: var(--accent); }

/* visually-hidden */
.jjc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------- Header ---------------- */
.jjc-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-page) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.jjc-header__inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.jjc-wordmark {
  font-family: var(--font-display); font-size: 25px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--brand-strong); white-space: nowrap;
}
.jjc-wordmark em { font-style: italic; color: var(--accent); }
.jjc-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.jjc-nav a {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  color: var(--text-soft); position: relative; padding: 4px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.jjc-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--accent); transition: right var(--dur-base) var(--ease-out);
}
.jjc-nav a:hover { color: var(--brand-strong); }
.jjc-nav a:hover::after, .jjc-nav a[aria-current="page"]::after { right: 0; }
.jjc-nav a[aria-current="page"] { color: var(--brand-strong); }
.jjc-header .mwc-btn { margin-left: 4px; }
.jjc-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  margin-left: auto; color: var(--brand-strong); }
.jjc-burger svg { width: 24px; height: 24px; }

@media (max-width: 760px) {
  .jjc-nav, .jjc-header .mwc-btn--header { display: none; }
  .jjc-burger { display: block; }
  .jjc-nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--bg-page); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
  }
  .jjc-nav.is-open a { padding: 10px 0; font-size: 17px; }
}

/* ---------------- Hero ---------------- */
.jjc-hero { position: relative; padding-top: 56px; }
.jjc-hero__grid {
  max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.jjc-hero__copy { max-width: 560px; }
.jjc-hero h1 { font-size: var(--display-xl); margin: 18px 0 0; text-wrap: normal; }
.jjc-hero .jjc-hero__lead { margin-top: 24px; max-width: 30em; }
.jjc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.jjc-hero__media { position: relative; }
.jjc-hero__media image-slot {
  position: relative; z-index: 2; width: 100%; height: 520px;
  box-shadow: var(--shadow-lg); display: block;
}
.jjc-blob {
  position: absolute; z-index: 1; inset: auto; width: 78%; aspect-ratio: 1;
  right: -7%; top: -8%;
  background: radial-gradient(circle at 35% 30%,
     color-mix(in srgb, var(--accent) 42%, transparent),
     color-mix(in srgb, var(--accent) 10%, transparent) 70%);
  border-radius: 49% 51% 43% 57% / 52% 44% 56% 48%;
  filter: blur(2px);
}
.jjc-blob--brand {
  left: -9%; right: auto; bottom: -10%; top: auto; width: 52%;
  background: radial-gradient(circle at 50% 50%,
     color-mix(in srgb, var(--brand) 24%, transparent),
     color-mix(in srgb, var(--brand) 4%, transparent) 70%);
}
.jjc-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* full-bleed hero variant (tweak) */
.jjc-hero--full .jjc-hero__grid { grid-template-columns: 1fr; gap: 0; max-width: none; padding: 0; }
.jjc-hero--full .jjc-hero__media { order: -1; }
.jjc-hero--full .jjc-hero__media image-slot {
  height: 74vh; min-height: 480px; border-radius: 0; box-shadow: none;
}
.jjc-hero--full .jjc-blob { display: none; }
.jjc-hero--full .jjc-hero__copy {
  max-width: var(--container); margin: -120px auto 0; position: relative; z-index: 3;
  padding: 44px 48px; background: var(--bg-page);
  border-radius: var(--radius-card); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.jjc-hero--full .jjc-hero__copy { width: calc(100% - 2 * var(--gutter)); }

@media (max-width: 900px) {
  .jjc-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .jjc-hero__media { order: -1; }
  .jjc-hero__media image-slot { height: 60vw; max-height: 460px; }
  .jjc-hero h1 { font-size: clamp(38px, 9vw, 56px); }
}

/* ---------------- Generic section heading row ---------------- */
.jjc-headrow {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  flex-wrap: wrap;
}
.jjc-headrow .mwc-secthead { margin: 0; }

/* ---------------- Ventures grid ---------------- */
.jjc-ventures { max-width: var(--container); margin: 40px auto 0; padding: 0 var(--gutter); }
.jjc-ventures-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}
.jjc-venture { display: flex; flex-direction: column; height: 100%; }
.jjc-venture__top { display: flex; align-items: center; gap: 16px; }
.jjc-venture .mwc-medallion { margin-bottom: 0; }
.jjc-venture__name {
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  color: var(--brand-strong); line-height: 1.15;
}
.jjc-venture__meta {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--font-body); font-size: 12px; letter-spacing: .04em;
  color: var(--text-muted); text-transform: uppercase;
}
.jjc-venture__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.jjc-venture__desc { margin-top: 16px; color: var(--text-soft); font-size: 15.5px; flex: 1; }
.jjc-venture__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------------- About ---------------- */
.jjc-about__grid {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start;
}
.jjc-about__media { position: relative; }
.jjc-about__media image-slot { width: 100%; height: 460px; box-shadow: var(--shadow-md); }
.jjc-about__media .jjc-stamp {
  position: absolute; right: -18px; bottom: 28px; z-index: 3;
  background: var(--accent); color: var(--text-on-accent);
  font-family: var(--font-display); font-style: italic; font-size: 20px;
  padding: 14px 22px; border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
}
.jjc-about__body p { margin-top: 18px; color: var(--text-soft); }
.jjc-about__body p:first-of-type { margin-top: 22px; }
.jjc-about__body .jjc-lede { color: var(--text); font-size: var(--text-xl); }
@media (max-width: 860px) {
  .jjc-about__grid { grid-template-columns: 1fr; gap: 36px; }
  .jjc-about__media image-slot { height: 380px; }
}

/* ---------------- Dark feature band ---------------- */
.jjc-band { background: var(--brand-deep); color: var(--text-on-brand); position: relative; overflow: hidden; }
.jjc-band__inner {
  max-width: var(--container); margin: 0 auto; padding: var(--section-y) var(--gutter);
  position: relative; z-index: 2;
}
.jjc-band h2, .jjc-band h3 { color: #fff; }
.jjc-band .mwc-eyebrow { color: var(--accent); }
.jjc-band p { color: color-mix(in srgb, #fff 78%, transparent); }
/* topographic contour ornament */
.jjc-band__topo {
  position: absolute; inset: 0; z-index: 1; opacity: .14; pointer-events: none;
  color: var(--accent);
}
.jjc-band--split .jjc-band__inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.jjc-band__media image-slot { width: 100%; height: 300px; }
@media (max-width: 820px) { .jjc-band--split .jjc-band__inner { grid-template-columns: 1fr; gap: 32px; } }

.jjc-mixrow { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.jjc-mix {
  display: flex; align-items: center; gap: 16px; padding: 16px 4px;
  border-top: 1px solid color-mix(in srgb, #fff 14%, transparent);
}
.jjc-mix:last-child { border-bottom: 1px solid color-mix(in srgb, #fff 14%, transparent); }
.jjc-mix__play {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 90%, transparent); color: var(--text-on-accent);
}
.jjc-mix__play svg { width: 17px; height: 17px; }
.jjc-mix__t { font-family: var(--font-display); font-size: 21px; color: #fff; }
.jjc-mix__d { font-family: var(--font-body); font-size: 13px; color: color-mix(in srgb,#fff 60%, transparent); margin-left: auto; }

/* ---------------- Blog cards ---------------- */
.jjc-postgrid {
  max-width: var(--container); margin: 40px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px;
}
.jjc-postcard { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.jjc-postcard image-slot { width: 100%; height: 210px; display: block; }
.jjc-postcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.jjc-postcard__cat {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--eyebrow);
}
.jjc-postcard__title {
  font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.2;
  color: var(--brand-strong); margin: 10px 0 0; transition: color var(--dur-fast) var(--ease-out);
}
.jjc-postcard:hover .jjc-postcard__title { color: var(--accent-strong); }
.jjc-postcard__excerpt { margin-top: 10px; color: var(--text-soft); font-size: 14.5px; flex: 1; }
.jjc-postcard__date { margin-top: 18px; font-size: 12.5px; color: var(--text-muted); letter-spacing: .03em; }

/* featured post (magazine) */
.jjc-featured {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.jjc-featured image-slot { width: 100%; height: 420px; box-shadow: var(--shadow-md); }
.jjc-featured__title { font-size: var(--display-lg); margin: 14px 0 0; }
.jjc-featured__title a { transition: color var(--dur-fast) var(--ease-out); }
.jjc-featured__title a:hover { color: var(--accent-strong); }
.jjc-featured__excerpt { margin-top: 18px; color: var(--text-soft); font-size: var(--text-lg); }
.jjc-featured__meta { margin-top: 22px; }
@media (max-width: 880px) {
  .jjc-featured { grid-template-columns: 1fr; gap: 28px; }
  .jjc-featured image-slot { height: 300px; }
}

/* category filter chips */
.jjc-filter { display: flex; flex-wrap: wrap; gap: 10px; max-width: var(--container);
  margin: 30px auto 0; padding: 0 var(--gutter); }

/* ---------------- Blog post article ---------------- */
.jjc-posthero {
  max-width: 800px; margin: 0 auto; padding: 64px var(--gutter) 0; text-align: center;
}
.jjc-posthero h1 { font-size: var(--display-lg); margin: 16px 0 0; }
.jjc-postmeta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px;
  margin-top: 24px; font-family: var(--font-body); font-size: 14px; color: var(--text-muted);
}
.jjc-postmeta > span { white-space: nowrap; }
.jjc-posthero .mwc-linkarrow { white-space: nowrap; }
.jjc-postmeta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.jjc-postcover {
  max-width: var(--container); margin: 48px auto 0; padding: 0 var(--gutter);
}
.jjc-postcover image-slot { width: 100%; height: 460px; box-shadow: var(--shadow-md); }

.post-body {
  max-width: 720px; margin: 0 auto; padding: 56px var(--gutter) 0;
  font-family: var(--font-body); font-size: 18px; line-height: var(--leading-relaxed);
  color: var(--text);
}
.post-body > * + * { margin-top: 26px; }
.post-body h2 {
  font-family: var(--font-display); font-size: var(--display-sm); font-weight: 600;
  color: var(--brand-strong); margin-top: 52px; line-height: 1.2;
}
.post-body h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--brand-strong); margin-top: 40px;
}
.post-body p { color: var(--text); }
.post-body a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.post-body a:hover { text-decoration-color: var(--accent); }
.post-body strong { font-weight: 700; color: var(--brand-strong); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-top: 8px; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 26px; margin-left: 0;
  font-family: var(--font-display); font-style: italic; font-size: 26px;
  line-height: 1.4; color: var(--brand-strong);
}
.post-body figure { margin: 40px 0; }
.post-body figure img, .post-body > img { width: 100%; border-radius: var(--radius-card); display: block; }
.post-body figcaption {
  margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--text-muted);
  font-family: var(--font-body);
}
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Flickr / generic embeds — keep responsive whatever WordPress drops in */
.post-body iframe, .post-body .flickr-embed, .post-body [data-flickr-embed] {
  max-width: 100%; margin-inline: auto; border-radius: var(--radius-card);
}
.post-body iframe { width: 100%; border: 0; display: block; }
.post-body [data-flickr-embed] img { width: 100%; height: auto; border-radius: var(--radius-card); display: block; }
/* a tidy frame for the classic Flickr album thumbnail strip */
.post-body .flickr-embed { display: block; overflow: hidden; }
.flickr-embed__demo {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-card);
  background: var(--surface-inset); padding: 28px; text-align: center; color: var(--text-muted);
  font-family: var(--font-body); font-size: 14px;
}
.flickr-embed__demo strong { display: block; font-family: var(--font-display); font-size: 20px;
  color: var(--brand-strong); font-weight: 600; margin-bottom: 6px; }

.jjc-postnav {
  max-width: 720px; margin: 64px auto 0; padding: 32px var(--gutter) 0;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}

/* ---------------- Contact band ---------------- */
.jjc-contact__inner {
  max-width: 760px; margin: 0 auto; padding: var(--section-y) var(--gutter); text-align: center;
  position: relative; z-index: 2;
}
.jjc-contact h2 { color: #fff; font-size: var(--display-lg); }
.jjc-contact__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ---------------- Footer ---------------- */
.jjc-footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.jjc-footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 40px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap;
}
.jjc-footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.jjc-footer__links a { font-size: 14.5px; color: var(--text-soft); }
.jjc-footer__links a:hover { color: var(--accent-strong); }
.jjc-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.jjc-footer__social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--brand); transition: all var(--dur-fast) var(--ease-out);
}
.jjc-footer__social a:hover { background: var(--brand); color: var(--text-on-brand); border-color: var(--brand); transform: translateY(-2px); }
.jjc-footer__social svg { width: 18px; height: 18px; }
.jjc-footer__copy { width: 100%; border-top: 1px solid var(--line); margin-top: 8px;
  padding: 22px var(--gutter); text-align: center; font-size: 13px; color: var(--text-muted); }
.jjc-footer__copy .max { max-width: var(--container); margin: 0 auto; }

/* entrance — handled by the .jjc-app fade (class-triggered transition).
   No opacity-hiding keyframes: load-time CSS animations can be paused while
   the page is backgrounded, which would leave content invisible. */
.jjc-rise { will-change: auto; }
