/* ==========================================================================
   Nekud Editorial 1.1.6 - designed pages.
   1. Contact (nekud-contact mu-plugin, "letter desk"): bridge its Fieldline
      tokens (--fl-*) to the editorial tokens so it follows light/dark mode and
      the Reader settings palettes and fonts; editorial headings and cards.
   2. About (nekud-about-page mu-plugin CSS): its cards were hard-coded white
      with navy text; use the editorial surfaces so dark mode and the reader
      palettes work.
   ========================================================================== */

/* ---- 1. Contact ---- */
body.nekud-contact-page {
  --fl-accent: var(--nk-c-primary);
  --fl-accent-hover: color-mix(in srgb, var(--nk-c-primary) 82%, #000);
  --fl-on-accent: var(--nk-c-on-primary);
  --fl-accent-text: var(--nk-c-link);
  --fl-accent-tint: color-mix(in srgb, var(--nk-c-primary) 10%, var(--nk-c-card-bg));
  --fl-ink: var(--nk-c-heading);
  --fl-text: var(--nk-c-text);
  --fl-muted: var(--nk-c-muted);
  --fl-rule: var(--nk-c-border);
  --fl-rule-strong: color-mix(in srgb, var(--nk-c-border) 70%, var(--nk-c-muted));
  --fl-surface: var(--nk-c-card-bg);
  --fl-band: var(--nk-c-surface);
  --fl-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px rgba(15, 23, 42, .07);
  --fl-sans: var(--nk-f-meta-family);
  --fl-serif: var(--nk-f-body-family);
}
html[data-theme="dark"] body.nekud-contact-page { --fl-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35); }
/* The page draws its own hero and title, so the article chrome steps aside. */
.nk-article--bare .nk-article__head,
.nk-article--bare .nk-article__foot { display: none; }
.nk-article--bare .nk-article__grid { display: block; max-width: none; padding: 0; margin: 0; }
.nk-article--bare .nk-bare { padding: 0 0 72px; }
.nk-article--bare .nk-bare > .nkc { margin: 0 !important; }
.nk-article--bare .nkc-hero { width: auto; margin-inline: 0; }
.nk-article--bare .nkc-wrap { max-width: calc(var(--nk-wrap-max, 1240px) + 2 * var(--nk-gutter, 40px)); padding-inline: var(--nk-gutter, 40px); }
/* Editorial type: display face for headings, body face for reading text. */
html body.nekud-contact-page .nkc :is(h1, h2):not(#nk-b) { --nkc-serif: var(--nk-f-pageHeading-family); font-weight: var(--nk-f-pageHeading-weight, 400) !important; letter-spacing: -.01em; }
html body.nekud-contact-page .nkc-hero h1:not(#nk-b) { font-size: clamp(38px, 4.4vw, 56px) !important; }
html body.nekud-contact-page .nkc :is(.nkc-card, .nkc-side) h2:not(#nk-b) { font-size: 27px !important; }
html body.nekud-contact-page .nkc-lede:not(#nk-b) { font-family: var(--nk-f-body-family); color: var(--nk-c-text); }
.nkc-kicker { color: var(--nk-c-accent) !important; }
.nkc-frieze a.nkc-frieze__link:hover { color: var(--nk-c-link); }
/* Cards: the form and both side sections, as in the Fieldline layout. */
html body.nekud-contact-page .nkc :is(.nkc-card, .nkc-side > section):not(#nk-b) { background: var(--nk-c-card-bg); border: 1px solid var(--nk-c-border); box-shadow: var(--fl-shadow); border-radius: calc(var(--nk-radius-card, 18px) * 1.5); }
html body.nekud-contact-page .nkc .nkc-field :is(input, textarea):not(#nk-b) { background: var(--nk-c-bg); font-family: var(--nk-f-body-family); }
html body.nekud-contact-page .nkc .nkc-field :is(input, textarea):not(#nk-b)::placeholder { color: var(--nk-c-muted); }
.nkc-field label { font-family: var(--nk-f-meta-family); }
.nkc-btn { font-family: var(--nk-f-button-family) !important; }
.nkc-hero img { filter: drop-shadow(0 10px 24px rgba(20, 34, 61, .18)); }
/* Dark mode: the armillary emblem is navy line-art, so give it a pale disc (CSS only; the image is untouched). */
html[data-theme="dark"] .nkc-hero img { background: radial-gradient(circle, rgba(236, 235, 231, .92) 0 64%, rgba(236, 235, 231, 0) 66%); border-radius: 50% !important; filter: none; }
@media (max-width: 820px) {
  .nk-article--bare .nkc-wrap { padding-inline: 18px; }
  html body.nekud-contact-page .nkc-hero h1:not(#nk-b) { font-size: 38px !important; }
}

/* ---- 2. About ---- */
html body.page-id-959 .nk-about:not(#nk-b) {
  --nk-card-line: var(--nk-c-border);
  --nk-navy: var(--nk-c-heading);
  --fl-ink: var(--nk-c-heading);
  --fl-muted: var(--nk-c-muted);
}
html[data-theme="dark"] body.page-id-959 .nk-about:not(#nk-b) { --nk-card-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
html body.page-id-959 .nk-about :is(.nk-about__mod, .nk-dest, .nk-sq--contact, ul.nk-sqgrid > li.nk-sq--contact):not(#nk-b),
html body.page-id-959 .nk-about :is(.nk-sq--contact, ul.nk-sqgrid > li.nk-sq--contact):not(#nk-b):hover { background: var(--nk-c-card-bg); color: var(--nk-c-text); }
html body.page-id-959 .nk-about .nk-sq:not(.nk-sq--contact):not(#nk-b) { background: var(--nk-c-surface); color: var(--nk-c-text); }
html body.page-id-959 .nk-about :is(a.nk-sq, .nk-sq--link):not(#nk-b):hover { background: color-mix(in srgb, var(--nk-gold) 16%, var(--nk-c-card-bg)); }
