/* ===== Button groups: flex row; the default gap imitates the space between inline buttons ===== */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.25em; }

/* Winslow Myers: gallery white, ink, nocturne blue, one road-sign yellow. Instrument Serif + Instrument Sans.
   Motif: the diptych. Pages split into two panels with a narrow white seam between them. */
:root {
  --brand: var(--wp--preset--color--brand, #22303b); --brand-dark: var(--wp--preset--color--brand-dark, #18222a); --signal: var(--wp--preset--color--signal, #e0aa0f);
  --ink: var(--wp--preset--color--ink, #1d1d1b); --muted: var(--wp--preset--color--muted, #6a6761); --line: var(--wp--preset--color--line, #e3e1dc); --surface: var(--wp--preset--color--surface, #ffffff); --bg: var(--wp--preset--color--bg, #ffffff); --stone: var(--wp--preset--color--stone, #f2f1ee);
  --error-bg: var(--wp--preset--color--error-bg, #f8e7e3); --error-text: var(--wp--preset--color--error-text, #8c2b1d); --ok-bg: var(--wp--preset--color--ok-bg, #e8efe9); --ok-text: var(--wp--preset--color--ok-text, #24503b);
  --display: var(--wp--preset--font-family--instrument-serif, "Instrument Serif", Georgia, "Times New Roman", serif);
  --text: var(--wp--preset--font-family--instrument-sans, "Instrument Sans", "Helvetica Neue", Arial, sans-serif);
  --seam: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--text); color: var(--ink); background: var(--bg); }
h1, h2, h3, h4, p, ul, figure, fieldset { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.005em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.6rem; }
a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.mockup-note { background: var(--stone); text-align: center; font-size: .82rem; padding: 6px 12px; }

/* header */
.site-header { background: var(--surface); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand img { height: 34px; width: auto; display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .98rem; font-weight: 500; padding: 6px 0; }
.site-nav a:hover { color: var(--muted); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.site-nav .menu-cta > a { background: var(--ink); color: #fff; padding: 10px 18px; box-shadow: none; }
.site-nav .menu-cta > a:hover { background: var(--brand); color: #fff; }
.nav-toggle { display: none; font: 500 .95rem var(--text); background: none; color: var(--ink); border: 1px solid var(--ink); padding: 8px 14px; cursor: pointer; }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.btn { display: inline-block; padding: 14px 26px; font: 500 1rem/1.2 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-text { padding: 2px 0; border: 0; border-bottom: 2px solid var(--signal); color: var(--ink); }

/* images + captions read like wall labels */
.wp-block-image img { max-width: 100%; height: auto; display: block; }
.wp-block-image figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.wp-block-image figcaption em { font-family: var(--display); font-size: 1.12rem; color: var(--ink); font-style: italic; }

.section { padding: clamp(64px, 8vw, 112px) 0; }

/* home hero: a diptych, painting | words */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--seam); background: var(--surface); }
.hero-media { background: var(--stone); padding: clamp(24px, 4vw, 56px); display: flex; align-items: center; justify-content: center; }
.hero-photo img { width: 100%; max-height: 72vh; object-fit: contain; box-shadow: 0 18px 40px rgba(29, 29, 27, .16); }
.hero-text { background: var(--stone); padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-kicker { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.hero-kicker::before { content: ""; display: block; width: 28px; height: 3px; background: var(--signal); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1.02; margin-bottom: 24px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42ch; margin-bottom: 36px; }

/* statement */
.statement-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(32px, 6vw, 96px); }
.label { font-family: var(--text); font-size: .95rem; font-weight: 600; letter-spacing: .02em; padding-top: 14px; border-top: 3px solid var(--signal); display: inline-block; }
.statement-text p { max-width: 60ch; margin-bottom: 20px; color: #3a3935; }
.statement-text .big { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; color: var(--ink); max-width: 30ch; margin-bottom: 32px; }

/* bodies of work */
.bodies { background: var(--stone); }
.body-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.body-item { position: relative; }
.body-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .25s; }
.body-item h3 { margin: 20px 0 6px; font-size: 2rem; }
.body-item h3 a { text-decoration: none; }
.body-item h3 a::after { content: ""; position: absolute; inset: 0; }
.body-item:hover img { opacity: .9; }
.body-item:hover h3 a { text-decoration: underline; text-decoration-color: var(--signal); }
.body-item p { color: var(--muted); max-width: 36ch; }

/* recent */
.recent-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.recent h2 { margin-bottom: 24px; }
.year-list { list-style: none; padding: 0; margin-bottom: 28px; }
.year-list li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.year-list li strong { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.press-card { background: var(--brand); color: #d3dae0; padding: 36px; }
.press-kicker { font-size: .88rem; margin-bottom: 14px; }
.press-kicker::before { content: ""; display: block; width: 28px; height: 3px; background: var(--signal); margin-bottom: 14px; }
.press-card h3 { font-size: 2rem; margin-bottom: 10px; }
.press-card h3 a { color: #fff; }

/* CTA: two panels */
.cta-band { background: var(--brand); color: #d3dae0; padding: clamp(56px, 7vw, 88px) 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.cta-band h2 { color: #fff; font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin-bottom: 12px; }
.cta-band p { max-width: 44ch; }
.cta-contact { font-family: var(--display); font-size: 1.6rem; line-height: 1.35; margin-bottom: 24px; }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .btn-primary { background: var(--signal); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }

/* inner banner (theme's page banner markup) */
.site-banner { padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 48px) clamp(24px, 3vw, 40px); }
.site-banner__inner { max-width: 1224px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: end; }
.site-banner__crumbs { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.site-banner__crumbs a { color: var(--muted); }
.site-banner h1 { font-size: clamp(3.2rem, 8vw, 7rem); line-height: .95; letter-spacing: -.02em; }
.site-banner__sub { color: var(--muted); font-size: 1.12rem; max-width: 46ch; padding-bottom: 10px; }

/* galleries: masonry columns, real proportions */
.gallery-section { padding-top: 24px; }
.gallery { columns: 3; column-gap: clamp(20px, 3vw, 40px); }
.gallery .wp-block-image { break-inside: avoid; margin-bottom: clamp(28px, 4vw, 48px); }
.gallery img { width: 100%; cursor: zoom-in; }
.gallery--squares { columns: 2; }
.install-photo { margin-bottom: clamp(40px, 6vw, 72px); }
.install-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* lightbox (created by site.js) */
.lightbox { border: 0; padding: 0; background: rgba(250, 250, 248, .98); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(250, 250, 248, .96); }
.lightbox__inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 72px 32px; gap: 16px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; box-shadow: 0 18px 40px rgba(29, 29, 27, .18); }
.lightbox p { font-family: var(--display); font-size: 1.3rem; color: var(--ink); text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ink); font: 500 1rem var(--text); cursor: pointer; padding: 12px 16px; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }

/* about */
.press-strip { border-left: 3px solid var(--signal); padding: 4px 0 4px 18px; margin-bottom: 56px; }
.vita-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.vita-grid h2 { font-size: 1.9rem; margin-bottom: 20px; }
.year-list--long { columns: 1; }

/* publications */
.pub-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.pub-grid h2 { font-size: 1.9rem; margin-bottom: 16px; }
.pub-list { list-style: none; padding: 0; margin-bottom: 48px; }
.pub-list li { padding: 14px 0; border-top: 1px solid var(--line); }

/* inquiries */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-card { background: var(--stone); padding: 36px; }
.contact-card h3 { margin-bottom: 14px; }
.contact-card p { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.full { grid-column: 1 / -1; }
label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
fieldset { border: 0; padding: 0; }
legend.label { padding: 0; border: 0; letter-spacing: 0; font-size: .92rem; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin-right: 24px; }
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; font: inherit; padding: 13px 14px; border: 1px solid #cfccc6; border-radius: 0; background: var(--surface); color: var(--ink); }
input:focus, textarea:focus { border-color: var(--ink); outline: 1px solid var(--ink); }
input[type="radio"] { accent-color: var(--ink); }
textarea { min-height: 170px; }
.opt { font-weight: 400; color: var(--muted); }
.form-confirmation { background: var(--ok-bg); color: var(--ok-text); padding: 32px; }
.form-confirmation h3 { margin-bottom: 8px; }

/* blog cards (theme's markup) */
.post-cards-wrap { max-width: 1320px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 48px); }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.post-card { display: block; border-top: 1px solid var(--ink); padding: 20px 0; color: inherit; text-decoration: none; }
.post-card__label { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.post-card__more { margin-top: 12px; font-weight: 600; }
.post-content { max-width: 68ch; }
.post-content > * + * { margin-top: 1em; }

/* footer */
.site-footer { background: var(--brand-dark); color: #aab4bc; padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; overflow-wrap: anywhere; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr .8fr; gap: 40px; }
.footer-brand { font-family: var(--display); font-size: 2rem; color: #fff; line-height: 1.1; margin-bottom: 6px; }
.site-footer h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 10px; }
.copyright { font-size: .85rem; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }

@media (max-width: 1080px) {
  .site-nav > ul { gap: 20px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px clamp(20px, 4vw, 48px) 24px; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a { display: block; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav .menu-cta > a { text-align: center; margin-top: 14px; border: 0; }
  .hero-grid, .statement-grid, .recent-grid, .cta-grid, .vita-grid, .pub-grid, .contact-grid { grid-template-columns: 1fr; }
  .body-grid { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
  .site-banner__inner { grid-template-columns: 1fr; row-gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-bar { height: 70px; }
  .brand img { height: 28px; }
  .body-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery, .gallery--squares { columns: 1; }
  .year-list li { grid-template-columns: 5em 1fr; }
}

/* small pages */
.narrow { max-width: 820px; }
.big-line { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; margin-bottom: 32px; }
.prose h2 { font-size: 1.7rem; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 64ch; }
.book-cover { max-width: 220px; margin-bottom: 40px; }
.book-cover img { box-shadow: 0 12px 28px rgba(29, 29, 27, .16); }
.copyright a { margin-left: 16px; color: #aab4bc; }

/* ===== Button links start from the design's plain link, not WordPress's button look ===== */
.wp-block-button > .wp-block-button__link { background: transparent; color: revert; padding: 0; border: 0; border-radius: 0; font: inherit; line-height: inherit; text-align: inherit; text-decoration: revert; box-shadow: none; word-break: normal; }
.wp-block-button > .wp-block-button__link { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wp-block-button > .wp-block-button__link:hover { color: var(--brand); }

/* ===== Button blocks wear the design's button styles (rules rewritten from .btn*) ===== */
/* The design's .btn-* classes also sit on the block's outer wrapper: neutralise them there. */
.wp-block-buttons > .wp-block-button.wp-block-button, .wp-block-buttons > .wp-block-button.wp-block-button:hover { display: flex; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
/* A button that stood alone in the design: wrappers step aside so the link lays out like the original link. */
.wp-block-buttons.is-solo, .wp-block-buttons.is-solo > .wp-block-button.wp-block-button { display: contents; }
/* Core gives button links height: 100%, which stretches them inside flex columns. */
.wp-block-button > .wp-block-button__link.wp-block-button__link { height: auto; }
.wp-block-button.btn-row > .wp-block-button__link { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.wp-block-button > .wp-block-button__link { display: inline-block; padding: 14px 26px; font: 500 1rem/1.2 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.wp-block-button.btn-primary > .wp-block-button__link { background: var(--ink); color: #fff; }
.wp-block-button.btn-primary > .wp-block-button__link:hover { background: var(--brand); color: #fff; }
.wp-block-button.btn-text > .wp-block-button__link { padding: 2px 0; border: 0; border-bottom: 2px solid var(--signal); color: var(--ink); }
.cta-band .wp-block-button > .wp-block-button__link:not() { color: #fff; }
.cta-band .wp-block-button.btn-primary > .wp-block-button__link { background: var(--signal); color: var(--ink); }
.cta-band .wp-block-button.btn-primary > .wp-block-button__link:hover { background: #fff; color: var(--ink); }

/* ===== Button groups that were paragraphs keep paragraph spacing ===== */
.wp-block-buttons.is-p { margin: 1em 0; }
.wp-block-buttons.is-p { margin: 0 }
.statement-text .wp-block-buttons.is-p { margin-bottom: 20px }
.contact-card .wp-block-buttons.is-p { margin-bottom: 18px }

/* ===== Neutral block wrappers ===== */
.wp-site-blocks { padding: 0; }
.wp-block-post-content, .wp-block-template-part { margin: 0; }
.wp-block-image img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ===== Defaults for the page banner and post cards (adapt template-parts/*.php and these rules) ===== */
.wmy-hero { padding: 64px 24px 48px; }
.wmy-hero__inner, .post-cards-wrap { max-width: 1180px; margin: 0 auto; }
.wmy-hero__crumbs { font-size: .85rem; margin: 0 0 12px; }
.wmy-hero__sub { max-width: 640px; margin: 12px 0 0; }
.post-cards-wrap { padding: 48px 24px; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.wmy-card { display: block; padding: 24px; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; text-decoration: none; color: inherit; }
.wmy-card__label { font-size: .8rem; margin: 0 0 6px; opacity: .75; }
.wmy-card__more { margin: 12px 0 0; font-weight: 600; }
.pagination-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

/* ===== Layout grids are Columns blocks: keep the design's grid (core makes Columns a nowrap flex row) ===== */
.wp-block-columns.body-grid { display: grid; flex-wrap: nowrap !important; align-items: stretch !important; margin-bottom: 0; }
.wp-block-columns.contact-grid { display: grid; flex-wrap: nowrap !important; align-items: start !important; margin-bottom: 0; }
.wp-block-columns.cta-grid { display: grid; flex-wrap: nowrap !important; align-items: end !important; margin-bottom: 0; }
.wp-block-columns.footer-grid { display: grid; flex-wrap: nowrap !important; align-items: stretch !important; margin-bottom: 0; }
.wp-block-columns.hero-grid { display: grid; flex-wrap: nowrap !important; align-items: stretch !important; margin-bottom: 0; }
.wp-block-columns.pub-grid { display: grid; flex-wrap: nowrap !important; align-items: start !important; margin-bottom: 0; }
.wp-block-columns.recent-grid { display: grid; flex-wrap: nowrap !important; align-items: start !important; margin-bottom: 0; }
.wp-block-columns.statement-grid { display: grid; flex-wrap: nowrap !important; align-items: stretch !important; margin-bottom: 0; }
.wp-block-columns.vita-grid { display: grid; flex-wrap: nowrap !important; align-items: start !important; margin-bottom: 0; }
