:root {
  --bg: #0b1620;
  --bg-deep: #07111a;
  --bg-soft: #102331;
  --fg: #edf0f1;
  --fg-soft: #d7dde1;
  --muted: #a7b1b8;
  --muted-2: #76848f;
  --line: rgba(209, 219, 225, .20);
  --line-soft: rgba(209, 219, 225, .10);
  --gold: #c79a55;
  --gold-bright: #ddb66f;
  --gold-soft: rgba(199, 154, 85, .14);
  --gold-faint: rgba(199, 154, 85, .06);
  --blue-glow: rgba(92, 133, 160, .10);
  --panel: rgba(255,255,255,.020);
  --panel-hover: rgba(255,255,255,.036);
  --max: 980px;
  --measure: 760px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background: var(--bg-deep);
  color-scheme: dark;
  scroll-behavior: auto; /* Immediate viewport tracking for keyboard focus; no scroll animation delay. */
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(72rem 38rem at 50% -8%, rgba(55, 92, 118, .17), transparent 62%),
    radial-gradient(46rem 38rem at 92% 8%, rgba(124, 145, 159, .08), transparent 60%),
    radial-gradient(38rem 30rem at 14% 22%, rgba(199, 154, 85, .035), transparent 68%),
    linear-gradient(180deg, #0e1c27 0%, var(--bg) 40%, var(--bg-deep) 100%);
  font-family: var(--serif);
  line-height: 1.72;
  letter-spacing: .002em;
  overflow-x: clip; /* Avoid creating a separate scroll container on body. */
}

/* Ambient depth: faint structural lines at the edges, never in the reading area. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.010), transparent 26%, transparent 74%, rgba(255,255,255,.008)),
    linear-gradient(180deg, rgba(255,255,255,.012), transparent 28%);
}
body::after {
  opacity: .62;
  background:
    repeating-linear-gradient(0deg, transparent 0 74px, rgba(101, 139, 162, .022) 74px 75px),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(199, 154, 85, .018) 74px 75px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.75) 8%, transparent 28%, transparent 72%, rgba(0,0,0,.75) 92%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.75) 8%, transparent 28%, transparent 72%, rgba(0,0,0,.75) 92%, #000 100%);
}

::selection {
    background: rgba(199, 154, 85, 0.65);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(199, 154, 85, 0.65);
    color: #ffffff;
}

img { max-width: 100%; }
strong { color: #f2f3f3; font-weight: 600; }
em { color: var(--fg-soft); }

a {
  color: #dce3e7;
  text-decoration-color: rgba(220,227,232,.34);
  text-decoration-thickness: 1px;
  text-underline-offset: .23em;
  transition: color .18s ease, text-decoration-color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}
a:hover, a:focus-visible { color: #fff; text-decoration-color: var(--gold); }
a:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: .3rem;
}

.wrap {
  width: min(calc(100% - 2.6rem), var(--max));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 17, 26, .76);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(199, 154, 85, .025);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
  padding: .75rem 0;
}
.brand {
  position: relative;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.06rem;
  letter-spacing: .055em;
  white-space: nowrap;
}
.brand::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-left: .65rem;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .72;
}
nav { margin-left: auto; }
nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a, .lang {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--sans);
  font-size: .70rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
nav a {
  padding-bottom: .3rem;
  background-image: linear-gradient(90deg, var(--gold), var(--gold-bright));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: color .18s ease, background-size .22s ease;
}
nav a:hover, nav a:focus-visible { color: var(--fg); background-size: 100% 1px; }
.lang {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  white-space: nowrap;
}
.lang:hover { color: var(--gold-bright); }

main { padding: 5.4rem 0 6.4rem; }
main > .wrap { max-width: var(--measure); }

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 2.9rem 0 4.1rem;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -8rem;
  width: min(92vw, 820px);
  height: 34rem;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 35%, rgba(106, 147, 174, .11), transparent 44%),
    radial-gradient(circle at 50% 62%, rgba(199, 154, 85, .038), transparent 46%);
  filter: blur(2px);
  pointer-events: none;
}
.hero::after, .kicker::before {
  content: "";
  display: block;
  width: 92px;
  height: 1px;
  margin: 2.75rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(199,154,85,.78), transparent);
}
.eyebrow,
.smallcaps {
  color: #b8a17d;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .20em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 1.1rem; }
.smallcaps { margin-top: 3rem; }

h1, h2, h3 {
  color: var(--fg);
  font-weight: 400;
  text-wrap: balance;
}
h1 {
  margin: .15rem 0 1.3rem;
  font-size: clamp(2.85rem, 6vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: .018em;
  text-shadow: 0 10px 42px rgba(70, 108, 132, .10);
}
h2 {
  margin: 3.35rem 0 .9rem;
  font-size: clamp(1.48rem, 3vw, 1.92rem);
  line-height: 1.24;
}
h3 { margin: 2rem 0 .65rem; font-size: 1.2rem; }
p { color: #c4cdd3; }
.lead {
  max-width: 690px;
  margin: 0 auto;
  color: #d0d7dc;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.9;
}
.mantra {
  margin: 2.25rem auto 0;
  color: #f1eee8;
  font-size: clamp(1.20rem, 2.3vw, 1.48rem);
  font-weight: 400;
  text-shadow: 0 0 26px rgba(199, 154, 85, .06);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0;
  margin: 2.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.009), transparent 28%, transparent 72%, rgba(255,255,255,.006));
}
.card {
  min-height: 100%;
  padding: 1.95rem 1.5rem 1.95rem 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-soft);
  transition: background .22s ease, transform .22s ease;
}
.card + .card { padding-left: 1.5rem; }
.card:last-child { border-right: 0; padding-right: 0; }
.card h2, .card h3 { margin-top: 0; }
.card h2 { color: #ece8df; }
.card p:last-child { margin-bottom: 0; }
.card:hover {
  background: radial-gradient(circle at 50% 0%, rgba(199,154,85,.045), transparent 68%);
  transform: translateY(-2px);
}

.rule,
.pullquote,
.question-list {
  position: relative;
}
.rule {
  margin: 3.3rem 0;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(199,154,85,.036), transparent 65%);
}
.rule p { max-width: 690px; margin: .65rem auto; }
.rule strong { color: #f0ede6; font-weight: 500; font-size: 1.09rem; }

.question-list {
  margin: 2.6rem 0 3.15rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.question-list p {
  margin: .78rem 0;
  color: #d2d9de;
  font-size: 1.02rem;
}
.question-list p::before {
  content: "◆";
  display: inline-block;
  margin-right: .72rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .52rem;
  vertical-align: .16em;
  opacity: .82;
}

.pullquote {
  margin: 3.4rem 0;
  padding: 2.55rem 1rem;
  border-top: 1px solid rgba(199,154,85,.28);
  border-bottom: 1px solid rgba(199,154,85,.22);
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(199,154,85,.05), transparent 64%);
}
.pullquote blockquote {
  max-width: 700px;
  margin: 0 auto;
  color: #f0eee9;
  font-size: clamp(1.30rem, 2.7vw, 1.72rem);
  line-height: 1.62;
  font-style: normal;
  text-wrap: balance;
}
.pullquote .source {
  margin: 1.05rem 0 0;
  color: #9d8f78;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem 1.55rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.cta-row a {
  position: relative;
  padding: .45rem .05rem .38rem;
  color: #d8dfe3;
  text-decoration: none;
}
.cta-row a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(199,154,85,.35), var(--gold), rgba(199,154,85,.35));
  transform: scaleX(.55);
  transform-origin: center;
  transition: transform .22s ease, opacity .22s ease;
  opacity: .72;
}
.cta-row a:hover::after, .cta-row a:focus-visible::after { transform: scaleX(1); opacity: 1; }
.cta-row a:hover { color: #fff; }

.status {
  width: 100%;
  margin: 2.4rem 0 3rem;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #c3ccd3;
  background: rgba(255,255,255,.008);
}
.status th, .status td {
  padding: .78rem .25rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.status tr:last-child th, .status tr:last-child td { border-bottom: 0; }
.status th {
  width: 46%;
  color: #a99576;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.note { color: var(--muted-2); font-size: .92rem; }
.kicker { margin-top: 3rem; padding-top: 0; border-top: 0; }
.kicker::before { margin: 0 0 2.4rem; }
code {
  color: #d7dfe4;
  background: rgba(255,255,255,.05);
  padding: .08rem .28rem;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: .12rem;
}

/* Book presentation: deliberately flat and restrained.
   The cover is shown as a book cover, not as a synthetic 3D product mock-up. */
.book-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 225px) 1fr;
  gap: clamp(2.2rem, 6vw, 4.4rem);
  align-items: center;
  margin: 3.5rem 0;
  padding: 3.1rem 0;
  border-top: 1px solid rgba(199,154,85,.22);
  border-bottom: 1px solid rgba(199,154,85,.18);
}
.book-showcase::before { display: none; }
.book-object {
  width: min(100%, 225px);
  margin: 0 auto;
  position: relative;
}
.book-object::before,
.book-object::after { display: none; }
.book-object img {
  display: block;
  width: 100%;
  height: auto;
  background: #071522;
  border: 1px solid rgba(199,154,85,.20);
  box-shadow: 0 1.1rem 2.2rem rgba(0,0,0,.28);
}
.book-copy { min-width: 0; }
.book-copy .eyebrow { margin-bottom: .8rem; }
.book-copy h2 { margin: 0 0 .85rem; }
.book-copy p { margin: .58rem 0; }
.book-facts {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.book-facts li { margin: .4rem 0; }
.book-facts li::before {
  content: "◆";
  margin-right: .62rem;
  color: var(--gold);
  font-size: .48rem;
  vertical-align: .18em;
}

footer {
  padding: 2.4rem 0 3.2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.08));
  font-family: var(--sans);
  font-size: .67rem;
  letter-spacing: .06em;
  text-align: center;
}
footer a { color: #9aa6af; }
footer a:hover { color: var(--gold-bright); }
footer .footer-signature {
  margin-bottom: 1rem;
}
footer .footer-copyright {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .025em;
}
footer .footer-motto {
  margin-top: .18rem;
  color: #a58f69;
  font-size: .60rem;
  letter-spacing: .14em;
}
footer .footer-links {
  color: var(--muted-2);
}
body.landing .landing-footer {
  padding-top: 1.8rem;
}

/* Root language landing page retains the original visual reference, with subtle gold integration. */
body.landing main {
  min-height: calc(100vh - 1px);
  display: grid;
  align-items: center;
  padding: 4rem 0 7rem;
}
body.landing .wrap { width: min(calc(100% - 2rem), 800px); }
body.landing .hero { padding: 0; }
body.landing .hero::before {
  top: -13rem;
  height: 42rem;
  background:
    radial-gradient(circle at 50% 43%, rgba(77, 121, 150, .14), transparent 42%),
    radial-gradient(circle at 50% 62%, rgba(199, 154, 85, .05), transparent 34%);
}
body.landing .hero::after { display: none; }
body.landing .landing-title {
  margin: 0;
  font-size: clamp(3rem, 7vw, 4.5rem);
  letter-spacing: .02em;
  text-shadow: 0 14px 48px rgba(64, 103, 129, .12);
}
body.landing .landing-tagline {
  margin: .72rem 0 0;
  color: #b5a687;
  font-family: var(--serif);
  font-size: clamp(.78rem, 1.7vw, .97rem);
  letter-spacing: .22em;
  text-transform: uppercase;
}
body.landing .landing-rule {
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199,154,85,.78), transparent);
  margin: 3rem auto;
}
body.landing blockquote {
  margin: 0 auto 2.5rem;
  color: #ecebe7;
  font-size: clamp(1.24rem, 2.4vw, 1.60rem);
  font-style: normal;
  text-shadow: 0 0 24px rgba(199,154,85,.04);
}
body.landing .landing-copy {
  max-width: 690px;
  margin: 0 auto;
  color: #aeb8c1;
  font-size: .96rem;
  line-height: 2.2;
}
body.landing .language-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2.9rem;
  font-family: var(--sans);
  font-size: .71rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
body.landing .language-links a {
  position: relative;
  color: #b9c2c8;
  text-decoration: none;
  padding-bottom: .3rem;
}
body.landing .language-links a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  opacity: .5;
  transform: scaleX(.45);
  transition: transform .22s ease, opacity .22s ease;
}
body.landing .language-links a:hover { color: #fff; }
body.landing .language-links a:hover::after { transform: scaleX(1); opacity: 1; }
body.landing .preparation {
  margin: 2.3rem 0 0;
  color: #75838d;
  font-size: .76rem;
}

@media (max-width: 900px) {
  header { position: static; }
  .nav { align-items: flex-start; flex-wrap: wrap; }
  nav { width: 100%; order: 3; margin: 0; }
  nav ul { justify-content: flex-start; gap: .8rem 1rem; flex-wrap: wrap; }
  .lang { margin-left: auto; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 2rem), var(--max)); }
  main { padding: 3.6rem 0 4.8rem; }
  .hero { padding-top: 1.9rem; }
  .grid { grid-template-columns: 1fr; }
  .card, .card + .card, .card:last-child {
    padding: 1.55rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .card:last-child { border-bottom: 0; }
  .card:hover { transform: none; }
}

@media (max-width: 640px) {
  .book-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.4rem;
    padding: 2.6rem 0;
  }
  .book-object {
    width: min(64vw, 220px);
  }
  .book-facts { display: inline-block; text-align: left; }
  .cta-row { gap: .9rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c1c8cd;
    --muted-2: #aeb8bf;
    --line: rgba(238, 242, 244, .34);
    --line-soft: rgba(238, 242, 244, .20);
  }
  body::after { opacity: .2; }
}

/* v0.46: Contact form — inherits the Magic Baseline design, no JS or inline styles. */
.mb-contact { max-width: 720px; margin: 0 auto; padding: 1.3rem 0 1.6rem; }
.mb-contact h1 { margin-bottom: .6rem; }
.mb-contact .lead { margin-bottom: 2.25rem; }
.mb-contact-form { display: grid; gap: 1.15rem; margin-top: 2.1rem; }
.mb-contact-field { display: grid; gap: .42rem; }
.mb-contact-field label { color: #e6e7e6; font: 500 .79rem/1.5 var(--sans); letter-spacing: .045em; }
.mb-contact-field label span { color: var(--gold-bright); }
.mb-contact-field input, .mb-contact-field textarea {
  width: 100%; min-width: 0; padding: .85rem 1rem;
  color: #edf0f1; background: #09151f; /* Opaque surface: deterministic text contrast in Firefox. */
  border: 1px solid #a99576; border-radius: .18rem;
  font: 400 1rem/1.5 var(--sans); transition: border-color .18s ease, background-color .18s ease;
}
.mb-contact-field input:hover, .mb-contact-field textarea:hover { border-color: var(--gold); }
.mb-contact-field input:focus-visible, .mb-contact-field textarea:focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 2px; background: #09151f;
}
.mb-contact-field textarea { resize: vertical; min-height: 10rem; }
.mb-contact-form .note { font-size: .86rem; margin: 0 0 .1rem; }
.mb-contact-submit {
  justify-self: start; padding: .82rem 1.4rem; cursor: pointer;
  background: rgba(199,154,85,.13); color: #f0e4cb;
  border: 1px solid var(--gold); border-radius: .16rem;
  font: 600 .75rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .11em;
  transition: background .2s ease, color .2s ease;
}
.mb-contact-submit:hover { background: rgba(199,154,85,.23); color: #fff; }
.mb-contact-submit:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.mb-contact-success, .mb-contact-error {
  padding: 1rem 1.2rem; border-left: 2px solid var(--gold);
  background: rgba(199,154,85,.06); color: #e0e5e7; font-size: .95rem;
}
.mb-contact-error { border-color: #cb8e7b; background: rgba(203,142,123,.08); }
.mb-contact-error p { margin: 0; }
.mb-contact-error ul { margin: .4rem 0 0; }
.mb-contact-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .mb-contact-submit { width: 100%; justify-self: stretch; } }


/* v0.47 – Accessibility improvements, WCAG 2.2 AA target (not a conformance claim). */
:root {
  --muted-2: #aab5bd; /* remains above 4.5:1 on the intended dark surfaces */
}
html { scroll-padding-top: 6rem; }
:target { scroll-margin-top: 6rem; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .85rem 1rem;
  color: #07111a;
  background: #f2d29d;
  border: 2px solid #07111a;
  border-radius: .25rem;
  font: 700 1rem/1.3 var(--sans);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible {
  color: #07111a;
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}
:where(a, button, input, textarea):focus-visible {
  outline: 2px solid #f2d29d;
  outline-offset: 3px;
}
/* Keep keyboard targets large while preserving the quiet navigation. */
nav ul { flex-wrap: wrap; gap: .15rem .65rem; }
nav a, .lang { font-size: .8125rem; letter-spacing: .08em; }
nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .5rem .25rem;
}
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
nav a[aria-current="page"] { color: var(--gold-bright); }
.cta-row { font-size: .875rem; letter-spacing: .07em; }
.cta-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem .4rem;
}
body.landing .language-links { font-size: .875rem; letter-spacing: .1em; }
body.landing .language-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem .45rem;
}
footer { font-size: .8125rem; letter-spacing: .025em; }
footer .footer-motto { font-size: .75rem; letter-spacing: .07em; }
footer .footer-links a { display: inline-block; padding: .4rem .15rem; }
body.landing .preparation { color: #aab5bd; font-size: .875rem; }
.pullquote .source { font-size: .8125rem; }
.note { color: #b5bfc6; }
.mb-required-hint { color: #d7dde1; margin: .4rem 0 0; font: 400 .9rem/1.5 var(--sans); }
.mb-field-help { margin: .1rem 0 0; color: #bdc8cf; font: 400 .875rem/1.5 var(--sans); }
.mb-field-error { margin: .1rem 0 0; color: #f5b7a5; font: 500 .9rem/1.5 var(--sans); }
.mb-contact-field [aria-invalid="true"] { border-color: #f5b7a5; border-width: 2px; }
/* Preserve the error boundary when a pointer hovers an invalid field. */
.mb-contact-field :is(input, textarea)[aria-invalid="true"]:hover { border-color: #f5b7a5; }
.mb-contact-error a { color: #fff0e9; text-decoration-thickness: 2px; }
.mb-contact-error a:hover, .mb-contact-error a:focus-visible { text-decoration-color: #f5b7a5; }
.mb-contact-honey {
  position: absolute;
  left: auto;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  html { scroll-padding-top: 1rem; }
  :target { scroll-margin-top: 1rem; }
}
@media (prefers-contrast: more) {
  :root { --muted-2: #d4dbe0; }
  nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
}


/* v0.48 – Contact-page keyboard focus / reflow adjustment.
 * Preserve native browser focus scrolling, without JS or forced focus changes.
 * Keep the next interactive control comfortably visible beneath the header.
 */
.mb-contact-page main { padding-top: 2.5rem; }
.mb-contact-page .mb-contact { padding-top: 0; }
.mb-contact-page .mb-contact .lead { margin-bottom: 1.4rem; }
.mb-contact-page .mb-contact-form { margin-top: 1.3rem; }
.mb-contact-page :where(.mb-contact-field input, .mb-contact-field textarea, .mb-contact-submit, .mb-contact-error a):focus-visible {
  scroll-margin-block-start: 7rem;
  scroll-margin-block-end: 5rem;
}
@media (max-width: 900px) {
  .mb-contact-page main { padding-top: 2rem; }
  .mb-contact-page :where(.mb-contact-field input, .mb-contact-field textarea, .mb-contact-submit, .mb-contact-error a):focus-visible {
    scroll-margin-block-start: 2rem;
    scroll-margin-block-end: 2rem;
  }
}


/* v0.54: Avoid high-zoom focus clipping on the contact page.
 * The sticky navigation and large scroll offsets can exceed the entire
 * viewport at 400% browser zoom. Other pages keep their existing behavior.
 */
.mb-contact-document { scroll-padding-top: .5rem; }
.mb-contact-page header { position: static; }
.mb-contact-page :where(.mb-contact-field input, .mb-contact-field textarea,
                        .mb-contact-submit, .mb-contact-error a):focus-visible {
  scroll-margin-block-start: .5rem;
  scroll-margin-block-end: .5rem;
}


/* v0.58: Keep long book-page headings and narrow status tables readable
 * when visitors increase text spacing (WCAG 2.2 SC 1.4.12). */
.status th, .status td {
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 420px) {
  body:not(.landing) main h1 {
    font-size: 2.1rem;
    overflow-wrap: anywhere;
  }
}

/* MB v0.64: Book-page alignment refinement */

/* Reading text and actions follow the left reading edge. */
body.book-page main > .wrap > .lead,
body.book-page .book-showcase,
body.book-page .book-copy {
  text-align: left;
}

body.book-page main > .wrap > .cta-row {
  justify-content: center;
  text-align: center;
}

/* Keep the cover centred on narrow screens,
   while its accompanying text remains left aligned. */
@media (max-width: 640px) {
  body.book-page .book-object {
    margin-inline: auto;
  }

  body.book-page .book-facts {
    display: block;
    text-align: left;
  }
}


/* MB v0.64: Homepage book CTA alignment */
body:not(.book-page) .book-showcase .cta-row {
  justify-content: flex-start;
  text-align: left;
}


/* MB v0.64: Mobile book CTA centering */
@media (max-width: 640px) {
  body.book-page .cta-row {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  body.book-page .cta-row a {
    justify-content: center;
    text-align: center;
  }
}


/* MB v0.64: Mobile homepage book links */
@media (max-width: 640px) {
  body:not(.book-page) .book-showcase .cta-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    text-align: center;
  }
}
