/* The Amsterdam Adventure: archive design system. Verdana and Arial only, neutral grounds, restrained blue, square corners. */

/* tokens */
:root {
  --bg: #fafaf8; --surface: #ffffff; --shade: #f1f2f3; --shade-2: #e8eaec;
  --ink: #1c2126; --ink-2: #363e46; --muted: #5e6770; --faint: #6c747c;
  --line: #d5d9dd; --line-soft: #e5e8ea;
  --accent: #285a8c; --accent-ink: #1b3d63; --accent-tint: #eaf0f6; --navy: #183456;
  --sans: Verdana, Geneva, "DejaVu Sans", sans-serif;
  --ui: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --wrap: 1280px; --wrap-text: 44rem; --gutter: clamp(16px, 3.2vw, 36px);
  --section: clamp(40px, 6vw, 80px);
  --ease: cubic-bezier(.2, .6, .2, 1); --t: 180ms;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.amx { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; overflow-x: clip; }
:where(body.amx) :where(h1, h2, h3, h4, h5, h6) { margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink); letter-spacing: -.012em; }
:where(body.amx) :where(p, ul, ol, dl, figure, blockquote) { margin: 0; }
:where(body.amx) :where(img, svg, video) { display: block; max-width: 100%; }
:where(body.amx) img { height: auto; }
:where(body.amx) a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(body.amx) a:hover { color: var(--accent); }
:where(body.amx) :where(button, input, select, textarea) { font: inherit; color: inherit; border-radius: 0; }
:where(body.amx) :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-tint); color: var(--ink); }

.amx-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text, .amx-sr { position: absolute !important; 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; }
.amx-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: #fff; font: 13px var(--ui); text-decoration: none; }
.amx-skip:focus { top: 12px; color: #fff; }
body.admin-bar .amx-skip:focus { top: 44px; }

.amx-label { display: block; margin: 0 0 8px; font: 700 11px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.amx-heading-sm { margin-bottom: 12px; font: 700 12px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.amx-note { font: 12.5px/1.55 var(--ui); color: var(--muted); }
.amx-arrow { display: inline-block; transition: transform var(--t) var(--ease); }
a:hover .amx-arrow, a:focus-visible .amx-arrow { transform: translateX(3px); }

.amx-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding-bottom: 1px; border-bottom: 1px solid currentColor; font: 13px/1.3 var(--sans); color: var(--accent-ink); text-decoration: none; }
.amx-link:hover { color: var(--accent); }
.amx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--accent-ink); background: var(--accent-ink); color: #fff; font: 13px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.amx-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.amx-btn--line { background: transparent; color: var(--accent-ink); }
.amx-btn--line:hover { background: var(--accent-ink); color: #fff; }
.amx-btn--invert { min-height: 38px; padding: 8px 16px; background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; font-size: 12.5px; }
.amx-btn--invert:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* header: three levels */
.amx-header { position: relative; z-index: 50; background: var(--surface); }
.amx-id { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.amx-id__inner { display: flex; justify-content: center; }
.amx-id__text { display: flex; align-items: center; gap: 14px; padding: 8px 0 7px; font: 11px/1.2 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.amx-id__rule { flex: 0 0 28px; height: 1px; background: var(--accent); }

.amx-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.amx-bar__inner { display: flex; align-items: center; gap: 28px; min-height: 54px; }
.amx-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 44px; margin-left: -8px; color: var(--accent-ink); }
.amx-logo:hover { color: var(--accent); }
.amx-logo__svg { width: 21px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.amx-logo__svg text { fill: currentColor; font-size: 13px; }
.amx-nav__list { display: flex; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.amx-nav__list a { position: relative; display: flex; align-items: center; min-height: 54px; font: 13px/1.2 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; }
.amx-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.amx-nav__list a:hover { color: var(--accent-ink); }
.amx-nav__list a:hover::after, .amx-nav__list .current-menu-item > a::after, .amx-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.amx-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.amx-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; min-width: 40px; padding: 0 12px; border: 1px solid transparent; background: transparent; color: var(--ink); font: 13px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.amx-tool:hover { color: var(--accent-ink); background: var(--shade); }
.amx-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.amx-tool--search[aria-expanded="true"] { background: var(--shade); border-color: var(--line); }
.amx-tool--support { border-color: var(--accent-ink); color: var(--accent-ink); }
.amx-tool--support:hover, .amx-tool--support[aria-current="page"] { background: var(--accent-ink); color: #fff; }
.amx-tool--menu { display: none; }
.amx-menu-icon { position: relative; width: 16px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.amx-menu-icon::after, .amx-menu-icon::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.amx-menu-icon::before { display: none; }
.amx-tool--menu[aria-expanded="true"] .amx-menu-icon { border-color: transparent; }
.amx-tool--menu[aria-expanded="true"] .amx-menu-icon::after { transform: rotate(45deg); }
.amx-tool--menu[aria-expanded="true"] .amx-menu-icon::before { display: block; transform: rotate(-45deg); }

.amx-search { display: none; border-top: 1px solid var(--line-soft); background: var(--shade); }
.amx-header.is-search-open .amx-search { display: block; }
.amx-search .amx-wrap { padding-block: 12px; }
.amx-searchform { display: flex; max-width: 620px; }
.amx-searchform__field { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-right: 0; background: var(--surface); color: var(--ink); font: 14px/1.3 var(--sans); -webkit-appearance: none; appearance: none; }
.amx-searchform__field::placeholder { color: var(--faint); }
.amx-searchform__field:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.amx-searchform__submit { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--accent-ink); background: var(--accent-ink); color: #fff; font: 13px var(--sans); cursor: pointer; }
.amx-searchform__submit:hover { background: var(--accent); border-color: var(--accent); }

.amx-chapters { background: var(--shade); border-bottom: 1px solid var(--line); }
.amx-chapters__inner { display: flex; align-items: stretch; }
.amx-chapters__book { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 52px; margin-left: -10px; border-right: 1px solid var(--line); color: var(--accent-ink); text-decoration: none; }
.amx-chapters__book:hover, .amx-chapters__book[aria-current="page"] { background: var(--surface); color: var(--accent); }
.amx-book-icon { width: 30px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.amx-chapters__book-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.amx-chapters__list { flex: 1 1 auto; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.amx-chapters__item + .amx-chapters__item { border-left: 1px solid var(--line-soft); }
.amx-chapters__link { position: relative; display: block; height: 100%; padding: 9px 10px 10px; color: var(--ink-2); text-decoration: none; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.amx-chapters__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.amx-chapters__link:hover, .amx-chapters__link[aria-current="page"] { background: var(--surface); color: var(--ink); }
.amx-chapters__link:hover::after, .amx-chapters__link[aria-current="page"]::after { transform: scaleX(1); }
.amx-chapters__link:focus-visible { outline-offset: -2px; }
.amx-chapters__num { display: block; margin-bottom: 4px; font: 700 10.5px/1 var(--ui); letter-spacing: .12em; color: var(--accent); }
.amx-chapters__title { display: block; font: 11.5px/1.3 var(--ui); }

@media (max-width: 1099px) {
  .amx-bar__inner { flex-wrap: wrap; gap: 0 12px; }
  .amx-tool--menu { display: inline-flex; }
  html.js .amx-nav, html.js .amx-chapters { display: none; }
  html.js .amx-header.is-menu-open .amx-nav, html.js .amx-header.is-menu-open .amx-chapters { display: block; }
  .amx-nav { order: 5; flex: 1 0 100%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-top: 1px solid var(--line-soft); }
  .amx-nav__list { flex-wrap: wrap; gap: 0 22px; padding: 6px 0; }
  .amx-nav__list a { min-height: 44px; }
  .amx-chapters__inner { flex-direction: column; padding-block: 8px 12px; }
  .amx-chapters__book { justify-content: flex-start; gap: 12px; width: auto; margin: 0; padding: 8px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .amx-chapters__book-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; font: 13px/1.3 var(--sans); color: var(--ink); }
  .amx-chapters__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .amx-chapters__item + .amx-chapters__item { border-left: 0; }
  .amx-chapters__item { border-bottom: 1px solid var(--line-soft); }
  .amx-chapters__link { display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 11px 6px; }
  .amx-chapters__num { flex: 0 0 22px; margin: 0; }
  .amx-chapters__title { font-size: 13px; }
}
@media (max-width: 640px) {
  .amx-id__text { gap: 10px; letter-spacing: .22em; font-size: 10px; }
  .amx-id__rule { flex-basis: 16px; }
  .amx-bar__inner { min-height: 52px; }
  .amx-tool { padding: 0 9px; }
  .amx-tool--search .amx-tool__label, .amx-tool--menu .amx-tool__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
  .amx-tool--search, .amx-tool--menu { min-width: 44px; min-height: 44px; justify-content: center; }
  .amx-chapters__list { grid-template-columns: 1fr; }
  .amx-searchform__submit span { display: none; }
}
@media (max-width: 360px) { .amx-tools { gap: 2px; } .amx-tool--support { padding: 0 8px; font-size: 12px; } }

/* shells */
.amx-main { display: block; }
.amx-section { padding-block: var(--section); }
.amx-section--tight { padding-block: clamp(28px, 4vw, 48px); }
.amx-section-title { margin-bottom: 24px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.2; }
.amx-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.amx-section-head .amx-section-title { margin: 0; }
.amx-page-head { padding-block: clamp(26px, 4vw, 44px) 0; margin-bottom: clamp(22px, 3vw, 32px); }
.amx-page-head__title { max-width: 30ch; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; }
.amx-page-head__deck { max-width: 60ch; margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.amx-page-head__deck p + p { margin-top: .8em; }

/* prose */
.amx-prose { max-width: var(--wrap-text); color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.amx-prose > * + * { margin-top: 1.1em; }
.amx-prose h2 { margin-top: 2em; font-size: 1.3rem; line-height: 1.3; color: var(--ink); }
.amx-prose h3 { margin-top: 1.8em; font-size: 1.08rem; line-height: 1.35; color: var(--ink); }
.amx-prose h4 { margin-top: 1.6em; font: 700 12px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.amx-prose ul, .amx-prose ol { padding-left: 1.3em; }
.amx-prose li + li { margin-top: .4em; }
.amx-prose blockquote { margin-inline: 0; padding: .2em 0 .2em 1.3em; border-left: 2px solid var(--accent); color: var(--ink); }
.amx-prose blockquote cite { display: block; margin-top: .6em; font: 12px var(--ui); font-style: normal; color: var(--muted); }
.amx-prose figure, .amx-prose .wp-block-image { margin-block: 1.8em; }
.amx-prose figcaption, .amx-prose .wp-element-caption { margin-top: .6em; font: 12.5px/1.5 var(--ui); color: var(--muted); }
.amx-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.amx-prose a { color: var(--accent-ink); text-decoration: underline; }
.amx-prose table { width: 100%; border-collapse: collapse; font: 13px/1.5 var(--ui); }
.amx-prose th, .amx-prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.amx-prose .wp-block-button__link { border-radius: 0; background: var(--accent-ink); color: #fff; text-decoration: none; font: 13px var(--sans); padding: 12px 20px; }
.amx-prose .wp-block-tag-cloud, .amx-prose .wp-block-post-terms, .amx-prose .ambook-tags, .amx-prose .tag-list { display: none; }

/* blue banner band */
.amx-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy) var(--amx-band-image, none) center 45% / cover no-repeat; }
.amx-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 42, 70, .92) 0%, rgba(24, 52, 86, .78) 45%, rgba(29, 62, 101, .55) 100%); }
.amx-band__inner { display: flex; flex-direction: column; justify-content: center; min-height: clamp(170px, 16vw, 230px); padding-block: 28px; }
.amx-band__title { color: #fff; font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; }
.amx-band__sub { max-width: 52ch; margin-top: 8px; color: rgba(255, 255, 255, .86); font-size: 14px; line-height: 1.5; }
.amx-band__actions { margin-top: 18px; }
.amx-band .amx-searchform { max-width: 520px; margin-top: 18px; }
.amx-band .amx-searchform__field { border-color: transparent; }
.amx-archive-band .amx-band__inner { min-height: clamp(190px, 18vw, 250px); }

/* home: chapter shelf (carousel) */
.amx-shelf { padding-block: clamp(22px, 3vw, 34px) 8px; }
.amx-shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.amx-shelf__title { margin-bottom: 14px; font-size: 15px; line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.amx-shelf__head .amx-shelf__title { margin: 0; }
.amx-carousel__status { font: 12px/1 var(--ui); letter-spacing: .04em; color: var(--muted); }
.amx-shelf__body { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 8px; margin-inline: -44px; }
.amx-shelf__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink-2); font: 30px/1 var(--ui); cursor: pointer; }
.amx-shelf__btn:hover { color: var(--accent); }
.amx-shelf__btn:disabled { opacity: .25; cursor: default; }
.amx-carousel__track { display: flex; gap: 14px; margin: 0; padding: 2px; list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.amx-carousel__track::-webkit-scrollbar { display: none; }
.amx-carousel__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.amx-slide { flex: 0 0 calc((100% - 4 * 14px) / 5); min-width: 0; scroll-snap-align: start; }
.amx-slide__card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.amx-slide__card:hover { border-color: var(--line); box-shadow: 0 10px 24px -18px rgba(20, 42, 70, .55); }
.amx-slide__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--shade); }
.amx-slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.amx-slide__card:hover .amx-slide__media img { transform: scale(1.03); }
.amx-slide__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.amx-slide__body .amx-label { margin: 0; font-size: 10px; }
.amx-slide__title { display: block; font: 12.5px/1.35 var(--sans); color: var(--ink); }
.amx-slide__intro { display: block; font: 11.5px/1.45 var(--ui); color: var(--muted); }
.amx-slide__more { display: block; margin-top: auto; padding-top: 6px; font: 11.5px/1.3 var(--ui); color: var(--accent-ink); }
.amx-carousel__dots { display: flex; justify-content: center; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.amx-carousel__dot { position: relative; width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.amx-carousel__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--line); }
.amx-carousel__dot[aria-current="true"]::before { background: var(--accent); }
.amx-carousel__dot:hover::before { background: var(--faint); }
html:not(.js) .amx-shelf__btn { visibility: hidden; }
html:not(.js) .amx-carousel__dots, html:not(.js) .amx-carousel__status { display: none; }
@media (max-width: 1360px) { .amx-shelf__body { margin-inline: 0; } }
@media (max-width: 1099px) { .amx-slide { flex-basis: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 700px) {
  .amx-shelf__body { grid-template-columns: minmax(0, 1fr); }
  .amx-shelf__btn { display: none; }
  .amx-slide { flex-basis: 82%; }
  .amx-slide__title { font-size: 13.5px; }
  .amx-slide__intro { font-size: 12.5px; }
}

/* home: topics */
.amx-topics { padding-block: clamp(22px, 3vw, 34px) clamp(36px, 5vw, 56px); }
.amx-topics__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.amx-topic { display: block; color: var(--ink); text-decoration: none; }
.amx-topic:focus-visible { outline-offset: 3px; }
.amx-topic__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--shade-2); }
.amx-topic__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.amx-topic:hover .amx-topic__media img { transform: scale(1.04); }
.amx-topic__title { display: block; padding-top: 8px; font: 12px/1.35 var(--ui); color: var(--ink-2); }
.amx-topic:hover .amx-topic__title { color: var(--accent-ink); text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 1099px) { .amx-topics__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 700px) { .amx-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .amx-topic__title { font-size: 12.5px; } }

/* home: book team, record, updates */
.amx-team { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.amx-team__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.amx-team__copy p { max-width: 58ch; color: var(--ink-2); line-height: 1.75; }
.amx-team__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.amx-team__about { margin-top: 18px; }
.amx-team__cover { justify-self: center; width: min(100%, 240px); }
.amx-team__cover img, .amx-split__cover img { width: 100%; box-shadow: 0 1px 2px rgba(28, 33, 38, .08), 0 12px 28px -14px rgba(28, 33, 38, .35); }
.amx-record { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4vw, 48px); background: var(--shade); border-left: 3px solid var(--accent); }
.amx-record__title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.2; }
.amx-record__text { color: var(--ink-2); line-height: 1.75; }
.amx-record__text .amx-btn { margin-top: 20px; }
.amx-updates__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.amx-update { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 22px 0; }
.amx-update + .amx-update { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.amx-update__date { font: 11.5px/1 var(--ui); letter-spacing: .04em; color: var(--faint); }
.amx-update__excerpt { color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.amx-update__more { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) {
  .amx-team__grid, .amx-record { grid-template-columns: 1fr; }
  .amx-team__cover { width: min(70%, 220px); justify-self: start; }
  .amx-updates__grid { grid-template-columns: 1fr; }
  .amx-update, .amx-update + .amx-update { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  html:has(body.ambook-home) { scroll-snap-type: y proximity; }
  body.ambook-home .amx-snap { scroll-snap-align: start; }
}

/* timeline strip and footer */
.amx-strip { background: var(--accent-tint); border-top: 1px solid var(--line); }
.amx-strip__link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 28px; padding-block: 22px; color: var(--ink); text-decoration: none; }
.amx-strip__title { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.3; }
.amx-strip__desc { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.amx-strip__go { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--accent-ink); color: var(--accent-ink); font: 18px/1 var(--ui); transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.amx-strip__link:hover .amx-strip__go { background: var(--accent-ink); color: #fff; }
.amx-strip__link:hover .amx-strip__title { color: var(--accent-ink); }
@media (max-width: 760px) { .amx-strip__link { grid-template-columns: 1fr auto; } .amx-strip__desc { grid-column: 1 / -1; grid-row: 2; } }
.amx-footer { background: var(--shade); border-top: 1px solid var(--line); color: var(--ink-2); }
.amx-footer__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(36px, 5vw, 56px); }
.amx-footer__prompt { max-width: 46ch; font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.amx-footer__help { margin-top: 14px; }
.amx-footer__preorder { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.amx-footer__heading { margin-bottom: 12px; font: 700 11px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.amx-footer__menu { margin: 0; padding: 0; list-style: none; }
.amx-footer__menu a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.amx-footer__menu a:hover { color: var(--accent-ink); text-decoration: underline; }
.amx-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.amx-footer__brand .amx-logo { width: 28px; height: 34px; margin: 0; justify-content: flex-start; }
.amx-footer__copy { font: 12px/1.6 var(--ui); color: var(--muted); }
.amx-footer__mantra { padding: 16px var(--gutter) 22px; border-top: 1px solid var(--line); text-align: center; font: 11.5px/1.7 var(--ui); letter-spacing: .04em; color: var(--faint); }
@media (max-width: 860px) { .amx-footer__grid { grid-template-columns: 1fr 1fr; } .amx-footer__cta { grid-column: 1 / -1; } }
@media (max-width: 480px) { .amx-footer__grid { grid-template-columns: 1fr; } }

/* chapter preview pages */
.amx-chapter-banner { position: relative; height: clamp(220px, 24vw, 340px); overflow: hidden; background: var(--shade); border-bottom: 1px solid var(--line); }
.amx-chapter-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.amx-chapter-head { padding-block: clamp(26px, 4vw, 44px) clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 44px); }
.amx-chapter-head__marker { margin-bottom: 12px; font: 700 11px/1 var(--ui); letter-spacing: .14em; color: var(--accent); }
.amx-chapter-head__title { max-width: 30ch; font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.15; }
.amx-chapter-head__line { margin-top: 12px; color: var(--muted); font-size: 15px; }
.amx-chapter-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: var(--section); }
.amx-aside { display: grid; gap: 28px; }
.amx-aside__block { padding-top: 14px; border-top: 1px solid var(--line); }
.amx-aside__block h2 { margin-bottom: 10px; font: 700 11px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.amx-aside__list { margin: 0; padding: 0; list-style: none; }
.amx-aside__list li + li { margin-top: 8px; }
.amx-aside__list a { font-size: 13.5px; line-height: 1.5; }
.amx-meta { display: block; font: 11.5px var(--ui); color: var(--faint); }
@media (max-width: 1023px) { .amx-chapter-banner { display: none; } }
@media (max-width: 900px) { .amx-chapter-grid { grid-template-columns: 1fr; } }

.amx-video { display: grid; gap: 10px; }
.amx-video__frame { position: relative; background: var(--ink); }
.amx-video__frame video, .amx-video__frame iframe, .amx-video__frame .wp-video { width: 100% !important; }
.amx-video__frame--embed iframe { aspect-ratio: 16 / 9; height: auto; }
.amx-video__placeholder { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--shade-2); }
.amx-video__placeholder img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(.92); opacity: .7; }
.amx-video__placeholder::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; background: rgba(255, 255, 255, .92); }
.amx-video__placeholder::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; margin: -10px 0 0 -6px; border-left: 17px solid var(--navy); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.amx-video__badge { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 7px 10px; background: var(--surface); border-top: 2px solid var(--accent); font: 700 10.5px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.amx-video__title { font-size: 14px; line-height: 1.4; }
.amx-video__caption { font: 12.5px/1.6 var(--ui); color: var(--muted); }
.amx-notice { padding: 12px 14px; background: var(--shade); font-size: 13px; }

.amx-look-inside { max-width: var(--wrap-text); margin-top: clamp(40px, 6vw, 64px); padding: 26px 28px; background: var(--shade); border-top: 2px solid var(--accent); }
.amx-look-inside__title { margin-bottom: 8px; font-size: 1.2rem; line-height: 1.3; }
.amx-look-inside__title a { color: var(--ink); text-decoration: none; }
.amx-look-inside__title a:hover { color: var(--accent-ink); }
.amx-look-inside p { color: var(--ink-2); font-size: 14px; }
.amx-look-inside__links { margin-top: 12px; }

.amx-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: var(--section); background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.amx-pager a, .amx-pager span { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--bg); color: var(--ink); text-decoration: none; }
.amx-pager a:hover { background: var(--surface); }
.amx-pager__dir { font: 700 10.5px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.amx-pager__title { font-size: 14px; line-height: 1.4; }
.amx-pager__next { text-align: right; align-items: flex-end; }
@media (max-width: 560px) { .amx-pager { grid-template-columns: 1fr; } .amx-pager__next { text-align: left; align-items: flex-start; } }

/* topic landing pages */
.amx-topic-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.amx-topic-head__title { font-size: clamp(1.55rem, 2.9vw, 2.25rem); line-height: 1.15; }
.amx-topic-head__deck { margin-top: 14px; color: var(--muted); line-height: 1.65; }
.amx-topic-head__banner { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--shade); }
.amx-topic-head__banner img { width: 100%; height: 100%; object-fit: cover; }
.amx-topic-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: var(--section); }
@media (max-width: 900px) { .amx-topic-head, .amx-topic-grid { grid-template-columns: 1fr; } .amx-topic-head__banner { order: -1; aspect-ratio: 16 / 7; } }

/* rows and cards */
.amx-rows { border-top: 1px solid var(--line); }
.amx-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(18px, 3vw, 40px); align-items: start; padding-block: 24px; border-bottom: 1px solid var(--line); }
.amx-row__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--shade); }
.amx-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.amx-row__media:hover img { transform: scale(1.02); }
.amx-row__title { margin-bottom: 8px; font-size: 1.2rem; line-height: 1.3; }
.amx-row__title a { color: var(--ink); text-decoration: none; }
.amx-row__title a:hover { color: var(--accent-ink); }
.amx-row__text { max-width: 60ch; margin-bottom: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.amx-row__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 680px) { .amx-row { grid-template-columns: 1fr; } }

.amx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.amx-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.amx-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 960px) { .amx-cards--3, .amx-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .amx-cards--3, .amx-cards--4 { grid-template-columns: 1fr; } }
.amx-card { display: flex; flex-direction: column; gap: 10px; }
.amx-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--shade); }
.amx-card__media img { width: 100%; height: 100%; object-fit: cover; }
.amx-card__blank { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--shade) 0%, var(--shade-2) 100%); }
.amx-card__meta { font: 11.5px/1.4 var(--ui); letter-spacing: .04em; color: var(--faint); }
.amx-card__title { font-size: 1.02rem; line-height: 1.35; }
.amx-card__title a { color: var(--ink); text-decoration: none; }
.amx-card__title a:hover { color: var(--accent-ink); }
.amx-card__text { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.amx-card .amx-link { align-self: flex-start; }

.amx-empty { max-width: 58ch; padding: 28px; background: var(--shade); border-left: 3px solid var(--accent); }
.amx-empty h2 { margin-bottom: 8px; font-size: 1.15rem; }
.amx-empty p { color: var(--ink-2); }
.amx-empty .amx-link { margin-top: 14px; }
.amx-pagination { margin-top: 32px; }
.amx-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.amx-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 13px var(--ui); text-decoration: none; }
.amx-pagination .page-numbers.current { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

/* archive and timeline */
.amx-years { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 28px; padding: 0; list-style: none; }
.amx-years a, .amx-years span { display: inline-flex; align-items: center; justify-content: center; min-width: 60px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 13px var(--ui); text-decoration: none; }
.amx-years a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.amx-years [aria-current="true"], .amx-years [aria-current="page"] { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.amx-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 28px; padding: 16px 18px; background: var(--shade); }
.amx-filter label { display: grid; gap: 6px; font: 700 11px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.amx-filter select, .amx-filter input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 13px var(--ui); letter-spacing: 0; text-transform: none; }
.amx-meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 13px/1.55 var(--ui); }
.amx-meta-list dt { font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.amx-meta-list dd { margin: 0; color: var(--ink); }
@media (max-width: 520px) { .amx-meta-list { grid-template-columns: 1fr; gap: 2px; } .amx-meta-list dd { margin-bottom: 10px; } }
.amx-original { margin-bottom: 24px; background: var(--shade); }
.amx-original img { width: auto; max-height: 80vh; margin-inline: auto; }

.amx-timeline__year { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 clamp(18px, 3vw, 40px); scroll-margin-top: 16px; }
.amx-timeline__yearlabel { position: sticky; top: 16px; align-self: start; padding-top: 2px; font: 700 15px/1.2 var(--ui); color: var(--accent-ink); }
.amx-timeline__events { position: relative; padding: 0 0 24px 28px; border-left: 2px solid var(--line); }
.amx-event { position: relative; padding-bottom: 26px; }
.amx-event::before { content: ""; position: absolute; left: -35px; top: 4px; width: 12px; height: 12px; background: var(--surface); border: 2px solid var(--accent); }
.amx-event__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; font: 12px/1.4 var(--ui); color: var(--muted); }
.amx-event__precision { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.amx-event__title { margin-bottom: 8px; font-size: 1.1rem; line-height: 1.35; }
.amx-event__title a { color: var(--ink); text-decoration: none; }
.amx-event__title a:hover { color: var(--accent-ink); }
.amx-event .amx-prose { font-size: 14px; }
.amx-event__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
@media (max-width: 640px) { .amx-timeline__year { grid-template-columns: 1fr; } .amx-timeline__yearlabel { position: static; margin: 0 0 10px; } }

/* team, support, forms */
.amx-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; margin-bottom: var(--section); }
@media (max-width: 860px) { .amx-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .amx-team-grid { grid-template-columns: 1fr; } }
.amx-person__photo { position: relative; aspect-ratio: 4 / 5; margin-bottom: 14px; overflow: hidden; background: var(--shade); }
.amx-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.amx-person__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 20px; text-align: center; background: repeating-linear-gradient(135deg, var(--shade) 0 12px, var(--shade-2) 12px 13px); font: 700 11px/1.5 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.amx-person__role { margin-bottom: 6px; font: 700 11px/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.amx-person__name { margin-bottom: 8px; font-size: 1.1rem; line-height: 1.3; }
.amx-person__bio { font-size: 14px; color: var(--ink-2); }

.amx-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: var(--section); }
.amx-split__cover { width: min(100%, 300px); }
@media (max-width: 860px) { .amx-split { grid-template-columns: 1fr; } .amx-split__cover { order: -1; width: min(60%, 220px); } }

.amx-support-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 28px; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.amx-support-hero img { width: 100%; box-shadow: 0 10px 22px -16px rgba(20, 42, 70, .5); }
.amx-support-hero h2 { margin-bottom: 8px; font-size: 1.1rem; }
.amx-support-hero p { color: var(--ink-2); font-size: 14px; }
.amx-support-hero .amx-team__actions { margin-top: 16px; }
@media (max-width: 600px) { .amx-support-hero { grid-template-columns: 1fr; } .amx-support-hero img { width: 140px; } }
.amx-features3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--section); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.amx-features3 > * { padding: 26px 22px; text-align: center; scroll-margin-top: 20px; }
.amx-features3 > * + * { border-left: 1px solid var(--line-soft); }
.amx-features3 svg { width: 28px; height: 28px; margin: 0 auto 10px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.amx-features3 h2 { margin-bottom: 6px; font-size: 14px; }
.amx-features3 p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.amx-features3 .amx-link { margin-inline: auto; }
@media (max-width: 760px) { .amx-features3 { grid-template-columns: 1fr; } .amx-features3 > * + * { border-left: 0; border-top: 1px solid var(--line-soft); } }

.amx-form { display: grid; gap: 16px; max-width: 560px; }
.amx-form__field { display: grid; gap: 6px; }
.amx-form label { font: 700 12px/1.3 var(--ui); letter-spacing: .06em; color: var(--ink); }
.amx-req { color: var(--accent); }
.amx-form input[type="text"], .amx-form input[type="email"], .amx-form select, .amx-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 14px/1.4 var(--sans); }
.amx-form textarea { min-height: 120px; resize: vertical; }
.amx-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.amx-form .amx-form__check { display: flex; gap: 10px; align-items: flex-start; font: 13px/1.5 var(--ui); letter-spacing: 0; }
.amx-form__check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent-ink); }
.amx-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.amx-status { margin-bottom: 18px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-tint); font-size: 14px; }
.amx-status--error { border-left-color: #a33a2b; background: #f8ecea; }

/* search */
.amx-tabs { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 18px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.amx-tabs a { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: -1px; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--ink-2); font: 13px var(--ui); text-decoration: none; }
.amx-tabs a:hover { color: var(--accent-ink); }
.amx-tabs a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.amx-results { border-top: 1px solid var(--line); }
.amx-result { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; padding-block: 20px; border-bottom: 1px solid var(--line); }
.amx-result__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--shade); }
.amx-result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.amx-result__type { margin-bottom: 6px; font: 700 10.5px/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.amx-result__title { margin-bottom: 6px; font-size: 1.08rem; line-height: 1.35; }
.amx-result__title a { color: var(--ink); text-decoration: none; }
.amx-result__title a:hover { color: var(--accent-ink); text-decoration: underline; }
.amx-result__text { max-width: 70ch; color: var(--ink-2); font-size: 14px; }
.amx-tips { margin: 14px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: 14px; }
@media (max-width: 520px) { .amx-result { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; } }

/* WordPress extras */
.alignwide { max-width: min(100%, 64rem); }
.alignfull { width: 100%; }
.wp-caption-text { font: 12.5px var(--ui); color: var(--muted); }

/* motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
}
@media print {
  .amx-header, .amx-strip, .amx-footer, .amx-shelf__btn, .amx-carousel__dots { display: none !important; }
  body.amx { background: #fff; }
}
