/**
 * Global typography, header, footer, and signature primitives.
 *
 * Token-driven (see tokens.css) — no hardcoded colors here. Body font stays
 * on SWELL's own --swl-font_family (gothic); only headings move to the
 * mincho stack. Enqueued site-wide right after tokens.css.
 */

/* ==========================================================================
 * Typography
 * ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.c-postTitle,
.p-postList__title,
.p-archive__title {
  font-family: var(--wynx-serif);
}

/* Article body column width — kept to wider viewports only so we never
   fight an existing narrower/centered layout on mobile. Assumption: SWELL's
   post-content wrapper is `.p-postBody` (not confirmed against parent
   source); no-ops harmlessly if the class differs. */
@media (min-width: 780px) {
  .p-postBody {
    max-width: 760px;
    margin-inline: auto;
  }
}

a {
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 2px solid var(--wynx-brass);
  outline-offset: 2px;
}

/* ==========================================================================
 * Signature primitives — reusable across later phases (byline, hero, etc.)
 * ========================================================================== */

.wynx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--wynx-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wynx-brass-ink);
}

.wynx-eyebrow::before {
  content: "✓";
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  border: 1px solid currentColor;
  font-size: 0.75em;
  line-height: 1;
}

.wynx-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.wynx-seal__mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--wynx-brass);
  border-radius: 50%;
  background-color: var(--wynx-brass-tint);
  color: var(--wynx-brass-ink);
  font-family: var(--wynx-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wynx-seal__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wynx-seal__credential {
  font-family: var(--wynx-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wynx-brass-ink);
}

.wynx-seal__name {
  font-size: 0.9375rem;
  color: var(--color_text);
}

/* ==========================================================================
 * Header
 * ========================================================================== */

.l-header {
  border-bottom: 1px solid var(--wynx-line);
}

.l-header__inner {
  gap: 1.5rem;
}

.c-headLogo__img {
  height: 1.75rem;
  width: auto;
}

.c-gnav__item {
  letter-spacing: 0.04em;
}

.c-gnav__item > a {
  transition: color 0.2s ease;
}

.c-gnav__item > a:hover,
.c-gnav__item.current-menu-item > a {
  color: var(--wynx-brass-ink);
}

/* Mobile drawer/menu — best-effort: SWELL's mobile nav reuses the same
   `.c-gnav__item` markup inside its drawer wrapper in the versions we've
   seen, so the hover/current rule above already covers it. This rule only
   adds mobile-specific spacing and is a no-op if the wrapper class differs. */
@media (max-width: 959px) {
  .c-gnav__item {
    letter-spacing: 0.02em;
  }
}

/* ==========================================================================
 * Footer
 * ========================================================================== */

/* Pre-footer band, rendered at the top of child parts/footer/footer_contents.php
   (media name + tagline + subscribe stub), inside the navy <footer>. Brass
   hairline separates it from the nav/copyright block below. */
.wynx-footerLead {
  background-color: var(--color_footer_bg);
  color: var(--color_footer_text);
  border-bottom: 1px solid var(--wynx-brass);
  padding-block: 2.5rem;
}

.wynx-footerLead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.wynx-footerLead__name {
  margin: 0 0 0.35rem;
  color: var(--color_footer_text);
  font-family: var(--wynx-serif);
  font-size: 1.05rem;
}

.wynx-footerLead__tagline {
  margin: 0;
  color: var(--color_footer_text);
  opacity: 0.8;
  font-family: var(--wynx-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.wynx-subscribe {
  max-width: 320px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--wynx-brass);
}

.wynx-subscribe .wynx-eyebrow {
  color: var(--wynx-brass);
}

.wynx-subscribe__title {
  margin: 0.5rem 0 0.35rem;
  color: var(--color_footer_text);
  font-family: var(--wynx-serif);
  font-size: 1rem;
}

.wynx-subscribe__text {
  margin: 0;
  color: var(--color_footer_text);
  opacity: 0.8;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.l-footer {
  background-color: var(--color_footer_bg);
  color: var(--color_footer_text);
}

.l-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--wynx-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.l-footer__nav a {
  color: var(--color_footer_text);
}

.l-footer__nav a:hover {
  color: var(--wynx-brass);
}

.copyright {
  color: var(--color_footer_text);
  opacity: 0.7;
  font-family: var(--wynx-mono);
  font-size: 0.75rem;
}

@media (max-width: 599px) {
  .wynx-footerLead__inner {
    flex-direction: column;
  }

  .wynx-subscribe {
    max-width: none;
  }
}

/* ==========================================================================
 * Motion
 * ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .c-gnav__item > a,
  .l-footer__nav a {
    transition: none;
  }
}
