/* ==========================================================================
   AUER page. Loaded after home.css and pages.css, in the site's own tokens
   (--navy, --maroon, --cream, --line, --muted, --serif, --sans).
   The bookshelf is a set of Blender renders: one frame of each book on the
   shelf, spine out, and a sheet of 18 frames in which it turns and opens.
   A frame is 2.3 by 1.8 book widths (--w).
   ========================================================================== */

.ar { --gutter: clamp(18px, 2.4vw, 32px); --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ar h2 { font: clamp(36px, 4vw, 54px)/1.12 var(--serif); color: var(--navy); }
.ar h3 { color: var(--navy); }

/* Page head */
.ar-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: end; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.ar-head__copy { grid-column: 1 / span 7; }
.ar-head h1 { font: clamp(48px, 5.6vw, 84px)/1.02 var(--serif); letter-spacing: -1.5px; color: var(--navy); max-width: 11em; }
.ar-lead { margin-top: 26px; max-width: 34em; font-size: 17px; line-height: 1.75; }
.ar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 10px; }
.ar-actions .text-link { margin-top: 25px; }
.ar-head__pic { grid-column: 9 / span 4; margin: 0; }
.ar-head__pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ar-head__pic figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Facts */
.ar-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ar-facts > div { background: var(--cream); padding: 22px 24px; }
.ar-facts dt { font-size: 13px; color: var(--muted); }
.ar-facts dd { margin: 6px 0 0; font: 24px/1.2 var(--serif); color: var(--navy); }

/* The bookshelf */
.ar-shelf-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: end; }
.ar-shelf-wrap__head { grid-column: 1 / span 4; align-self: center; }
.ar-shelf-wrap__head p { margin-top: 18px; font-size: 16px; max-width: 26em; }
.ar-shelf {
  --w: clamp(10rem, 18.5vw, 17rem); --fw: calc(var(--w) * 2.3); --fh: calc(var(--w) * 1.8);
  grid-column: 5 / span 8; position: relative; overflow-x: clip; list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: flex-end; gap: calc(var(--w) * .06);
  min-height: var(--fh); margin-bottom: 16px;
}
/* The shelf seen from a little above: its top face, then its front edge. */
.ar-shelf::before, .ar-shelf::after { content: ""; position: absolute; left: 0; right: 0; }
.ar-shelf::before { bottom: calc(var(--fh) * .0865); height: calc(var(--fh) * .0392); background: #e7e1d4; }
.ar-shelf::after { bottom: calc(var(--fh) * .0865 - var(--w) * .07); height: calc(var(--w) * .07); background: #d6cdbb; }
.ar-book {
  position: relative; z-index: 1; flex: none; width: calc(var(--w) * .2); height: var(--fh); cursor: pointer;
  transition: width 700ms var(--ease-in-out) 850ms, opacity 400ms var(--ease-out) 850ms;
}
.ar-book.is-open { width: calc(var(--w) * 2.04); cursor: default; transition-delay: 0ms; }
.ar-book__obj { position: absolute; left: 50%; bottom: 0; width: var(--fw); height: var(--fh); margin-left: calc(var(--fw) / -2); pointer-events: none; }
.ar-book__img { position: absolute; inset: 0; background: 0 0 / 100% 100% no-repeat; transition: transform 450ms var(--ease-out); }
.ar-book__img.is-sheet { background-size: 600% 300%; }
@media (hover: hover) and (pointer: fine) {
  .ar-book:not(.is-open):hover .ar-book__img { transform: translateY(calc(var(--w) * -.05)); }
}
/* The first page of the open book: HTML set on the rendered page. */
.ar-book__page {
  position: absolute; left: 50%; top: 15.5%; width: 42.3%; height: 73.5%;
  padding: calc(var(--w) * .09) calc(var(--w) * .08) calc(var(--w) * .07);
  color: #14130f; display: flex; flex-direction: column; gap: .6em;
  font-size: clamp(13px, calc(var(--w) * .06), 16px); line-height: 1.4;
  opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-out), visibility 0s linear 300ms;
}
.ar-book.is-read .ar-book__page { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.ar-book.no-sheet .ar-book__page { background: #ece7da; }
.ar .ar-book__page h3 { font: 1.5em/1.1 var(--serif); color: #14130f; }
.ar .ar-book__page p { color: #3c3a33; font-size: 1em; }
.ar-book__link { margin-top: auto; align-self: flex-start; color: var(--maroon); font-weight: 600; border-bottom: 1px solid; display: inline-flex; min-height: 2.25rem; align-items: center; }
/* The spine is the button; once open it becomes a Close button above the book. */
.ar-book__toggle { position: absolute; z-index: 3; left: -.2rem; right: -.2rem; top: calc(var(--fh) * .1); bottom: calc(var(--fh) * .089); background: none; border: 0; padding: 0; cursor: pointer; color: var(--navy); font: inherit; }
.ar-book__toggle:focus-visible { outline: 2px solid var(--maroon); outline-offset: 4px; }
.ar-book__close { display: none; }
.ar-book.is-open .ar-book__toggle { inset: 0 0 auto auto; height: 44px; padding: 0 18px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; }
.ar-book.is-open .ar-book__close { display: inline; }

.ar-articles { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.ar-articles h3 { grid-column: 1 / span 4; font: 28px/1.2 var(--serif); }
.ar-articles ul { grid-column: 5 / span 8; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ar-articles a { display: flex; justify-content: space-between; gap: 24px; padding: 18px 22px; background: var(--cream); font-size: 16px; color: var(--navy); transition: background-color .2s; }
.ar-articles a span { color: var(--maroon); }
.ar-articles a:hover { background: #ece7da; }

/* What we publish */
.ar-publish { background: var(--cream); }
.ar-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 36px; }
.ar-split > :first-child { grid-column: 1 / span 6; }
.ar-split > :last-child { grid-column: 8 / span 5; }
.ar-split p { margin-top: 18px; font-size: 16px; line-height: 1.8; max-width: 36em; }
.ar-split--top { align-items: end; margin-bottom: 36px; }
.ar-split--top > p { margin-top: 0; }
.ar-publish h3 { font: 28px/1.2 var(--serif); margin-bottom: 18px; }
.ar-fields { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-fields li { background: #fff; padding: 10px 14px; font-size: 14px; color: var(--navy); }

/* How to submit: the navy band */
.ar-band { background: var(--navy); color: #fff; padding-block: clamp(64px, 8vw, 110px); }
.ar .ar-band h2 { color: #fff; }
.ar-band__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; align-items: end; }
.ar-band__top h2 { grid-column: 1 / span 6; }
.ar-band__side { grid-column: 8 / span 5; }
.ar .ar-band__side p { color: #d3dae3; font-size: 16px; line-height: 1.7; }
.button--light { background: #fff; color: var(--navy); border-color: #fff; }
.button--light:hover { background: #ece7da; border-color: #ece7da; }
.ar-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ar-steps li { padding: 26px 24px 28px; min-height: 220px; background: #22385a; display: grid; gap: 12px; align-content: start; }
.ar-steps li:nth-child(2) { background: #2a4269; }
.ar-steps li:nth-child(3) { background: #324d78; }
.ar-steps li:nth-child(4) { background: var(--maroon); }
.ar .ar-steps h3 { font: 24px/1.15 var(--serif); color: #fff; }
.ar .ar-steps p { color: #d3dae3; font-size: 15px; line-height: 1.65; }
.ar .ar-steps li:nth-child(4) p { color: #f3dfe1; }

/* Questions */
.ar-mail { color: var(--maroon); border-bottom: 1px solid; }
.ar-faq { display: grid; gap: 8px; }
.ar-faq details { background: var(--cream); }
.ar-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font: 22px/1.3 var(--serif); color: var(--navy); }
.ar-faq summary::after { content: "+"; margin: 0; font: 400 24px/1 var(--sans); color: var(--maroon); }
.ar-faq details[open] summary::after { content: "−"; }
.ar-faq details > div { padding: 0 26px 24px; max-width: 46em; }
.ar-faq details p { font-size: 16px; line-height: 1.75; }

/* Editorial board */
.ar-editors { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ar-editors li { background: var(--cream); padding: 26px 24px; display: grid; gap: 6px; }
.ar-editors li.is-chief { background: var(--navy); grid-column: span 2; }
.ar-editors b { font: 28px/1.15 var(--serif); font-weight: 400; color: var(--navy); }
.ar-editors span { font-size: 14px; color: var(--muted); }
.ar-editors .is-chief b { color: #fff; }
.ar-editors .is-chief span { color: #d3dae3; }

.ar-note { padding-block: 10px 40px; }
.ar-note p { max-width: 52em; font-size: 14px; line-height: 1.75; }

@media (max-width: 1000px) {
  .ar-head__copy, .ar-head__pic, .ar-shelf-wrap__head, .ar-shelf, .ar-articles h3, .ar-articles ul,
  .ar-split > :first-child, .ar-split > :last-child, .ar-band__top h2, .ar-band__side { grid-column: 1 / -1; }
  /* Room for one open book and the other three spines beside it. */
  .ar-shelf { --w: min(19rem, calc((100vw - 60px) / 2.9)); }
  .ar-articles ul { margin-top: 18px; }
  .ar-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ar-head h1 { font-size: 44px; letter-spacing: -.5px; }
  .ar-shelf { --w: calc((100vw - 44px) / 2.08); }
  .ar-shelf.has-open .ar-book:not(.is-open) { width: 0; opacity: 0; pointer-events: none; transition-delay: 0ms; }
  .ar-shelf.has-open { gap: 0; }
  /* The open page is small on a phone. */
  .ar-book__page { font-size: 13px; gap: .4em; line-height: 1.3; }
  .ar-steps, .ar-editors { grid-template-columns: 1fr; }
  .ar-editors li.is-chief { grid-column: auto; }
  .ar-steps li { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-book, .ar-book__img, .ar-book__page { transition: none; }
}
