/*
Theme Name: Affable Dissonances
Author: Nick Nedelcu
Description: The Affable Dissonances bilingual literary website, delivered as a thin WordPress deployment adapter. The standalone Web Project remains the source of truth.
Version: 2.6.1-rc9
Requires at least: 7.1
Requires PHP: 8.1
Text Domain: affable-dissonances
*/

/*
 * The complete visual system is loaded from css/web-project-merged.css.
 * This file contains only WordPress-host integration rules.
 */

html {
  scroll-behavior: smooth;
}

body.admin-bar ad-site-header::before {
  block-size: calc(var(--header-top-gap) + 32px + 2px);
}

body.admin-bar .site-header--floating {
  inset-block-start: calc(var(--header-top-gap) + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar ad-site-header::before {
    block-size: calc(var(--header-top-gap) + 46px + 2px);
  }

  body.admin-bar .site-header--floating {
    inset-block-start: calc(var(--header-top-gap) + 46px);
  }
}

/* Keep WordPress-generated links/buttons from imposing theme defaults. */
.adwp-page a {
  text-decoration-thickness: auto;
}

/* 1.0.6 — shared footer copyright */
.adwp-footer-copyright {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted, #8d99aa);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: start;
}


/* 2.0.0-rc8 / B2009 — dedicated error-page chrome. */
ad-site-header[data-page-key^="body-error-"] .site-nav--error{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap}
ad-site-header[data-page-key^="body-error-"] .toolbar--error{margin-inline-start:auto;order:2}
.error-header-label{display:inline-flex;align-items:center;min-block-size:2.05rem;padding:.26rem .7rem;font-family:var(--font-mono);font-size:var(--fs-2xs);font-weight:600;letter-spacing:.075em;text-transform:uppercase;color:var(--ink-soft);white-space:nowrap}
@media(max-width:760px){ad-site-header[data-page-key^="body-error-"] .site-nav--error{flex-wrap:nowrap}.error-header-label{order:1}ad-site-header[data-page-key^="body-error-"] .toolbar--error{order:2}}

/* 2.4.1-rc1 / B2040 — phone-only Main Archive artwork geometry.
 * Scope is deliberately limited to <=760px. */
@media (max-width: 760px) {
  html body #home-fix1-archive-hero .home-archive-hero-art {
    padding: 0 clamp(1.15rem, 2.5vw, 1.75rem) clamp(1.15rem, 2.5vw, 1.75rem) !important;
  }
}
