/* ── Google Fonts ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=DM+Sans:wght@300;400;500&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Design tokens ───────────────────────────────────────────────── */
:root {
  --paper:       #FAFAF7;
  --ink:         #0F0F0D;
  --accent:      #8B2F2F;
  --rule:        #E0DDD8;
  --muted:       #666;
  --pale:        #F0EDE8;
  --near-black:  #111;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --max-w:       1100px;
  --pad-x:       48px;
  --section-y:   80px;
}

/* ── WordPress core resets ───────────────────────────────────────── */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* TwentyTwentyFour injects horizontal padding from useRootPaddingAwareAlignments — kill it */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Kill WP's constrained layout max-width on post content */
.wp-block-post-content.is-layout-constrained > * {
  max-width: none;
}
.entry-content.wp-block-post-content {
  padding: 0;
  margin: 0;
}

/* Separator block — strip WP's default dot styling */
.wp-block-separator {
  border: none;
}
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  width: auto;
  margin-left: 0;
}

/* Remove default image margins that WP adds */
.wp-block-image figure {
  margin: 0;
}

/* ── Utility ─────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.metadata {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

/* ── 1. Masthead bar ─────────────────────────────────────────────── */
.at-masthead {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: 20px var(--pad-x);
}

.at-masthead__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.at-masthead__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.at-masthead__logo {
  height: 32px;
  width: auto;
  display: block;
}

.at-masthead__subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.at-masthead__issue {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* ── 2. Navigation bar ───────────────────────────────────────────── */
.at-site-nav {
  border-bottom: 1px solid var(--rule);
  padding: 16px var(--pad-x);
}

.at-site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.at-site-nav a,
.at-site-nav .wp-block-navigation-item__content {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--near-black);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.at-site-nav a:hover,
.at-site-nav .wp-block-navigation-item__content:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Active state — both static HTML and WP nav block */
body.home .at-site-nav .nav-home,
body.front-page .at-site-nav .nav-home,
body.single-case_study .at-site-nav .nav-work,
body.page-work .at-site-nav .nav-work,
body.single-post .at-site-nav .nav-writing,
body.page-writing .at-site-nav .nav-writing,
body.page-resume .at-site-nav .nav-resume,
.at-site-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.at-site-nav .wp-block-navigation-item.current-menu-parent .wp-block-navigation-item__content {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Strip WP navigation block defaults */
.at-site-nav .wp-block-navigation {
  gap: 40px;
  padding: 0;
}
.at-site-nav .wp-block-navigation-item {
  padding: 0;
}

/* ── 3. Intro hero — dark split screen ───────────────────────────── */
.intro-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 540px;
  width: 100%;
}

.intro-hero__text {
  background: #1A1A18;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-hero__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #A8A49E;
}

.intro-hero__name {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #FAFAF7;
  margin: 0;
}

.intro-hero__rule {
  width: 48px;
  height: 2px;
  background: #8B2F2F;
  border: none;
  margin-top: 24px;
  margin-bottom: 24px;
  margin-left: 0;
}

.intro-hero__bio {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: #A8A49E;
  line-height: 1.7;
  max-width: 38ch;
  margin: 0;
}

.intro-hero__middle {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.intro-hero__cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FAFAF7;
  text-decoration: none;
}

.intro-hero__photo {
  overflow: hidden;
  height: 100%;
}

.intro-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── 4. Featured essay ───────────────────────────────────────────── */
.featured {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.featured-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 64px;
  align-items: start;
}

.featured-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 14em;
}

.featured-standfirst {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  max-width: 68ch;
  margin-bottom: 24px;
}

.featured-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.read-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}

.read-link:hover {
  border-bottom-color: var(--accent);
}

.featured-right {
  padding-top: 4px;
}

.featured-image {
  width: 100%;
  display: block;
}

.image-caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ── 5. Secondary features strip ─────────────────────────────────── */
.secondary {
  border-top: 1px solid var(--rule);
  padding-top: 48px;
  padding-bottom: var(--section-y);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Content constrained to max-w, border-top stays full-width */
.secondary > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 8px;
}

.feature-card {
  padding: 32px 36px 32px 0;
}

.feature-card:not(:last-child) {
  border-right: 1px solid var(--rule);
  margin-right: 36px;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.feature-headline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.feature-body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
}

.feature-readtime {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

/* ── 6. Expertise strip (replaces About strip) ───────────────────── */
.about-strip {
  background-color: var(--pale);
  padding: 64px var(--pad-x);
}

/* Max-width wrapper — matches featured/secondary sections */
.expertise-outer {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Expertise main heading */
.expertise-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

/* Body paragraph below heading */
.expertise-body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  max-width: 68ch;
  margin-bottom: 40px;
}

/* 3-col area grid */
.expertise-grid.wp-block-columns {
  gap: 40px !important;
  margin-top: 0;
  margin-bottom: 36px;
}

/* Area titles (h3) */
.expertise-grid .wp-block-heading {
  font-size: 17px !important;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 10px;
}

/* Area descriptions */
.expertise-grid .wp-block-paragraph {
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}

/* Buttons row */
.expertise-ctas.wp-block-buttons {
  gap: 12px;
  flex-wrap: wrap;
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
}

.subscribe-body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.subscribe-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  border-right: none;
  padding: 10px 16px;
  width: 320px;
  outline: none;
  border-radius: 0;
  appearance: none;
}

.subscribe-form input[type="email"]::placeholder {
  color: #aaa;
}

.subscribe-form button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--near-black);
  color: #fff;
  border: 1px solid var(--near-black);
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.subscribe-form button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── 7. Footer ───────────────────────────────────────────────────── */
.at-footer {
  border-top: 1px solid var(--rule);
  padding: 24px var(--pad-x);
}

.at-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.at-footer__copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

.at-footer__links {
  display: flex;
  gap: 24px;
}

.at-footer__links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.at-footer__links a:hover {
  color: var(--accent);
}

/* ── Reading column constraints ──────────────────────────────────── */
/* Blog posts: constrain post content to reading width */
body.single-post .wp-block-post-content {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* Case studies: full-width post-content; each section handles its own centering */
body.single-case_study .wp-block-post-content {
  padding: 0;
  max-width: none;
  margin: 0;
}

/* ── Block style variations ──────────────────────────────────────── */
.wp-block-paragraph.is-style-section-label {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent) !important;
  margin-bottom: 20px;
}

.wp-block-paragraph.is-style-standfirst {
  font-size: 20px !important;
  font-weight: 300;
  line-height: 1.6;
}

.wp-block-paragraph.is-style-metadata {
  font-size: 13px !important;
  color: var(--muted) !important;
}

.wp-block-buttons.is-style-text-link .wp-block-button__link {
  background: none !important;
  color: var(--accent) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid transparent !important;
}

.wp-block-columns.is-style-card-grid .wp-block-column:not(:last-child) {
  border-right: 1px solid var(--rule);
  padding-right: 36px;
  margin-right: 36px;
}

/* ── 8. Work listing / Case study cards ──────────────────────────── */
.case-study-list {
  max-width: var(--max-w);
  margin: 0 auto;
}
/* Prevent WP's is-layout-flow from constraining card children */
.case-study-list.is-layout-flow > * {
  max-width: none;
}

.case-study-row {
  display: grid;
  grid-template-columns: 35fr 65fr;
  column-gap: 64px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

/* Image spans both text rows so desktop stays 2-column */
.cs-image-cell  { grid-column: 1; grid-row: 1 / 3; }
.cs-text-top    { grid-column: 2; grid-row: 1; }
.cs-text-bottom { grid-column: 2; grid-row: 2; }

.case-study-row.is-image-right {
  grid-template-columns: 65fr 35fr;
}
.case-study-row.is-image-right .cs-image-cell  { grid-column: 2; }
.case-study-row.is-image-right .cs-text-top    { grid-column: 1; }
.case-study-row.is-image-right .cs-text-bottom { grid-column: 1; }

.cs-image-cell img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.cs-img-placeholder {
  width: 100%;
  padding-top: 66%;
  background: var(--pale);
}

.cs-caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.cs-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.cs-card-headline {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.cs-card-headline a {
  color: inherit;
  text-decoration: none;
}

.cs-card-headline a:hover {
  color: var(--accent);
}

.cs-card-standfirst {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
  max-width: 62ch;
  margin-bottom: 24px;
}

.cs-outcome {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 28px;
}

.cs-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.cs-link:hover { border-bottom-color: var(--accent); }

/* ── 9. Method strip (Work page footer) ─────────────────────────────── */
.method-strip {
  background: var(--pale);
  padding: 64px var(--pad-x);
}

.method-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.method-strip .is-style-section-label {
  margin-bottom: 32px;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.method-headline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.method-body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: #444;
  max-width: 52ch;
  line-height: 1.7;
  margin: 0;
}

/* ── 10. Case study page ───────────────────────────────────────────── */
.wp-block-post-content .cs-header {
  box-sizing: content-box;
  max-width: 740px;
  margin: 0 auto;
  padding: 72px var(--pad-x) 48px;
}

.cs-breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.cs-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cs-breadcrumb a:hover { color: var(--accent); }

.cs-tags {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}

.cs-headline {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14em;
  color: var(--ink);
  margin-bottom: 28px;
}

.cs-standfirst {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 68ch;
  color: #333;
  margin-bottom: 32px;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
}

.cs-header-rule {
  border: none;
  border-top: 1px solid var(--rule);
}

.lead-image-wrap {
  padding: 48px var(--pad-x) 8px;
}

.lead-image-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.lead-image-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.lead-caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  padding-top: 12px;
}

.wp-block-post-content .article-body {
  box-sizing: content-box;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px var(--pad-x);
}

.cs-image {
  margin: 0;
}

.cs-image figure,
.cs-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.cs-image-placeholder {
  background: var(--pale);
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cs-image-placeholder p,
.cs-image-placeholder .wp-block-paragraph {
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.cs-image-placeholder:has(img),
.cs-image-placeholder:has(iframe) {
  aspect-ratio: unset;
  padding-top: 20px;
  padding-bottom: 20px;
}

.cs-section {
  margin-bottom: 64px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 24px;
}

.body-text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
}

.body-text + .body-text {
  margin-top: 20px;
}

.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 24px 32px;
  margin: 40px 0;
}

.pull-quote-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}

.pull-quote-attr {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
  display: block;
}

.body-image {
  margin-top: 32px;
  margin-bottom: 0;
}

.body-image img {
  width: 100%;
  height: auto;
  display: block;
}

.body-image-caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  padding-top: 12px;
  margin-bottom: 24px;
}

.group-caption {
  font-family: var(--wp--preset--font-family--body, var(--font-body));
  font-size: 0.8rem;
  font-weight: 400;
  font-style: normal;
  color: var(--wp--preset--color--contrast-2, var(--muted));
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0.5em;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 32px;
  box-sizing: content-box;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.outcome-cell {
  padding: 32px;
  border-right: 1px solid var(--rule);
}

.outcome-cell:last-child {
  border-right: none;
}

.outcome-metric {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 8px;
}

.outcome-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.next-cs,
.next-essay {
  border-top: 1px solid var(--rule);
  padding: 56px var(--pad-x);
}

.next-cs-inner,
.next-essay-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.next-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 20px;
}

.next-headline {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.next-tags {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 20px;
}

.next-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.next-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 9. Blog post ─────────────────────────────────────────────────── */
.wp-block-post-content .article-header {
  box-sizing: content-box;
  max-width: 740px;
  margin: 0 auto;
  padding: 72px 0 48px;
}

.breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.article-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.article-headline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

.article-standfirst {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
  max-width: 68ch;
  margin-bottom: 24px;
}

.article-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.article-header-rule {
  border: none;
  border-top: 1px solid var(--rule);
}

.blog-body {
  padding: 48px var(--pad-x) 80px;
}

.blog-body p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  max-width: 68ch;
  margin-bottom: 28px;
}

.blog-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 20px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
  max-width: 68ch;
}

.author-note {
  background: var(--pale);
  padding: 48px var(--pad-x);
}

.author-note-inner {
  max-width: 740px;
  margin: 0 auto;
}

.author-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.author-note p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
}

.author-linkedin {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}

.author-linkedin:hover { text-decoration: underline; }

/* ── 10. Blog listing ─────────────────────────────────────────────── */
.page-header {
  padding: 72px var(--pad-x) 56px;
}

.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-headline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.page-standfirst {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: #444;
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 40px;
}

.page-header-rule {
  border: none;
  border-top: 1px solid var(--rule);
}

.blog-featured {
  padding: 56px var(--pad-x);
  border-bottom: 1px solid var(--rule);
}

.blog-featured-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-featured-headline {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 16px;
  margin-bottom: 20px;
}

.blog-featured-standfirst {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
  max-width: 58ch;
  margin-bottom: 24px;
}

.blog-pullquote {
  background: var(--pale);
  padding: 32px;
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.wp-block-post-content .article-list {
  max-width: var(--max-w);
  margin: 0 auto;
}

.article-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.article-row-left { flex-grow: 1; }

.article-row .article-headline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 10px;
  margin-bottom: 12px;
}

.article-row .article-headline a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-row .article-headline a:hover { color: var(--accent); }

.article-first-sentence {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: #444;
  line-height: 1.65;
  max-width: 62ch;
}

.article-row-right {
  min-width: 120px;
  text-align: right;
  padding-left: 48px;
  flex-shrink: 0;
}

.article-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ── wp:query list resets ────────────────────────────────────── */
.blog-featured .wp-block-post-template,
.article-list .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-featured .wp-block-post,
.article-list .wp-block-post {
  list-style: none;
}
.article-tag a { color: inherit; text-decoration: none; }
.blog-featured-headline a,
.blog-featured-headline a:visited { color: inherit; text-decoration: none; }
.blog-featured-standfirst .wp-block-post-excerpt__excerpt,
.article-first-sentence .wp-block-post-excerpt__excerpt {
  margin: 0;
}
.wp-block-read-more.read-link { display: block; }
.wp-block-read-more.read-link a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.wp-block-read-more.read-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.archive-note {
  padding: 64px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.archive-note p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

/* ── Section 9 — Resume page ─────────────────────────────────────── */

.resume-contact {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 40px !important;
}

/* Two-column body */
.resume-body.wp-block-columns {
  display: flex !important;
  max-width: var(--max-w);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-top: 56px;
  padding-bottom: 80px;
  flex-wrap: nowrap !important;
  gap: 80px !important;
}

.resume-body > .wp-block-column.resume-col-main {
  flex: 1 1 0 !important;
  min-width: 0;
}

.resume-body > .wp-block-column.resume-col-sidebar {
  flex: 0 0 320px !important;
  min-width: 320px;
}

/* Role entries */
p.resume-entry-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

p.resume-entry-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 0;
}

p.resume-entry-desc {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 58ch;
}

.resume-divider {
  border: none !important;
  border-top: 1px solid var(--rule) !important;
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

/* Education */
.edu-entry {
  margin-bottom: 20px;
}

p.edu-degree {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

p.edu-institution {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0;
}

/* Sidebar sections */
.sidebar-section {
  margin-top: 40px;
  padding-top: 40px !important;
  border-top: 1px solid var(--rule);
}

/* Methods list */
.methods-list.wp-block-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.methods-list.wp-block-list li {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 2.0;
}

/* Testimonial */
.resume-testimonial {
  border-left: 3px solid var(--accent) !important;
  padding: 16px 20px !important;
}

p.testimonial-quote {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

p.testimonial-attribution {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 12px;
}

/* Download strip */
.resume-download-strip {
  background: var(--pale);
  padding: 48px var(--pad-x);
}

.resume-download-strip .download-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

p.download-text {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

a.download-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a.download-cta:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --section-y: 52px;
  }

  .at-masthead {
    padding: 16px var(--pad-x);
  }

  .at-masthead__inner {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }

  .at-masthead__name,
  .at-masthead__issue {
    text-align: center;
  }

  .at-site-nav {
    padding: 14px var(--pad-x);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .at-site-nav__inner {
    gap: 28px;
    width: max-content;
  }

  .intro-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  .intro-hero__photo {
    order: -1;
    height: 340px;
  }

  .intro-hero__text {
    padding: 48px var(--pad-x);
  }

  .intro-hero__name {
    font-size: 56px;
  }

  .featured-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  .featured-right {
    padding-top: 0;
  }

  .secondary-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 28px 0;
    border-right: none !important;
    margin-right: 0 !important;
    border-bottom: 1px solid var(--rule);
  }

  .feature-card:last-child {
    border-bottom: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-strip {
    padding: 48px var(--pad-x);
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input[type="email"] {
    width: 100%;
    border-right: 1px solid var(--ink);
    border-bottom: none;
  }

  .subscribe-form button {
    width: 100%;
    text-align: center;
  }

  .at-footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Page header mobile padding — !important overrides WP inline styles */
  .page-header {
    padding-left: var(--pad-x) !important;
    padding-right: var(--pad-x) !important;
  }

  /* Work listing card mobile — single column, DOM order: tag+headline → image → description */
  .case-study-row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }
  /* Reset explicit desktop placements so natural DOM order applies */
  .cs-image-cell,
  .cs-text-top,
  .cs-text-bottom,
  .case-study-row.is-image-right .cs-image-cell,
  .case-study-row.is-image-right .cs-text-top,
  .case-study-row.is-image-right .cs-text-bottom {
    grid-column: auto;
    grid-row: auto;
  }
  .cs-card-headline { font-size: 26px; }
  .cs-card-standfirst { font-size: 15px; }

  /* Case study page mobile */
  .cs-headline { font-size: 40px; }
  .cs-standfirst { font-size: 17px; }
  .cs-meta { flex-direction: column; gap: 8px; }

  .article-body { max-width: 100%; }

  .outcomes-grid { grid-template-columns: 1fr; }
  .outcome-cell {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .outcome-cell:last-child { border-bottom: none; }

  .next-headline { font-size: 26px; }

  /* Blog post mobile */
  .article-headline { font-size: 38px; }
  .article-standfirst { font-size: 17px; }

  /* Blog listing mobile */
  .page-headline { font-size: 36px; }
  .blog-featured-inner { grid-template-columns: 1fr; gap: 32px; }
  .blog-featured-headline { font-size: 28px; }

  .article-row {
    flex-direction: column;
    gap: 8px;
  }

  .article-row-right {
    text-align: left;
    padding-left: 0;
    min-width: auto;
  }

  .article-row .article-headline { font-size: 22px; }

  /* Method strip mobile */
  .method-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .method-strip {
    padding: 48px var(--pad-x);
  }

  /* Resume mobile */
  .resume-body.wp-block-columns {
    flex-wrap: wrap !important;
    gap: 56px !important;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .resume-body > .wp-block-column.resume-col-sidebar {
    flex: 1 1 auto !important;
    min-width: unset;
  }

  .resume-download-strip .download-inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  /* Dynamic secondary grid — single column on mobile */
  .secondary .wp-block-post-template { grid-template-columns: 1fr; }
  .secondary .wp-block-post-template .feature-card:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 0;
  }
}

/* ── Section 10 — Phase 7: Dynamic homepage queries ─────────────── */

/* Featured: post title inherits .featured-headline class — add link reset */
.featured .wp-block-post-title a { color: inherit; text-decoration: none; }
.featured .wp-block-post-title a:hover { color: var(--accent); }

/* Featured: excerpt as standfirst */
.featured .wp-block-post-excerpt__excerpt {
  font-size: 20px; font-weight: 300; line-height: 1.6; color: #333;
  max-width: 68ch; margin-bottom: 24px;
}
.featured .wp-block-post-excerpt__more-link { display: none; }

/* Featured: post-terms as metadata */
.featured .wp-block-post-terms {
  font-size: 13px; font-weight: 300; color: var(--muted); margin-bottom: 32px;
}
.featured .wp-block-post-terms a { color: var(--muted); text-decoration: none; }

/* Featured: read-more link */
.featured .wp-block-read-more {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); text-decoration: none;
}
.featured .wp-block-read-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Secondary: post-template as 3-column grid */
.secondary .wp-block-post-template {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 8px;
  padding: 0;
}
.secondary .wp-block-post-template > li.wp-block-post { list-style: none; }
/* Override global margin-right inside grid context */
.secondary .wp-block-post-template .feature-card:not(:last-child) { margin-right: 0; }

/* Secondary: excerpt style */
.secondary .wp-block-post-excerpt__excerpt {
  font-size: 17px; font-weight: 400; line-height: 1.65; color: var(--ink); margin-bottom: 20px;
}
.secondary .wp-block-post-excerpt__more-link { display: none; }
.secondary .wp-block-post-title a { color: inherit; text-decoration: none; }
.secondary .wp-block-post-title a:hover { color: var(--accent); }

/* ── Block editor overrides (admin only) ─────────────────────────── */
/* .editor-styles-wrapper is injected by Gutenberg — never applies on frontend */
.editor-styles-wrapper .page-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
