/*
Theme Name: Julia
Theme URI: https://mattdesiena.com
Author: Matt DeSiena
Author URI: https://mattdesiena.com
Description: A typographically rich block theme for longform writing, notes, and portfolio pages. Named after my daughter. Designed for writers who care about craft.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: julia
Tags: blog, portfolio, editor-style, full-site-editing, block-patterns, custom-colors, custom-fonts, wide-blocks
*/


/* ═══════════════════════════════════════════
   FOUNDATIONS
   Custom properties that extend theme.json.
   theme.json handles colors, fonts, spacing.
   These are for values WP doesn't natively map.
   ═══════════════════════════════════════════ */

:root {
  --julia-measure: 70ch;
  --julia-measure-wide: 80ch;
  --julia-page-width: 960px;
  --julia-page-wide: 1200px;
  --julia-font-pull: var(--wp--preset--font-family--body);
  --julia-font-mono: var(--wp--preset--font-family--mono);

  /* z-index scale */
  --z-header: 100;
  --z-oc-overlay: 200;
  --z-oc-panel: 201;
  --z-grain: 10000;
}


/* ═══════════════════════════════════════════
   EDITOR STYLES
   Post editor doesn't have our template wrappers,
   so we style .editor-styles-wrapper directly.
   add_editor_style() auto-scopes these.
   ═══════════════════════════════════════════ */

.editor-styles-wrapper {
  background: var(--wp--preset--color--paper) !important;
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--body);
  font-size: 21px;
  line-height: 1.65;
  max-width: var(--julia-measure);
  margin: 0 auto;
  padding: 3rem;
}

.editor-styles-wrapper img {
  max-width: 100%;
  height: auto;
}

.editor-styles-wrapper a {
  color: var(--wp--preset--color--accent);
}

.editor-styles-wrapper a:hover {
  color: var(--wp--preset--color--accent-dark);
}

.editor-styles-wrapper .wp-block-list {
  margin: 1.5rem 0;
  padding-left: 1.5em;
}

.editor-styles-wrapper .wp-block-list li {
  margin-bottom: 1.25em;
}

.editor-styles-wrapper .wp-block-list li:last-child {
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════
   WORDPRESS BLOCK LAYOUT OVERRIDES
   WP generates layout CSS from template block
   attributes (contentSize, wideSize, constrained).
   These rules handle spacing, margins, and resets
   that WP's layout system doesn't cover.
   ═══════════════════════════════════════════ */

/* Reset margins WP adds to paragraphs and headings inside our groups */
.wp-block-group p,
.wp-block-group h1,
.wp-block-group h2,
.wp-block-group h3,
.wp-block-group h4 {
  margin-top: 0;
}

/* Header — merge layout + visual into the SITE HEADER section below */

/* Site title block */
.julia-header .wp-block-site-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.julia-header .wp-block-site-title a {
  color: var(--wp--preset--color--ink-soft);
  text-decoration: none;
}

/* Navigation block */
.julia-header .wp-block-navigation {
  display: flex;
  margin: 0;
}

/* Statement — layout defined in FRONT PAGE section below */

/* Recent — layout defined in FRONT PAGE section below */

/* Single post main container — horizontal padding so constrained layout doesn't hit viewport edges */
.julia-main {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Page hero — layout defined in PAGE HERO section below */

/* Footer — main styles in SITE FOOTER section below */

/* Page body */
.julia-page-body {
  max-width: var(--julia-page-width);
  margin: 0 auto;
  padding: 2rem 3rem;
}

.julia-page-body > .wp-block-post-content > * + * {
  margin-top: 2.5rem;
}

/* Page section — layout defined in PAGE SECTIONS section below */

/* Notes feed — layout defined in NOTES section below */

/* Note */
.julia-note {
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--wp--preset--color--ink-ghost);
}

/* Post title — inherit our styling */
.julia-article-header .wp-block-post-title {
  margin-bottom: 0;
}

/* Post excerpt — inherit our styling */
.julia-article-header .wp-block-post-excerpt,
.julia-page-hero .wp-block-post-excerpt {
  margin-bottom: 0;
}

.julia-article-header .wp-block-post-excerpt__excerpt,
.julia-page-hero .wp-block-post-excerpt__excerpt {
  margin-bottom: 0;
}

/* Post terms (category) — controlled spacing to title */
.julia-article-header .wp-block-post-terms {
  margin-bottom: 2rem;
}

/* Post date in meta — remove extra margins */
.julia-article-meta .wp-block-post-date {
  margin: 0;
}

/* Post author name — remove extra margins */
.julia-article-meta .wp-block-post-author-name {
  margin: 0;
}

/* Featured image — fill container */
.julia-hero-image .wp-block-post-featured-image {
  margin: 0;
}

.julia-hero-image .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Recent posts query — remove extra spacing from post template */
.wp-block-group.julia-recent .wp-block-post-template {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.julia-recent .wp-block-post-title {
  margin: 0;
}

.julia-recent .wp-block-post-title a {
  text-decoration: none;
  color: inherit;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(17px, 2.25vw, 23px);
  font-weight: 600;
  line-height: 1.2;
}

.julia-recent .wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent);
}

.julia-recent .wp-block-post-template li {
  margin: 0;
  padding: 0;
}

/* Recent items — centered short separator */
.julia-recent__item {
  position: relative;
}

.julia-recent__item::before {
  content: "";
  display: block;
  width: 40px;
  height: 0.5px;
  background: var(--wp--preset--color--ink-ghost, #B8AFA5);
  margin: 0 auto;
}

.julia-recent__item:first-child::before {
  display: none;
}

/* Recent link row */
.julia-recent__link {
  padding: 0.75rem 0;
  gap: 1.5rem;
}

/* Recent post excerpt */
.julia-recent .wp-block-post-excerpt {
  margin: 0;
}

.julia-recent .wp-block-post-excerpt__excerpt {
  font-family: var(--wp--preset--font-family--body);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: var(--wp--preset--color--ink-faded);
  max-width: 55ch;
  margin: 0;
}

/* Recent date */
.julia-recent .wp-block-post-date {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  color: var(--wp--preset--color--ink-ghost);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

/* Post content — WP constrained layout handles width + centering */


/* ═══════════════════════════════════════════
   RESET & GLOBALS
   ═══════════════════════════════════════════ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "onum" 1, "pnum" 1;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  hanging-punctuation: first last;
  overflow-x: hidden;
}

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


/* ═══════════════════════════════════════════
   PAPER GRAIN TEXTURE
   ═══════════════════════════════════════════ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Disable grain on dark themes */
.is-style-variation-dark body::before,
.is-style-variation-grey-fox body::before {
  display: none;
}


/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}


/* ═══════════════════════════════════════════
   BLOCK STYLES — GROUP
   ═══════════════════════════════════════════ */

.wp-block-group.is-style-warm-band {
  background: var(--wp--preset--color--base-2);
}


/* ═══════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════ */

.wp-block-group.julia-header {
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 3rem;
  gap: 0;
  z-index: var(--z-header);
  background: var(--wp--preset--color--base-2, #EDE6DC);
  animation: fadeIn 0.8s ease both;
}

.julia-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
}

/* Left: Logo */
.julia-header__logo {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.265rem, 2.3vw, 1.61rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent, #B5634B);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.julia-header__logo:hover {
  opacity: 0.75;
  color: var(--wp--preset--color--accent, #B5634B);
}

.julia-header__logo-dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background-color: var(--wp--preset--color--accent, #B5634B);
  margin-left: 0.04em;
  vertical-align: baseline;
}

/* Center: Nav links */
.julia-header__nav {
  justify-self: center;
}

.julia-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.julia-header__nav-list li + li::before {
  content: "/";
  font-family: var(--wp--preset--font-family--display);
  font-size: 12px;
  font-weight: 300;
  color: var(--wp--preset--color--ink-ghost, #B8AFA5);
  margin: 0 0.15em;
}

.julia-header__nav-list a {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  line-height: 1;
  color: var(--wp--preset--color--ink-faded, #8A8279);
  text-decoration: none;
  padding: 8px 16px;
  transition: color 0.3s ease;
}

.julia-header__nav-list a:hover,
.julia-header__nav-list a.is-active {
  color: var(--wp--preset--color--accent, #B5634B);
}

/* Right: Hamburger — aligned with content right edge */
.julia-header__hamburger {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
}


/* ═══════════════════════════════════════════
   OFF-CANVAS MENU
   ═══════════════════════════════════════════ */

/* Trigger button (hamburger) */
.julia-oc-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--ink-soft, #3D3832);
  transition: color 0.3s ease;
}

.julia-oc-trigger:hover {
  color: var(--wp--preset--color--accent, #B5634B);
}

/* Overlay */
.julia-oc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 18, 16, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-oc-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.julia-oc-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Panel — intentionally hardcoded dark regardless of style variation */
.julia-oc-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--wp--preset--color--ink);
  z-index: var(--z-oc-panel);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  overflow-y: auto;
}

.julia-oc-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Close button */
.julia-oc-close {
  background: transparent;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  padding: 8px;
  margin-bottom: 3rem;
  color: var(--wp--preset--color--paper);
  transition: color 0.3s ease;
}

.julia-oc-close:hover {
  color: var(--wp--preset--color--accent, #B5634B);
}

/* Nav links */
.julia-oc-nav {
  display: flex;
  flex-direction: column;
}

.julia-oc-nav__link {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--paper);
  text-decoration: none;
  padding: 0.6em 0;
  border-bottom: 1px solid rgba(246, 241, 235, 0.1);
  transition-property: color, transform, opacity;
  transition-duration: 0.3s, 0.6s, 0.6s;
  transition-timing-function: ease, cubic-bezier(0.16, 1, 0.3, 1), cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0s, 0s, 0s;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transform: translateY(30px);
  opacity: 0;
}

.julia-oc-panel.is-open .julia-oc-nav__link {
  transform: translateY(0);
  opacity: 1;
}

.julia-oc-panel.is-open .julia-oc-nav__link:nth-child(1) { transition-delay: 0s, 0.1s, 0.1s; }
.julia-oc-panel.is-open .julia-oc-nav__link:nth-child(2) { transition-delay: 0s, 0.15s, 0.15s; }
.julia-oc-panel.is-open .julia-oc-nav__link:nth-child(3) { transition-delay: 0s, 0.2s, 0.2s; }
.julia-oc-panel.is-open .julia-oc-nav__link:nth-child(4) { transition-delay: 0s, 0.25s, 0.25s; }
.julia-oc-panel.is-open .julia-oc-nav__link:nth-child(5) { transition-delay: 0s, 0.3s, 0.3s; }
.julia-oc-panel.is-open .julia-oc-nav__link:nth-child(6) { transition-delay: 0s, 0.35s, 0.35s; }
.julia-oc-panel.is-open .julia-oc-nav__link:nth-child(7) { transition-delay: 0s, 0.4s, 0.4s; }

.julia-oc-nav__link:last-child {
  border-bottom: none;
}

.julia-oc-nav__icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.julia-oc-nav__link:hover {
  color: var(--wp--preset--color--accent, #B5634B);
}

/* Footer / CTA */
.julia-oc-footer {
  margin-top: auto;
  padding-top: 3rem;
  border-top: 0.5px solid var(--wp--preset--color--ink-ghost, #B8AFA5);
}

.julia-oc-footer__cta {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent, #B5634B);
  text-decoration: none;
  transition: color 0.3s ease;
}

.julia-oc-footer__cta:hover {
  color: var(--wp--preset--color--ink, #141210);
}



/* ═══════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════ */

.julia-footer-wrap {
  position: relative;
}

/* Angled SVG divider — ink color, overlaps content edge */
.julia-footer-divider {
  position: relative;
  margin-top: -1px;
  line-height: 0;
  color: var(--wp--preset--color--ink);
}

.julia-footer-divider svg {
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 80px);
}

/* Footer body — ink bg, light text */
.julia-footer {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
  padding: 4rem 3rem 3rem;
  font-family: var(--wp--preset--font-family--body);
  margin-top: -1px;
}

/* Statement headline */
.julia-footer__statement {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.julia-footer__headline {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--wp--preset--color--paper); /* fallback for browsers without -webkit-text-stroke */
  margin: 0;
  cursor: default;
}

/* Outlined text effect — WebKit/Blink only (no Firefox equivalent) */
@supports (-webkit-text-stroke: 1px black) {
  .julia-footer__headline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--wp--preset--color--paper);
    transition: -webkit-text-stroke-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .julia-footer__headline:hover {
    -webkit-text-stroke-color: var(--wp--preset--color--accent, #B5634B);
  }
}

/* Column grid */
.julia-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(246, 241, 235, 0.1);
  gap: 3rem;
}

.julia-footer__col {
  min-width: 140px;
}

.julia-footer__col--about {
  max-width: 360px;
  flex: 1 1 300px;
}

/* Column labels */
.julia-footer__label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-faded);
  margin-bottom: 1.25rem;
}

/* About text */
.julia-footer__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--wp--preset--color--ink-ghost);
  font-weight: 300;
  margin: 0;
}

/* Footer links */
.julia-footer__link {
  margin-top: 0;
  margin-bottom: 0;
}

.julia-footer__link a {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--wp--preset--color--paper);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.julia-footer__link a:hover {
  opacity: 1;
}

/* Bottom bar — copyright */
.julia-footer__bottom {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
}

.julia-footer__copy {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--ink-faded);
  margin: 0;
}


/* ═══════════════════════════════════════════
   FRONT PAGE — STATEMENT
   ═══════════════════════════════════════════ */

.julia-statement {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8rem 3rem 5rem;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.15s;
}

.julia-statement__text {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--wp--preset--color--ink);
  text-wrap: balance;
}

.julia-statement__text em,
.julia-statement__light {
  font-style: normal;
  font-weight: 300;
  color: var(--wp--preset--color--ink-soft);
}

.julia-statement__coda {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--wp--preset--color--ink-faded);
  letter-spacing: 0.02em;
  margin-top: 3rem;
  line-height: 1.6;
  max-width: 48ch;
}

.julia-statement__coda a {
  color: var(--wp--preset--color--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--accent-light);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

.julia-statement__coda a:hover {
  color: var(--wp--preset--color--accent);
  text-decoration-color: var(--wp--preset--color--accent);
}


/* ═══════════════════════════════════════════
   FRONT PAGE — RECENT POSTS
   ═══════════════════════════════════════════ */

.julia-recent {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 3rem 8rem;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.3s;
}

.julia-recent__label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: 3rem;
}

.julia-recent__link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
  text-decoration: none;
  transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.julia-recent__link:hover {
  padding-left: 0.4em;
}

.julia-recent__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--wp--preset--color--ink);
  transition: color 0.2s ease;
  flex: 1;
}

.julia-recent__link:hover .julia-recent__title {
  color: var(--wp--preset--color--accent);
}

.julia-recent__meta {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  color: var(--wp--preset--color--ink-ghost);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.julia-recent__desc {
  display: none;
}

@media (min-width: 640px) {
  .julia-recent__link {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.3em 1.5rem;
    align-items: center;
  }

  .julia-recent__title {
    grid-column: 1;
    grid-row: 1;
  }

  .julia-recent__meta {
    grid-column: 2;
    grid-row: 1;
  }

  .julia-recent__desc {
    display: block;
    grid-column: 1;
    grid-row: 2;
    font-family: var(--wp--preset--font-family--body);
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
    color: var(--wp--preset--color--ink-faded);
    max-width: 55ch;
  }
}


/* ═══════════════════════════════════════════
   QUERY PAGINATION
   ═══════════════════════════════════════════ */

.julia-recent .wp-block-query-pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  position: relative;
  display: flex;
  justify-content: space-between;
}

.julia-recent .wp-block-query-pagination::before {
  content: "";
  display: block;
  width: 40px;
  height: 0.5px;
  background: var(--wp--preset--color--ink-ghost, #B8AFA5);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.julia-recent .wp-block-query-pagination a {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wp--preset--color--accent, #B5634B);
  transition: opacity 0.3s ease;
}

.julia-recent .wp-block-query-pagination a:hover {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   PAGE HERO
   ═══════════════════════════════════════════ */

.julia-page-hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.julia-page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 8rem 3rem 4rem;
}

.julia-page-hero__label {
  display: inline-block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: 1rem;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.1s;
}

.julia-page-hero__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.2s;
}

.julia-page-hero__subtitle {
  font-family: var(--wp--preset--font-family--body);
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--wp--preset--color--ink-soft);
  max-width: 55ch;
  margin: 0 auto;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.3s;
}


/* ═══════════════════════════════════════════
   ARTICLE HEADER (single posts)
   ═══════════════════════════════════════════ */

.julia-article-header {
  padding-top: 8rem;
  margin-bottom: 3rem;
  text-align: center;
  overflow: hidden;
}

.julia-article-header__category {
  display: inline-block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.1s;
}

.julia-article-header__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(36px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 5rem;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.2s;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--wp--preset--color--ink);
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.julia-article-header__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--wp--preset--color--accent);
  margin: 2.5rem auto 2.5rem;
}

.julia-article-header__title--long {
  font-size: clamp(32px, 6.5vw, 80px);
  -webkit-text-stroke: 2px var(--wp--preset--color--ink);
  letter-spacing: -0.01em;
}

.julia-article-header__subtitle {
  font-family: var(--wp--preset--font-family--body);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--wp--preset--color--ink-soft);
  max-width: 55ch;
  margin: 0 auto 4rem;
  text-align: center;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.35s;
}


/* ═══════════════════════════════════════════
   HERO IMAGE (featured image on single)
   ═══════════════════════════════════════════ */

.julia-hero-image {
  animation: fadeIn 1s ease both;
  animation-delay: 0.6s;
}

.julia-hero-image__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--wp--preset--color--paper-dark);
}

.julia-hero-image__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.julia-hero-image__caption {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
}


/* ═══════════════════════════════════════════
   ARTICLE META BAR
   ═══════════════════════════════════════════ */

.julia-article-meta {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 5;
  margin-top: -40px;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.julia-article-meta__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--wp--preset--color--paper);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--ink-faded);
}

.julia-article-meta__author {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--wp--preset--color--ink-soft);
  font-weight: 500;
}

.julia-article-meta__sep {
  color: var(--wp--preset--color--ink-ghost);
  font-weight: 300;
  margin: 0;
}

.julia-article-meta__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wp--preset--color--ink-ghost), var(--wp--preset--color--ink-faded));
  flex-shrink: 0;
}

.julia-article-meta__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}


/* ═══════════════════════════════════════════
   ARTICLE BODY
   ═══════════════════════════════════════════ */

.julia-article-body {
  text-align: left;
  color: var(--wp--preset--color--ink-soft);
}

.julia-article-body p {
  margin-bottom: 1.4em;
  text-wrap: pretty;
  font-weight: 400;
  hyphens: auto;
}

/* Images in article — constrain to content width */
.julia-article-body img {
  max-width: 100%;
  height: auto;
}

/* Drop cap */
.julia-article-body > p:first-of-type::first-letter,
.has-drop-cap:not(:focus)::first-letter {
  font-family: var(--wp--preset--font-family--display);
  font-size: 3.8em;
  float: left;
  line-height: 0.82;
  margin-right: 0.06em;
  margin-top: 0.06em;
  color: var(--wp--preset--color--accent);
  font-weight: 700;
}

/* Headings in article */
.julia-article-body h2 {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--wp--preset--color--ink);
  text-wrap: balance;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 5rem;
  margin-bottom: 1.5rem;
}

.julia-article-body h3 {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* Links in article */
.julia-article-body a {
  color: var(--wp--preset--color--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--accent-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  background: var(--wp--preset--color--accent-wash);
  border-radius: 2px;
  padding: 0 3px;
  transition: background 0.15s, color 0.15s, text-decoration-color 0.15s;
}

.julia-article-body a:hover {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--paper);
  text-decoration-color: transparent;
}

/* Blockquote */
.julia-article-body blockquote {
  border-left: 2px solid var(--wp--preset--color--accent);
  margin: 3rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--wp--preset--color--ink-faded);
}

.julia-article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Lists */
.julia-article-body ul,
.julia-article-body ol,
.julia-article-body .wp-block-list {
  margin: 1.5rem 0;
  padding-left: 1.5em;
}

.julia-article-body li,
.julia-article-body .wp-block-list li {
  margin-bottom: 1.25em;
}

.julia-article-body li:last-child,
.julia-article-body .wp-block-list li:last-child {
  margin-bottom: 0;
}

.julia-article-body li p + p {
  margin-top: 1em;
}

/* Code */
.julia-article-body code {
  font-family: var(--julia-font-mono);
  font-size: 0.85em;
  background: var(--wp--preset--color--paper-dark);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--wp--preset--color--ink-soft);
}

.julia-article-body pre {
  background: var(--wp--preset--color--paper-dark);
  color: var(--wp--preset--color--ink-soft);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 3rem 0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
}

.julia-article-body pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-ghost);
}

.julia-article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* Footnote superscripts */
.julia-article-body sup {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
}

.julia-article-body sup a {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  font-weight: 600;
}

.julia-article-body sup a:hover {
  text-decoration: underline;
}


/* ═══════════════════════════════════════════
   PULL QUOTE — Block Style
   Applied to core/pullquote
   ═══════════════════════════════════════════ */

.wp-block-pullquote.is-style-julia {
  position: relative;
  max-width: var(--julia-measure-wide);
  margin: 5rem auto;
  padding: 3rem 0;
  text-align: center;
  border: none;
}

.wp-block-pullquote.is-style-julia::before,
.wp-block-pullquote.is-style-julia::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--wp--preset--color--accent);
  margin: 0 auto;
  opacity: 0.4;
}

.wp-block-pullquote.is-style-julia::before {
  margin-bottom: 3rem;
}

.wp-block-pullquote.is-style-julia::after {
  margin-top: 3rem;
}

.wp-block-pullquote.is-style-julia blockquote {
  border: none;
  padding: 0;
  margin: 0;
}

.wp-block-pullquote.is-style-julia blockquote p {
  font-family: var(--julia-font-pull);
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--wp--preset--color--ink-soft);
  max-width: 50ch;
  margin: 0 auto;
}

.wp-block-pullquote.is-style-julia cite {
  display: block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-faded);
  margin-top: 1.5rem;
}


/* ═══════════════════════════════════════════
   AUTHOR BIO — Block Style
   Applied to a Group block with class
   ═══════════════════════════════════════════ */

.julia-author-bio {
  max-width: calc(var(--julia-measure) + 6rem);
  margin: 5rem auto 3rem;
  padding: 3rem;
  background: var(--wp--preset--color--paper-dark);
  border-radius: 6px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.julia-author-bio__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wp--preset--color--accent-light), var(--wp--preset--color--accent));
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.julia-author-bio__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Show only the first letter of author name as avatar initial */
.julia-author-bio__initial {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--wp--preset--color--paper);
  overflow: hidden;
  text-indent: 0;
  display: block;
  width: 1ch;
  white-space: nowrap;
}

.julia-author-bio__content {
  flex: 1;
}

.julia-author-bio__name {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  margin-bottom: 4px;
}

.julia-author-bio__text {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--wp--preset--color--ink-soft);
}

.julia-author-bio__links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.julia-author-bio__links a {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.julia-author-bio__links a:hover {
  color: var(--wp--preset--color--ink);
}

.julia-author-bio__sep {
  color: var(--wp--preset--color--ink-ghost, #B8AFA5);
}


/* ═══════════════════════════════════════════
   BLOCK STYLES — Post Terms
   "Label" = uppercase accent text (for headers)
   "Pills" = rounded pill badges
   ═══════════════════════════════════════════ */

/* Label style — small uppercase accent text */
.wp-block-post-terms.is-style-label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}

.wp-block-post-terms.is-style-label a {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
}

.wp-block-post-terms.is-style-label a:hover {
  color: var(--wp--preset--color--ink);
}

/* Pills style — rounded pill badges */
.wp-block-post-terms.is-style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.wp-block-post-terms.is-style-pills a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--wp--preset--color--ink-ghost);
  border-radius: 100px;
  color: var(--wp--preset--color--ink-faded);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.wp-block-post-terms.is-style-pills a:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}


/* ═══════════════════════════════════════════
   SECTION BREAK
   ═══════════════════════════════════════════ */

.julia-section-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 5rem auto;
  max-width: var(--julia-measure);
  padding: 0 3rem;
}

.julia-section-break::before,
.julia-section-break::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--wp--preset--color--ink-ghost),
    transparent
  );
}

.julia-section-break__ornament {
  font-family: var(--wp--preset--font-family--display);
  font-size: 18px;
  color: var(--wp--preset--color--accent);
  opacity: 0.5;
  line-height: 1;
}


/* ═══════════════════════════════════════════
   NEXT ARTICLE
   ═══════════════════════════════════════════ */

/* Post navigation — previous / next */
.wp-block-group.julia-post-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--julia-measure-wide);
  margin: 3rem auto 4rem;
  padding: 2rem 3rem 0;
  border-top: 0.5px solid var(--wp--preset--color--ink-ghost, #B8AFA5);
}

.julia-post-nav .wp-block-post-navigation-link {
  flex: 1;
  min-width: 0;
  text-wrap: balance;
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
}

.julia-post-nav .post-navigation-link__label {
  display: block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-ghost, #B8AFA5);
  margin-bottom: 0.4rem;
}

.julia-post-nav .wp-block-post-navigation-link a {
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--wp--preset--color--accent, #B5634B);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.julia-post-nav .wp-block-post-navigation-link a:hover {
  opacity: 0.7;
}

.julia-post-nav__item--next {
  text-align: right;
}


/* Continue Reading — centered section at end of posts */
.julia-next-article {
  max-width: var(--julia-measure-wide);
  margin: 5rem auto 8rem;
  padding: 0 3rem;
  text-align: center;
}

.julia-next-article__rule {
  width: 40px;
  height: 2px;
  background: var(--wp--preset--color--accent);
  margin: 0 auto 3rem;
  opacity: 0.5;
}

.julia-next-article__label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-ghost);
  margin-bottom: 1.5rem;
}

.julia-next-article__link {
  display: block;
  text-decoration: none;
}

.julia-next-article__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--wp--preset--color--ink);
  transition: color 0.3s ease;
  margin-bottom: 0.35em;
}

.julia-next-article__link:hover .julia-next-article__title {
  color: var(--wp--preset--color--accent);
}

.julia-next-article__excerpt {
  font-family: var(--wp--preset--font-family--body);
  font-size: 17px;
  font-style: italic;
  color: var(--wp--preset--color--ink-faded);
  line-height: 1.5;
  max-width: 45ch;
  margin: 0 auto;
}

.julia-next-article__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-top: 1.5rem;
  transition: gap 0.3s ease;
}

.julia-next-article__link:hover .julia-next-article__arrow {
  gap: 0.7em;
}


/* ═══════════════════════════════════════════
   FOOTNOTES
   ═══════════════════════════════════════════ */

.julia-footnotes {
  max-width: var(--julia-measure);
  margin: 5rem auto 3rem;
  padding: 3rem 3rem 0;
  border-top: 0.5px solid var(--wp--preset--color--ink-ghost);
}

.julia-footnotes__title {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-faded);
  margin-bottom: 1.5rem;
}

.julia-footnotes ol {
  list-style: none;
  counter-reset: footnote;
  padding: 0;
  margin: 0;
}

.julia-footnotes li {
  counter-increment: footnote;
  font-family: var(--wp--preset--font-family--body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--wp--preset--color--ink-soft);
  margin-bottom: 1rem;
  padding-left: 2em;
  position: relative;
}

.julia-footnotes li::before {
  content: counter(footnote) ".";
  position: absolute;
  left: 0;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--wp--preset--color--accent);
  top: 2px;
}


/* ═══════════════════════════════════════════
   NOTES FEED
   ═══════════════════════════════════════════ */

.julia-notes-nav {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  gap: 0.4rem;
  margin-bottom: 3rem;
}

.julia-notes-nav__link {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  color: var(--wp--preset--color--ink-faded);
  letter-spacing: 0.04em;
  padding: 0.4em 0.8em;
  border-radius: 3px;
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}

.julia-notes-nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wp--preset--color--ink);
  border-radius: 3px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.julia-notes-nav__link:hover,
.julia-notes-nav__link.is-active {
  color: var(--wp--preset--color--paper);
}

.julia-notes-nav__link:hover::before,
.julia-notes-nav__link.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.julia-notes-feed {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 3rem 8rem;
}

/* Note base */
.julia-note {
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--wp--preset--color--ink-ghost);
}

.julia-note:last-child {
  border-bottom: none;
}

.julia-note__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.julia-note__date {
  font-family: var(--julia-font-mono);
  font-size: 11px;
  color: var(--wp--preset--color--ink-faded);
}

.julia-note__content {
  font-family: var(--wp--preset--font-family--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--wp--preset--color--ink-soft);
  transition: color 0.25s ease;
}

.julia-note:hover .julia-note__content {
  color: var(--wp--preset--color--ink);
}

.julia-note__content a {
  color: var(--wp--preset--color--ink);
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--accent-light);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.3s ease;
}

.julia-note__content a:hover {
  color: var(--wp--preset--color--accent);
  text-decoration-color: var(--wp--preset--color--accent);
}

/* Note featured */
.julia-note--featured {
  background: var(--wp--preset--color--paper-dark);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: none;
  position: relative;
}

.julia-note--featured::before {
  content: "Latest";
  position: absolute;
  top: -0.5em;
  left: 1rem;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--paper);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2em 0.6em;
}

.julia-note--featured .julia-note__content {
  font-size: 20px;
  color: var(--wp--preset--color--ink);
}

/* Note quote */
.julia-note__quote {
  font-family: var(--wp--preset--font-family--body);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
  color: var(--wp--preset--color--ink);
  padding: 1rem 0 1rem 1rem;
  border-left: 3px solid var(--wp--preset--color--accent);
  margin: 0.4rem 0 0.6rem;
  position: relative;
}

.julia-note__quote::before {
  content: "\201C";
  position: absolute;
  top: 0.15rem;
  left: -0.35rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 56px;
  color: var(--wp--preset--color--accent);
  opacity: 0.2;
  line-height: 1;
}

.julia-note__attribution {
  font-family: var(--julia-font-mono);
  font-size: 12px;
  color: var(--wp--preset--color--ink-faded);
}

.julia-note__reaction {
  margin-top: 0.6rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 16px;
  font-style: italic;
  color: var(--wp--preset--color--ink-soft);
}

/* Note link card */
.julia-note__link-card {
  display: flex;
  margin-top: 0.7rem;
  background: var(--wp--preset--color--paper-dark);
  text-decoration: none;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.julia-note__link-card:hover {
  border-color: var(--wp--preset--color--ink-ghost);
}

.julia-note__link-card-accent {
  width: 3px;
  background: var(--wp--preset--color--accent);
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.julia-note__link-card:hover .julia-note__link-card-accent {
  width: 5px;
}

.julia-note__link-card-body {
  padding: 0.65rem 0.85rem;
}

.julia-note__link-card-title {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.1rem;
  transition: color 0.2s ease;
}

.julia-note__link-card:hover .julia-note__link-card-title {
  color: var(--wp--preset--color--accent);
}

.julia-note__link-card-url {
  font-family: var(--julia-font-mono);
  font-size: 11px;
  color: var(--wp--preset--color--ink-faded);
}


/* ═══════════════════════════════════════════
   PORTFOLIO CARD GRID
   ═══════════════════════════════════════════ */

.julia-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.julia-card {
  background: var(--wp--preset--color--paper-dark);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.julia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.julia-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.julia-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.julia-card__body {
  padding: 1.5rem;
}

.julia-card__tag {
  display: inline-block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: 0.5rem;
}

.julia-card__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.4em;
}

.julia-card__desc {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--wp--preset--color--ink-faded);
}


/* ═══════════════════════════════════════════
   PAGE SECTIONS
   ═══════════════════════════════════════════ */

.julia-page-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.julia-page-section--wide {
  max-width: 1200px;
}

.julia-page-section__label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: 1rem;
}

.julia-page-section__heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--wp--preset--color--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.julia-page-section__body {
  font-size: 19px;
  line-height: 1.65;
  color: var(--wp--preset--color--ink-soft);
  max-width: var(--julia-measure);
}

.julia-page-section__body p {
  margin-bottom: 1.2em;
  text-wrap: pretty;
}

.julia-page-section__body a {
  color: var(--wp--preset--color--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--accent-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  background: var(--wp--preset--color--accent-wash);
  border-radius: 2px;
  padding: 0 3px;
  transition: background 0.15s, color 0.15s, text-decoration-color 0.15s;
}

.julia-page-section__body a:hover {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--paper);
  text-decoration-color: transparent;
}


/* ═══════════════════════════════════════════
   ABOUT INTRODUCTION
   Outline heading, large statement,
   two-column body copy + timeline
   ═══════════════════════════════════════════ */

.julia-about-intro {
  max-width: var(--julia-page-width);
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

/* ─── Section heading with accent underbar ─── */

.julia-about-intro__heading-wrap {
  margin-bottom: 3rem;
}

.julia-about-intro__heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--wp--preset--color--ink);
  display: inline-block;
  padding-bottom: 0.15em;
  border-bottom: 8px solid var(--wp--preset--color--accent);
}

/* ─── Large intro statement ─── */

.julia-about-intro__statement {
  font-family: var(--wp--preset--font-family--body);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--wp--preset--color--ink);
  margin-bottom: 4rem;
  text-wrap: pretty;
}

/* ─── Two-column layout ─── */

.julia-about-intro__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ─── Left: body copy ─── */

.julia-about-intro__body {
  font-family: var(--wp--preset--font-family--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--wp--preset--color--ink-soft);
}

.julia-about-intro__body p {
  margin-bottom: 1.2em;
  text-wrap: pretty;
}

.julia-about-intro__body strong {
  color: var(--wp--preset--color--ink);
  font-weight: 600;
}

.julia-about-intro__body a {
  color: var(--wp--preset--color--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--accent-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  background: var(--wp--preset--color--accent-wash);
  border-radius: 2px;
  padding: 0 3px;
  transition: background 0.15s, color 0.15s, text-decoration-color 0.15s;
}

.julia-about-intro__body a:hover {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--paper);
  text-decoration-color: transparent;
}

/* ─── Right: timeline ─── */

.julia-about-intro__timeline {
  margin-top: 0 !important;
}

.julia-about-intro__timeline > *:first-child {
  margin-top: 0 !important;
}

.julia-about-intro__body > *:first-child {
  margin-top: 0 !important;
}

.julia-about-intro__timeline-label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink);
  margin-bottom: 2rem;
}

.wp-block-group.julia-about-intro__event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--wp--preset--color--ink-ghost);
}

.wp-block-group.julia-about-intro__event > * {
  margin-block-start: 0;
}

.julia-about-intro__event:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.julia-about-intro__year {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--accent-wash);
  border: 1px solid var(--wp--preset--color--accent-light);
  border-radius: 100px;
  padding: 0.3em 0.9em;
  line-height: 1;
  white-space: nowrap;
  align-self: start;
  margin-top: 0.15em;
}

.julia-about-intro__event-title {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.julia-about-intro__event-desc {
  font-family: var(--wp--preset--font-family--body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--wp--preset--color--ink-faded);
}


/* ═══════════════════════════════════════════
   STATEMENT BAND
   ═══════════════════════════════════════════ */

.julia-statement-band {
  background: var(--wp--preset--color--paper-dark);
  padding: 5rem 3rem;
  text-align: center;
}

.julia-statement-band__text {
  font-family: var(--julia-font-pull);
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--wp--preset--color--ink-soft);
  max-width: 50ch;
  margin: 0 auto;
}

.julia-statement-band__cite {
  display: block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-faded);
  margin-top: 1.5rem;
}

/* -- Dark variant -- */
.julia-statement-band--dark {
  background: var(--wp--preset--color--ink);
}

.julia-statement-band--dark .julia-statement-band__text {
  color: var(--wp--preset--color--paper);
}

.julia-statement-band--dark .julia-statement-band__cite {
  color: var(--wp--preset--color--ink-ghost);
}


/* ═══════════════════════════════════════════
   LOGO STRIP
   ═══════════════════════════════════════════ */

.julia-logo-strip {
  padding: 3rem;
  text-align: center;
}

.julia-logo-strip__label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-ghost);
  margin-bottom: 1.5rem;
}

.julia-logo-strip__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
  max-width: var(--julia-page-wide);
  margin: 0 auto;
}

.julia-logo-strip__item {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--wp--preset--color--ink-ghost);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .julia-logo-strip__row {
    gap: 2rem 3rem;
  }
}


/* ═══════════════════════════════════════════
   EDITORIAL OVERLAP
   ═══════════════════════════════════════════ */

.julia-editorial-overlap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.julia-editorial-overlap__image {
  grid-column: 1 / 8;
  grid-row: 1;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
}

.julia-editorial-overlap__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.julia-editorial-overlap__card {
  grid-column: 6 / 12;
  grid-row: 1;
  z-index: 2;
  background: var(--wp--preset--color--paper);
  padding: 3rem;
  box-shadow: 0 16px 48px rgba(20, 18, 16, 0.08);
  border-radius: 4px;
}

.julia-editorial-overlap__card-label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: 0.5rem;
}

.julia-editorial-overlap__card-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.6em;
}

.julia-editorial-overlap__card-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--wp--preset--color--ink-soft);
}

@media (max-width: 768px) {
  .julia-editorial-overlap {
    display: flex;
    flex-direction: column;
  }

  .julia-editorial-overlap__card {
    margin-top: -3rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

@media print {
  .julia-statement-band--dark {
    background: var(--wp--preset--color--paper);
  }

  .julia-statement-band--dark .julia-statement-band__text {
    color: var(--wp--preset--color--ink);
  }

  .julia-statement-band--dark .julia-statement-band__cite {
    color: var(--wp--preset--color--ink-faded);
  }
}


/* ═══════════════════════════════════════════
   BLOGROLL
   ═══════════════════════════════════════════ */

.julia-blogroll {
  max-width: var(--julia-measure);
  margin: 3rem auto 8rem;
  padding: 0 3rem;
  list-style: none;
}

.julia-blogroll__item {
  padding: 1rem 0;
  margin-bottom: 0;
}

.julia-blogroll__row {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
}

.julia-blogroll__name {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
}

.julia-blogroll__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.julia-blogroll__name a:hover {
  color: var(--wp--preset--color--accent);
}

.julia-blogroll__divider {
  width: 16px;
  height: 2px;
  background: var(--wp--preset--color--accent);
  flex-shrink: 0;
  position: relative;
  top: -0.15em;
}

.julia-blogroll__url {
  font-family: var(--julia-font-mono);
  font-size: 12px;
  color: var(--wp--preset--color--ink-faded);
  text-decoration: none;
  transition: color 0.2s ease;
}

.julia-blogroll__url:hover {
  color: var(--wp--preset--color--accent);
}

.julia-blogroll__desc {
  font-family: var(--wp--preset--font-family--body);
  font-size: 15px;
  color: var(--wp--preset--color--ink-faded);
  line-height: 1.5;
  margin: 0.3em 0 0;
}


/* ═══════════════════════════════════════════
   PHOTO GRID
   ═══════════════════════════════════════════ */

.julia-photo-grid {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 0 3rem;
}

.julia-photo-grid__layout {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
}

.julia-photo-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* Editorial (6 photos) */
.julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 4; }
.julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 3; }
.julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(3) { grid-column: 8 / 13; grid-row: 3 / 4; }
.julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(4) { grid-column: 1 / 5; grid-row: 4 / 6; }
.julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(5) { grid-column: 5 / 9; grid-row: 4 / 6; }
.julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(6) { grid-column: 9 / 13; grid-row: 4 / 6; }

/* Cinematic (4 photos) */
.julia-photo-grid--cinematic .julia-photo-grid__cell:nth-child(1) { grid-column: 1 / 13; grid-row: 1 / 4; }
.julia-photo-grid--cinematic .julia-photo-grid__cell:nth-child(2) { grid-column: 1 / 5; grid-row: 4 / 6; }
.julia-photo-grid--cinematic .julia-photo-grid__cell:nth-child(3) { grid-column: 5 / 9; grid-row: 4 / 6; }
.julia-photo-grid--cinematic .julia-photo-grid__cell:nth-child(4) { grid-column: 9 / 13; grid-row: 4 / 6; }

/* Mosaic (5 photos) */
.julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 4; }
.julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(2) { grid-column: 6 / 13; grid-row: 1 / 3; }
.julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(3) { grid-column: 6 / 10; grid-row: 3 / 5; }
.julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(4) { grid-column: 10 / 13; grid-row: 3 / 5; }
.julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(5) { grid-column: 1 / 6; grid-row: 4 / 5; }

.julia-photo-grid__caption {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  color: var(--wp--preset--color--ink-faded);
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════ */

.julia-divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.julia-divider__line {
  width: 48px;
  height: 1px;
  background: var(--wp--preset--color--ink-ghost);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  body {
    font-size: 17px;
    line-height: 1.6;
  }

  .wp-block-group.julia-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .julia-header__inner {
    padding: 0 1.5rem;
  }

  .julia-header__hamburger {
    right: 0;
  }

  .julia-header__nav-list a {
    font-size: 12px;
    padding: 8px 8px;
  }

  .julia-statement {
    padding: 5rem 1.5rem 3rem;
  }

  .julia-recent {
    padding: 0 1.5rem 5rem;
  }

  .julia-page-hero__content {
    padding: 1rem 1.5rem 0.5rem;
  }

  .julia-page-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .julia-article-header {
    padding-top: 4rem;
  }

  .julia-article-header__title {
    font-size: clamp(36px, 9.5vw, 80px);
  }

  .julia-post-nav {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .julia-next-article {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }



  .julia-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .julia-author-bio__links {
    justify-content: center;
  }

  .julia-notes-nav {
    padding: 0 1.5rem;
    flex-wrap: wrap;
  }

  .julia-notes-feed {
    padding: 0 1.5rem 5rem;
  }

  .julia-note__content { font-size: 17px; }
  .julia-note__quote { font-size: 19px; }
  .julia-note--featured .julia-note__content { font-size: 18px; }

  .julia-about-intro {
    padding: 3rem 1.5rem 2rem;
  }

  .julia-about-intro__columns {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .julia-about-intro__heading {
    -webkit-text-stroke-width: 2px;
    border-bottom-width: 6px;
  }

  .julia-page-section {
    padding: 3rem 1.5rem;
  }

  .julia-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .julia-statement-band {
    padding: 3rem 1.5rem;
  }

  .julia-blogroll {
    padding: 0 1.5rem;
  }

  .julia-photo-grid {
    padding: 0 1.5rem;
  }

  .julia-footer {
    padding: 2.5rem 1.5rem 2rem;
  }

  .julia-footer__statement {
    margin-bottom: 2.5rem;
  }

  .julia-footer__grid {
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-start;
  }

  .julia-footer__grid > .wp-block-group {
    margin-top: 0;
    margin-bottom: 0;
  }

  .julia-footer .wp-block-group > * + * {
    margin-top: 0;
  }

  .julia-footer__col--about {
    max-width: 100%;
    flex: 0 1 auto;
  }

  .julia-footer__label {
    margin-bottom: 0.75rem;
  }

  .julia-footer__text {
    margin-bottom: 0;
  }

  .julia-footer__grid {
    padding-bottom: 2rem;
  }

  .julia-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .julia-article-body pre {
    border-radius: 0;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .julia-statement__text {
    font-size: 36px;
  }

  .julia-article-header__title {
    font-size: clamp(40px, 10vw, 60px);
  }

  .julia-page-hero__title {
    font-size: 40px;
  }

  .julia-recent__link {
    padding: 1rem 0;
  }

  .julia-header__nav {
    display: none;
  }

  .julia-header__inner {
    gap: 0.4rem;
  }

  .julia-about-intro__statement {
    font-size: 24px;
  }

  .julia-about-intro__heading {
    font-size: 40px;
    -webkit-text-stroke-width: 1.5px;
    border-bottom-width: 5px;
  }

  .julia-card-grid {
    grid-template-columns: 1fr;
  }

  .julia-blogroll__row {
    flex-wrap: wrap;
  }

  .julia-notes-nav__link {
    font-size: 11px;
    padding: 0.35em 0.6em;
  }

  .julia-note {
    padding: 1rem 0;
  }

  /* Photo grid mobile fallback */
  .julia-photo-grid__layout {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(120px, 180px);
  }

  .julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(2) { grid-column: 1; grid-row: auto; }
  .julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(3) { grid-column: 2; grid-row: auto; }
  .julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(4) { grid-column: 1 / 3; grid-row: auto; }
  .julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(5) { grid-column: 1; grid-row: auto; }
  .julia-photo-grid--editorial .julia-photo-grid__cell:nth-child(6) { grid-column: 2; grid-row: auto; }

  .julia-photo-grid--cinematic .julia-photo-grid__cell:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .julia-photo-grid--cinematic .julia-photo-grid__cell:nth-child(2) { grid-column: 1 / 3; grid-row: auto; }
  .julia-photo-grid--cinematic .julia-photo-grid__cell:nth-child(3) { grid-column: 1; grid-row: auto; }
  .julia-photo-grid--cinematic .julia-photo-grid__cell:nth-child(4) { grid-column: 2; grid-row: auto; }

  .julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(2) { grid-column: 1 / 3; grid-row: auto; }
  .julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(3) { grid-column: 1; grid-row: auto; }
  .julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(4) { grid-column: 2; grid-row: auto; }
  .julia-photo-grid--mosaic .julia-photo-grid__cell:nth-child(5) { grid-column: 1 / 3; grid-row: auto; }
}


/* ═══════════════════════════════════════════
   BLOCK STYLE — HEADING: ACCENT DISSOLVE
   Ink → accent colour transition on page load.
   Register: register_block_style('core/heading', 'accent-dissolve')
   ═══════════════════════════════════════════ */

.is-style-accent-dissolve {
  animation: heading-accent-dissolve 1s ease 0.3s both;
}

@keyframes heading-accent-dissolve {
  0%   { color: var(--wp--preset--color--ink); }
  100% { color: var(--wp--preset--color--accent); }
}


/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before {
    display: none; /* disable grain texture compositing */
  }
}


/* ═══════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════ */

@media print {
  body::before,
  .julia-header,
  .julia-footer-wrap,
  .julia-footer,
  .julia-notes-nav,
  .julia-post-nav,
  .julia-next-article,
  .julia-oc-trigger,
  .julia-oc-panel,
  .julia-oc-overlay { display: none; }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .julia-note--featured { background: none; border: 1px solid var(--wp--preset--color--ink-ghost); }
  .julia-statement-band { background: none; border: 1px solid var(--wp--preset--color--ink-ghost); }
}

/* -----------------------------------------------
   Author Bio
   ----------------------------------------------- */

.julia-author-bio {
  padding: 2rem 0;
}

.julia-author-bio__avatar .wp-block-post-author__avatar img {
  border-radius: 50%;
}

.julia-author-bio__name {
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.julia-author-bio__name a {
  text-decoration: none;
  color: var(--wp--preset--color--ink);
}

.julia-author-bio__name a:hover {
  color: var(--wp--preset--color--accent);
}

.julia-author-bio__text {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--ink-faded);
  line-height: 1.6;
}

/* -----------------------------------------------
   Front Page — Hero Band
   ----------------------------------------------- */

/* Front page: no side padding so hero band goes full-width, no gap above hero */
.julia-main--front {
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
}

/* Collapse gap between header template-part and front page main */
body:has(.julia-main--front) > .wp-site-blocks {
  gap: 0;
}

.julia-hero-band {
  background: var(--wp--preset--color--paper-dark);
  box-shadow: 0 4px 16px rgba(20, 18, 16, 0.08);
}

.julia-hero-band__content {
  max-width: var(--julia-page-width);
  margin: 0 auto;
  padding: 8rem 3rem 5rem;
}

.julia-hero-band__heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--wp--preset--color--ink);
  margin-bottom: 2rem;
}

.julia-hero-band__accent {
  color: var(--wp--preset--color--accent);
}

.julia-hero-band__body {
  font-size: var(--wp--preset--font-size--medium);
  color: var(--wp--preset--color--ink-soft);
  max-width: 55ch;
  line-height: 1.7;
}

.julia-hero-band__body a {
  color: var(--wp--preset--color--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--accent-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  background: var(--wp--preset--color--accent-wash);
  border-radius: 2px;
  padding: 0 3px;
  transition: background 0.15s, color 0.15s, text-decoration-color 0.15s;
}

.julia-hero-band__body a:hover {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--paper);
  text-decoration-color: transparent;
}


/* -----------------------------------------------
   Front Page — Mobile
   ----------------------------------------------- */

@media (max-width: 768px) {
  .julia-hero-band__content {
    padding: 4rem 1.5rem 3rem;
  }
}

/* -----------------------------------------------
   Posts by Month Shortcode
   ----------------------------------------------- */

.blog-posts-by-month {
  max-width: var(--julia-measure);
  margin: 0 auto;
  margin-bottom: var(--wp--preset--spacing--md);
}

.blog-posts-by-month .month-header {
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  margin-bottom: var(--wp--preset--spacing--xs);
  margin-top: var(--wp--preset--spacing--sm);
  padding-top: var(--wp--preset--spacing--sm);
  padding-bottom: var(--wp--preset--spacing--xs);
  border-bottom: 1px solid var(--wp--preset--color--ink-ghost);
}

.blog-posts-by-month:first-child .month-header:first-child {
  margin-top: 0;
  padding-top: 0;
}

.blog-post-item {
  display: flex;
  align-items: baseline;
  gap: var(--wp--preset--spacing--sm);
  margin-bottom: 0;
  line-height: 1.6;
  padding: var(--wp--preset--spacing--xs);
  margin-left: calc(-1 * var(--wp--preset--spacing--xs));
  margin-right: calc(-1 * var(--wp--preset--spacing--xs));
  border-radius: 4px;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.blog-post-item:hover {
  transform: translateX(4px);
}

.blog-post-item a {
  text-decoration: none;
  color: var(--wp--preset--color--ink);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 500;
  flex: 1;
  position: relative;
  padding-right: var(--wp--preset--spacing--md);
  transition: color 0.2s ease-out;
}

.blog-post-item:hover a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.blog-post-item .post-date {
  color: var(--wp--preset--color--ink-faded);
  font-family: var(--wp--preset--font-family--sans);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 50px;
}

.blog-post-item:hover .post-date {
  color: var(--wp--preset--color--accent);
}

.blog-post-item a::after {
  content: "\2192";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  font-size: 1em;
  line-height: 1;
  font-weight: normal;
  color: var(--wp--preset--color--accent);
  will-change: transform, opacity;
}

.blog-post-item:hover a::after {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .blog-post-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-post-item .post-date {
    font-size: var(--wp--preset--font-size--xs);
    min-width: auto;
  }
}


/* ════════════════════════════════════════════════
   STREAM ARCHIVE
   ════════════════════════════════════════════════ */

/* Page wrapper — two-column grid */
.julia-stream-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--wp--preset--spacing--xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--wp--preset--spacing--lg);
  align-items: start;
}

/* Kill WP's is-layout-flow block gap — it adds margin-block-start to grid children,
   pushing the feed column down away from the sidebar top */
.julia-stream-page.is-layout-flow > * + * {
  margin-block-start: 0 !important;
}

/* ── Sidebar ── */

/* wp-block-template-part is the actual grid child — make it sticky */
.julia-stream-page > .wp-block-template-part {
  position: sticky;
  top: calc(var(--julia-header-height, 90px) + var(--wp--preset--spacing--md));
  align-self: start;
}

.julia-stream-sidebar {
  position: sticky;
  top: calc(var(--julia-header-height, 90px) + var(--wp--preset--spacing--md));
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--md);
}

.julia-stream-sidebar__identity {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--xs);
}

.julia-stream-sidebar__name.wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  line-height: 1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
}

.julia-stream-sidebar__name-dot {
  display: none;
}

.julia-stream-sidebar__desc {
  font-family: var(--wp--preset--font-family--body);
  font-size: 15px;
  font-style: italic;
  color: var(--wp--preset--color--ink-faded);
  line-height: 1.5;
  margin: 0;
}

.julia-stream-sidebar__divider.wp-block-separator {
  width: 40px;
  max-width: 40px;
  height: 0.5px;
  border: none;
  background-color: var(--wp--preset--color--ink-ghost);
  color: var(--wp--preset--color--ink-ghost);
  margin: 0;
  opacity: 1;
}

.julia-stream-sidebar__section-label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--ink-faded);
  margin: 0 0 0.5em;
}

.julia-stream-sidebar__topics {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Feed ── */

.julia-stream-feed {
  min-width: 0;
}

.julia-stream-list {
  display: flex;
  flex-direction: column;
}

/* ── Cards ── */

.julia-stream-card {
  padding: 2.5rem 0 0;
  position: relative;
  border-top: 1px solid var(--wp--preset--color--ink-ghost);
  margin-top: 2.5rem;
}

/* First card: no top border or top margin — it's flush against the feed top */
.julia-stream-list > :first-child .julia-stream-card,
.julia-stream-list > .wp-block:first-child .julia-stream-card {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.julia-stream-card__meta {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75em;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--ink-faded);
  margin-bottom: 0.5em;
}

.julia-stream-card__type {
  color: var(--wp--preset--color--accent);
}

.julia-stream-card__date {
  font-size: 11px !important;
}

.julia-stream-card__title.wp-block-post-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

.julia-stream-card__title.wp-block-post-title a {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
}

.julia-stream-card__title.wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent-dark);
}

.julia-stream-card__body {
  font-family: var(--wp--preset--font-family--body);
  font-size: 18px;
  color: var(--wp--preset--color--ink-soft);
  line-height: 1.6;
  text-wrap: pretty;
  margin: 0;
}

.julia-stream-empty {
  color: var(--wp--preset--color--ink-faded);
  font-style: italic;
  text-align: center;
  padding: var(--wp--preset--spacing--xl) 0;
}

/* Editor wrapper fix — grid doesn't apply to editor wrapper divs */
.julia-stream-page > .block-editor-block-list__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--wp--preset--spacing--xl);
  align-items: start;
}

.julia-stream-page > .block-editor-block-list__layout > .wp-block {
  max-width: none;
}

/* ── Mobile ── */

@media (max-width: 860px) {
  .julia-stream-page {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--md);
    padding: var(--wp--preset--spacing--md);
  }

  .julia-stream-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp--preset--spacing--sm);
    padding-bottom: var(--wp--preset--spacing--md);
    border-bottom: 0.5px solid var(--wp--preset--color--ink-ghost);
  }

  .julia-stream-sidebar__identity {
    gap: 0.25em;
  }

  .julia-stream-sidebar__divider.wp-block-separator,
  .julia-stream-sidebar__topics {
    display: none;
  }

  .julia-stream-page > .block-editor-block-list__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .julia-stream-card__title.wp-block-post-title {
    font-size: clamp(18px, 5vw, 22px);
  }

  .julia-stream-page {
    padding: var(--wp--preset--spacing--sm);
  }
}
