/* WordPress adaptations — loaded last, after lang.css.
   The static site's CSS is used unchanged; these rules only bridge the few
   places where WordPress's block markup differs from the hand-written HTML. */

/* Language panels without a class add no box: their paragraphs sit in the
   page as if the wrapper were not there (sibling spacing aside). */
.langpanel { display: contents; }

/* Core image blocks are always <figure><img></figure>. Their figures carry no
   margin of their own — the site's classes set it. */
:where(.wp-block-image) { margin: 0; }
.wp-block-image img { display: block; max-width: 100%; height: auto; }

/* Images that were bare <img> in the static site and are figures here: the
   figure takes the old image's place; the image fills it. */
figure.mband__bg img,
figure.off-hero__bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: inherit;
}
figure.mband__bg { margin: 0; object-position: 70% 50%; }
figure.off-hero__bg { margin: 0; }
figure.msymbol img { width: 100%; height: auto; }

/* Lists from the list block keep the site's own reset. */
:where(.wp-block-list) { margin: 0; padding: 0; }

/* Group wrappers add no spacing of their own. */
:where(.wp-block-group) { margin: 0; }

/* The template part's wrapper is the rail itself (header.rail--global). */
.wp-block-template-part.rail { box-sizing: border-box; }

/* Post content is a plain flow wrapper inside the field. */
.wp-block-post-content { display: block; }

/* Menu groups (Shop, Press): primitives.css, shared with the static site. */


/* ── Newsletter (Mailchimp for WordPress, mc4wp) ───────────────────────────
   The plugin's form in the house manner, over whichever form style it is set
   to: a light uppercase heading in the heading face, the line beneath, a
   small caps label, the address on one hairline (no box), and "Sign up" as a
   text link (Jost italic, underlined) — calls to action are never buttons.
   Wherever the form appears — on a page (gallery measure, centred) or in a
   pop-up. Colours from the tokens, so light and dark both follow. The doubled
   class lifts these over the plugin's own. */
.mc4wp-form.mc4wp-form {
  max-width: var(--gallery-measure);
  margin: 0;
  color: var(--ink);
}
.field .mc4wp-form.mc4wp-form { margin: var(--u4) auto; }   /* on a page: centred in the column */
.mc4wp-form.mc4wp-form br { display: none; }
.mc4wp-form.mc4wp-form p { margin: 0; text-align: start; }
.mc4wp-form.mc4wp-form p + p { margin-top: var(--u2); }
.mc4wp-form.mc4wp-form h2 {
  margin: 0 0 var(--u1);
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mc4wp-form.mc4wp-form h2 strong,
.mc4wp-form.mc4wp-form h2 b { font-weight: inherit; }
.mc4wp-form.mc4wp-form h2 + p {
  font-size: var(--t-meta);
  line-height: 1.6;
}
.mc4wp-form.mc4wp-form label {
  display: block;
  margin: 0;
  font-size: var(--t-caption);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: auto;
}
.mc4wp-form.mc4wp-form input[type="email"],
.mc4wp-form.mc4wp-form input[type="text"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 6px 0 0;
  padding: 8px 0;
  border: 0;
  border-bottom: var(--hair) solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-thesis);
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
}
.mc4wp-form.mc4wp-form input::placeholder { color: var(--ink-soft); opacity: 1; }
.mc4wp-form.mc4wp-form input[type="email"]:hover,
.mc4wp-form.mc4wp-form input[type="text"]:hover { border-bottom-color: var(--ink-soft); }
.mc4wp-form.mc4wp-form input[type="email"]:focus,
.mc4wp-form.mc4wp-form input[type="text"]:focus { outline: none; border-bottom-color: var(--ink); }
.mc4wp-form.mc4wp-form input[type="email"]:focus-visible,
.mc4wp-form.mc4wp-form input[type="text"]:focus-visible { outline: var(--hair) solid currentColor; outline-offset: 4px; }
.mc4wp-form.mc4wp-form input[type="submit"],
.mc4wp-form.mc4wp-form button[type="submit"] {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--f-head);
  font-style: italic;
  font-weight: 400;
  font-size: calc(var(--t-meta) * 1.2);
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.mc4wp-form.mc4wp-form input[type="submit"]:hover,
.mc4wp-form.mc4wp-form button[type="submit"]:hover {
  background: none;
  color: var(--ink);
  text-decoration-thickness: 2px;
}
.mc4wp-form.mc4wp-form input[type="submit"]:focus-visible,
.mc4wp-form.mc4wp-form button[type="submit"]:focus-visible { outline: var(--hair) solid currentColor; outline-offset: 4px; }
/* The reply after signing up: one quiet line; an error underlined, no colour. */
.mc4wp-form.mc4wp-form .mc4wp-response { margin-top: var(--u1); }
.mc4wp-form.mc4wp-form .mc4wp-alert,
.mc4wp-form.mc4wp-form .mc4wp-alert p {
  margin: 0;
  font-size: var(--t-caption);
  line-height: 1.6;
  color: var(--ink);
}
.mc4wp-form.mc4wp-form .mc4wp-error p { text-decoration: underline; text-decoration-color: var(--rule); }
/* The plugin's coloured form themes force the button's colours with
   !important; these two properties answer in kind, nothing else. */
.mc4wp-form.mc4wp-form input[type="submit"],
.mc4wp-form.mc4wp-form button[type="submit"],
.mc4wp-form.mc4wp-form input[type="submit"]:hover,
.mc4wp-form.mc4wp-form button[type="submit"]:hover,
.mc4wp-form.mc4wp-form input[type="submit"]:focus,
.mc4wp-form.mc4wp-form button[type="submit"]:focus {
  background-color: transparent !important;
  color: var(--ink) !important;
}

/* ── Newsletter pop-up (Boxzilla) ───────────────────────────────────────────
   The box on the page ground with one hairline — no radius, no shadow; the ×
   in the rail's soft ink; an image inside at full width above the form. Leave
   the box's Appearance colours empty in Boxzilla so these apply. */
.boxzilla-container .boxzilla {
  box-sizing: border-box;
  padding: var(--u2);
  border: var(--hair) solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--f-sans);
}
.boxzilla-container .boxzilla img { display: block; width: 100%; height: auto; margin: 0 0 var(--u2); }
.boxzilla-container .boxzilla .boxzilla-content > :first-child { margin-top: 0; }
.boxzilla-container .boxzilla .mc4wp-form.mc4wp-form { max-width: none; }
.boxzilla-container .boxzilla .boxzilla-close-icon {
  top: var(--u1);
  right: var(--u1);
  padding: 0 6px;
  font-family: var(--f-sans);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-soft);
  opacity: 1;
}
.boxzilla-container .boxzilla .boxzilla-close-icon:hover,
.boxzilla-container .boxzilla .boxzilla-close-icon:focus-visible { color: var(--ink); }
.boxzilla-container .boxzilla .boxzilla-close-icon:focus-visible { outline: var(--hair) solid currentColor; outline-offset: 2px; }
