/* ------------------------------------------------------------------
   Journal of Mathematics and Artificial Intelligence
   One stylesheet for the whole site.

   The palette and the serif are shared with the editorial system at
   submit.i-aims.org, so that an author moving from the website to the
   submission form does not feel handed off to a different organisation.
   ------------------------------------------------------------------ */

:root{
  --navy:#1a3a6b;
  --navy-deep:#0d2145;
  --gold:#a97c18;
  --gold-light:#d4a938;
  --ink:#12203a;
  --muted:#55607a;
  --rule:#d4dbe6;
  --paper:#eaeef4;
  --measure:66ch;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:17px/1.65 Georgia,"Times New Roman",Times,serif;
}

/* --- masthead ---------------------------------------------------- */

.masthead{display:block;line-height:0;background:var(--navy-deep)}
.masthead img{width:100%;height:auto;display:block}

/* --- navigation -------------------------------------------------- */

.top-nav{
  background:var(--navy-deep);
  border-bottom:3px solid var(--gold);
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.15rem 0;
  padding:0 .5rem;
}
.top-nav a{
  color:#dbe3ef;
  text-decoration:none;
  font:600 .82rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:.95rem 1rem;
  border-bottom:3px solid transparent;
  margin-bottom:-3px;
}
.top-nav a:hover,.top-nav a:focus-visible{color:#fff;border-bottom-color:var(--gold-light)}
.top-nav a[aria-current="page"]{color:#fff;border-bottom-color:var(--gold-light)}

/* --- layout ------------------------------------------------------ */

.main-layout{
  max-width:70rem;
  margin:0 auto;
  padding:2.5rem 1.5rem 3.5rem;
  display:grid;
  grid-template-columns:15rem 1fr;
  gap:3rem;
  align-items:start;
}

.left-panel{
  font:.86rem/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--muted);
  position:sticky;
  top:1.5rem;
}
.left-panel img{width:100%;max-width:11rem;height:auto;margin-bottom:1.5rem}
.left-panel p{margin:0 0 1.1rem}
.left-panel strong{color:var(--ink);display:block;margin-bottom:.2rem;
  font-size:.72rem;letter-spacing:.09em;text-transform:uppercase}
.left-panel a{color:var(--navy);word-break:break-word}

.main-content{
  background:#fff;
  border:1px solid var(--rule);
  padding:clamp(1.5rem,4vw,3rem);
  min-width:0;
}

/* --- typography -------------------------------------------------- */

h1{
  font-size:clamp(1.65rem,3.4vw,2.3rem);
  line-height:1.15;
  color:var(--navy-deep);
  margin:0 0 1.4rem;
  padding-bottom:1rem;
  border-bottom:2px solid var(--gold);
  letter-spacing:-.01em;
}
h2{
  font-size:1.3rem;
  color:var(--navy-deep);
  margin:2.4rem 0 .7rem;
  letter-spacing:-.005em;
}
h3{
  font:600 1.02rem/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--navy);
  margin:1.6rem 0 .5rem;
}
p,li{max-width:var(--measure)}
p{margin:0 0 1.05rem}
ul,ol{padding-left:1.3rem;margin:0 0 1.05rem}
li{margin:.3rem 0}
a{color:var(--navy)}
a:hover{color:var(--navy-deep)}
em{color:inherit}
hr.section-divider{border:0;border-top:1px solid var(--rule);margin:2.4rem 0}

.lede{font-size:1.09rem;color:var(--muted);max-width:var(--measure)}

/* --- the cover, in the side panel -------------------------------- *
   Small, and a link: the cover is how the archive is reached rather
   than an ornament.                                                   */

.cover{
  display:block;
  text-decoration:none;
  margin:0 0 1.4rem;
}
.cover{max-width:8.5rem}
.cover img{
  width:100%;
  height:auto;
  border:1px solid var(--rule);
  box-shadow:0 1px 8px rgba(13,33,69,.12);
  display:block;
  margin-bottom:.45rem;
  transition:box-shadow .15s ease;
}
.cover:hover img,.cover:focus-visible img{box-shadow:0 2px 14px rgba(13,33,69,.28)}
.cover span{
  display:block;
  max-width:8.5rem;
  color:var(--navy);
  font-size:.79rem;
  line-height:1.4;
}
.cover:hover span{text-decoration:underline}

/* --- home page cover --------------------------------------------- */

.content-grid{
  display:grid;
  grid-template-columns:15rem 1fr;
  gap:2.2rem;
  align-items:start;
}
.feature-img{
  width:100%;height:auto;
  border:1px solid var(--rule);
  box-shadow:0 2px 12px rgba(13,33,69,.1);
}

/* --- the submission call ----------------------------------------- */

.submit-cta{margin:1.6rem 0}
.submit-cta a{
  display:inline-block;
  background:var(--navy);
  color:#fff;
  text-decoration:none;
  padding:.8rem 1.5rem;
  border:1px solid var(--navy);
  border-radius:2px;
  font:600 .95rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.02em;
}
.submit-cta a:hover,.submit-cta a:focus-visible{
  background:var(--navy-deep);border-color:var(--navy-deep);color:#fff}

.note{
  background:#fbf7ec;
  border-left:4px solid var(--gold);
  padding:1rem 1.2rem;
  margin:1.6rem 0;
}
.note p:last-child{margin-bottom:0}

/* --- editorial board --------------------------------------------- *
   Set as a scholarly index rather than a grid of cards: surname first,
   affiliation beneath, research areas in the utility face. It reads the
   way a masthead in a printed journal reads.                          */

.eic{
  border-left:3px solid var(--gold);
  padding-left:1.1rem;
  margin:0 0 1rem;
}
.board{
  list-style:none;
  padding:0;
  margin:0;
  columns:2;
  column-gap:2.5rem;
}
.board li{
  break-inside:avoid;
  margin:0 0 1.35rem;
  max-width:none;
}
.board .name{
  font-weight:700;
  color:var(--navy-deep);
  text-decoration:none;
}
.board .name:hover{text-decoration:underline}
.board .where,.board .areas{
  display:block;
  font:.83rem/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;
}
.board .where{color:var(--ink)}
.board .areas{color:var(--muted);margin-top:.15rem}

/* --- footer ------------------------------------------------------ */

.footer-banner{width:100%;height:auto;display:block}
.colophon{
  background:var(--navy-deep);
  color:#9fb0cc;
  font:.82rem/1.7 system-ui,-apple-system,"Segoe UI",sans-serif;
  text-align:center;
  padding:1.6rem 1.5rem 2rem;
}
.colophon a{color:var(--gold-light)}
.colophon em{color:#c3d1e6;font-style:italic}

/* A note for the reader who wonders what the masthead is. Set smaller and
   quieter than the rest of the colophon, so it does not compete. */
.curve-note{
  max-width:44rem;
  text-align:left;
  margin:0 auto 1.3rem;
  padding-bottom:1.2rem;
  border-bottom:1px solid rgba(159,176,204,.22);
  font-size:.76rem;
  line-height:1.75;
  color:#8298b8;
}
.curve-note .eq{
  font-family:Georgia,"Times New Roman",serif;
  font-style:italic;
  color:#c3d1e6;
  white-space:nowrap;
}
.curve-note sup{font-size:.72em}

/* --- narrow screens ---------------------------------------------- */

@media (max-width:56rem){
  .main-layout{grid-template-columns:1fr;gap:2rem;padding:1.75rem 1rem 2.5rem}
  .left-panel{position:static;order:2;border-top:1px solid var(--rule);padding-top:1.5rem}
  .left-panel img{max-width:9rem}
  .content-grid{grid-template-columns:1fr}
  .feature-img{max-width:14rem}
  .board{columns:1}
  .top-nav a{padding:.8rem .7rem;font-size:.76rem}
}

/* --- accessibility ----------------------------------------------- */

a:focus-visible,.top-nav a:focus-visible{outline:2px solid var(--gold-light);outline-offset:2px}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

@media print{
  .top-nav,.masthead,.footer-banner,.colophon,.left-panel{display:none}
  body{background:#fff}
  .main-content{border:0;padding:0}
  .main-layout{display:block;max-width:none}
}
